/*
 * ODG-TRADING — the "easy" layer, loaded after app.css (plain CSS, no build step).
 * The people who use this system are used to paper and pen. So: big text, big buttons, plain words,
 * one clear task per screen, and every status in colour AND in words.
 * Brand: navy #002D80, gold #FDCB00, red #C8102E, yellow #F9E814.
 */
:root {
    --brand: #002d80;
    --brand-dark: #001f5c;
    --brand-soft: #e8eefb;
    --gold: #fdcb00;
    --gold-soft: #fff6cc;
    --yellow: #f9e814;
    --sidebar: #0b1838;
    --sidebar-2: #16295c;
    --sidebar-text: #c9d3ea;
    --bg: #f2f5fb;
    --line: #dde3ee;
    --line-2: #edf0f6;
    --radius: 16px;
    --radius-sm: 12px;
    --sidebar-w: 272px;
    --shadow: 0 1px 2px rgba(11, 24, 56, .05), 0 6px 18px rgba(11, 24, 56, .05);
    --shadow-lg: 0 24px 50px -16px rgba(11, 24, 56, .35);
}

/* ---------- Type: bigger and calmer ---------- */
body { font-size: 16px; line-height: 1.55; background: var(--bg); }
h1 { font-size: 28px; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
.small { font-size: 14px; }
.muted { color: #5f6b85; }
.page-head { margin-bottom: 24px; align-items: center; }
.page-head p { font-size: 16px; color: #5f6b85; margin-top: 6px; max-width: 760px; }
.content { padding: 30px 34px 40px; max-width: 1320px; }

/* ---------- Left menu: big rows, icon + word, "you are here" in white ---------- */
.sidebar { background: linear-gradient(180deg, #0f2150 0%, var(--sidebar) 55%); }
.sidebar__brand { padding: 20px 18px 16px; flex-wrap: wrap; }
.sidebar__brand img.logo-full { max-height: 44px; width: auto; }
.sidebar__company {
    flex-basis: 100%; display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 12px;
    border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; font-size: 14px; font-weight: 600; min-width: 0;
}
.sidebar__company svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.sidebar__company span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__label { color: #8391b3; letter-spacing: .1em; }
.nav-link { font-size: 15.5px; font-weight: 600; gap: 14px; padding: 10px 14px; border-radius: 12px; margin: 2px 0; }
.nav-link svg { width: 22px; height: 22px; opacity: .9; }
.nav-link:hover { background: var(--sidebar-2); }
.nav-link.is-active, .nav-link.is-active:hover { background: #fff; color: var(--brand); box-shadow: inset 4px 0 0 var(--gold); }
.nav-link.is-active svg { color: var(--brand); }
.nav-link.is-upcoming { opacity: .55; }
.nav-soon { border-color: rgba(253, 203, 0, .45); color: var(--gold); font-size: 10.5px; }
.sidebar__user { padding: 14px 16px; gap: 12px; }
.sidebar__user .avatar { width: 40px; height: 40px; font-size: 14px; background: var(--gold); color: #1b1b1b; }
.sidebar__user .name { font-size: 15px; }
.sidebar__user .role { font-size: 13px; color: #9fb0d4; }
.sidebar__user .logout { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 10px; border-radius: 10px; }
.sidebar__user .logout svg { width: 17px; height: 17px; }
@media (min-width: 961px) {
    /* the base rows share the screen height; here they may be bigger, and still shrink on a low screen */
    html:not(.sidebar-collapsed) .sidebar__nav .nav-link { flex: 0 1 48px; min-height: 30px; font-size: 15.5px; }
    html:not(.sidebar-collapsed) .sidebar__label { flex: 0 1 30px; }
    html.sidebar-collapsed .sidebar__company, html.sidebar-collapsed .sidebar__user .logout span { display: none; }
    html.sidebar-collapsed .nav-link.is-active { box-shadow: none; }
}
@media (min-width: 961px) and (max-height: 760px) {
    .sidebar__company { margin-top: 8px; padding: 6px 10px; }
}

/* ---------- Top bar: page name, one big search box, language, bell ---------- */
.topbar { height: 72px; padding: 0 34px; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.topbar__title { font-size: 19px; font-weight: 750; white-space: nowrap; }
.gsearch { max-width: 560px; margin: 0 8px 0 18px; }
.gsearch .input { height: 48px; font-size: 16px; padding-left: 46px; border-radius: 14px; background: #f3f6fc; border: 2px solid #e2e8f3; }
.gsearch .input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 45, 128, .12); }
.gsearch > svg { left: 15px; top: 14px; width: 20px; height: 20px; }
.gsearch__kbd { top: 13px; right: 12px; }
.gsearch__panel { top: 56px; border-radius: 14px; padding: 6px; }
.gsearch__item { padding: 10px 12px; border-radius: 10px; }
.gsearch__item .avatar { width: 36px; height: 36px; font-size: 12px; background: var(--brand); }
.bell__btn { width: 46px; height: 46px; }
.bell__btn svg { width: 24px; height: 24px; }
.live-dot { font-size: 13px; }

/* Language switch: two big words, the chosen one filled in */
.lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: #eef2f9; flex-shrink: 0; }
.lang a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #3b4867; text-decoration: none; }
.lang a:hover { background: #fff; text-decoration: none; }
.lang a.is-on { background: var(--brand); color: #fff; }
.lang--dark { background: rgba(255,255,255,.1); }
.lang--dark a { color: #d6def2; }
.lang--dark a:hover { background: rgba(255,255,255,.12); }
.lang--dark a.is-on { background: var(--gold); color: #1b1b1b; }

/* ---------- Buttons, fields, checks: big and easy to hit ---------- */
.btn { height: 48px; padding: 0 20px; gap: 9px; font-size: 15.5px; font-weight: 650; border-radius: 13px; }
.btn svg { width: 19px; height: 19px; }
.btn-outline { border: 2px solid #d3dae8; color: #24304d; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-primary { box-shadow: 0 6px 14px -6px rgba(0, 45, 128, .55); }
.btn-gold { background: var(--gold); color: #1b1b1b; box-shadow: 0 6px 14px -6px rgba(180, 140, 0, .6); }
.btn-gold:hover { background: #f2c200; }
.btn-danger { border: 2px solid #f1c3ca; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-icon { width: 48px; padding: 0; }
.btn-sm.btn-icon { width: 40px; }
.field label, .label { font-size: 15px; font-weight: 650; color: #24304d; margin-bottom: 7px; }
.input, .select, .textarea { height: 50px; padding: 0 14px; font-size: 16px; border: 2px solid #d6ddea; border-radius: 13px; }
.textarea { height: auto; min-height: 104px; padding: 12px 14px; line-height: 1.5; }
.select { padding-right: 40px; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 45, 128, .12); }
.field-hint { font-size: 14px; color: #5f6b85; margin-top: 6px; }
.field-error { font-size: 14px; font-weight: 600; margin-top: 6px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); background: #fff8f9; }
.check { font-size: 16px; gap: 11px; }
.check input { width: 22px; height: 22px; }
/* choice buttons inside a form (role, country): the size of a normal button */
.field label.btn { font-size: 15.5px; height: 48px; margin-bottom: 0; }
.field label.btn .flag { margin-right: 2px; }
.form-grid { gap: 20px 22px; }
.search .input { padding-left: 42px; }
.search svg { left: 14px; width: 19px; height: 19px; }

/* ---------- Cards, tables, badges, alerts ---------- */
.card { border-radius: var(--radius); border-color: var(--line); }
.card__head { padding: 18px 24px; }
.card__head h2 { display: flex; align-items: center; gap: 10px; }
.card__head h2 svg { width: 22px; height: 22px; color: var(--brand); }
.card__body { padding: 22px 24px; }
.card__foot { padding: 16px 24px; background: #f8fafd; border-radius: 0 0 var(--radius) var(--radius); }
.table { font-size: 15px; }
.table th { font-size: 12.5px; padding: 13px 18px; background: #f7f9fc; color: #5f6b85; }
.table td { padding: 15px 18px; }
.cell-main { font-size: 15.5px; }
.cell-sub { font-size: 13.5px; }
.badge { font-size: 13px; padding: 3px 11px; font-weight: 650; }
.badge svg { width: 14px; height: 14px; }
.alert { padding: 14px 18px; border-radius: 13px; font-size: 15px; }
.alert svg { width: 21px; height: 21px; }
.avatar { width: 42px; height: 42px; font-size: 14px; }
.toast { font-size: 15px; padding: 14px 18px; border-radius: 13px; }
.empty { padding: 56px 20px; }
.empty svg { width: 48px; height: 48px; }

/* Role badges: who is who, at a glance */
.role-admin { background: var(--gold-soft); color: #6b5300; }
.role-director { background: var(--brand); color: #fff; }
.role-manager { background: var(--brand-soft); color: var(--brand); }
.role-staff { background: #e8ebf1; color: #33405e; }

/* Small flags, drawn in CSS (no image, no emoji): recognise an office's country at a glance */
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -2px; }
.flag-CO { background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
.flag-CW { background: linear-gradient(#002b7f 0 60%, #f9e814 60% 73%, #002b7f 73%); position: relative; }
.flag-CW::after { content: ""; position: absolute; left: 3px; top: 2px; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 4px 2px 0 0 #fff; }
.flag-US { background: linear-gradient(90deg, #3c3b6e 0 40%, transparent 40%), repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px); }

.modal__panel { border-radius: 18px; }
.modal__head { padding: 20px 26px; }
.modal__head h2 { font-size: 21px; }
.modal__body { padding: 24px 26px; }

/* Pop-ups on a computer (owner, 2026-10-16): wide and low — the fields side by side in four columns, so the whole
   form fits on the screen without a scroll bar, with the page still visible around it. On a phone they stay one
   column, from below. In a form: .span-2 = half the width, .m-span-3 / .m-span-4 = three quarters / the whole row. */
@media (min-width: 1100px) {
    .modal { align-items: center; padding: 24px 48px; }
    .modal__panel:not(.sm) { width: min(1200px, 100%); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
    .modal__panel:not(.sm) > .modal__head, .modal__panel:not(.sm) > .modal__foot { flex-shrink: 0; }
    .modal__panel:not(.sm) > .modal__head { padding: 16px 28px; }
    .modal__panel:not(.sm) > .modal__body { overflow-y: auto; padding: 18px 28px 20px; }
    .modal__panel:not(.sm) > .modal__foot { padding: 12px 28px; }
    .modal__panel:not(.sm) .modal__body > .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
    .modal__panel:not(.sm) .modal__body > .form-grid > .span-2,
    .modal__panel:not(.sm) .modal__body > .form-grid > .m-span-2 { grid-column: span 2; }
    .modal__panel:not(.sm) .modal__body > .form-grid > .m-span-3 { grid-column: span 3; }
    .modal__panel:not(.sm) .modal__body > .form-grid > .m-span-4,
    .modal__panel:not(.sm) .modal__body > .form-grid > .span-4 { grid-column: 1 / -1; }
    .modal__panel:not(.sm) .field { margin-bottom: 0; }
    .modal__panel:not(.sm) .textarea { min-height: 0; height: 64px; padding-top: 10px; }
    .modal__panel:not(.sm) .modal__foot .foot-left { align-self: center; max-width: 60%; }
}
.modal__foot { padding: 16px 26px; border-radius: 0 0 18px 18px; }
/* A field title with a small action at its right (e.g. "Same hours for every open day") */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.label-row label { margin-bottom: 0; }
/* The days a package leaves and arrives (when it is on no flight or boat) */
.trip-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); gap: 12px 16px; margin-top: 14px; align-items: end; }
.trip-dates .field { margin: 0; }
.trip-dates p { grid-column: 1 / -1; margin: 0; }
.trip-dates--stack { grid-template-columns: 1fr; }
@media (max-width: 760px) { .trip-dates { grid-template-columns: 1fr; } }
/* Small settings in the bottom bar of a pop-up (e.g. "open — shown in lists", "order in lists") */
.modal__foot .foot-settings { align-items: center; gap: 10px 26px; }
.foot-settings .check { margin: 0; font-size: 15px; }
.foot-order { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; margin: 0; }
.foot-order .input { width: 76px; height: 40px; padding: 0 10px; }
.foot-order.has-error .input { border-color: var(--danger); }
@media (max-width: 1099px) {
    .modal__foot { flex-wrap: wrap; }
    .modal__foot .foot-left { flex-basis: 100%; }
}

/* ---------- Home: "What do you want to do?" — big task buttons ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.hello h1 { font-size: 32px; }
.hello__date { color: #5f6b85; font-size: 16px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.hello__where { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: #24304d; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-head h2 { font-size: 20px; }
.section-head p { margin: 0; color: #5f6b85; font-size: 15px; }

.tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.task {
    position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 22px; min-height: 128px;
    background: #fff; border: 2px solid var(--line); border-radius: 18px; color: inherit; text-decoration: none !important;
    box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.task:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 45, 128, .45); }
.task__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); }
.task__icon svg { width: 30px; height: 30px; }
.task__title { font-size: 19px; font-weight: 750; color: var(--ink); line-height: 1.25; }
.task__text { font-size: 15px; color: #5f6b85; margin-top: 5px; line-height: 1.45; }
.task--gold .task__icon { background: var(--gold-soft); color: #7a5d00; }
.task--green .task__icon { background: #dcfce7; color: #15803d; }
.task--red .task__icon { background: #fde8eb; color: #b0102a; }
.task--slate .task__icon { background: #e9edf4; color: #33405e; }
.task.is-soon { cursor: default; background: #fbfcfe; }
.task.is-soon .task__icon, .task.is-soon .task__title, .task.is-soon .task__text { opacity: .6; }
.task__soon {
    position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 99px; background: var(--gold-soft); color: #6b5300; border: 1px solid #f3dc79;
}

/* Today in figures (filled in from Phase 2 on) */
.figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.figure { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.figure__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #5f6b85; font-size: 14px; font-weight: 600; }
.figure__top svg { width: 19px; height: 19px; color: var(--brand); flex-shrink: 0; }
.figure__value { font-size: 28px; font-weight: 800; margin-top: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.figure__note { font-size: 12.5px; color: #8a95ad; }
.figure.is-soon .figure__value { color: #b7c0d3; }

/* Setup checklist: big rows with a tick */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-row {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--line);
    background: #fff; color: inherit; text-decoration: none !important;
}
a.check-row:hover { border-color: var(--brand); }
.check-row__mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px dashed #b9c3d8; color: #8a95ad; font-weight: 800; }
.check-row__mark svg { width: 20px; height: 20px; }
.check-row.is-done { background: #f3fbf5; border-color: #c8ebd2; }
.check-row.is-done .check-row__mark { border: 0; background: #16a34a; color: #fff; }
.check-row strong { display: block; font-size: 16px; }
.check-row span span { display: block; font-size: 14px; color: #5f6b85; }
.check-row__go { margin-left: auto; color: var(--brand); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.office__top { display: flex; align-items: center; gap: 10px; }
.office__name { font-size: 17px; font-weight: 750; }
.office__code { margin-left: auto; font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.office__lines { margin-top: 10px; font-size: 14.5px; color: #4a5672; display: grid; gap: 4px; }
.office__lines div { display: flex; gap: 8px; align-items: flex-start; }
.office__lines svg { width: 16px; height: 16px; margin-top: 3px; color: #8a95ad; flex-shrink: 0; }
.office.is-archived { opacity: .6; }

/* Build plan (ODG only) */
.phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.phase { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.phase__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; background: #e9edf4; color: #33405e; }
.phase.is-done .phase__n { background: #16a34a; color: #fff; }
.phase.is-next .phase__n { background: var(--gold); color: #1b1b1b; }
.phase strong { display: block; }
.phase span span { display: block; font-size: 13.5px; color: #5f6b85; }

/* Settings sub-menu: bigger tabs */
.subnav__link { font-size: 15px; padding: 10px 14px; border-radius: 12px; }
.subnav__link svg { width: 19px; height: 19px; }

/* ---------- Login and password pages ---------- */
.auth__art { background: radial-gradient(120% 120% at 0% 100%, #18307a 0%, #0b1838 55%, #060d24 100%); }
.auth__art::after { border-color: rgba(253, 203, 0, .18); }
.auth__art img { width: 300px; }
.auth__art h2 { font-size: 34px; line-height: 1.2; }
.auth__art p { font-size: 17px; color: #b8c4df; }
.auth__route { position: relative; z-index: 1; margin: 26px 0 0; display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; font-size: 17px; }
.auth__route i { flex: 1; max-width: 160px; height: 2px; background-image: linear-gradient(90deg, var(--gold) 50%, transparent 50%); background-size: 12px 2px; }
.auth__panel { position: relative; }
.auth__top { position: absolute; top: 22px; right: 24px; }
.auth__form { max-width: 440px; }
.auth__form h1 { font-size: 32px; }
.auth__form .lead { font-size: 17px; }
.auth__form .btn { height: 54px; font-size: 17px; }

/* ---------- Phone ---------- */
@media (max-width: 1280px) {
    .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .topbar { padding: 0 16px; }
    .content { padding: 20px 16px 32px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    h1, .hello h1 { font-size: 25px; }
    .topbar { height: calc(62px + env(safe-area-inset-top)); gap: 8px; }
    .topbar__title { display: none; }
    .gsearch { margin: 0; }
    .gsearch .input { height: 44px; font-size: 16px; }
    .gsearch > svg { top: 12px; }
    .lang a { padding: 7px 9px; }
    .content { padding: 14px 12px calc(92px + env(safe-area-inset-bottom)); }
    .tasks { grid-template-columns: 1fr; gap: 12px; }
    .task { min-height: 0; padding: 18px; }
    .task__icon { width: 52px; height: 52px; }
    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checklist { grid-template-columns: 1fr; }
    .btn { min-height: 48px; }
    .input, .select, .textarea { min-height: 50px; }
    .tabbar__item { font-size: 12px; }
    .tabbar__item svg { width: 25px; height: 25px; }
}

/* ---------- Fixes after the first look at the screens ---------- */
/* The base design has an older .check-row (garage forms): ours starts at the left. */
.check-row { justify-content: flex-start; }
/* Room for the "Soon" pill next to a long task name */
.task.is-soon .task__title { padding-right: 66px; }
/* One wide search box; the language switch and bell sit at the right */
.gsearch { flex: 1 1 auto; max-width: 640px; min-width: 0; }
.topbar__spacer { flex: 0 1 8px; }
.topbar .lang { margin-left: auto; }
.search .input { min-width: 300px; }
/* The active sub-tab in brand navy */
.subnav__link.is-active, .subnav__link.is-active:hover { background: var(--brand); color: #fff; }
.auth__art h2 { margin-bottom: 14px; }
.section-head { flex-wrap: wrap; }
.lang__short { display: none; }
@media (max-width: 760px) {
    .lang__long { display: none; }
    .lang__short { display: inline; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 24px; }
    .search .input { min-width: 0; }
}
/* Pop-up footer with a quiet action on the left (e.g. password link, archive) */
.modal__foot .foot-left { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* =====================================================================
   Phase 2 — customers, inventory, sender form
   ===================================================================== */

/* Numbered steps (1 Customer → 2 What is in it → 3 Check and save) */
.steps { display: flex; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.steps li { flex: 1 1 0; min-width: 150px; }
.steps button, .steps .step-box { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); color: #5f6b85; font-weight: 650; font-size: 15px; }
.steps button { cursor: pointer; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #e9edf4; color: #33405e; font-weight: 800; }
.steps .is-current button, .steps .is-current .step-box { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.steps .is-current .n { background: var(--brand); color: #fff; }
.steps .is-done .n { background: #16a34a; color: #fff; }
.steps .is-done button, .steps .is-done .step-box { color: #15803d; }
@media (max-width: 760px) { .steps li { min-width: 0; } .steps .label { display: none; } .steps li.is-current .label { display: inline; } }

/* Big choice buttons (who brings it, who pays, country, ID type …) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.choice { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-weight: 650; font-size: 16px; color: #24304d; }
.choice:hover { border-color: #9fb2d8; }
.choice svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--brand); }
.choice small { display: block; font-weight: 500; font-size: 13.5px; color: #5f6b85; margin-top: 2px; }
.choice.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.choice:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 650; font-size: 15px; color: #24304d; }
.pill.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pill:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Customer cards: find and pick a customer with one tap */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.person { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; }
.person:hover { border-color: var(--brand); }
.person .avatar { width: 46px; height: 46px; background: var(--brand); font-size: 15px; }
.person__name { font-weight: 750; font-size: 16.5px; color: var(--ink); }
.person__sub { font-size: 14px; color: #5f6b85; }
.person.is-chosen { border-color: #16a34a; background: #f3fbf5; cursor: default; }
.code-chip { font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); border: 0; letter-spacing: .02em; white-space: nowrap; }
.code-big { font-family: var(--mono); font-weight: 800; font-size: 30px; letter-spacing: .04em; color: var(--brand-dark); }

/* The inventory sheet: like the paper — ruled lines, a red margin, big writing */
.sheet { position: relative; background: #fffef9; border: 1px solid #e8e2cf; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 64px; width: 2px; background: #f2b8c0; }
.sheet table { width: 100%; border-collapse: collapse; position: relative; }
.sheet th { text-align: left; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b5f3a; padding: 14px 12px 10px; border-bottom: 2px solid #d9cfae; }
.sheet td { padding: 6px 12px; border-bottom: 1px solid #e4ebf5; vertical-align: top; }
.sheet .c-qty { width: 150px; padding-left: 80px; }
.sheet .c-kg { width: 170px; }
.sheet .c-x { width: 56px; text-align: right; }
.sheet .num { position: absolute; left: 18px; margin-top: 14px; color: #a39a7e; font-weight: 700; }
.sheet input { width: 100%; height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 18px; color: #12203f; padding: 0 6px; border-radius: 6px; }
.sheet input:focus { outline: none; background: #fff; border-bottom-color: var(--brand); }
.sheet input::placeholder { color: #c4bfae; }
.sheet .has-error input { border-bottom-color: var(--danger); background: #fff5f6; }
.sheet .more td { padding-top: 0; padding-bottom: 12px; padding-left: 80px; }
.sheet .more .row { gap: 8px; }
.sheet .more input { height: 40px; font-size: 15px; background: #fff; border: 1px solid #e3e8f2; width: 110px; }
.sheet tfoot td { border-bottom: 0; border-top: 2px solid #d9cfae; font-weight: 800; font-size: 17px; padding: 14px 12px; }
.sheet .add-line { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 24px); margin: 10px 12px; height: 52px; border: 2px dashed #c9bf9b; border-radius: 12px; color: #6b5f3a; font-weight: 750; font-size: 16px; background: transparent; }
.sheet .add-line:hover { background: #fff8e5; }
.sheet .add-line svg { width: 20px; height: 20px; }
.sheet-read td { font-size: 17px; padding: 12px; }
.sheet-read .c-qty { font-weight: 750; }
.linkish { all: unset; cursor: pointer; color: var(--brand); font-weight: 650; font-size: 14px; }
.linkish:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .sheet::before { left: 10px; }
    .sheet thead { display: none; }
    .sheet table, .sheet tbody, .sheet tr, .sheet td { display: block; width: 100%; }
    .sheet tr.line { display: grid; grid-template-columns: 70px 1fr 96px 40px; gap: 6px; padding: 8px 10px 8px 22px; border-bottom: 1px solid #e4ebf5; }
    .sheet tr.line td { padding: 0; border: 0; width: auto; }
    .sheet .c-qty { padding-left: 0; }
    .sheet .num { display: none; }
    .sheet tr.more { padding: 0 10px 10px 22px; }
    .sheet .more td { padding-left: 0; }
    .sheet tfoot tr { display: flex; justify-content: space-between; padding: 0 10px 0 22px; }
    .sheet tfoot td { width: auto; }
    .sheet input { font-size: 17px; height: 46px; }
}

/* Counter (boxes) */
.counter { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.counter button { all: unset; cursor: pointer; width: 54px; height: 50px; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--brand); }
.counter button:hover { background: var(--brand-soft); }
.counter output { min-width: 56px; text-align: center; font-size: 22px; font-weight: 800; }

/* The bar with Back / Next at the bottom of a step (stays in view) */
.actionbar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.actionbar .btn { min-width: 150px; height: 54px; font-size: 17px; }
@media (max-width: 760px) { .actionbar { bottom: calc(70px + env(safe-area-inset-bottom)); } .actionbar .btn { flex: 1; min-width: 0; } }

/* Saved! */
.done { text-align: center; padding: 34px 20px 28px; }
.done__check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: #16a34a; color: #fff; box-shadow: 0 12px 30px -12px rgba(22, 163, 74, .7); }
.done__check svg { width: 46px; height: 46px; }
.done h2 { font-size: 26px; margin-bottom: 6px; }
.done .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* Sender form */
.formlang { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 14px 18px; border-radius: 16px; background: var(--brand); color: #fff; margin-bottom: 18px; }
.formlang strong { font-size: 17px; }
.formlang .seg { background: rgba(255,255,255,.12); }
.formlang .seg button { color: #dbe4fb; }
.formlang .seg .is-on { background: var(--gold); color: #1b1b1b; }
.section-card { margin-bottom: 18px; }
.badge-n { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.terms-box { max-height: 300px; overflow-y: auto; white-space: pre-line; line-height: 1.65; font-size: 15.5px; padding: 16px 18px; border-radius: 14px; background: #fbfcfe; border: 1px solid var(--line); }
.agree { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 15.5px; line-height: 1.5; margin-top: 12px; font-weight: 500; }
.agree input { width: 26px; height: 26px; flex-shrink: 0; margin-top: 1px; accent-color: var(--brand); }
.agree.is-on { border-color: #16a34a; background: #f3fbf5; }
.agree.has-error { border-color: var(--danger); background: #fff8f9; }
.sigpad__box { position: relative; height: 230px; border-radius: 16px; border: 2px dashed #9fb2d8; background: #fff; touch-action: none; }
.sigpad__box canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; border-radius: 14px; }
.sigpad__line { position: absolute; left: 24px; right: 24px; bottom: 54px; border-bottom: 2px solid #c9d3e6; pointer-events: none; }
.sigpad__hint { position: absolute; left: 26px; bottom: 26px; font-size: 14px; color: #8a95ad; pointer-events: none; }
.sigpad.has-error .sigpad__box { border-color: var(--danger); background: #fff8f9; }

/* Customer profile */
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.profile > .avatar { width: 64px; height: 64px; font-size: 22px; background: var(--brand); }
.profile h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 22px; margin: 0; }
.facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: #8a95ad; font-weight: 700; margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 16px; font-weight: 600; color: #24304d; word-break: break-word; }
.casillero { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--gold-soft); border: 1px solid #f3dc79; }
.casillero .code-big { font-size: 26px; color: #4a3b00; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 13px; background: #e9edf4; flex-wrap: wrap; }
.seg button, .seg a { all: unset; cursor: pointer; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 15px; color: #3b4867; }
.seg .is-on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(11,24,56,.12); }
.status-received { background: var(--gold-soft); color: #6b5300; }
.status-shipped { background: #dbeafe; color: #1d4ed8; }
.status-cancelled { background: #eceef2; color: #6b7280; text-decoration: line-through; }

/* =====================================================================
   Phase 3 — shipments, flights & boats, labels, pickup, the phone form
   ===================================================================== */

/* Status colours: the road of a package (colour AND words) */
.status-ready { background: var(--gold-soft); color: #6b5300; }
.status-departed { background: #dbeafe; color: #1d4ed8; }
.status-arrived { background: #ede9fe; color: #6d28d9; }
.status-ready_for_pickup { background: #dcfce7; color: #15803d; }
.status-picked_up { background: #e5e7eb; color: #374151; }
.status-batch-open { background: var(--gold-soft); color: #6b5300; }
.status-batch-departed { background: #dbeafe; color: #1d4ed8; }
.status-batch-arrived { background: #dcfce7; color: #15803d; }

.btn-green { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-green:hover { background: #15803d; border-color: #15803d; color: #fff; }
.code-huge { font-size: 42px; letter-spacing: .03em; }
.code-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.code-title .mono { font-size: 30px; font-weight: 800; color: var(--brand-dark); }
.route-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; color: #3b4867; font-weight: 600; margin: 14px 0 0; }
.route-line svg { width: 18px; height: 18px; color: var(--brand); }
.route-line .sep { color: #a3adc2; }

/* The road of a package: ready → on the way → arrived → ready for pickup → picked up */
.road { display: flex; gap: 0; margin: 0 0 20px; padding: 14px 16px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow-x: auto; }
.road li { flex: 1 1 0; min-width: 120px; display: flex; gap: 10px; align-items: center; position: relative; padding-right: 14px; color: #8a95ad; }
.road li + li::before { content: ""; position: absolute; left: -12px; top: 17px; width: 8px; height: 2px; background: #d3dae8; }
.road__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #e9edf4; color: #5f6b85; font-weight: 800; }
.road__dot svg { width: 18px; height: 18px; }
.road__text { display: flex; flex-direction: column; line-height: 1.25; }
.road__label { font-weight: 750; font-size: 14.5px; }
.road__date { font-size: 12.5px; }
.road .is-done { color: #15803d; }
.road .is-done .road__dot { background: #16a34a; color: #fff; }
.road .is-current { color: var(--brand); }
.road .is-current .road__dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
@media (max-width: 760px) { .road li { min-width: 46px; } .road li:not(.is-current) .road__text { display: none; } .road li.is-current { min-width: 170px; } }

/* The one next step on a page */
.next-step { border-left: 5px solid var(--gold); }
.next-step .card__head h2 svg { color: #b08900; }
.pickup-from { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pickup-from .field { margin: 0; }
.pickup-from .input { min-width: 170px; }
.pickup-from .btn { height: 50px; }

/* Boxes: tap (or scan) them when they are at the office */
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.boxtile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.boxtile:disabled { cursor: default; }
.boxtile:not(:disabled):hover { border-color: var(--brand); }
.boxtile__n { font-size: 24px; font-weight: 850; color: #12203f; }
.boxtile__n small { font-size: 14px; color: #8a95ad; font-weight: 700; }
.boxtile__state { font-size: 12.5px; color: #8a95ad; display: flex; gap: 4px; align-items: center; }
.boxtile__state svg { width: 15px; height: 15px; }
.boxtile.is-in { border-color: #16a34a; background: #f3fbf5; }
.boxtile.is-in .boxtile__state { color: #15803d; font-weight: 700; }
.boxtile.is-scanned { box-shadow: 0 0 0 4px var(--gold); }
.boxtile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sheet-label { font-size: 14px; color: #5f6b85; margin: 14px 0 8px; font-weight: 600; }
.sheet-label:first-of-type { margin-top: 0; }

/* Timeline of a package (own class: the base design has another .timeline) */
.tlog { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.tlog li { position: relative; font-size: 14.5px; line-height: 1.4; }
.tlog li::before { content: ""; position: absolute; left: -26px; top: 3px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.tlog .tl-picked_up::before, .tlog .tl-boxes::before, .tlog .tl-ready_for_pickup::before { border-color: #16a34a; }
.tlog .tl-cancelled::before { border-color: #9ca3af; }
.tlog__meta { display: block; font-size: 12.5px; color: #8a95ad; margin-top: 2px; }

/* Big tabs with counts (shipments by where they are) */
.tabs-big { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-big button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; color: #3b4867; }
.tabs-big button:hover { border-color: #9fb2d8; }
.tabs-big button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs-big__n { min-width: 26px; height: 24px; padding: 0 7px; box-sizing: border-box; border-radius: 12px; display: inline-grid; place-items: center; background: #e9edf4; color: #33405e; font-size: 13px; font-weight: 800; }
.tabs-big .is-on .tabs-big__n { background: rgba(255, 255, 255, .2); color: #fff; }
.tabs-big .is-alert .tabs-big__n { background: #c8102e; color: #fff; }
.tabs-big button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.figure.is-alert { border-color: #f3b4bd; background: #fff7f8; }
.figure.is-alert .figure__value { color: #c8102e; }

/* Scanning: a big box for the scanner (or typing) and the camera picture */
.scanbox { position: relative; display: flex; gap: 10px; align-items: center; }
.scanbox > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; color: var(--brand); pointer-events: none; }
.scanbox .input { flex: 1; min-width: 0; height: 62px; font-size: 20px; padding-left: 54px; border-width: 2px; }
.scanbox .btn { height: 62px; }
.scanner { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.scanner video { width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: #0b1838; }
.scanlog { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scanlog li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; font-weight: 650; font-size: 15px; }
.scanlog li svg { width: 20px; height: 20px; flex-shrink: 0; }
.scanlog .is-ok { background: #f3fbf5; color: #15803d; }
.scanlog .is-bad { background: #fff1f2; color: #b4232f; }
.scanlog .is-last { font-size: 17px; padding: 14px 16px; box-shadow: inset 0 0 0 2px currentColor; }
.checkcount { font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); color: #6b5300; font-size: 14px; }
.checkcount.is-full { background: #dcfce7; color: #15803d; }
.missing { margin-top: 14px; border: 1px solid #f3dc79; background: #fffbea; border-radius: 12px; padding: 10px 14px; }
.missing summary { cursor: pointer; font-weight: 750; color: #6b5300; }
.missing__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Make ready to depart */
.agree.is-off { opacity: .6; cursor: not-allowed; }
.agree .badge { vertical-align: 1px; }
.in-shipment { color: inherit; }
.in-shipment > div { flex: 1; }
.handover-top .code-big { font-size: 34px; }

/* The sender form on the customer's own phone: the QR code at the counter */
.phone-link { text-align: center; }
.phone-link__qr { width: 220px; max-width: 100%; margin: 0 auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.phone-link__qr svg { width: 100%; height: auto; display: block; }

/* Public pages (customers): the company's name, nothing else to click */
body.public { background: var(--bg); }
.pubbar { background: var(--brand); color: #fff; }
.pubbar__in { max-width: 860px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.pubbar__in strong { font-size: 18px; display: block; line-height: 1.2; }
.pubbar__in small { display: block; color: #c9d6f3; font-size: 13px; }
.pubbar__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: #1b1b1b; display: grid; place-items: center; flex-shrink: 0; }
.pubbar__mark svg { width: 22px; height: 22px; }
.pubmain { max-width: 860px; margin: 0 auto; padding: 18px 16px 40px; }
.pubfoot { text-align: center; color: #8a95ad; font-size: 13px; padding: 0 16px 28px; }
.public .actionbar { bottom: 0; }
@media (max-width: 760px) {
    .public .actionbar { bottom: 0; }
    .code-huge { font-size: 32px; }
    .code-title .mono { font-size: 24px; }
    .scanbox .input { font-size: 17px; }
}

/* =====================================================================
   Country first: city lists, phone format per country, opening hours per day
   ===================================================================== */

/* A field that is filled in by itself (Curaçao → Willemstad) or waits for the country */
.locked-input { height: 50px; border-radius: 13px; font-size: 16px; font-weight: 650; color: #24304d; }
.locked-input svg { width: 16px; height: 16px; }
/* A flag stays visible on a selected (navy) button */
.pill.is-on .flag, .choice.is-on .flag, .btn-primary .flag { box-shadow: 0 0 0 1.5px #fff; }

/* Phone with the country's dial code in front: +57 | 300 123 4567 */
.phone-in { display: flex; align-items: stretch; }
.phone-in__code { display: grid; place-items: center; padding: 0 14px; border: 2px solid #d6ddea; border-right: 0; border-radius: 13px 0 0 13px; background: #eef2f9; font-family: var(--mono); font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.phone-in .input { flex: 1; min-width: 0; border-radius: 0 13px 13px 0; }
.field.has-error .phone-in__code { border-color: var(--danger); }

/* Opening hours: a tick per day, the opening and the closing hour */
.hours-table { display: flex; flex-direction: column; gap: 8px; }
.hours-head, .hours-row { display: grid; grid-template-columns: minmax(150px, 190px) 128px 18px 128px; align-items: center; gap: 10px; }
.hours-head { padding: 0 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: #8a95ad; font-weight: 700; }
.hours-row { padding: 6px 12px; border-radius: 13px; border: 2px solid var(--line); background: #fff; min-height: 58px; }
.hours-row.is-open { border-color: #b9cbef; background: var(--brand-soft); }
.hours-row.has-error { border-color: var(--danger); background: #fff8f9; }
.hours-day { display: flex; gap: 12px; align-items: center; font-weight: 750; font-size: 16px; cursor: pointer; margin: 0; }
.hours-day input { width: 24px; height: 24px; accent-color: var(--brand); flex-shrink: 0; }
.hours-row .select { height: 44px; padding-left: 12px; }
.hours-dash { text-align: center; font-weight: 700; color: #5f6b85; }
.hours-closed { grid-column: 2 / -1; color: #8a95ad; font-weight: 650; }
.hours-row:not(.is-open) .hours-dash, .hours-closed--2 { display: none; }
@media (max-width: 760px) {
    .hours-head { display: none; }
    .hours-row { grid-template-columns: 1fr 18px 1fr; }
    .hours-day { grid-column: 1 / -1; }
    .hours-closed { grid-column: 1 / -1; }
}
/* In a wide pop-up on a computer: the week side by side, like a timetable — the days across, opens and closes below */
@media (min-width: 1100px) {
    .modal .hours-table { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: 92px;
        grid-auto-columns: minmax(0, 1fr); gap: 8px 10px; align-items: center; }
    .modal .hours-head, .modal .hours-row { display: contents; }
    .modal .hours-head .hours-dash, .modal .hours-row .hours-dash { display: none; }
    .modal .hours-head span { padding: 0; }
    .modal .hours-day { justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; }
    .modal .hours-day input { width: 20px; height: 20px; }
    .modal .hours-row.is-open .hours-day { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
    .modal .hours-row.has-error .hours-day { border-color: var(--danger); background: #fff8f9; }
    .modal .hours-row .select { width: 100%; min-width: 0; height: 42px; padding: 0 24px 0 10px; background-position: right 6px center; }
    .modal .hours-closed, .modal .hours-closed--2 { display: block; grid-column: auto; height: 42px; line-height: 42px; text-align: center; border-radius: 10px; background: #f3f5f9; }
    .modal .hours-closed--2 { color: #b7c0d3; }
}

/* =====================================================================
   Phase 4 — invoices and payments
   ===================================================================== */

/* Paid in colour AND words */
.pay-draft { background: #eceef2; color: #4b5563; }
.pay-unpaid { background: #fee2e2; color: #b91c1c; }
.pay-partial { background: #ffedd5; color: #c2410c; }
.pay-paid { background: #dcfce7; color: #15803d; }
.pay-cancelled { background: #eceef2; color: #6b7280; text-decoration: line-through; }

/* What is still to pay, big */
.due-card { border-left: 6px solid #c8102e; }
.due-card.is-paid { border-left-color: #16a34a; }
.due-card .card__body { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.due-card__label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: #8a95ad; }
.due-card__amount { font-size: 34px; font-weight: 850; color: #b91c1c; line-height: 1.1; margin: 2px 0 4px; }
.due-card.is-paid .due-card__amount { color: #15803d; }

/* The invoice sheet: the inventory lines with a price per line */
.invoice-sheet td { vertical-align: middle; }
.invoice-sheet .num { margin-top: -10px; }
.invoice-sheet .c-price { width: 200px; }
.invoice-sheet .c-price input { text-align: right; font-weight: 750; background: #fff; border: 1px solid #e3e8f2; }
.invoice-sheet .price-read { display: block; text-align: right; font-weight: 750; padding: 12px 6px; }
.invoice-sheet .line.has-error input { border-color: var(--danger); background: #fff5f6; }
.invoice-sheet td:nth-child(2) input { background: #fff; border: 1px solid #e3e8f2; }
.invoice-sheet tfoot .c-price { padding-right: 18px; }
@media (max-width: 760px) {
    .invoice-sheet tr.line { grid-template-columns: 44px 1fr 120px 36px; }
    .invoice-sheet .c-kg { display: none !important; }
    .invoice-sheet .c-price { width: auto; }
}

/* Totals: subtotal, customs, OB, total, paid, amount due */
.totals { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.totals dt { color: #5f6b85; font-weight: 600; }
.totals dd { margin: 0; font-weight: 750; text-align: right; }
.totals__total { border-top: 2px solid var(--line); padding-top: 10px; }
.totals__total dt, .totals__total dd { font-size: 19px; color: var(--ink, #12203f); font-weight: 850; }
.totals__due dd { color: #b91c1c; font-size: 20px; font-weight: 850; }
tr.is-voided td { color: #9ca3af; }
tr.is-voided td strong, tr.is-voided .cell-main { text-decoration: line-through; }

/* Late pickup fees: a mark in the invoice list, the list on the package page, the rows to pay at the pickup */
.badge-late { background: #fef3c7; color: #92400e; margin-left: 6px; vertical-align: 2px; }
.badge-version { background: #e0e7ff; color: #3730a3; }
.pay-credited { background: #e5e7eb; color: #374151; }
.fee-list { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fee-list__head { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: #8a95ad; }
.fee-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #f6f8fc; color: inherit; text-decoration: none; }
.fee-row:hover { background: #eef2fa; }
.fee-row__amount { margin-left: auto; font-weight: 750; }
.fee-row__amount.is-off { text-decoration: line-through; color: #9ca3af; }
.due-card .due-rows { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); align-items: stretch; }
.due-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.due-row__amount { margin-left: auto; font-size: 18px; color: #b91c1c; }

/* Credit notes: the pop-up (what is credited | what it comes to) and the versions of an invoice */
.credit-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.credit-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 16px; margin-top: 14px; }
.credit-fields .field { margin: 0; }
.credit-sum { background: #f6f8fc; border-radius: 16px; padding: 18px 20px; }
.credit-sum .totals > .totals__total:first-child { border-top: 0; padding-top: 0; }
.version-list { display: flex; flex-direction: column; gap: 8px; }
.version-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #f6f8fc; }
.version-row.is-now { background: #eef4ff; border: 1px solid #c9d8f5; }
.version-row__n { font-weight: 850; min-width: 92px; }
.version-row__what { flex: 1; min-width: 200px; color: #374151; }
.version-row .btn { margin-left: auto; }
@media (max-width: 900px) {
    .credit-grid, .credit-fields { grid-template-columns: 1fr; }
}

/* Payments & Cash: today's rate, what came in per currency, the count sheet */
.office-pills { margin-bottom: 18px; }
.office-pills .pill { display: inline-flex; align-items: center; gap: 8px; }
.rate-list { display: flex; flex-wrap: wrap; gap: 14px; }
.rate { flex: 1 1 260px; padding: 14px 16px; border-radius: 14px; background: #f6f8fc; border: 2px solid transparent; }
.rate.is-missing { background: #fffbeb; border-color: #fcd34d; }
.rate__value { font-size: 24px; font-weight: 850; color: var(--brand); margin-bottom: 4px; }
.rate__warn { color: #92400e; font-weight: 650; }
.rate-in { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; }
.rate-in .input { flex: 1; font-size: 22px; font-weight: 800; text-align: right; }
.rate-history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.rate-history__head { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: #8a95ad; margin-bottom: 6px; }
.rate-history__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 5px 0; font-size: 15px; }
.rate-history__row .muted { text-align: right; }
.cash-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cash-sum__card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.cash-sum__cur { font-size: 13px; font-weight: 850; letter-spacing: .1em; color: #fff; background: var(--brand); border-radius: 8px; padding: 3px 10px; align-self: flex-start; }
.cash-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.cash-sum__row strong { font-size: 22px; font-weight: 850; }
.cash-sum__row.is-soft strong { font-size: 17px; color: #5f6b85; }
.count-sheet .card__body { display: flex; flex-direction: column; gap: 14px; }
.count-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) minmax(160px, 1fr); align-items: center; gap: 16px; padding: 12px 14px; border-radius: 14px; background: #f6f8fc; }
.count-row.has-error { background: #fff5f6; }
.count-row__label { font-size: 17px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; margin: 0; }
.count-row__label small { font-size: 14px; color: #5f6b85; font-weight: 600; }
.count-row__input { font-size: 24px; font-weight: 850; text-align: right; background: #fff; }
.count-row__error { grid-column: 1 / -1; margin: 0; }
.diff { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; padding: 6px 12px; border-radius: 10px; }
.diff svg { width: 18px; height: 18px; }
.diff--ok { background: #dcfce7; color: #15803d; }
.diff--short { background: #fee2e2; color: #b91c1c; }
.diff--over { background: #ffedd5; color: #c2410c; }
.count-sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
    .count-row { grid-template-columns: 1fr; gap: 10px; }
    .count-sheet__foot .btn { width: 100%; }
}

/* Messages: the WhatsApp messages to send (one tap each), the log on the package, the settings */
.msg-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.msg-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.msg-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg-card__icon { width: 42px; height: 42px; border-radius: 12px; background: #dcfce7; color: #15803d; display: grid; place-items: center; flex-shrink: 0; }
.msg-card__icon svg { width: 22px; height: 22px; }
.msg-card__who { display: flex; flex-direction: column; flex: 1; min-width: 160px; font-size: 17px; }
.msg-kind { background: #eef2ff; color: #3730a3; }
.msg-card__text { background: #f6f8fc; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: #374151; }
.msg-card__lines { white-space: pre-line; line-height: 1.5; max-height: 3em; overflow: hidden; }
.msg-card__text.is-open .msg-card__lines { max-height: none; }
.msg-card__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-card__space { flex: 1; }
.msg-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg-log li { display: flex; gap: 10px; align-items: flex-start; }
.msg-log li > svg { width: 18px; height: 18px; margin-top: 3px; color: #15803d; flex-shrink: 0; }
.msg-log li.is-pending > svg { color: #c2410c; }
.msg-log li.is-failed > svg, .msg-log li.is-skipped > svg { color: #9ca3af; }
.msg-log__what { display: flex; flex-direction: column; }
.msg-settings .center { text-align: center; }
.check-big input { width: 24px; height: 24px; accent-color: var(--brand); cursor: pointer; }
@media (max-width: 760px) {
    .msg-card__actions .btn-whatsapp { width: 100%; justify-content: center; }
}

/* Dashboard money (managers, directors): taken in today, still to pay, invoiced this month, cash counts */
.money-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.money-tile { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
    color: inherit; text-decoration: none; }
.money-tile.is-alert { border-color: #fecaca; background: #fff8f8; }
.money-tile__label { font-size: 14px; font-weight: 700; color: #5f6b85; margin-bottom: 4px; }
.money-tile__value { font-size: 22px; font-weight: 850; line-height: 1.25; color: var(--ink, #12203f); }
.money-tile__value.is-none { color: #c3c8cf; }
.money-tile--cash:hover { border-color: var(--brand); }
.money-tile__line { display: flex; flex-direction: column; font-size: 14px; color: #5f6b85; }
.money-tile__line strong { color: var(--ink, #12203f); font-size: 15px; }
.money-tile__line .is-due { color: #b45309; font-weight: 700; }
@media (max-width: 1100px) { .money-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .money-tiles { grid-template-columns: 1fr; } }

/* The weekly column chart: one series in the brand navy, hairline grid, the latest value labelled, a tooltip per week */
.chart-card { margin-top: 16px; }
.week-chart { width: 100%; height: auto; display: block; }
.week-chart__grid { stroke: #e5e7eb; stroke-width: 1; }
.week-chart__base { stroke: #cfd5e1; stroke-width: 1; }
.week-chart__tick { font-size: 12px; fill: #6b7280; font-variant-numeric: tabular-nums; }
.week-chart__value { font-size: 13px; font-weight: 800; fill: #111827; }
.week-chart__mark { fill: #002d80; }
.week-chart__hit { fill: transparent; }
.week-chart__bar:hover .week-chart__hit { fill: #f3f6fb; }

/* Reports: the filter bar, the period line, the totals rows */
.report-tiles .task { min-height: 0; }
.report-filter { margin-bottom: 8px; }
.report-filter .card__body { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.report-filter__dates { display: flex; gap: 12px; flex-wrap: wrap; }
.report-filter__dates .field, .report-filter__office { margin: 0; min-width: 170px; }
.report-period { margin: 14px 0 0; font-weight: 750; color: #5f6b85; }
.report-table tr.is-total td { font-weight: 850; background: #f3f6fb; border-top: 2px solid var(--line); }
.report-table td { font-variant-numeric: tabular-nums; }
.report-table th { white-space: normal; vertical-align: bottom; }
@media (min-width: 761px) {
    .report-table td.nowrap { white-space: nowrap; }
    .report-table th, .report-table td { padding-left: 12px; padding-right: 12px; }
}
.report-body.is-loading { opacity: .5; transition: opacity .2s; }

/* The live demo: the banner on every screen and the one-click roles on its login page */
.demo-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 18px; background: #fdcb00; color: #001233; font-size: 14.5px; }
.demo-banner svg { width: 18px; height: 18px; flex-shrink: 0; }
.demo-banner a { margin-left: auto; color: #001233; font-weight: 800; }
.auth__panel > .demo-banner { border-radius: 12px; margin-bottom: 14px; }
.demo-roles { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.demo-role { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff;
    color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.demo-role:hover { border-color: var(--brand); transform: translateX(4px); }
.demo-role > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #eef3ff; color: var(--brand); flex-shrink: 0; }
.demo-role span { display: flex; flex-direction: column; }
.demo-role strong { font-size: 18px; }
.demo-role small { color: #5f6b85; font-size: 14.5px; }

/* Tracking for customers */
.track-card { margin-bottom: 16px; }
.track-now { display: inline-block; font-weight: 850; font-size: 18px; padding: 6px 14px; border-radius: 999px; background: #eef2ff; color: #3730a3; margin-bottom: 14px; }
.track-now--ready_for_pickup { background: #dcfce7; color: #15803d; }
.track-now--picked_up { background: #e5e7eb; color: #374151; }
.track-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.track-steps li { display: flex; gap: 14px; position: relative; padding: 0 0 18px; color: #9ca3af; }
.track-steps li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: #e5e7eb; }
.track-steps li:last-child { padding-bottom: 0; }
.track-steps li:last-child::before { display: none; }
.track-steps li.is-done { color: #111827; }
.track-steps li.is-done::before { background: var(--brand); }
.track-steps__dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #d1d5db; background: #fff; flex-shrink: 0; margin-top: 2px; }
.track-steps li.is-done .track-steps__dot { border-color: var(--brand); background: var(--brand); }
.track-steps li.is-now .track-steps__dot { border-color: var(--gold, #fdcb00); background: var(--brand); box-shadow: 0 0 0 4px #fff3c4; }
.track-steps strong { display: block; font-size: 17px; }
.track-steps small { display: block; color: #6b7280; font-size: 14px; }
.track-links { display: flex; flex-wrap: wrap; gap: 8px; }
.track-lang { text-align: center; color: #6b7280; margin: 6px 0 0; }
.track-mini { margin: 18px auto 0; max-width: 420px; text-align: left; }
.track-mini label { display: block; font-weight: 700; margin-bottom: 6px; }
.track-mini__row { display: flex; gap: 10px; }
.track-mini__row .input { flex: 1; font-size: 20px; letter-spacing: .2em; }
