/*
 * FLIIT Platform — shared global stylesheet.
 *
 * This is the single source for the platform's design tokens and reusable
 * UI components. Every layout in the app includes this one file instead of
 * each defining its own copy — the legacy /v2 system duplicated this same
 * theme (with drift) across ~10 separate layout files; this file exists so
 * that never happens again here.
 *
 * Palette carried over verbatim from /v2 and confirmed against FLIIT
 * Personal's live notification templates: navy #06192D, gold #E4B63D.
 */

:root {
    --bg: #06192d;
    --panel: #08233f;
    --card: #0b2a4b;
    --line: #23649f;
    --text: #f7fbff;
    --muted: #bfe3ff;
    --gold: #e4b63d;
    --blue: #36b9f4;
    --green: #20d68b;
    --red: #ff5b72;
    --purple: #a97ff0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
}

a {
    color: inherit;
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--muted);
}

/* ── Flash messages ─────────────────────────────────────────────── */

.flash {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash.error {
    background: rgba(255, 91, 114, 0.12);
    border: 1px solid rgba(255, 91, 114, 0.35);
    color: #ff8fa0;
}

.flash.success {
    background: rgba(32, 214, 139, 0.12);
    border: 1px solid rgba(32, 214, 139, 0.35);
    color: #47ffad;
}

.flash.warning {
    background: rgba(228, 182, 61, 0.12);
    border: 1px solid rgba(228, 182, 61, 0.35);
    color: #ffd978;
}

/* ── Auth screens (login, register, OTP, password reset) ───────────── */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: min(480px, 100%);
    background: linear-gradient(180deg, #0b2a4b, #082641);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 22px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.auth-logo h1 span {
    color: var(--gold);
}

.auth-logo p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.auth-title {
    font-size: 15px;
    font-weight: 950;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fliit-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: var(--muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fliit-input,
.fliit-select {
    background: #071e36;
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 12px;
    width: 100%;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}

.fliit-textarea {
    background: #071e36;
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 12px;
    width: 100%;
    outline: none;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.fliit-input:focus,
.fliit-select:focus {
    border-color: var(--blue);
}

/* Native date/time pickers default to a dark (near-invisible) icon on
   light-mode assumptions — color-scheme tells the browser this field is
   dark, which makes Chromium/WebKit draw the picker indicator in a
   light/contrasting color automatically. (Do NOT also add a
   filter:invert() on the indicator — that flips this already-light icon
   back to dark, silently re-creating the exact bug this rule fixes.)
   Applies platform-wide to every input[type=date/time], not just one page. */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    color-scheme: dark;
}

.fliit-input.is-invalid {
    border-color: var(--red);
}

.error-msg {
    color: #ff8fa0;
    font-size: 10px;
    margin-top: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(180deg, #f2c95d, #d8a72d);
    color: #07111e;
    border: 0;
    border-radius: 9px;
    padding: 11px;
    font-weight: 950;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.auth-btn:hover {
    opacity: 0.92;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn.secondary {
    background: #071e36;
    color: var(--text);
    border: 1px solid var(--line);
}

.auth-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 11px;
}

.auth-link:hover {
    text-decoration: underline;
}

.divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

.lock-banner {
    background: rgba(255, 91, 114, 0.14);
    border: 1px solid rgba(255, 91, 114, 0.4);
    border-radius: 9px;
    padding: 12px;
    color: #ff8fa0;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
}

.topbtn {
    background: #071e36;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Multi-step registration wizard ─────────────────────────────────── */

.steps {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.step {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    color: var(--muted);
    background: #071e36;
    cursor: pointer;
    transition: background 0.15s;
}

.step.active {
    background: rgba(228, 182, 61, 0.15);
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.step.done {
    color: var(--green);
    background: rgba(32, 214, 139, 0.06);
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

.acct-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.acct-type-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s;
    background: #071e36;
}

.acct-type-card:hover {
    border-color: var(--blue);
}

.acct-type-card.selected {
    border-color: var(--gold);
    background: rgba(228, 182, 61, 0.08);
}

.acct-type-card i {
    font-size: 22px;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.acct-type-card b {
    display: block;
    font-weight: 950;
    font-size: 12px;
    margin-bottom: 3px;
}

.acct-type-card span {
    color: var(--muted);
    font-size: 10px;
}

.pwd-rules {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-top: 6px;
}

.pwd-rule {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwd-rule.pass {
    color: var(--green);
}

.pwd-rule.fail {
    color: var(--red);
}

/* ── Badges / tags (used platform-wide from the dashboard shell on) ─── */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag.green {
    background: rgba(32, 214, 139, 0.14);
    color: var(--green);
}

.tag.gold {
    background: rgba(228, 182, 61, 0.14);
    color: var(--gold);
}

.tag.blue {
    background: rgba(54, 185, 244, 0.14);
    color: var(--blue);
}

.tag.red {
    background: rgba(255, 91, 114, 0.14);
    color: var(--red);
}

.tag.purple {
    background: rgba(169, 127, 240, 0.14);
    color: var(--purple);
}

/* ══════════════════════════════════════════════════════════════════
   Authenticated app shell — topbar, module nav, page chrome.
   Ported and consolidated from /v2's app.blade.php (previously
   duplicated, with drift, across ~10 separate layout files).
   ══════════════════════════════════════════════════════════════════ */

body.shell-body {
    font-size: 12px;
}

.fliit-topbar {
    background: #04111f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.fliit-topbar .inner {
    max-width: 1510px;
    margin: 0 auto;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
}

.fliit-brand {
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0.02em;
    color: #fff;
    margin-right: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.fliit-brand span {
    color: var(--gold);
}

.topnav-pills {
    display: flex;
    gap: 7px;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.topnav-pills::-webkit-scrollbar {
    display: none;
}

.tnpill {
    height: 28px;
    border: 1px solid var(--line);
    background: #0a2a4b;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    font-weight: 900;
    font-size: 10px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s;
}

.tnpill:hover {
    border-color: rgba(54, 185, 244, 0.5);
    color: #fff;
    text-decoration: none;
}

.tnpill.active {
    border-color: var(--gold);
}

.tnpill i {
    color: var(--gold);
    font-size: 11px;
}

.tnpill.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    flex-shrink: 0;
}

.topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #b87e00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 10px;
    color: #07111e;
    flex-shrink: 0;
}

.topbar-name {
    font-weight: 800;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
}

.topbar-role {
    font-size: 9px;
    color: var(--muted);
    font-weight: 700;
}

.topbar-logout {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--muted);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
}

.topbar-logout:hover {
    border-color: var(--red);
    color: var(--red);
}

.shell {
    max-width: 1510px;
    margin: 0 auto;
    padding: 12px 18px 28px;
}

/* ── Page-level nav rows ─────────────────────────────────────────── */

.navrow {
    display: grid;
    gap: 9px;
    margin-bottom: 12px;
}

.navrow-6,
.navrow-5 {
    grid-template-columns: repeat(8, 1fr);
}

.navrow-4 {
    grid-template-columns: repeat(4, 1fr);
}

.navrow-3 {
    grid-template-columns: repeat(3, 1fr);
}

.navpill {
    height: 32px;
    border: 1px solid var(--line);
    background: #0a2a4b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.navpill:hover {
    border-color: rgba(54, 185, 244, 0.4);
    color: #fff;
    text-decoration: none;
}

.navpill.active {
    border-color: var(--gold);
}

.navpill i {
    color: var(--gold);
}

.navpill span {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ── Hero / page header ──────────────────────────────────────────── */

.hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 26px;
    font-weight: 950;
    margin: 4px 0;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero .desc {
    color: #d8efff;
    line-height: 1.35;
    max-width: 900px;
    font-weight: 700;
}

.stamp {
    text-align: right;
    color: #d8efff;
    min-width: 200px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 11px;
}

.crumb {
    color: var(--muted);
    margin: 4px 0 14px;
    font-weight: 800;
    font-size: 11px;
}

.crumb b {
    color: #fff;
}

.crumb a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
}

.crumb a:hover {
    color: var(--blue);
}

/* ── Cards / KPIs ─────────────────────────────────────────────────── */

.card {
    background: linear-gradient(180deg, #0b2a4b, #082641);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px;
}

.card.kpi {
    height: 126px;
    position: relative;
}

.card.product {
    min-height: 128px;
    cursor: pointer;
}

.label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 950;
    color: #d9eeff;
}

.value {
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
    margin: 7px 0;
    color: #fff;
}

.sub {
    color: #d9eeff;
    line-height: 1.35;
    font-weight: 700;
}

.link {
    color: #55e6ff;
    font-weight: 950;
    margin-top: 10px;
    cursor: pointer;
    display: block;
    font-size: 11px;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.greenlink { color: #4bffa8; }
.goldlink { color: #ffcf4e; }
.purplelink { color: #ad86ff; }
.redlink { color: #ff8fa0; }

/* ── Grids ────────────────────────────────────────────────────────── */

.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }

/* ── Section titles / two-column layout ──────────────────────────── */

.section-title {
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    margin: 22px 0 9px;
    letter-spacing: 0.02em;
    color: #fff;
}

.main { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.left, .right { display: grid; gap: 12px; align-content: start; }

.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

/* ── Tables ───────────────────────────────────────────────────────── */

.table-wrap {
    overflow-x: auto;
}

/* Bordered, edge-to-edge container for a data table — header row sits
   flush against the rounded top corners, no padding gap. Every table on
   the platform should be wrapped in this, populated or empty, so an empty
   result reads as "here is the table, it has zero rows" rather than the
   table disappearing and leaving unboxed text. */
.table-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0b2a4b, #082641);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.table-card .table-wrap {
    overflow-x: auto;
}

.table-empty-row td {
    text-align: center;
    padding: 32px 16px;
    color: var(--muted);
    font-weight: 700;
}

.table-empty-row.clear td i {
    color: var(--green);
    margin-right: 6px;
}

.shell table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.shell th,
.shell td {
    padding: 8px 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.shell th {
    background: rgba(255, 255, 255, 0.04);
    font-size: 9px;
    color: #d9eeff;
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 900;
}

.shell td {
    font-weight: 800;
    color: #fff;
    font-size: 11px;
    line-height: 1.25;
}

.shell tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.small-txt {
    display: block;
    color: var(--muted);
    font-weight: 650;
    margin-top: 2px;
    font-size: 10px;
}

.tbl-ref {
    color: var(--blue);
    font-weight: 900;
}

/* ── Pagination ───────────────────────────────────────────────────── */

.pager {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pagebtn {
    border: 1px solid #3379b7;
    background: rgba(54, 185, 244, 0.10);
    color: #fff;
    border-radius: 7px;
    padding: 5px 8px;
    font-weight: 900;
    cursor: pointer;
    font-size: 10px;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.pagebtn:hover {
    color: #fff;
    text-decoration: none;
}

.pagebtn.active {
    border-color: rgba(228, 182, 61, 0.6);
    background: rgba(228, 182, 61, 0.16);
    color: #ffd978;
}

.pagebtn:disabled,
.pagebtn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Pills / badges (row-level, distinct from .tag) ──────────────── */

.pill {
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 900;
    border: 1px solid;
    display: inline-flex;
    white-space: nowrap;
}

.pill.green { color: #47ffad; background: rgba(32, 214, 139, 0.16); border-color: rgba(32, 214, 139, 0.35); }
.pill.red { color: #ff8fa0; background: rgba(255, 91, 114, 0.14); border-color: rgba(255, 91, 114, 0.35); }
.pill.gold { color: #ffd978; background: rgba(228, 182, 61, 0.14); border-color: rgba(228, 182, 61, 0.4); }
.pill.blue { color: #93e4ff; background: rgba(54, 185, 244, 0.14); border-color: rgba(54, 185, 244, 0.35); }
.pill.purple { color: #c3adff; background: rgba(142, 99, 255, 0.14); border-color: rgba(142, 99, 255, 0.35); }

/* ── Buttons ──────────────────────────────────────────────────────── */

.topbtn.gold {
    background: linear-gradient(180deg, #f2c95d, #d8a72d);
    color: #07111e;
    border: 0;
    font-weight: 950;
}

.topbtn.gold:hover { opacity: 0.9; color: #07111e; }
.topbtn.red { border-color: rgba(255, 91, 114, 0.5); background: rgba(255, 91, 114, 0.1); color: #ff8fa0; }
.topbtn.red:hover { border-color: var(--red); }
.topbtn.green { border-color: rgba(32, 214, 139, 0.5); background: rgba(32, 214, 139, 0.1); color: #4bffa8; }

.btnmini {
    border: 1px solid #3379b7;
    background: rgba(54, 185, 244, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 6px 8px;
    font-weight: 900;
    cursor: pointer;
    font-size: 10px;
    line-height: 1.15;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: 0.15s;
}

.btnmini:hover { border-color: var(--blue); color: #fff; text-decoration: none; }
.btnmini.gold { border-color: rgba(228, 182, 61, 0.45); background: rgba(228, 182, 61, 0.12); color: #ffd978; }
.btnmini.red { border-color: rgba(255, 91, 114, 0.4); background: rgba(255, 91, 114, 0.08); color: #ff8fa0; }
.btnmini.green { border-color: rgba(32, 214, 139, 0.4); background: rgba(32, 214, 139, 0.08); color: #4bffa8; }

/* ── Detail panel ─────────────────────────────────────────────────── */

.detail-panel {
    background: linear-gradient(180deg, #0b2a4b, #082641);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.detail-panel h2 {
    font-size: 18px;
    font-weight: 950;
    color: #fff;
    margin-bottom: 12px;
}

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dl-item b { display: block; font-size: 9px; text-transform: uppercase; color: var(--muted); font-weight: 900; margin-bottom: 3px; letter-spacing: 0.04em; }
.dl-item span { font-weight: 800; color: #fff; font-size: 12px; }
.negative { color: var(--red); }
.positive { color: var(--green); }
.warning { color: var(--gold); }

/* ── Inline decision terminal (row-expand pattern, e.g. Advance employer
   terminal) — a table row toggled open in place rather than navigating to
   a separate page, restoring /v2's actual "Select / Action" UX ────────── */

.terminal-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; padding: 14px; }
@media (max-width: 900px) { .terminal-grid { grid-template-columns: 1fr; } }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 560px) { .decision-grid { grid-template-columns: 1fr; } }

.decision-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}

.decision-btn.approve { border-color: var(--green); color: var(--green); background: rgba(32, 214, 139, 0.08); }
.decision-btn.approve:hover { background: rgba(32, 214, 139, 0.22); }
.decision-btn.hold { border-color: var(--blue); color: var(--blue); background: rgba(54, 185, 244, 0.08); }
.decision-btn.hold:hover { background: rgba(54, 185, 244, 0.2); }
.decision-btn.reject { border-color: var(--red); color: var(--red); background: rgba(255, 91, 114, 0.08); }
.decision-btn.reject:hover { background: rgba(255, 91, 114, 0.22); }
.decision-btn.gold { border-color: var(--gold); color: var(--gold); background: rgba(228, 182, 61, 0.08); }
.decision-btn.gold:hover { background: rgba(228, 182, 61, 0.22); }
.decision-btn.purple { border-color: var(--purple); color: var(--purple); background: rgba(169, 127, 240, 0.08); }
.decision-btn.purple:hover { background: rgba(169, 127, 240, 0.22); }

/* ── Footer ───────────────────────────────────────────────────────── */

.foot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 18px;
    padding-top: 12px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
    font-size: 11px;
}

/* ── Session timeout warning ──────────────────────────────────────── */

#session-warn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0b2a4b;
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 999;
    font-weight: 700;
    color: #ffd978;
    font-size: 11px;
    align-items: center;
    gap: 10px;
}

/* ── Modal ────────────────────────────────────────────────────────── */

.modalx {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modalx.show { display: flex; }

.modal-card {
    width: min(920px, 92vw);
    background: #0b2a4b;
    border: 1px solid #2d79b7;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card h2 { font-size: 20px; font-weight: 950; color: #fff; }

/* ── Toasts ───────────────────────────────────────────────────────── */

#toasts {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 8px;
    z-index: 300;
    width: 260px;
}

#toasts .card {
    padding: 10px 13px;
    font-size: 11px;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .grid5, .kpis { grid-template-columns: repeat(2, 1fr); }
    .grid4 { grid-template-columns: repeat(2, 1fr); }
    .main { grid-template-columns: 1fr; }
    .navrow-6, .navrow-5 { grid-template-columns: repeat(3, 1fr); }
    .dl-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .grid5, .grid4, .grid3, .grid2, .kpis { grid-template-columns: 1fr; }
    .navrow-6, .navrow-5, .navrow-4, .navrow-3 { grid-template-columns: 1fr 1fr; }
    .hero { flex-direction: column; }
    .stamp { text-align: left; }
    .dl-grid { grid-template-columns: 1fr; }
    .shell { padding: 10px 12px 20px; }
}

@media (max-width: 480px) {
    .navrow-6, .navrow-5, .navrow-4, .navrow-3 { grid-template-columns: 1fr; }
    .topbar-name, .topbar-role { display: none; }
}
