/* ePOD office portal -- visual refresh layer (loaded after styles.css + theme.css).
   Calmer screen: red only where something's wrong, sentence-case labels,
   one solid button per area, the activity feed as a quiet list. */

/* Dark mode keeps the status colours it was tuned with (theme.css darkens them for
   light backgrounds, which would make green/blue text on dark surfaces harder to read). */
html[data-theme="dark"] { --action: #e8ecf0; --blue: #5F6670; --green: #5A9670; --amber: #D9944F; --warning: #D9944F; --line-soft: #2a323c; }
/* v0.8.94 brand on dark: Moss light for links and selected text (the guide's "accent on
   dark backgrounds"), no Steel blue. */
html[data-theme="dark"] { --link: #94C7A6; --accent-soft: #1C3325; --blue-soft: #262A31; --control-line: #5F6670; }
html[data-theme="dark"] .primary-button { background: var(--action); border-color: var(--action); color: #14181d; }
html[data-theme="dark"] .primary-button:disabled { background: #2f3741; border-color: #2f3741; color: #9aa3ad; }

body { font-size: 15px; }

/* Header: brand colour as a mark, not a fill. */
.office-topbar { box-shadow: inset 5px 0 0 var(--brand); }
@media (min-width: 601px) { .office-topbar { padding: 10px 24px 10px 28px; } }
.office-topbar h1 { font-weight: 700; }

/* Side navigation */
.nav-group-label, .nav-online-summary { font-size: 0.8rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.office-tab { min-height: 42px; font-weight: 600; }
.office-tab.active { background: #e4e8ec; color: var(--ink); font-weight: 700; box-shadow: inset 4px 0 0 var(--brand); }
html[data-theme="dark"] .office-tab.active { background: #262d36; }
.office-tab.active .nav-badge { background: var(--red); color: #fff; }

/* Headline numbers */
.kpi { gap: 2px; padding: 12px 14px; border-radius: var(--radius); }
.kpi strong { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 0.85rem; font-weight: 600; }
.kpi.attention { border-color: #e3b866; background: var(--amber-soft); }
.kpi.attention strong { color: var(--amber); }

/* Route cards */
.route-card { border-radius: var(--radius); }
.route-card-primary h3 { font-size: 1.25rem; font-weight: 700; text-transform: none; }
.route-card-field > span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.route-card:hover, .route-card:focus-visible { border-color: var(--ink); }
.route-card:focus-visible { outline-color: var(--blue); }
.dashboard-group.attention-group > h3 { text-transform: none; letter-spacing: 0; }

/* Activity: a quiet list; new entries get a left mark instead of a red box. */
.activity-feed { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.activity-item { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
html[data-theme="dark"] .activity-item { border-bottom-color: var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-item.fresh { border-color: var(--line-soft); box-shadow: inset 3px 0 0 var(--blue); }

/* Labels everywhere: sentence case */
.eyebrow, .section-eyebrow, .detail-stat-label, .kpi-label { text-transform: none; letter-spacing: 0; }

.primary-button.small, .ghost-button.small { min-height: 36px; }
.route-card-status, .route-card-status * { text-transform: none; letter-spacing: 0; }

/* Remaining capitalised labels -> sentence case, a touch larger to stay readable.
   (The POD document's own letterhead, .pod-brand, is left exactly as it prints.) */
.nav-group-label, .nav-online-summary, .settings-nav-label, .route-card-field > span, .fact > span,
.drop-note-label, .pod-history-group, .pod-history-label, .event-group legend, .form-subhead,
.settings-row-badge, .route-status-label, .pod-history-status {
  text-transform: none;
  letter-spacing: 0;
}
.fact > span, .route-card-field > span, .pod-history-label, .settings-nav-label { font-size: 0.82rem; font-weight: 600; }
.report-section th, .edit-table th, .items-table th, .grouping-review-table th { text-transform: none; letter-spacing: 0; font-size: 0.82rem; }
.route-card-primary h3, .pod-history-title { text-transform: none; }

/* The on-screen POD preview keeps the document's own typeface, so it matches the PDF. */
.pod-print, .pod-print * { font-family: Aptos, Arial, Helvetica, sans-serif; }

/* Check against Hansa (v0.8.51): amber, like other things waiting on the office. */
.hansa-check-panel { border-color: var(--amber, #b26b00); background: var(--amber-soft, #fff4e0); }
.hansa-check-panel h3 .tag { margin-left: 6px; vertical-align: middle; }
.hansa-check-panel .pickup-requests-list { display: grid; gap: 8px; margin-top: 10px; }
.hansa-change-text { margin: 4px 0 2px; }
.hansa-change-row.checked { opacity: 0.75; }
.slot-question-row .pickup-request-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* v0.8.54: phone numbers found in the wrong Hansa field (detail.mjs renderPhoneCheckPanel). */
.phone-check-panel { border-color: var(--amber, #b26b00); background: var(--amber-soft, #fff4e0); }
.phone-check-panel h3 .tag { margin-left: 6px; vertical-align: middle; }
.phone-check-panel .pickup-requests-list { display: grid; gap: 8px; margin-top: 10px; }
.phone-check-row .pickup-request-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.phone-check-row.checked { opacity: 0.8; }
.phone-check-where { margin: 4px 0 2px; overflow-wrap: anywhere; }

/* v0.8.54: an item's description on the route page keeps to two lines and ends "…"; the
   full text is in its tooltip and under "Hansa lines" when the item is opened. */
.manager-item-row .desc-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* v0.8.55: adding a phone number by hand on a drop's page (detail.mjs phoneEditor). */
.phone-editor { margin: 6px 0 4px; }
.phone-missing { margin: 4px 0; }
.phone-added-list { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; }
.phone-added-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phone-add > summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
.phone-add-form { display: grid; gap: 8px; max-width: 360px; margin: 6px 0; }
.phone-add-form label { display: grid; gap: 4px; }
.phone-add-error { color: var(--danger, #b42318); margin: 0; }

/* v0.8.57: a collection drop (goods collected from the customer). */
.tag.collection-tag { background: #ece6f7; color: #3f2a78; border-color: #c9b8ee; }
