:root {
    /* brand */
    --brand: #1a4d3a;
    --brand-dark: #123527;
    --brand-soft: #e9f3ee;
    --brand-soft-line: #cfe3d8;
    --accent: #3fb950;
    --violet: #5b2fc0;
    --whatsapp: #1faa53;

    /* text */
    --ink: #16211c;
    --ink-2: #46564f;
    --ink-3: #67766e;
    --on-brand: #ffffff;
    --on-brand-dim: rgba(255, 255, 255, .74);

    /* surfaces */
    --bg: #f2f5f4;
    --card: #ffffff;
    --card-2: #f7faf8;
    --line: #e1e8e4;
    --line-strong: #c9d4ce;

    /* status */
    --ok: #187a4d;
    --ok-bg: #e6f6ec;
    --warn: #96500a;
    --warn-bg: #fdf3e3;
    --danger: #c62828;
    --danger-bg: #fdeaea;

    /* metrics */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 22px;

    --sidebar-w: 248px;
    --sidebar-w-collapsed: 76px;
    --content-max: 1180px;

    --shadow-1: 0 1px 2px rgba(16, 32, 25, .06);
    --shadow-2: 0 6px 22px rgba(16, 32, 25, .08);
    --shadow-3: 0 18px 50px rgba(16, 32, 25, .16);

    --focus: 0 0 0 3px rgba(26, 77, 58, .28);

    --tap: 44px;
}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-wrap: pretty;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: none;
}

.hidden {
    display: none !important;
}

.hr {
    height: 1px;
    background: var(--line);
    width: 100%;
}


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

.app-shell {
    display: flex;
    min-height: 100dvh;
    width: 100%;
}

.shell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: var(--bg);
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.sbody {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}


/* ============================================================
   HEADER
   ============================================================ */

.hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding:
        calc(12px + env(safe-area-inset-top, 0px))
        16px
        12px;

    background: var(--brand);
    color: var(--on-brand);
    flex-shrink: 0;
}

.hdr.p {
    background: var(--violet);
}

.hdr.d {
    background: #1c2438;
}

.hdr.w {
    background: #075e54;
}

.hdr h2 {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.01em;
    flex: 1;
    min-width: 0;
    color: var(--on-brand);
}

.hdr .brandmark {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--on-brand);
}

.bk,
.hdr-act {
    width: var(--tap);
    height: var(--tap);
    min-width: var(--tap);

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 12px;

    background: rgba(255, 255, 255, .1);
    color: var(--on-brand);

    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.bk:hover,
.hdr-act:hover {
    background: rgba(255, 255, 255, .2);
    color: var(--on-brand);
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;

    width: min(280px, 84vw);

    display: flex;
    flex-direction: column;
    gap: 4px;

    padding:
        20px
        14px
        calc(20px + env(safe-area-inset-bottom, 0px));

    background: var(--brand-dark);
    color: var(--on-brand);

    transform: translateX(-102%);
    transition: transform .24s ease;

    box-shadow: var(--shadow-3);
}

.nav-open .sidebar {
    transform: none;
}

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;

    background: rgba(9, 20, 15, .5);

    opacity: 0;
    pointer-events: none;

    transition: opacity .24s;
}

.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 10px 22px;
    min-height: 42px;
}

