@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbfd;
    --border: #e5ebf2;
    --border-strong: #d9e2ec;

    --navy: #0b2440;
    --navy-2: #102f50;
    --blue: #0b6fa4;
    --blue-hover: #075c89;
    --blue-soft: #eaf5fb;

    --text: #122033;
    --muted: #748296;
    --subtle: #95a1b2;

    --green: #1ea978;
    --green-soft: #e9f8f2;
    --amber: #dc9a21;
    --amber-soft: #fff6df;
    --cyan: #2188aa;
    --cyan-soft: #eaf7fb;
    --danger: #c84545;
    --danger-soft: #fff0f0;

    --shadow-sm: 0 4px 16px rgba(18, 32, 51, .05);
    --shadow-md: 0 18px 48px rgba(18, 32, 51, .09);

    --radius-sm: 9px;
    --radius: 13px;
    --radius-lg: 18px;

    --sidebar-width: 242px;
    --topbar-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    background: #fff;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(480px, 1.05fr) minmax(460px, .95fr);
}

.login-visual {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 22%, rgba(66, 160, 204, .32), transparent 29%),
        radial-gradient(circle at 78% 76%, rgba(41, 131, 170, .24), transparent 32%),
        linear-gradient(145deg, #071f37 0%, #0a3452 48%, #0b5876 100%);
}

.login-visual::before,
.login-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.login-visual::before {
    width: 520px;
    height: 520px;
    left: -260px;
    bottom: -260px;
}

.login-visual::after {
    width: 620px;
    height: 620px;
    top: -310px;
    right: -310px;
}

.login-visual-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 48px clamp(44px, 6vw, 86px);
    display: flex;
    flex-direction: column;
}

.login-brand,
.mobile-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand-mark,
.brand-mark {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0c79ad, #095c88);
    box-shadow: 0 9px 22px rgba(0, 0, 0, .14);
}

.login-brand-mark::before,
.brand-mark::before {
    content: "";
    position: absolute;
    width: 21px;
    height: 6px;
    background: #fff;
    border-radius: 4px;
}

.login-brand-mark::after,
.brand-mark::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 21px;
    background: #fff;
    border-radius: 4px;
}

.login-brand-mark span,
.brand-plus {
    display: none;
}

.login-brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.login-brand-subtitle {
    margin-top: 2px;
    color: rgba(255,255,255,.64);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.visual-copy {
    max-width: 680px;
    margin: auto 0 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #0b6fa4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-visual .eyebrow {
    color: #8ed7f3;
}

.visual-copy h1 {
    max-width: 650px;
    margin: 17px 0 18px;
    font-size: clamp(39px, 4.2vw, 61px);
    line-height: 1.06;
    letter-spacing: -.045em;
    font-weight: 600;
}

.visual-copy p {
    max-width: 630px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 16px;
    line-height: 1.75;
}

.visual-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.glass-card {
    min-height: 104px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
}

.glass-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #9cdef6;
    background: rgba(255,255,255,.10);
    font-size: 14px;
    font-weight: 600;
}

.glass-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
}

.glass-card span {
    color: rgba(255,255,255,.57);
    font-size: 11px;
    line-height: 1.5;
}

.login-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 46px clamp(32px, 6vw, 84px);
    background:
        linear-gradient(180deg, rgba(247,250,253,.96), #fff 55%);
}

.login-card {
    width: min(100%, 470px);
}

.mobile-login-brand {
    display: none;
}

.login-heading {
    margin-bottom: 30px;
}

.login-eyebrow {
    margin-bottom: 13px;
}

.login-heading h2 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.form-alert {
    margin-bottom: 20px;
    padding: 13px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #9c3434;
    border: 1px solid #f1cece;
    border-radius: 11px;
    background: var(--danger-soft);
    font-size: 13px;
}

.alert-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 19px;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span {
    color: #314156;
    font-size: 12px;
    font-weight: 600;
}

