/* NEO WordPress portal: page layout on top of the Biznet Gio Design System tokens. */
.nw-page { position: relative; background: var(--surface); min-height: 100%; color: var(--foreground); font: 400 14px/20px var(--font-sans); }
.nw-page *, .nw-page *::before, .nw-page *::after { box-sizing: border-box; }
:where(.nw-page) a:where(:not(.gio-btn)) { color: var(--primary); text-decoration: none; }
:where(.nw-page) a:where(:not(.gio-btn)):hover { color: var(--primary-hover); }
.nw-page h1, .nw-page h2, .nw-page h3, .nw-page p { margin: 0; }
.nw-wrap { max-width: var(--container-max); margin: 0 auto; padding: var(--space-6); }
.nw-layout { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-start; }
.nw-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.nw-stack { display: flex; flex-direction: column; gap: var(--space-5); }

/* header extras */
.gio-header__logo img { height: 34px; width: auto; display: block; }
.nw-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); color: var(--foreground-secondary) !important; }
.nw-bell:hover { background: var(--accent); }
.nw-bell__count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: var(--destructive); color: var(--primary-foreground); font: 600 11px/18px var(--font-sans); text-align: center; }
.nw-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--brand-tint); color: var(--primary-hover); font: 600 12px/16px var(--font-sans); }

/* site side navigation */
.nw-side { flex: 1 1 220px; max-width: 232px; display: flex; flex-direction: column; gap: var(--space-4); }
.nw-site { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.nw-site__name { font: 600 14px/20px var(--font-sans); }
.nw-site__domain { font: 400 12px/16px var(--font-mono); color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-nav { display: flex; flex-direction: column; gap: 2px; }
.nw-nav a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--foreground-secondary); font: 500 14px/20px var(--font-sans); }
.nw-nav a:hover { background: var(--accent); color: var(--foreground); }
.nw-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--primary-hover); }
.nw-nav__label { padding: var(--space-3) var(--space-3) var(--space-1); }
@media (max-width: 640px) { .nw-side { max-width: none; } .nw-nav { flex-direction: row; flex-wrap: wrap; } }

/* type */
.nw-h1 { font: 700 32px/40px var(--font-sans); letter-spacing: -0.02em; text-wrap: balance; }
.nw-h2 { font: 700 22px/30px var(--font-sans); letter-spacing: -0.01em; }
.nw-h3 { font: 600 17px/24px var(--font-sans); }
.nw-sub { font: 400 15px/24px var(--font-sans); color: var(--foreground-tertiary); }
.nw-desc { font: 400 14px/20px var(--font-sans); color: var(--foreground-tertiary); }
.nw-meta { font: 500 13px/18px var(--font-sans); color: var(--muted-foreground); }
.nw-eyebrow { font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.nw-mono { font: 400 13px/20px var(--font-mono); }
.nw-num { font-variant-numeric: tabular-nums; }
.nw-ok { color: var(--primary-hover); }
.nw-warn { color: var(--warning); }
.nw-bad { color: var(--destructive); }

/* page heading row */
.nw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.nw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* cards */
.nw-card { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.nw-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.nw-card__body { padding: var(--space-5); }
.nw-card__foot { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.nw-grid { display: grid; gap: var(--space-5); }
.nw-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.nw-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.nw-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.nw-split { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: stretch; }
.nw-split > .nw-grow { flex: 999 1 420px; min-width: 0; }
.nw-split > .nw-aside { flex: 1 1 300px; min-width: 0; }

/* key figure */
.nw-stat { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5); }
.nw-stat__num { font: 700 32px/40px var(--font-sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nw-stat__unit { font: 500 15px/24px var(--font-sans); color: var(--muted-foreground); }

/* rows and tables */
.nw-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border); }
.nw-row:first-child { border-top: 0; }
.nw-row__text { flex: 1 1 220px; min-width: 0; }
.nw-row__title { font: 500 14px/20px var(--font-sans); color: var(--foreground); }
.nw-scroll { overflow-x: auto; }
.nw-table { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.nw-table th { text-align: left; padding: var(--space-2) var(--space-5); background: var(--surface); color: var(--muted-foreground); font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--border); }
.nw-table td { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border); vertical-align: middle; }
.nw-table tr:first-child td { border-top: 0; }
.nw-table .nw-right { text-align: right; }
.nw-table .nw-center { text-align: center; }

/* small parts */
.nw-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand); }
.nw-tile--warn { background: var(--warning-tint); color: var(--warning); border: 1px solid var(--warning-border); }
.nw-tile--bad { background: var(--destructive-tint); color: var(--destructive); }
.nw-tile--plain { background: var(--info-tint); color: var(--foreground-secondary); }
.nw-wp { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--foreground); color: var(--background); font: 700 16px/1 var(--font-sans); }
.nw-dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--brand); }
.nw-dot--warn { background: var(--warning); }
.nw-dot--bad { background: var(--destructive); }
.nw-dot--off { background: var(--input); }
.nw-bar { height: 8px; border-radius: var(--radius-full); background: var(--secondary); overflow: hidden; }
.nw-bar > span { display: block; height: 100%; border-radius: var(--radius-full); background: var(--primary); }
.nw-bar--warn > span { background: var(--warning); }
.nw-chart { display: block; width: 100%; height: auto; }
.nw-inline { display: inline-flex; align-items: center; gap: var(--space-2); }
.nw-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.nw-unread { background: var(--hero); }
.nw-thumb { width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--info-tint); display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); font: 500 13px/18px var(--font-sans); }

/* notification matrix and channel messages */
.nw-cb { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); vertical-align: middle; }
.nw-group td { background: var(--surface); font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.nw-phone { width: 100%; max-width: 360px; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--info-tint); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.nw-bubble { background: var(--background); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-xs); font: 400 14px/20px var(--font-sans); color: var(--foreground); }
.nw-bubble strong { font-weight: 600; }
.nw-reply { display: block; text-align: center; padding: var(--space-2); border-radius: var(--radius-md); background: var(--background); box-shadow: var(--shadow-xs); color: var(--primary); font: 600 14px/20px var(--font-sans); }
.nw-toast { display: flex; gap: var(--space-3); align-items: flex-start; width: 100%; max-width: 380px; padding: var(--space-4); background: var(--background); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); }
.nw-toast__text { flex: 1 1 auto; min-width: 0; }
.nw-toast__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -4px -6px 0 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--muted-foreground); cursor: pointer; }
.nw-toast__x:hover { background: var(--accent); color: var(--foreground); }
.nw-toast .gio-spin { flex: none; width: 20px; height: 20px; margin: 10px; color: var(--primary); }
.nw-toasts { position: absolute; right: var(--space-6); bottom: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-end; width: 380px; max-width: calc(100% - 32px); }
.nw-score { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: var(--radius-full); border: 8px solid var(--primary); font: 700 22px/26px var(--font-sans); }
.nw-score small { font: 500 12px/14px var(--font-sans); color: var(--muted-foreground); }
.nw-danger { border-color: var(--destructive); }
.nw-code { background: var(--code); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); font: 400 13px/20px var(--font-mono); white-space: pre-wrap; overflow-x: auto; margin: 0; }

/* overlay sheet inside a page mockup */
.nw-scrim { position: absolute; inset: 0; background: rgba(23, 23, 23, 0.48); display: flex; justify-content: flex-end; }
.nw-scrim .gio-sheet { height: auto; min-height: 100%; }