.sidebar-logo-img {
    width: 110px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sidebar-brand .brandmark {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.6px;
    white-space: nowrap;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: var(--tap);
    padding: 10px 12px;

    border-radius: var(--r-sm);

    color: var(--on-brand-dim);

    font-size: 14.5px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background .15s,
        color .15s;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.sidebar-link.on {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.sidebar-ic {
    font-size: 18px;
    line-height: 1;

    width: 22px;
    text-align: center;

    flex-shrink: 0;
}

.sidebar-profile {
    margin-top: auto;

    border-top: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;

    padding-top: 14px;
    margin-bottom: 4px;
}

.sidebar-collapse {
    display: none;
    align-items: center;
    gap: 13px;

    min-height: 40px;
    padding: 10px 12px;

    border: none;
    border-radius: var(--r-sm);

    background: rgba(255, 255, 255, .07);
    color: var(--on-brand-dim);

    font: inherit;
    font-size: 13.5px;
    font-weight: 600;

    cursor: pointer;
}

.sidebar-collapse:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.sidebar-collapse .sidebar-ic {
    transition: transform .2s;
}


/* ============================================================
   BOTTOM NAV
   ============================================================ */

.bnav {
    display: flex;

    background: var(--card);
    border-top: 1px solid var(--line);

    padding:
        6px
        0
        calc(4px + env(safe-area-inset-bottom, 0px));

    flex-shrink: 0;
}

.ni {
    flex: 1;
    min-height: var(--tap);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    color: var(--ink-3);

    border: none;
    background: none;
}

.ni .ic {
    font-size: 21px;
    line-height: 1;
}

.ni .lb {
    font-size: 11px;
    font-weight: 600;
}

.ni.on {
    color: var(--brand);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 50px;

    border: 1px solid transparent;
    border-radius: var(--r-md);

    padding: 13px 20px;

    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .02em;

    cursor: pointer;

    color: #fff;
    background: var(--brand);

    box-shadow: var(--shadow-1);

    transition:
        background .15s,
        box-shadow .15s,
        transform .06s;
}

.btn:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn:active {
    transform: translateY(1px);
}

.btn.g {
    background: var(--brand);
}

.btn.g:hover {
    background: var(--brand-dark);
}

.btn.p {
    background: var(--violet);
}

.btn.p:hover {
    background: #4a24a3;
}

.btn.wa {
    background: var(--whatsapp);
}

.btn.wa:hover {
    background: #188f45;
}

.btn.ghost {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
}

.btn.ghost:hover {
    background: var(--card-2);
    color: var(--ink);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}


/* ============================================================
   MOBILE INPUT
   ============================================================ */

.il {
    display: block;

    font-size: 13px;
    font-weight: 600;

    color: var(--ink-2);

    margin-bottom: 6px;
}

.ir {
    width: 100%;

    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);

    padding: 11px 14px;

    background: var(--card);

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

    min-height: 52px;
}

.ir:focus-within {
    border-color: var(--brand);
    box-shadow: var(--focus);
}


/* IMPORTANT:
   Input ke andar koi extra border/box nahi */
.ir input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;

    appearance: none;
    -webkit-appearance: none;

    font-family: inherit;
    font-size: 16px;

    flex: 1;
    min-width: 0;

    color: var(--ink);
}

.ir input:focus,
.ir input:focus-visible,
.ir input:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.ir input::placeholder {
    color: var(--ink-3);
}


/* ============================================================
   OTP
   ============================================================ */

.ot-row {
    display: flex;
    gap: clamp(6px, 2vw, 10px);

    width: 100%;

    margin-bottom: 14px;
}

.ob {
    flex: 1;
    min-width: 0;

    height: 56px;

    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);

    text-align: center;

    font-family: inherit;
    font-size: clamp(17px, 4.5vw, 20px);
    font-weight: 700;

    color: var(--brand);
    background: var(--card);

    outline: none;
}

.ob:focus,
.ob.f {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: var(--focus);
}


/* ============================================================
   SEARCH
   ============================================================ */

.srch {
    background: var(--card);

    border: 1.5px solid var(--line);
    border-radius: var(--r-md);

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 14px;
    margin: 12px 16px;

    min-height: 48px;
}

.srch:focus-within {
    border-color: var(--brand);
}

.srch input {
    border: none;
    outline: none;

    background: transparent;

    font-family: inherit;
    font-size: 15px;

    color: var(--ink);

    flex: 1;
    min-width: 0;
}

.srch input::placeholder {
    color: var(--ink-3);
}


/* ============================================================
   OTHER CONTROLS
   ============================================================ */

.ck {
    width: 24px;
    height: 24px;

    border-radius: 7px;
    border: 2px solid var(--brand);

    background: var(--card);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 14px;
    color: transparent;
}

.ck.on {
    background: var(--brand);
    color: #fff;
}

.err {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-height: 18px;
}

.lbl {
    font-size: 12.5px;
    color: var(--ink-3);
}

.val {
    font-size: 14px;
    font-weight: 650;
    color: var(--ink);
}


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

.lw {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 420px;

    margin: 0 auto;

    padding:
        clamp(24px, 7vw, 40px)
        clamp(18px, 6vw, 28px)
        24px;

    background: var(--card);
}