.input-wrap {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap:focus-within {
    border-color: #6fb4d4;
    box-shadow: 0 0 0 4px rgba(11, 111, 164, .08);
}

.input-wrap svg {
    width: 18px;
    height: 18px;
    color: #93a1b2;
}

.input-wrap input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.input-wrap input::placeholder {
    color: #a8b3c0;
}

.password-toggle {
    padding: 5px 0 5px 8px;
    border: 0;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.login-meta {
    margin-top: -3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 11px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.remember input {
    width: 15px;
    height: 15px;
}

.muted-link {
    color: #94a1af;
}

.primary-button,
.secondary-button,
.filter-button {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    transition: .18s ease;
}

.primary-button {
    border: 1px solid var(--blue);
    color: #fff;
    background: var(--blue);
    box-shadow: 0 7px 16px rgba(11,111,164,.16);
}

.primary-button:hover {
    border-color: var(--blue-hover);
    background: var(--blue-hover);
}

.primary-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.secondary-button,
.filter-button {
    border: 1px solid var(--border-strong);
    color: #405166;
    background: #fff;
}

.secondary-button:hover {
    border-color: #bdcad7;
    background: #f9fbfd;
}

.login-button {
    min-height: 50px;
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
}

.login-button svg {
    width: 17px;
    height: 17px;
}

.secure-note {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8491a1;
    font-size: 11px;
}

.secure-note svg {
    width: 16px;
    height: 16px;
    color: var(--green);
}

.login-version {
    margin-top: 24px;
    color: #abb4c0;
    text-align: center;
    font-size: 10px;
}

/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: #dbe6ef;
    background:
        linear-gradient(180deg, #0a2744 0%, #0b2c4c 54%, #09243f 100%);
    box-shadow: 7px 0 26px rgba(9, 36, 63, .08);
}

.brand {
    height: var(--topbar-height);
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    box-shadow: none;
}

.brand-mark::before {
    width: 18px;
    height: 5px;
}

.brand-mark::after {
    width: 5px;
    height: 18px;
}

.brand-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.brand-subtitle {
    margin-top: 2px;
    color: #7692aa;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.nav-list {
    padding: 18px 12px;
    display: grid;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: #9fb2c3;
    font-size: 12px;
    font-weight: 500;
    transition: .18s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.055);
}

.nav-item.active {
    color: #fff;
    background: rgba(49, 143, 186, .18);
    box-shadow: inset 3px 0 0 #5cb5da;
}

.nav-icon {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.workspace {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: var(--topbar-height);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.global-search {
    width: min(570px, 46vw);
    height: 39px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.global-search svg {
    width: 17px;
    height: 17px;
    color: #91a0b1;
}

.global-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 12px;
}

.global-search input::placeholder {
    color: #a5afba;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-button {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #607086;
    background: #fff;
    cursor: pointer;
}

.icon-button svg {
    width: 17px;
    height: 17px;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 6px;
    height: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #e66464;
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: #0b5f8d;
    border-radius: 50%;
    background: #dceff7;
    font-size: 11px;
    font-weight: 700;
}

.account-copy {
    min-width: 108px;
    display: grid;
    gap: 2px;
}

.account-copy strong {
    color: #25354a;
    font-size: 11px;
    font-weight: 600;
}

.account-copy span {
    color: #96a1ae;
    font-size: 9px;
}

.mobile-menu {
    display: none;
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
}

.mobile-menu span {
    display: block;
    height: 2px;
    margin: 3px 0;
    border-radius: 2px;
    background: #506176;
}

.content {
    padding: 28px;
}

.page-head {
    margin-bottom: 23px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-head h1 {
    margin: 5px 0 6px;
    color: var(--navy);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.035em;
}

.page-head p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 12px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    min-height: 128px;
    padding: 19px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.kpi-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.kpi-icon svg {
    width: 19px;
    height: 19px;
}

.soft-blue {
    color: #0d74aa;
    background: #e9f4fb;
}

.soft-cyan {
    color: #197d9d;
    background: var(--cyan-soft);
}

.soft-amber {
    color: #ba7b0b;
    background: var(--amber-soft);
}

.soft-green {
    color: #16885f;
    background: var(--green-soft);
}

.kpi-copy {
    display: grid;
    gap: 5px;
}

.kpi-copy > span {
    color: #6f7e91;
    font-size: 11px;
    font-weight: 500;
}

.kpi-copy strong {
    color: #18304a;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.03em;
}

.kpi-copy small {
    color: #9aa5b2;
    font-size: 9px;
    line-height: 1.45;
}

.dashboard-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(330px, .85fr);
    gap: 16px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-head {
    min-height: 68px;
    padding: 17px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.panel-kicker {
    display: block;
    margin-bottom: 4px;
    color: #92a0af;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.panel-head h2 {
    margin: 0;
    color: #27394e;
    font-size: 14px;
    font-weight: 600;
}

.text-button {
    padding: 6px 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.empty-state {
    min-height: 310px;
    padding: 42px 25px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    color: #7190aa;
    border-radius: 13px;
    background: #eff5f8;
}

.empty-icon svg {
    width: 21px;
    height: 21px;
}

.empty-state strong {
    margin-bottom: 6px;
    color: #32455a;
    font-size: 12px;
    font-weight: 600;
}

.empty-state p {
    max-width: 470px;
    margin: 0;
    color: #98a4b1;
    font-size: 10px;
    line-height: 1.6;
}

.status-pill {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
}

.status-pill.success {
    color: #147555;
    background: var(--green-soft);
}

.status-list {
    padding: 5px 19px 12px;
}

.status-row {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #edf1f5;
}

.status-row:last-child {
    border-bottom: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--green);
}

.status-dot.pending {
    background: var(--amber);
}

.status-row div {
    display: grid;
    gap: 3px;
}

.status-row strong {
    color: #405168;
    font-size: 10px;
    font-weight: 600;
}

.status-row span {
    color: #9ba6b3;
    font-size: 9px;
}

.status-row b {
    color: #718095;
    font-size: 9px;
    font-weight: 600;
}

.table-toolbar {
    min-height: 68px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.table-search {
    width: min(470px, 50%);
    height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f9fbfd;
}

.table-search svg {
    width: 16px;
    height: 16px;
    color: #93a1b0;
}

.table-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 11px;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

.filter-button {
    min-height: 36px;
    font-size: 10px;
}

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

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    height: 45px;
    padding: 0 16px;
    color: #8290a1;
    background: #fbfcfe;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.premium-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f5;
    color: #43546a;
    font-size: 11px;
}

.align-right {
    text-align: right !important;
}

.empty-table-row td {
    padding: 0;
    border-bottom: 0;
}

.table-empty {
    min-height: 330px;
}

@media (max-width: 1150px) {
    .login-layout {
        grid-template-columns: 1fr 1fr;
    }

    .visual-cards {
        grid-template-columns: 1fr;
    }

    .glass-card {
        min-height: 82px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .login-layout {
        display: block;
        min-height: 100vh;
        background: #f6f9fc;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        padding: 34px 22px;
    }

    .mobile-login-brand {
        display: flex;
        margin-bottom: 45px;
    }

    .mobile-login-brand .login-brand-subtitle {
        color: #8b99a8;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .workspace {
        margin-left: 0;
    }

    .mobile-menu {
        display: block;
    }

    .global-search {
        width: min(450px, 55vw);
    }

    .account-copy {
        display: none;
    }

    .content {
        padding: 22px;
    }
}

@media (max-width: 620px) {
    .login-panel {
        align-items: start;
        padding: 26px 18px;
    }

    .login-card {
        padding-top: 10px;
    }

    .login-heading h2 {
        font-size: 29px;
    }

    .login-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .topbar {
        padding: 0 14px;
        gap: 10px;
    }

    .global-search {
        width: auto;
        flex: 1;
    }

    .topbar-actions {
        gap: 8px;
    }

    .content {
        padding: 17px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions > * {
        flex: 1;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .table-search {
        width: 100%;
    }
}


/* =========================================================
   STAGE 1A1 — APPROVED MBC MASTER UI ALIGNMENT
   The approved master reference uses a WHITE navigation rail,
   blue shield/cross logo, light-blue active item, compact KPI
   cards and lighter enterprise typography.
   ========================================================= */

:root {
    --sidebar-width: 245px;
    --topbar-height: 66px;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e7edf3;
    --text: #14243a;
    --muted: #718197;
    --blue: #075f91;
    --blue-hover: #064f79;
    --shadow-sm: 0 4px 18px rgba(33, 55, 79, .045);
}

.mbc-app {
    background: #f8fafc;
}

.sidebar {
    color: #53657a;
    background: #ffffff;
    border-right: 1px solid #e6ecf2;
    box-shadow: none;
}

.brand {
    height: var(--topbar-height);
    padding: 0 20px;
    gap: 12px;
    border-bottom: 1px solid #edf1f5;
    background: #ffffff;
}

.brand-mark.approved-logo {
    width: 35px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-mark.approved-logo::before,
.brand-mark.approved-logo::after {
    display: none;
}

.brand-mark.approved-logo svg {
    width: 33px;
    height: 37px;
    overflow: visible;
}

.brand-mark.approved-logo .shield {
    fill: #eef7fc;
    stroke: #0876b4;
    stroke-width: 2.2;
}

.brand-mark.approved-logo .medical-cross {
    fill: #0876b4;
    stroke: none;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    color: #162236;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.brand-subtitle {
    display: none;
}

.nav-list {
    padding: 14px 13px;
    gap: 5px;
}

.nav-item {
    min-height: 43px;
    padding: 0 13px;
    gap: 12px;
    border-radius: 8px;
    color: #53647a;
    font-size: 12px;
    font-weight: 500;
}

.nav-item:hover {
    color: #153b5b;
    background: #f4f8fb;
}

.nav-item.active {
    color: #075f91;
    background: #eaf3f9;
    box-shadow: none;
    font-weight: 600;
}

.nav-item.active .nav-icon {
    color: #075f91;
}

.nav-icon {
    color: #63758a;
}

.sidebar-footer {
    border-top: 1px solid #edf1f5;
    background: #ffffff;
}

.sidebar-footer .nav-item {
    color: #63758a;
}

.topbar {
    min-height: var(--topbar-height);
    padding: 0 26px;
    gap: 20px;
    background: rgba(255,255,255,.985);
    border-bottom: 1px solid #e8edf2;
}

.global-search {
    width: min(520px, 42vw);
    height: 37px;
    border-color: #dfe6ee;
    border-radius: 8px;
    background: #fafbfd;
}

.global-search input {
    font-size: 11px;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-color: #e2e8ef;
    border-radius: 9px;
}

.avatar {
    width: 36px;
    height: 36px;
    color: #0a678f;
    background: #dff0f7;
}

.account-copy strong {
    color: #21354b;
    font-size: 11px;
}

.content {
    padding: 26px 28px 34px;
}

.page-head {
    margin-bottom: 19px;
}

.page-head h1 {
    margin-top: 4px;
    font-size: 27px;
    font-weight: 600;
}

.page-head p {
    color: #76879c;
    font-size: 11px;
}

.eyebrow {
    color: #0876a8;
    font-size: 10px;
    letter-spacing: .115em;
}

.kpi-grid {
    gap: 14px;
}

.kpi-card {
    min-height: 108px;
    padding: 17px 18px;
    gap: 14px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(31, 55, 79, .035);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 50%;
}

.kpi-copy > span {
    font-size: 10px;
}

.kpi-copy strong {
    font-size: 23px;
}

.kpi-copy small {
    font-size: 9px;
}

.dashboard-grid {
    margin-top: 14px;
    gap: 14px;
}

.panel {
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(31, 55, 79, .035);
}

.panel-head {
    min-height: 61px;
    padding: 14px 17px;
}

.panel-head h2 {
    font-size: 13px;
}

.panel-kicker {
    font-size: 8px;
}

.status-row {
    min-height: 62px;
}

@media (max-width: 860px) {
    .sidebar {
        box-shadow: 12px 0 30px rgba(21, 41, 61, .12);
    }
}


/* =========================================================
   STAGE 1C — GLOBAL TYPOGRAPHY COMFORT PASS
   Slightly larger text across all authenticated pages while
   preserving the approved compact premium layout.
   ========================================================= */
body {
    font-size: 15px;
}

.brand-name {
    font-size: 17px;
}

.nav-item {
    font-size: 13px;
}

.global-search input {
    font-size: 12px;
}

.account-copy strong {
    font-size: 12px;
}

.account-copy span {
    font-size: 10px;
}

.page-head h1 {
    font-size: 29px;
}

.page-head p {
    font-size: 12.5px;
}

.eyebrow {
    font-size: 11px;
}

.primary-button,
.secondary-button,
.filter-button {
    font-size: 13px;
}

.kpi-copy > span {
    font-size: 11px;
}

.kpi-copy small {
    font-size: 10px;
}

.panel-head h2 {
    font-size: 14px;
}

.text-button {
    font-size: 11px;
}

.status-row strong {
    font-size: 11px;
}

.status-row span,
.status-row b {
    font-size: 10px;
}

.premium-table th {
    font-size: 10px;
}

.premium-table td {
    font-size: 12px;
}


.dashboard-encounter-list{padding:7px 18px 13px}
.dashboard-encounter-row{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #edf1f4}
.dashboard-encounter-row:last-child{border-bottom:0}
.dashboard-encounter-row>span{display:grid;gap:3px}
.dashboard-encounter-row strong{color:#385069;font-size:11px;font-weight:600}
.dashboard-encounter-row small{color:#8b98a7;font-size:9.5px}
.dashboard-encounter-row b{color:#0a6e9c;font-size:9px;font-weight:600}
