/* =====================================================================
   Agliano Dispatch — cargo hauling UI
   Brand: Agliano Brothers Trucking navy + red (from aglianobrostrucking.com).
   ===================================================================== */
:root {
    --bg:        #0e2243;   /* navy-dark sidebar / login chrome */
    --bg-2:      #16315f;   /* brand navy hover */
    --panel:     #ffffff;
    --ink:       #1c2430;
    --ink-soft:  #5b6573;
    --line:      #e2e6ec;
    --line-soft: #eef1f5;
    --brand:     #9c0007;   /* deep brand red */
    --brand-d:   #c8102e;   /* flag red */
    --brand-bg:  #fdeaea;
    --accent:    #1b4ae8;
    --good:      #1f9d55;
    --good-bg:   #e6f6ec;
    --warn:      #b7791f;
    --warn-bg:   #fdf3da;
    --danger:    #c5341d;
    --danger-bg: #fdecea;
    --neutral-bg:#eef1f5;
    --radius:    8px;
    --shadow:    0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Click-to-sort affordance for every application data table. */
.tbl th.tbl__sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.tbl th.tbl__sortable:hover,
.tbl th.tbl__sortable:focus-visible {
    color: var(--brand-d);
    background: var(--brand-bg);
    outline: 2px solid transparent;
}
.tbl__sort-mark {
    display: inline-block;
    margin-left: .38rem;
    min-width: .8em;
    color: var(--ink-soft);
    font-size: .82em;
    font-weight: 700;
}
.tbl th.tbl__sortable[aria-sort="ascending"] .tbl__sort-mark,
.tbl th.tbl__sortable[aria-sort="descending"] .tbl__sort-mark {
    color: var(--brand-d);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: #f4f6f9;
    font-size: 14px;
    line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
small { color: var(--ink-soft); }

/* ----- Layout shell --------------------------------------------------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; flex: 0 0 220px;
    background: var(--bg); color: #c7d0dd;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    border-right: 1px solid #1b1b1b;
}

/* Brand / logo */
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px 16px; }
.brand--center { justify-content: center; padding: 4px 0 18px; }
.brand__logo { display: block; width: 100%; max-width: 188px; height: auto; }
.brand__link { display: block; width: 100%; }
.brand__link:hover { text-decoration: none; }
/* Legacy text mark (fallback) */
.brand__mark {
    background: var(--brand); color: #fff; font-weight: 800;
    width: 38px; height: 38px; border-radius: 8px;
    display: grid; place-items: center; letter-spacing: .5px;
}
.brand__text { font-weight: 700; color: #fff; line-height: 1.05; }
.brand__text small { color: #8a97a8; font-weight: 500; }

.nav { display: flex; flex-direction: column; padding: 8px; gap: 2px; flex: 1; }
.nav__item {
    color: #b9c3d2; padding: 10px 12px; border-radius: 7px;
    font-weight: 600; font-size: 14px;
}
.nav__item:hover { background: var(--bg-2); color: #fff; text-decoration: none; }
.nav__item.is-active { background: var(--brand); color: #fff; }
.nav__sep { height: 1px; background: #1b1b1b; margin: 8px 6px; }

.sidebar__foot {
    padding: 12px 14px 14px;
    border-top: 1px solid #1b1b1b;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user {
    padding: 8px 10px;
    border-radius: 6px;
    background: #121212;
    border: 1px solid #1f1f1f;
}
.user__name {
    color: #c7d0dd;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.35;
    word-break: break-all;
}
.user__role {
    color: #8a97a8;
    font-size: 11px;
    margin: 3px 0 0;
    font-weight: 500;
}
.sidebar__tools {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}
.sidebar-tour,
.sidebar-logout {
    display: block;
    width: 100%;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #9aa6b5;
    font: inherit;
    font-weight: 600;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.sidebar-tour:hover,
.sidebar-logout:hover {
    color: #fff;
    background: var(--bg-2);
    text-decoration: none;
}


.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 22px; background: #fff; border-bottom: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    position: sticky; top: 0; z-index: 10;
}
.search { flex: 1; max-width: 560px; }
.search input {
    width: 100%; padding: 9px 14px; border: 1px solid var(--line);
    border-radius: 20px; font-size: 14px; background: #f7f8fa;
}
.search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.bell { font-weight: 600; color: var(--ink-soft); position: relative; }
.bell__count {
    background: var(--danger); color: #fff; border-radius: 10px;
    padding: 1px 7px; font-size: 11px; margin-left: 4px;
}
.content { padding: 22px; max-width: 1500px; width: 100%; }

/* ----- Page header ---------------------------------------------------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-head .crumbs { color: var(--ink-soft); font-size: 13px; margin-bottom: 2px; }

/* ----- Buttons -------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand); color: #fff; border: 1px solid var(--brand);
    padding: 9px 16px; border-radius: 7px; font-weight: 600; font-size: 14px;
    cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); text-decoration: none; }
.btn--sm { padding: 5px 10px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--line-soft); }
.btn--secondary { background: #111; border-color: #111; }
.btn--secondary:hover { background: #2a2a2a; }
.btn--danger { background: var(--danger); border-color: var(--danger); }
.btn--logout { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--logout:hover { background: #fff; border-color: #fff; color: var(--brand); text-decoration: none; }
.btn--block { width: 100%; justify-content: center; }
.btn--new-order { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--new-order:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; text-decoration: none; }
.btn--edit { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--edit:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; text-decoration: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----- Cards & panels ------------------------------------------------- */
.card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px;
}
.card__head {
    padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card__head h2 { margin: 0; }
.card__body { padding: 16px; }
.card__body--flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px)  { .grid--2,.grid--3,.grid--4 { grid-template-columns: 1fr; } }

/* ----- Stat tiles ----------------------------------------------------- */
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow); border-top: 3px solid var(--brand);
}
.stat__label { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.stat__value { font-size: 30px; font-weight: 800; margin-top: 4px; }
.stat--danger .stat__value { color: var(--danger); }
.stat--danger { border-top-color: var(--danger); }
.stat--warn .stat__value { color: var(--warn); }
.stat--warn { border-top-color: var(--warn); }
.stat--good .stat__value { color: var(--good); }
.stat--good { border-top-color: var(--good); }
.stat a { font-size: 13px; }

/* ----- Tables --------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl th { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; background: #fafbfc; position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fafbfd; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl--compact th, .tbl--compact td { padding: 7px 10px; }

/* ----- Badges --------------------------------------------------------- */
.badge {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 700; background: var(--neutral-bg); color: #46505e;
    white-space: nowrap;
}
.badge--success { background: var(--good-bg); color: var(--good); }
.badge--warning { background: var(--warn-bg); color: var(--warn); }
.badge--danger  { background: var(--danger-bg); color: var(--danger); }
.badge--neutral { background: var(--neutral-bg); color: #46505e; }
.badge--brand   { background: var(--brand-bg); color: var(--brand-d); }

/* ----- Forms ---------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-weight: 600; font-size: 13px; }
.field input, .field select, .field textarea {
    padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px;
    font-size: 14px; font-family: inherit; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 76px; resize: vertical; }
.field .hint { color: var(--ink-soft); font-size: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
fieldset legend { font-weight: 700; padding: 0 8px; color: var(--ink-soft); text-transform: uppercase; font-size: 12px; letter-spacing: .4px; }

/* ----- Flash ---------------------------------------------------------- */
.flash { padding: 11px 16px; border-radius: 7px; margin-bottom: 14px; font-weight: 600; border: 1px solid transparent; }
.flash--success { background: var(--good-bg); color: var(--good); border-color: #bfe6cd; }
.flash--error   { background: var(--danger-bg); color: var(--danger); border-color: #f3c7c1; }
.flash--warning { background: var(--warn-bg); color: var(--warn); border-color: #f0dca8; }
.flash--info    { background: #e7f0fd; color: var(--accent); border-color: #c4dbfb; }

/* ----- Definition rows (detail screens) ------------------------------- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; }
.dl dt { color: var(--ink-soft); font-weight: 600; }
.dl dd { margin: 0; }

/* ----- Detail header -------------------------------------------------- */
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.detail-head h1 { margin: 0; }

/* ----- Timeline ------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 9px 0 9px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; background: var(--brand); border-radius: 50%; }
.timeline .t-meta { color: var(--ink-soft); font-size: 12px; }

/* ----- Filters bar ---------------------------------------------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .field { flex-direction: row; align-items: center; gap: 6px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 7px; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); }
.tabs a.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); }

/* ----- Dispatch board ------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lane { background: #eef1f5; border-radius: var(--radius); padding: 10px; }
.lane__title { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; }
.job-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 7px; padding: 10px 12px; margin-bottom: 9px; box-shadow: var(--shadow); }
.job-card--delivery { border-left-color: var(--good); }
.job-card--pickup   { border-left-color: var(--brand); }
.job-card--swap     { border-left-color: var(--warn); }
.job-card__type { font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .5px; color: var(--ink-soft); }
.job-card__title { font-weight: 700; }
.job-card__meta { font-size: 12.5px; color: var(--ink-soft); }
.job-card__flags { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }

/* ----- Login ---------------------------------------------------------- */
body.guest { display: grid; place-items: center; min-height: 100vh; background: var(--bg); padding: 24px; }
.guest__wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 360px; max-width: 92vw; }
.guest__logo { display: block; width: 300px; max-width: 84vw; height: auto; }
.guest__card { background: #fff; padding: 30px; border-radius: 12px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.45); border-top: 4px solid var(--brand); }
.guest .brand__text { color: var(--ink); font-size: 18px; }

/* ----- Driver mobile -------------------------------------------------- */
body.driver-app { background: #eef1f5; }
.driver-top { background: var(--bg); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 10; border-bottom: 3px solid var(--brand); }
.driver-top a { color: #fff; font-weight: 700; }
.driver-top__logo { display: block; height: 40px; width: auto; }
.driver-top__side { flex: 1 1 0; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.driver-top__side--right { justify-content: flex-end; }
.driver-main { padding: 14px; max-width: 640px; margin: 0 auto; }
.driver-job { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); border-left: 5px solid var(--accent); }
.driver-job--delivery { border-left-color: var(--good); }
.driver-job--pickup { border-left-color: var(--brand); }
.driver-job__addr { font-size: 16px; font-weight: 700; }
.driver-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.big-btn { display: block; text-align: center; padding: 16px; border-radius: 10px; font-weight: 800; font-size: 16px; border: none; cursor: pointer; background: var(--brand); color: #fff; }
.big-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.big-btn--call { background: var(--good); }
.big-btn--map { background: var(--accent); }

/* =====================================================================
   CONTEXTUAL HELP  -  bubbles, help drawer, guided tour, help center
   Built for users who want plain-language guidance on every step.
   ===================================================================== */

/* ----- "?" help bubble ------------------------------------------------ */
.help {
    display: inline-grid; place-items: center;
    width: 20px; height: 20px; padding: 0; margin-left: 5px;
    border: none; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-weight: 800; font-size: 13px; line-height: 1;
    cursor: pointer; vertical-align: middle; flex: 0 0 auto;
}
.help:hover { background: var(--brand-d); }
.help:focus-visible { outline: 3px solid rgba(242,78,12,.4); outline-offset: 1px; }
.help.is-open { background: var(--ink); }
/* a touch larger on the dark driver chrome */
.driver-top .help { width: 30px; height: 30px; font-size: 16px; margin: 0; }

/* The pop-out explanation */
.help-pop {
    position: absolute; z-index: 1200; max-width: 320px; width: max-content;
    background: #111; color: #fff; border-radius: 10px; padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14.5px; line-height: 1.5;
}
.help-pop__title { font-weight: 800; margin-bottom: 4px; color: #ffd9c6; font-size: 14px; }
.help-pop::after {
    content: ''; position: absolute; left: var(--arrow, 16px); top: -7px;
    border: 7px solid transparent; border-top: 0; border-bottom-color: #111;
}
.help-pop.is-above::after { top: auto; bottom: -7px; border-bottom: 0; border-top-color: #111; }

/* ----- Topbar / header help button ----------------------------------- */
.help-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-bg); color: var(--brand-d);
    border: 1px solid #f6cdb8; border-radius: 20px;
    padding: 7px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer;
    white-space: nowrap;
}
.help-btn:hover { background: #fbdccd; }
.help-btn__q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }

/* ----- Help drawer (How this page works) ------------------------------ */
.help-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1300; opacity: 0; transition: opacity .2s; }
.help-backdrop.is-open { opacity: 1; }
.help-drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 420px; max-width: 92vw;
    background: #fff; z-index: 1310; box-shadow: -8px 0 30px rgba(0,0,0,.25);
    transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column;
}
.help-drawer.is-open { transform: translateX(0); }
.help-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line); background: #000; color: #fff;
}
.help-drawer__head h2 { margin: 0; color: #fff; }
.help-drawer__close { background: transparent; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.help-drawer__body { padding: 18px; overflow-y: auto; font-size: 15px; line-height: 1.6; }
.help-drawer__body h3 { font-size: 15px; margin: 18px 0 6px; }
.help-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.help-steps li { position: relative; padding: 8px 0 8px 38px; border-bottom: 1px solid var(--line-soft); }
.help-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 8px; width: 26px; height: 26px;
    background: var(--brand); color: #fff; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.help-drawer__cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

/* ----- Guided tour ---------------------------------------------------- */
.tour-spot {
    position: absolute; z-index: 1400; border-radius: 10px; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.62); outline: 3px solid var(--brand);
    transition: all .25s ease;
}
.tour-pop {
    position: fixed; z-index: 1410; width: 340px; max-width: 92vw;
    background: #fff; border-radius: 12px; box-shadow: 0 16px 44px rgba(0,0,0,.4);
    padding: 18px; border-top: 4px solid var(--brand);
}
.tour-pop__step { color: var(--ink-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tour-pop__title { font-size: 18px; font-weight: 800; margin: 4px 0 6px; }
.tour-pop__text { font-size: 15px; line-height: 1.55; }
.tour-pop__actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-pop__spacer { flex: 1; }
.tour-pop__skip { background: transparent; border: none; color: var(--ink-soft); cursor: pointer; font-weight: 600; font-size: 13px; }
.tour-pop__skip:hover { color: var(--ink); text-decoration: underline; }

/* ----- Help Center page ----------------------------------------------- */
.help-center { max-width: 900px; }
.help-center .card__body { font-size: 15px; line-height: 1.65; }
.help-center h2 { font-size: 19px; }
.help-center h3 { font-size: 16px; margin-top: 16px; }
.help-hero { display: flex; gap: 16px; align-items: center; background: #000; color: #fff; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.help-hero img { height: 54px; width: auto; }
.help-hero p { margin: 4px 0 0; color: #cfd6df; }
.glossary { display: grid; grid-template-columns: 1fr; gap: 0; }
.glossary dt { font-weight: 800; color: var(--brand-d); margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: var(--ink); }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.help-toc a { background: var(--brand-bg); color: var(--brand-d); border: 1px solid #f6cdb8; border-radius: 20px; padding: 6px 13px; font-weight: 700; font-size: 13px; }
.help-toc a:hover { text-decoration: none; background: #fbdccd; }

/* ----- First-login welcome modal ------------------------------------- */
.welcome-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 1500; display: grid; place-items: center; padding: 18px; }
.welcome-modal { background: #fff; border-radius: 16px; max-width: 470px; width: 100%; box-shadow: 0 22px 64px rgba(0,0,0,.5); overflow: hidden; max-height: 94vh; display: flex; flex-direction: column; }
.welcome-modal__head { background: #000; color: #fff; padding: 22px; text-align: center; }
.welcome-modal__head img { height: 48px; width: auto; margin-bottom: 8px; }
.welcome-modal__head h2 { color: #fff; margin: 0; font-size: 21px; }
.welcome-modal__body { padding: 20px 22px; font-size: 15.5px; line-height: 1.55; overflow-y: auto; }
.welcome-list { list-style: none; margin: 4px 0; padding: 0; }
.welcome-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.welcome-list .ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-bg); color: var(--brand-d); display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.welcome-modal__foot { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.driver-app .welcome-modal__body { font-size: 17px; }

/* ----- Printable cheat sheet ----------------------------------------- */
.cheat { max-width: 940px; }
.cheat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .cheat-grid { grid-template-columns: 1fr; } }
.cheat-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; break-inside: avoid; background: #fff; }
.cheat-card h3 { margin: 0 0 8px; color: var(--brand-d); font-size: 15px; border-bottom: 2px solid var(--brand); padding-bottom: 5px; }
.cheat-card ol, .cheat-card ul { margin: 0; padding-left: 18px; }
.cheat-card li { margin: 4px 0; font-size: 13.5px; line-height: 1.45; }
.cheat-card .k { font-weight: 800; color: var(--brand-d); }
@media print {
    .sidebar, .topbar, .help-btn, .no-print, .page-head .btn-row { display: none !important; }
    .layout, .main, .content { display: block; margin: 0; padding: 0; max-width: none; }
    body { background: #fff; font-size: 11.5px; }
    .cheat-card { box-shadow: none; }
    a { color: #000; text-decoration: none; }
}

.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }
.text-muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