.logo-img {
    width: min(180px, 52vw);
    max-height: 84px;

    height: auto;

    object-fit: contain;

    margin-bottom: 12px;
}

.ci {
    width: 76px;
    height: 76px;

    border-radius: 50%;

    background: var(--brand);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    margin-bottom: 18px;

    box-shadow:
        0 10px 26px rgba(26, 77, 58, .28);
}

.ls {
    font-size: 14px;

    color: var(--ink-2);

    text-align: center;

    margin: 6px 0 24px;
}

.sn {
    margin-top: 18px;

    display: flex;
    align-items: center;

    gap: 7px;

    font-size: 12.5px;

    color: var(--ink-3);

    text-align: center;
}

.ver {
    margin-top: auto;

    padding-top: 20px;

    font-size: 12px;

    color: var(--ink-3);
}

.brand-panel {
    display: none;
}


/* ============================================================
   LISTS
   ============================================================ */

.lb-bg {
    flex: 1;
    background: var(--card);
}

.lt {
    padding: 16px 16px 4px;
}

.gr {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.su {
    font-size: 13.5px;
    color: var(--ink-2);
    margin-top: 4px;
}

.dr,
.sr,
.ar {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 16px;

    background: var(--card);

    border-bottom: 1px solid var(--line);

    min-height: 64px;
}

.dr {
    cursor: pointer;
}

.dr:hover {
    background: var(--card-2);
}

.av {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: var(--brand-soft);

    border: 1px solid var(--brand-soft-line);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;

    color: var(--brand);

    flex-shrink: 0;
}

.di {
    flex: 1;
    min-width: 0;
}

.dn {
    font-size: 15px;
    font-weight: 650;
    color: var(--ink);
    overflow-wrap: break-word;
}

.dc {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 2px;
}

.sa {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    flex-wrap: wrap;

    padding: 14px 16px;

    background: var(--brand-soft);

    border-top: 1px solid var(--brand-soft-line);

    font-size: 13.5px;
    font-weight: 650;

    color: var(--brand);

    cursor: pointer;
}

.bb {
    padding:
        14px
        16px
        calc(14px + env(safe-area-inset-bottom, 0px));

    background: var(--card);

    border-top: 1px solid var(--line);

    flex-shrink: 0;
}


/* ============================================================
   SUCCESS / SESSION
   ============================================================ */

.cf {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    padding: 24px 18px;

    width: 100%;
    max-width: 560px;

    margin: 0 auto;
}

.ok,
.si {
    width: 76px;
    height: 76px;

    border-radius: 50%;

    background: var(--ok-bg);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 36px;
}

.st {
    font-size: 19px;
    font-weight: 700;

    color: var(--brand);

    text-align: center;
}

.ic3 {
    width: 100%;

    background: var(--card-2);

    border: 1px solid var(--line);
    border-radius: var(--r-md);

    padding: 16px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.ir2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 12px;
}

.vg {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--brand);
}

