/* Superadmin panel: only what the portal's style.css / dark.css do not already provide.
   Look = zones.css / mini-stats / modal / filter-bar of the portal. Dark rules use the variables of dark.css. */
body { background: #fff; }
body.login-page { background-color: #fafbfd; }
[hidden] { display: none !important; }
.sa-wrap { max-width: none; width: calc(100% - 164px); margin: 0 auto; padding: 20px 0 10px; color: #2c3e50; font-size: 15px; }
.sa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 4px; }
.sa-head > div:first-child { flex: 1 1 300px; min-width: 0; }
.sa-head h1 { margin: 0 0 8px; font-size: 30px; font-weight: 700; line-height: 1.2; }
.sa-sub { margin: 0; color: #7b8a8b; max-width: 820px; }
.sa-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sa-btn { border: 0; border-radius: 4px; padding: 11px 18px; color: #fff; font-size: 15px; font-family: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; }
.sa-btn:hover { filter: brightness(.94); color: #fff; }
.sa-btn:disabled { opacity: .55; cursor: not-allowed; }
.sa-btn.sm { padding: 6px 12px; font-size: 14px; }
.sa-green { background: #4cae3b; } .sa-red { background: #e74c3c; } .sa-grey { background: #8fa0a8; } .sa-blue { background: #0d6efd; } .sa-orange { background: #f0932b; }
a.sa-btn, a.sa-btn:hover { color: #fff; }

.sa-redirect { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 4px; background: #eaf3ff; color: #0b4a8f; font-size: 15px; }
.sa-back { display: block; margin-top: 12px; text-align: center; font-size: 14px; }
html.smartolt-night-demo .sa-redirect { background: rgba(88, 166, 255, .14); color: #9ecbff; }
.sa-login-note { margin: 14px 0 0; font-size: 13px; color: #7b8a8b; }
.sa-tag { font-size: 12px; font-weight: 600; letter-spacing: .4px; color: #fff; background: #0064c8; border-radius: 3px; padding: 2px 7px; margin-left: 8px; vertical-align: 3px; text-transform: uppercase; }
.sa-badge { margin-left: auto; margin-right: 8px; font-size: 11px; letter-spacing: 1px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .55); border-radius: 3px; padding: 2px 8px; color: #fff; white-space: nowrap; }
.topbar nav a.active { color: #7cc0f5; }
.topbar .icons a[title="Account"] i, .topbar .icons a[title="Manual"] i { font-size: 18px; }

/* stat cards: the portal's .mini-stats, four in a row */
.sa-stats { margin: 22px 0 18px; }
.mini-stat-icon.gray { background: #8fa0a8; }

.sa-filters { background: #f8f9fa; border: 1px solid #dce4ec; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px; display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.sa-filters .f { display: flex; flex-direction: column; gap: 6px; }
.sa-filters label { font-weight: 700; margin: 0; }
.sa-filters input, .sa-filters select { height: 42px; padding: 6px 12px; border: 2px solid #dce4ec; border-radius: 4px; font: inherit; background: #fff; min-width: 190px; color: #2c3e50; }
.sa-filters .sa-reset { margin-left: auto; cursor: pointer; color: #2c3e50; align-self: center; text-decoration: none; }

.sa-tablewrap { overflow-x: auto; }
table.sa-table { width: 100%; border-collapse: collapse; background: #fff; }
table.sa-table th { text-align: left; padding: 14px 14px; background: #ecf0f1; border-bottom: 2px solid #dce4ec; white-space: nowrap; font-weight: 700; font-size: 14.5px; }
table.sa-table td { padding: 12px 14px; border-top: 1px solid #ecf0f1; background: #fff; vertical-align: middle; font-size: 14.5px; }
table.sa-table tbody tr:nth-child(even) td { background: #f9f9f9; }
table.sa-table a { color: #0064c8; text-decoration: none; }
table.sa-table a:hover { text-decoration: underline; }
table.sa-table .nm { font-weight: 700; }
table.sa-table .sub { display: block; color: #7b8a8b; font-size: 12.5px; margin-top: 2px; }
table.sa-table td.act { white-space: nowrap; text-align: right; }
table.sa-table .empty { text-align: center; color: #7b8a8b; padding: 40px 14px; }
table.sa-table code { font-size: 13px; }

.sa-ic { width: 34px; height: 34px; border: 0; border-radius: 4px; color: #fff; cursor: pointer; font-size: 15px; margin-left: 3px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; text-decoration: none; }
.sa-ic:hover { filter: brightness(.92); color: #fff; text-decoration: none; }
table.sa-table a.sa-ic, table.sa-table a.sa-ic:hover { color: #fff; text-decoration: none; }
.sa-ic.sa-blue { background: #0d6efd; } .sa-ic.sa-green { background: #4cae3b; } .sa-ic.sa-orange { background: #f0932b; } .sa-ic.sa-grey { background: #8fa0a8; } .sa-ic.sa-red { background: #e74c3c; }
.sa-more { position: relative; display: inline-block; }
.sa-more .dropdown-menu { right: 0; left: auto; text-align: left; }
.sa-more .dropdown-menu a { cursor: pointer; }
.sa-more .dropdown-menu a.danger { color: #d9534f; }
.sa-more .dropdown-menu a.danger i { color: #d9534f; }

.sa-pill { display: inline-block; padding: 3px 11px; border-radius: 3px; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sa-pill.ok { background: #1fb325; } .sa-pill.warn { background: #f7a127; } .sa-pill.bad { background: #d9534f; } .sa-pill.off { background: #4c4b4b; }

/* cards (detail / account / settings) */
.sa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; margin-top: 18px; }
.sa-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px 0 rgba(15, 23, 42, .04), 0 5px 14px 0 rgba(15, 23, 42, .07); padding: 18px 22px 20px; margin-top: 18px; min-width: 0; }
.sa-grid .sa-card { margin-top: 0; }
.sa-card h2 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sa-card h2 .sa-btn { font-size: 13.5px; padding: 6px 12px; }
.sa-card h3 { font-size: 15px; margin: 18px 0 8px; }
.sa-card p { margin: 0 0 10px; }
.sa-kv { width: 100%; border-collapse: collapse; }
.sa-kv td { padding: 8px 6px; vertical-align: top; font-size: 14.5px; border-top: 1px solid #ecf0f1; word-break: break-word; }
.sa-kv tr:first-child td { border-top: 0; }
.sa-kv td:first-child { font-weight: 700; width: 38%; white-space: nowrap; }
.sa-kv .env { display: block; font-weight: 400; font-size: 12.5px; color: #7b8a8b; margin-top: 2px; }
.sa-note { color: #7b8a8b; font-size: 13.5px; }
.sa-banner { border-radius: 4px; padding: 12px 16px; margin: 16px 0 0; font-size: 14.5px; border: 1px solid #b6d4fe; background: #e7f1ff; color: #14447f; }
.sa-banner.warn { border-color: #f5d79e; background: #fff6e6; color: #7a4b00; }
.sa-banner.bad { border-color: #f5a9a0; background: #fdecea; color: #b42318; }
.sa-banner.ok { border-color: #9fd9a8; background: #eaf7ea; color: #1e7a33; }
.sa-back { display: inline-block; margin: 0 0 14px; color: #0064c8; text-decoration: none; }
.sa-err { color: #d9534f; font-size: 13.5px; min-height: 18px; margin-top: 8px; }
.sa-msg { color: #1e7a33; font-size: 13.5px; min-height: 18px; margin-top: 8px; }

/* forms: the portal's .edit-form rows */
.sa-form .field-row { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid #e3e6ea; align-items: flex-start; }
.sa-form .field-row > label:first-child { width: 220px; flex-shrink: 0; font-weight: 700; font-size: 15px; padding-top: 11px; text-align: right; }
.sa-form .field-row > div { flex: 1; min-width: 0; }
.sa-form input[type="text"], .sa-form input[type="email"], .sa-form input[type="password"], .sa-form input[type="number"], .sa-form textarea, .sa-form select { width: 100%; max-width: 480px; padding: 10px 15px; border: 2px solid #dce4ec; border-radius: 4px; font-size: 15px; font-family: inherit; background: #fff; color: #2c3e50; }
.sa-form textarea { min-height: 90px; resize: vertical; }
.sa-form .hint { color: #7b8a8b; font-size: 13px; margin-top: 6px; max-width: 480px; }
.sa-form .inline-check { display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.sa-form .sa-actions { padding-top: 18px; display: flex; gap: 8px; }
.sa-form.narrow .field-row > label:first-child { width: 170px; }
.sa-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sa-inline input { max-width: 260px !important; }

.sa-secret { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.sa-secret code { font-family: ui-monospace, Menlo, monospace; font-size: 17px; padding: 9px 14px; background: #f4f5f7; border: 1px dashed #0064c8; border-radius: 4px; word-break: break-all; user-select: all; }
.sa-steps { margin: 8px 0 0 20px; padding: 0; line-height: 1.7; }
.sa-qr { display: inline-block; background: #fff; padding: 6px; border-radius: 6px; line-height: 0; border: 1px solid #dce4ec; }
.sa-qr svg { width: 220px; height: 220px; }
.sa-pre { background: #f4f5f7; border: 1px solid #e3e6ea; border-radius: 6px; padding: 12px; overflow: auto; max-height: 55vh; font: 12.5px/1.45 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; margin: 0; }
.sa-pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin: 14px 0 0; flex-wrap: wrap; }
.sa-pager .info { margin-right: auto; color: #7b8a8b; font-size: 14px; }
.sa-detail { font-size: 13px; color: #55657a; word-break: break-word; max-width: 560px; }
.sa-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal-box .modal-body .sa-form .field-row { padding: 10px 0; border-bottom: 0; }
.modal-box .modal-body .sa-form .field-row > label:first-child { width: 140px; padding-top: 11px; }
.modal-box.wide { width: 860px; }
.so-footer { margin-top: 36px; }

@media (max-width: 900px) {
  .sa-wrap { width: calc(100% - 32px); }
  .sa-grid { grid-template-columns: 1fr; }
  .sa-form .field-row { flex-direction: column; gap: 4px; }
  .sa-form .field-row > label:first-child { width: auto; text-align: left; padding-top: 0; }
  .sa-badge { display: none; }
  .mini-stats { flex-wrap: wrap; }
  table.sa-table { display: table; min-width: 980px; }
}

/* ---- dark: same palette variables as the portal's dark.css ---- */
html.smartolt-night-demo body { color: var(--text); }
html.smartolt-night-demo .sa-wrap { color: var(--text); }
html.smartolt-night-demo .sa-sub, html.smartolt-night-demo .sa-note, html.smartolt-night-demo .sa-login-note, html.smartolt-night-demo table.sa-table .sub, html.smartolt-night-demo .sa-kv .env, html.smartolt-night-demo .sa-form .hint, html.smartolt-night-demo .sa-pager .info { color: var(--text2); }
html.smartolt-night-demo .sa-detail { color: var(--text2); }
html.smartolt-night-demo .sa-card { background: var(--card); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); border: 1px solid var(--border); }
html.smartolt-night-demo .sa-filters { background: var(--card); border-color: var(--border); }
html.smartolt-night-demo .sa-filters input, html.smartolt-night-demo .sa-filters select, html.smartolt-night-demo .sa-form input, html.smartolt-night-demo .sa-form textarea, html.smartolt-night-demo .sa-form select { background: var(--input) !important; color: var(--text) !important; border-color: var(--input-b) !important; }
html.smartolt-night-demo .sa-filters .sa-reset { color: var(--text2); }
html.smartolt-night-demo table.sa-table { background: transparent; }
html.smartolt-night-demo table.sa-table th { background: #16264d; color: var(--text); border-bottom-color: var(--border2); }
html.smartolt-night-demo table.sa-table td { background: var(--card); color: var(--text); border-top-color: var(--border); }
html.smartolt-night-demo table.sa-table tbody tr:nth-child(even) td { background: #162a52; }
html.smartolt-night-demo table.sa-table a { color: var(--link); }
html.smartolt-night-demo table.sa-table a.sa-ic { color: #fff; }
html.smartolt-night-demo table.sa-table .empty { color: var(--text2); }
html.smartolt-night-demo .sa-kv td { border-top-color: var(--border); }
html.smartolt-night-demo .sa-form .field-row { border-bottom-color: var(--border); }
html.smartolt-night-demo .sa-secret code { background: #0a1430; border-color: #5b9bff; color: #d7e4ff; }
html.smartolt-night-demo .sa-pre { background: #0a1430; border-color: var(--border); color: #d7e4ff; }
html.smartolt-night-demo .sa-qr { border-color: var(--border2); }
html.smartolt-night-demo .sa-back { color: var(--link); }
html.smartolt-night-demo .sa-banner { background: #12305e; border-color: #2f5fb8; color: #cfe0ff; }
html.smartolt-night-demo .sa-banner.warn { background: #3b2c0b; border-color: #8a6a1c; color: #ffe2a3; }
html.smartolt-night-demo .sa-banner.bad { background: #43191a; border-color: #8a3030; color: #ffb4ad; }
html.smartolt-night-demo .sa-banner.ok { background: #123a24; border-color: #2b7a4b; color: #b6f0cc; }
html.smartolt-night-demo .sa-err { color: var(--bad); }
html.smartolt-night-demo .sa-msg { color: var(--ok); }
html.smartolt-night-demo .sa-more .dropdown-menu a.danger, html.smartolt-night-demo .sa-more .dropdown-menu a.danger i { color: var(--bad); }
html.smartolt-night-demo body.login-page { background-color: transparent; }
html.smartolt-night-demo .login-card .sa-login-note { color: var(--text2); }
html.smartolt-night-demo .mini-stat-icon.gray { background: #4a5f87; }

/* table polish */
table.sa-table td:nth-child(2), table.sa-table td:nth-child(7) { white-space: nowrap; }
.sa-filters input#fQ, .sa-filters input#aQ { min-width: 300px; }
/* the QR must stay black on white in dark mode (dark.css recolours svg shapes) */
.sa-qr svg, html.smartolt-night-demo .sa-qr svg { background: #fff; }
.sa-qr svg rect, html.smartolt-night-demo .sa-qr svg rect { fill: #fff !important; }
.sa-qr svg path, html.smartolt-night-demo .sa-qr svg path { fill: #000 !important; }

/* ======================= v2: more options ======================= */
:focus-visible { outline: 3px solid #0d6efd; outline-offset: 2px; }
.sa-btn:focus-visible, .sa-ic:focus-visible { outline-offset: 3px; }
#main:focus { outline: none; }
.sa-login-banner { margin: 0 0 14px; padding: 11px 14px; border-radius: 4px; background: #fff6e6; color: #7a4b00; border: 1px solid #f5d79e; font-size: 14px; }
.sa-maint { background: #f0932b; color: #fff; padding: 10px 24px; font-size: 14.5px; text-align: center; }
.sa-maint a { color: #fff; text-decoration: underline; }
.sa-pill.info { background: #0d6efd; }
.sa-pill.sm { font-size: 12px; padding: 1px 8px; }
.sa-bad { color: #d9534f; font-weight: 700; }
.sa-lbl { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 14px; }
.sa-lan, .sa-pre-ta { width: 100%; min-height: 130px; font: 13px ui-monospace, Menlo, monospace; padding: 10px; border: 2px solid #dce4ec; border-radius: 4px; background: #fff; color: #2c3e50; resize: vertical; }
.sa-pre-ta { min-height: 170px; }
.sa-wide { grid-column: 1 / -1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sa-tags { margin: 8px 0 0; }
.sa-tagchip { display: inline-block; background: #e7f1ff; color: #14447f; border-radius: 10px; padding: 1px 9px; font-size: 12.5px; margin: 1px 4px 1px 0; white-space: nowrap; }
.sa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.sa-cols h3, .sa-card form h3 { margin: 4px 0 4px; }
.sa-form fieldset .field-row > label:first-child:empty { padding-top: 0; }

/* stats: six clickable cards */
.mini-stats.sa-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mini-stats.sa-stats .mini-stat { text-decoration: none; color: inherit; min-width: 0; }
.mini-stats.sa-stats a.mini-stat:hover { box-shadow: 0 3px 12px rgba(15, 23, 42, .16); }
.mini-stat-icon.red { background: #d9534f; } .mini-stat-icon.blue { background: #0d6efd; }

/* filters / table extras */
.sa-filters .f.grow { flex: 1 1 260px; }
.sa-filters .f.grow input { width: 100%; }
.sa-fbtns { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.sa-filters .sa-reset { margin-left: 0; }
table.sa-table th[data-sort] { cursor: pointer; user-select: none; }
table.sa-table th[data-sort]:hover { background: #e3e8ea; }
table.sa-table th.chk, table.sa-table td.chk { width: 36px; padding-right: 0; }
table.sa-table tr.sel td { background: #eaf3ff !important; }
table.sa-table td:nth-child(2), table.sa-table td:nth-child(7) { white-space: normal; }
.sa-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #eaf3ff; border: 1px solid #b6d4fe; border-radius: 6px; padding: 10px 14px; margin: 0 0 12px; color: #14447f; }
.sa-bulk .grow { flex: 1; }
.sa-pager .sa-ps { display: inline-flex; align-items: center; gap: 6px; color: #7b8a8b; font-size: 14px; }
.sa-pager .sa-ps select { height: 32px; border: 2px solid #dce4ec; border-radius: 4px; background: #fff; color: #2c3e50; }
.sa-pop { position: relative; display: inline-block; }
.sa-popbox { display: none; position: absolute; right: 0; top: 100%; margin-top: 6px; z-index: 50; min-width: 200px; background: #fff; border: 1px solid #dce4ec; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); padding: 10px 14px; }
.sa-pop.open .sa-popbox { display: block; }
.sa-popbox strong { display: block; margin-bottom: 6px; }
.sa-popbox .inline-check { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }

/* empty states, skeletons, toasts */
.sa-empty { text-align: center; padding: 38px 16px; color: #7b8a8b; }
.sa-empty i { font-size: 38px; color: #b7c3cc; margin-bottom: 10px; display: block; }
.sa-empty h3 { margin: 0 0 6px; font-size: 18px; color: #2c3e50; }
.sa-empty p { margin: 0 0 14px; }
.sa-skel { padding: 8px 0; }
.sa-skel-row { height: 16px; border-radius: 4px; margin: 14px 0; background: linear-gradient(90deg, #e9edf0 25%, #f5f7f8 37%, #e9edf0 63%); background-size: 400% 100%; animation: sa-shimmer 1.3s ease infinite; }
@keyframes sa-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sa-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.sa-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 6px; background: #2c3e50; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); font-size: 14.5px; animation: sa-in .18s ease; }
.sa-toast.ok i { color: #7be08a; } .sa-toast.err { background: #8c2b24; } .sa-toast.info i { color: #8ec5ff; }
.sa-toast span { flex: 1; word-break: break-word; }
.sa-toast button { background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: .75; padding: 0 2px; }
.sa-toast.out { opacity: 0; transform: translateY(6px); transition: all .2s; }
@keyframes sa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* health tiles, timeline, misc cards */
.sa-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sa-tiles.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 18px 0 0; }
.sa-tile { border: 1px solid #e3e6ea; border-radius: 8px; padding: 10px 14px; background: #fafbfc; min-width: 0; }
.sa-tiles.big .sa-tile { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 5px 14px rgba(15, 23, 42, .07); border: 0; padding: 14px 18px; }
.sa-tile .k { font-size: 12.5px; color: #7b8a8b; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.sa-tile .v { font-size: 17px; font-weight: 600; word-break: break-word; }
.sa-bar { height: 8px; border-radius: 4px; background: #e3e6ea; margin-top: 8px; overflow: hidden; }
.sa-bar span { display: block; height: 100%; background: #4cae3b; } .sa-bar span.warn { background: #f7a127; } .sa-bar span.bad { background: #d9534f; }
.sa-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid #dce4ec; }
.sa-timeline li { position: relative; padding: 0 0 14px 20px; }
.sa-timeline .dot { position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #0d6efd; border: 2px solid #fff; }
.sa-roles { display: grid; gap: 6px; margin: 14px 0 18px; padding: 12px 16px; border: 1px solid #dce4ec; border-radius: 6px; background: #f8f9fa; font-size: 14.5px; }
.sa-an { border: 1px solid #e3e6ea; border-radius: 8px; padding: 12px 14px; margin: 0 0 10px; }
.sa-an.off { opacity: .6; } .sa-an p { margin: 6px 0; white-space: pre-wrap; }
.sa-card h2 .sa-note { font-weight: 400; font-size: 13px; }
.sa-card fieldset { min-width: 0; }
.sa-form .sa-inline { display: flex; gap: 10px; }
.sa-table .sa-pill { margin-right: 2px; }

@media (max-width: 1200px) { .mini-stats.sa-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sa-cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .sa-wrap { width: calc(100% - 32px); }
  .sa-grid { grid-template-columns: 1fr; }
  .sa-maint { padding: 10px 16px; }
  .sa-fbtns { margin-left: 0; }
  .mini-stats.sa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-filters .f, .sa-filters input, .sa-filters select { min-width: 0 !important; width: 100%; }
  .sa-filters .f.grow { flex-basis: 100%; }
  .sa-head h1 { font-size: 24px; }
  .modal-box, .modal-box.wide { width: calc(100vw - 24px) !important; max-width: none; }
  .sa-toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  table.sa-table { min-width: 760px; }
  .sa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* dark */
html.smartolt-night-demo .sa-login-banner { background: #3b2c0b; border-color: #8a6a1c; color: #ffe2a3; }
html.smartolt-night-demo .sa-tagchip { background: #16335f; color: #bcd7ff; }
html.smartolt-night-demo .sa-lan, html.smartolt-night-demo .sa-pre-ta { background: #0a1430; color: #d7e4ff; border-color: var(--input-b); }
html.smartolt-night-demo .sa-empty h3 { color: var(--text); } html.smartolt-night-demo .sa-empty i { color: #4a5f87; } html.smartolt-night-demo .sa-empty { color: var(--text2); }
html.smartolt-night-demo .sa-skel-row { background: linear-gradient(90deg, #162a52 25%, #1d3566 37%, #162a52 63%); background-size: 400% 100%; }
html.smartolt-night-demo .sa-bulk { background: #12305e; border-color: #2f5fb8; color: #cfe0ff; }
html.smartolt-night-demo .sa-popbox { background: var(--card); border-color: var(--border2); color: var(--text); }
html.smartolt-night-demo .sa-pager .sa-ps { color: var(--text2); } html.smartolt-night-demo .sa-pager .sa-ps select { background: var(--input); color: var(--text); border-color: var(--input-b); }
html.smartolt-night-demo .sa-tile { background: #12224a; border-color: var(--border); } html.smartolt-night-demo .sa-tiles.big .sa-tile { background: var(--card); border: 1px solid var(--border); }
html.smartolt-night-demo .sa-tile .k { color: var(--text2); } html.smartolt-night-demo .sa-bar { background: #0a1430; }
html.smartolt-night-demo .sa-timeline { border-left-color: var(--border2); } html.smartolt-night-demo .sa-timeline .dot { border-color: var(--card); }
html.smartolt-night-demo .sa-roles { background: var(--card); border-color: var(--border); }
html.smartolt-night-demo .sa-an { border-color: var(--border); }
html.smartolt-night-demo table.sa-table tr.sel td { background: #17376d !important; }
html.smartolt-night-demo table.sa-table th[data-sort]:hover { background: #1d3566; }
html.smartolt-night-demo .sa-bad { color: var(--bad); }
html.smartolt-night-demo .sa-toast { background: #0a1430; border: 1px solid var(--border2); } html.smartolt-night-demo .sa-toast.err { background: #43191a; border-color: #8a3030; }
html.smartolt-night-demo :focus-visible { outline-color: #8ec5ff; }
html.smartolt-night-demo .mini-stats.sa-stats a.mini-stat { color: var(--text); }