.bg {
    background: var(--ok-bg);
    color: var(--ok);

    border-radius: 999px;

    padding: 4px 11px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.adr {
    font-size: 12.5px;
    color: var(--ink-2);

    margin-top: 4px;

    line-height: 1.55;
}

.ht {
    font-size: 12.5px;
    color: var(--ink-3);

    text-align: center;
}

.st2 {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    padding: 22px 18px 14px;

    text-align: center;
}

.so {
    font-size: 13px;
    font-weight: 650;

    color: var(--ok);

    white-space: nowrap;
}

.jb {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    flex-wrap: wrap;

    padding: 12px 16px;

    background: var(--card-2);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ah {
    padding: 14px 16px;

    background: var(--card);

    border-bottom: 1px solid var(--line);
}

.ab {
    padding: 4px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.ab.j {
    background: var(--ok-bg);
    color: var(--ok);
}

.ab.p {
    background: var(--warn-bg);
    color: var(--warn);
}

.af {
    display: flex;

    gap: 10px;

    padding: 16px;

    background: var(--card-2);

    border-top: 1px solid var(--line);
}

.afs {
    flex: 1;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--line);
    border-radius: var(--r-md);

    padding: 12px 8px;
}

.afn {
    font-size: 22px;
    font-weight: 700;
}

.afl {
    font-size: 12px;
    color: var(--ink-2);

    margin-top: 2px;
}


/* ============================================================
   REPORT
   ============================================================ */

.rb {
    flex: 1;
    background: var(--bg);
}

.rs {
    padding: 16px;
}

.rc {
    background: var(--card);

    border: 1px solid var(--line);
    border-radius: var(--r-md);

    box-shadow: var(--shadow-1);

    padding: 16px;

    margin-bottom: 14px;
}

.rr {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    padding: 7px 0;

    border-bottom: 1px solid var(--line);
}

.rr:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rl {
    font-size: 13px;
    color: var(--ink-2);
}

.rv {
    font-size: 13.5px;
    font-weight: 650;

    color: var(--ink);

    text-align: right;
}

.rtt {
    font-size: 15px;
    font-weight: 700;

    color: var(--ink);

    margin-bottom: 10px;
}

.tw {
    overflow-x: auto;

    background: var(--card);

    border: 1px solid var(--line);
    border-radius: var(--r-md);

    box-shadow: var(--shadow-1);
}

.th,
.tr {
    display: flex;

    gap: 10px;

    padding: 11px 14px;

    min-width: 620px;
}

.th {
    background: var(--brand-soft);

    border-bottom: 1px solid var(--brand-soft-line);

    position: sticky;
    top: 0;
}

.tr {
    border-bottom: 1px solid var(--line);
}

.tr:last-child {
    border-bottom: none;
}

.thc {
    flex: 1;

    font-size: 11.5px;
    font-weight: 700;

    letter-spacing: .04em;
    text-transform: uppercase;

    color: var(--brand);
}

.td {
    flex: 1;

    font-size: 13px;

    color: var(--ink-2);

    overflow-wrap: break-word;
}

.td.d {
    color: var(--ink-3);
}

.absc {
    background: var(--card);

    border: 1px solid var(--line);
    border-left: 4px solid var(--danger);

    border-radius: var(--r-md);

    padding: 14px;

    margin-bottom: 10px;
}


/* ============================================================
   OVERLAYS
   ============================================================ */

.toast {
    position: fixed;

    left: 50%;
    bottom: max(
        96px,
        env(safe-area-inset-bottom, 0px) + 84px
    );

    transform: translateX(-50%);

    z-index: 9999;

    max-width: min(92vw, 460px);

    padding: 12px 22px;

    border-radius: 999px;

    background: rgba(18, 53, 39, .95);

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    text-align: center;

    opacity: 0;

    pointer-events: none;

    transition: opacity .25s;
}

.toast.show {
    opacity: 1;
}

.spinner {
    width: 16px;
    height: 16px;

    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;

    border-radius: 50%;

    animation: spin .7s linear infinite;

    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   MODALS
   ============================================================ */

.loc-alert,
.modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 9998;

    background: rgba(9, 20, 15, .55);

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 0;
}

.loc-alert {
    align-items: center;
    padding: 18px;
}

.loc-card,
.modal-card {
    width: 100%;
    max-width: 440px;

    background: var(--card);

    border-radius:
        var(--r-xl)
        var(--r-xl)
        0
        0;

    padding:
        22px
        20px
        calc(24px + env(safe-area-inset-bottom, 0px));

    display: flex;
    flex-direction: column;

    gap: 14px;

    box-shadow: var(--shadow-3);

    animation: slideUp .24s ease-out;

    max-height: 92dvh;

    overflow-y: auto;
}

.loc-card {
    border-radius: var(--r-lg);

    text-align: center;

    max-width: 360px;

    animation: none;
}

@keyframes slideUp {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
}

.loc-card .ic {
    font-size: 40px;
}

.loc-card h3 {
    font-size: 17px;
    color: var(--ink);
}

.loc-card p {
    font-size: 13.5px;

    color: var(--ink-2);

    line-height: 1.55;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.modal-sub {
    font-size: 13.5px;
    color: var(--ink-2);
    margin-top: 3px;
}

.quick-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.quick-btn {
    min-height: var(--tap);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);

    padding: 11px 10px;

    background: var(--card);

    font-size: 13.5px;
    font-weight: 650;

    color: var(--ink-2);

    cursor: pointer;
}

.quick-btn:hover {
    border-color: var(--brand);
}

.quick-btn.on {
    border-color: var(--brand);

    background: var(--brand-soft);

    color: var(--brand);
}

.or-line {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 11.5px;
    font-weight: 650;

    letter-spacing: .06em;

    color: var(--ink-3);
}

.or-line::before,
.or-line::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--line);
}

.dt-input {
    width: 100%;

    min-height: 52px;

    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);

    padding: 12px 14px;

    font-family: inherit;
    font-size: 16px;

    color: var(--ink);

    background: var(--card);
}

.dt-input:focus {
    outline: none;

    border-color: var(--brand);

    box-shadow: var(--focus);
}

.sched-preview {
    display: flex;
    align-items: center;

    gap: 10px;

    background: var(--brand-soft);

    border: 1px solid var(--brand-soft-line);
    border-radius: var(--r-md);

    padding: 12px 14px;
}

.sched-preview .ic {
    font-size: 18px;
}

.sched-preview .txt {
    font-size: 13.5px;
    font-weight: 650;

    color: var(--brand);
}

.modal-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 140px;
}


/* ============================================================
   TABLET >= 768px
   ============================================================ */

@media (min-width: 768px) {

    .sidebar {
        position: sticky;

        top: 0;

        height: 100dvh;

        transform: none;

        box-shadow: none;

        width: var(--sidebar-w-collapsed);

        padding: 22px 12px;

        transition: width .2s ease;
    }

    .nav-scrim {
        display: none;
    }

    .sidebar-link,
    .sidebar-collapse {
        justify-content: center;
        padding: 11px 0;
    }

    .sidebar-lb {
        display: none;
    }

    .sidebar-brand {
        justify-content: center;
        padding: 6px 0 22px;
    }

    .sidebar-brand .brandmark {
        font-size: 0;
        letter-spacing: 0;
    }

    .sidebar-brand .brandmark::before {
        content: "SC";

        font-size: 16px;
        letter-spacing: 1px;
    }

    .sidebar-logo-img {
        width: 34px;
    }

    .sidebar-collapse {
        display: flex;
    }

    .bnav,
    [data-nav-toggle] {
        display: none;
    }

    .hdr {
        padding: 16px 24px;
    }

    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .modal-card {
        border-radius: var(--r-lg);
        animation: none;
    }

    .quick-row {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


/* ============================================================
   LAPTOP >= 1024px
   ============================================================ */

@media (min-width: 1024px) {

    .sidebar {
        width: var(--sidebar-w);

        padding: 26px 16px;

        align-items: stretch;
    }

    .sidebar-brand {
        justify-content: flex-start;

        padding: 6px 10px 24px;
    }

    .sidebar-brand .brandmark {
        font-size: 14px;
        letter-spacing: 1.6px;
    }

    .sidebar-brand .brandmark::before {
        content: none;
    }

    .sidebar-logo-img {
        width: 112px;
    }

    .sidebar-link,
    .sidebar-collapse {
        justify-content: flex-start;

        padding: 10px 12px;
    }

    .sidebar-lb {
        display: inline;
    }

    .nav-collapsed .sidebar {
        width: var(--sidebar-w-collapsed);

        padding: 26px 12px;
    }

    .nav-collapsed .sidebar-lb {
        display: none;
    }

    .nav-collapsed .sidebar-link,
    .nav-collapsed .sidebar-collapse {
        justify-content: center;

        padding: 11px 0;
    }

    .nav-collapsed .sidebar-brand {
        justify-content: center;

        padding: 6px 0 24px;
    }

    .nav-collapsed .sidebar-logo-img {
        width: 34px;
    }

    .nav-collapsed .sidebar-brand .brandmark {
        font-size: 0;
        letter-spacing: 0;
    }

    .nav-collapsed .sidebar-brand .brandmark::before {
        content: "SC";

        font-size: 16px;
        letter-spacing: 1px;
    }

    .nav-collapsed .sidebar-collapse .sidebar-ic {
        transform: rotate(180deg);
    }

    .hdr {
        padding: 18px 32px;
    }

    .page {
        background: var(--bg);
    }

    .sbody {
        flex: 1;
        padding: 0;
    }

    .lb-bg,
    .rs,
    .bb,
    .sbody > .st2 {
        width:
            min(
                var(--content-max),
                calc(100% - 64px)
            );

        margin-left: auto;
        margin-right: auto;
    }

    .lb-bg {
        flex: none;

        margin-top: 24px;

        border: 1px solid var(--line);

        border-radius: var(--r-lg);

        box-shadow: var(--shadow-2);

        overflow: hidden;
    }

    .lt {
        padding: 22px 26px 6px;
    }

    .srch {
        margin: 12px 26px;
    }

    .dr,
    .sr,
    .ar,
    .sa,
    .ah {
        padding-left: 26px;
        padding-right: 26px;
    }

    .bb {
        background: transparent;

        border-top: none;

        padding: 18px 0 28px;

        display: flex;

        justify-content: flex-end;
    }

    .bb .btn {
        width: auto;
        min-width: 260px;
    }

    .rb {
        overflow-x: visible;
    }

    .rs {
        padding: 24px 0 32px;
    }

    .th,
    .tr {
        min-width: 0;
    }

    .lw {
        max-width: 440px;

        justify-content: center;

        border-radius: var(--r-lg);

        border: 1px solid var(--line);

        box-shadow: var(--shadow-2);

        margin:
            clamp(24px, 5vh, 56px)
            auto;
    }
}


/* ============================================================
   LOGIN DESKTOP TWO-PANEL >= 1160px

   IMPORTANT:
   Right side login form is centered vertically
   and horizontally.
   ============================================================ */

@media (min-width: 1160px) {

    body.login-page .shell {
        align-items: center;

        justify-content: center;

        padding: 32px;
    }


    /* MAIN LOGIN CARD */

    body.login-page .page {
        flex: none;

        flex-direction: row;

        width: min(980px, 100%);

        min-height: 620px;

        background: var(--card);

        border: 1px solid var(--line);

        border-radius: var(--r-xl);

        box-shadow: var(--shadow-3);

        overflow: hidden;
    }


    /* ========================================================
       LEFT GREEN PANEL
       ======================================================== */

    body.login-page .brand-panel {
        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 18px;

        width: 44%;

        flex-shrink: 0;

        padding: 48px 42px;

        background:
            linear-gradient(
                158deg,
                var(--brand) 0%,
                var(--brand-dark) 100%
            );

        color: #fff;
    }


    /* Haleon logo on left */

    body.login-page .brand-panel .logo-img {
        width: 350px;

        max-width: 100%;

        height: auto;

        margin-bottom: 113px;

        /*
           DO NOT use:
           filter: brightness(0) invert(1);

           We want original black/green Haleon logo.
        */
    }


    body.login-page .brand-panel h3 {
        font-size: 26px;

        font-weight: 700;

        line-height: 1.3;
    }

    body.login-page .brand-panel p {
        font-size: 14.5px;

        color: var(--on-brand-dim);

        line-height: 1.6;
    }


    /* ========================================================
       RIGHT LOGIN AREA

       THIS IS THE IMPORTANT FIX
       ======================================================== */

    body.login-page .sbody {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        min-width: 0;
        min-height: 100%;
    }


    /* Login form wrapper */

    body.login-page .lw {
        flex: none !important;

        width: 100%;

        max-width: 400px;

        /*
           Don't stretch full height.
        */
        min-height: auto !important;

        height: auto !important;

        /*
           Center horizontally.
        */
        margin: 0 auto;

        /*
           Normal form spacing.
        */
        padding: 40px 28px;

        background: var(--card);

        border: none;

        box-shadow: none;

        justify-content: center;
    }

    body.login-page .lw .ver {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }


    /* Hide duplicate mobile logo/call icon
       because desktop already has logo on left */

    body.login-page .lw .logo-img,
    body.login-page .lw .ci {
        display: none;
    }
}


/* ============================================================
   BIG MONITOR >= 1600px
   ============================================================ */

@media (min-width: 1600px) {

    :root {
        --content-max: 1440px;

        --sidebar-w: 272px;
    }

    body {
        font-size: 16px;
    }

    .hdr {
        padding: 20px 44px;
    }

    .gr {
        font-size: 21px;
    }

    .dr,
    .sr,
    .ar {
        min-height: 70px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: .01ms !important;

        transition-duration: .01ms !important;
    }
}