/* Fleeta Admin panel — styles */
:root {
  --red: #0FB5A6;
  --red-dark: #0C8B80;
  --red-tint: #E6F7F5;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --muted: #8A8A8A;
  --line: #E2E2E2;
  --bg: #f4f4f4;
  --green: #2E7D32;
  --blue: #1976D2;
  --orange: #FFA500;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}

/* ─── Login shell ───────────────────────────────────────────────────────── */
.login-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.login-header {
  background: var(--red);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-header .logo {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.login-header h1 { font-size: 18px; font-weight: 600; line-height: 1.2; }
.login-header .sub { font-size: 12px; opacity: 0.9; line-height: 1.3; }
.login-shell main { flex: 1; padding: 16px; max-width: 720px; margin: 0 auto; width: 100%; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.welcome-title { font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.welcome-text { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.welcome-text strong { color: var(--red); }

/* ─── Offline blocker ───────────────────────────────────────────────────── */
.offline-blocker {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.offline-blocker h2 { font-size: 22px; margin-bottom: 8px; }
.offline-blocker p { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 320px; }
.offline-blocker .icon { font-size: 64px; margin-bottom: 16px; }

/* ─── Header ────────────────────────────────────────────────────────────── */
header {
  background: var(--red);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .logo {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
header h1 { font-size: 16px; font-weight: 600; line-height: 1.2; }
header .sub { font-size: 11px; opacity: 0.9; line-height: 1.3; }

/* ─── Tabs ──────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 64px;
  z-index: 49;
  overflow-x: auto;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
  white-space: nowrap;
}
.tab.active { color: var(--red); border-bottom-color: var(--red); }
.tab .count {
  font-size: 10px;
  color: var(--muted);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}
.tab.active .count { background: var(--red-tint); color: var(--red); }
/* Unseen task-status count on the Tasks tab. Red bubble so it reads as an
   alert regardless of whether the tab is active. */
.tab-badge {
  font-size: 10px;
  color: #fff;
  background: var(--red);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}

/* ─── Main ──────────────────────────────────────────────────────────────── */
main {
  padding: 16px;
  padding-bottom: 60px;
  max-width: 720px;
  margin: 0 auto;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.search {
  margin: 12px 0;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(200,16,46,0.3);
  margin-bottom: 12px;
}
.btn-primary:disabled { opacity: 0.5; box-shadow: none; cursor: not-allowed; }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }

.btn-secondary {
  padding: 12px 20px;
  background: #f4f4f4;
  color: var(--ink-soft);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:active { background: #e8e8e8; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
  color: var(--muted);
}
.btn-icon:hover { background: #f4f4f4; color: var(--red); }
.btn-icon.danger:hover { color: #d00; }

/* ─── List ──────────────────────────────────────────────────────────────── */
.list { margin-top: 8px; }
.list-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.list-item .info { flex: 1; min-width: 0; }
.list-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item p {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item.archived { opacity: 0.55; background: #f9f9f9; }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-left: 4px;
}
.badge.fixed { background: var(--ink-soft); }
.badge.city { background: var(--blue); }
.badge.flexible { background: var(--green); }
.badge.global { background: var(--red); }
.badge.archived { background: var(--muted); }

/* ─── Form fields ───────────────────────────────────────────────────────── */
.field-group { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field-input, select.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  background: #fafafa;
  font-family: inherit;
  -webkit-appearance: none;
}
.field-input:focus { outline: none; border-color: var(--red); background: #fff; }

.field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ─── Chip selector ─────────────────────────────────────────────────────── */
.chip-row { display: flex; gap: 8px; }
.chip {
  flex: 1;
  padding: 10px;
  background: #f4f4f4;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.chip.active {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
}

/* ─── Modal ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  padding: 0;
}
@media (min-width: 600px) {
  .modal { align-items: center; padding: 20px; }
}
.modal-card {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 600px) {
  .modal-card { border-radius: 16px; }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 17px; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.modal-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* ─── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  max-width: 90%;
}
.toast.show { opacity: 1; }
.toast.error { background: #d00; }
.toast.success { background: var(--green); }

/* ─── Empty state ───────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty .icon { font-size: 48px; margin-bottom: 12px; }
.empty h2 { font-size: 16px; color: var(--ink-soft); margin-bottom: 6px; }
.empty p { font-size: 13px; }

/* ─── Reports tab ───────────────────────────────────────────────────────── */
.report-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--line);
}
.report-card h2 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 4px;
}
.report-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.report-row {
  display: flex;
  gap: 12px;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.report-actions button { flex: 1; min-width: 140px; }

/* v4.6: Fuel-cost editor list */
.fc-stops { margin-top: 12px; }
.fc-stops:empty { display: none; }
.fc-stop {
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.fc-stop.pending { background: #fff8e6; border-color: #f0d090; }
.fc-stop .meta { font-size: 12px; color: #666; margin-bottom: 6px; }
.fc-stop .row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fc-stop .row { flex-wrap: wrap; }
.fc-stop .row input {
  flex: 0 1 auto;
  padding: 8px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
}
/* v4.8.6: inline labels + unit for the amount/cost editor */
.fc-stop .row .fc-lbl { font-size: 11px; color: #888; font-weight: 600; }
.fc-stop .row .fc-unit { font-size: 12px; color: #555; margin-left: -4px; }
.fc-stop .meta .muted { color: #aaa; }
.fc-stop .row .save {
  background: #0FB5A6;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.fc-stop .row .save:disabled { background: #ccc; cursor: default; }
.fc-stop .row .del {
  background: #fff;
  color: #d00;
  border: 1px solid #e2b0b0;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.fc-stop .row .del:hover { background: #fff0f0; }
.fc-stop .row .del:disabled { opacity: 0.4; cursor: default; }
.fc-stop .status { font-size: 11px; margin-top: 4px; min-height: 14px; }
.fc-stop .status.ok { color: #2E7D32; }
.fc-stop .status.err { color: #d00; }
.fc-empty { padding: 20px; text-align: center; color: #999; font-size: 13px; }

/* v4.8.18: Fuel costs tab — pending filter, changed-row accent, save bar */
.fc-pending-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #555; margin: 4px 0 12px; cursor: pointer;
}
.fc-pending-toggle input { width: auto; }
.fc-stop.changed { border-color: #2E7D32; box-shadow: inset 3px 0 0 #2E7D32; }
.fc-savebar {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 14px; padding: 12px 14px;
  background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 8px;
}
.fc-summary { font-size: 13px; color: #555; }

/* v4.8.7: Trips tab list */
.trips-list { margin-top: 12px; }
.trip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.trip-main { font-size: 13px; line-height: 1.5; }
.trip-sub { font-size: 12px; color: #666; }
.trip-actions { display: flex; gap: 6px; flex-shrink: 0; }
.trip-warn { color: #d00; font-weight: 600; }
/* v4.8.9: per-refuel breakdown plates in the trips list */
.trip-stops { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.trip-stop {
  font-size: 12.5px; background: #FFF6F7; border: 1px solid #F3D6DB;
  border-radius: 6px; padding: 4px 9px; width: fit-content;
}
.trip-stop.ev { background: #EEF5FD; border-color: #CFE2F7; }
.trip-stop .trip-pend { color: #A06A00; font-style: italic; }
.trip-nofuel { margin-top: 6px; font-size: 12px; color: #999; font-style: italic; }

/* v4.8.7: mini fuel-stop editor inside the trip-edit modal */
.mini-stop {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.mini-stop.add { border-bottom: none; padding-top: 10px; }
.mini-stop input { padding: 6px 8px; border: 1px solid #d0d0d0; border-radius: 6px; font-size: 13px; }
.mini-stop .ms-save, .mini-stop .ms-add {
  background: #0FB5A6; color: #fff; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.mini-stop .ms-del {
  background: #fff; color: #d00; border: 1px solid #e2b0b0; padding: 6px 8px; border-radius: 6px; cursor: pointer;
}

/* v4.8.7: maintenance add form + editable rows */
.svc-add { background: #f8f8f8; border: 1px solid #e8e8e8; border-radius: 8px; padding: 10px 12px; }
.svc-edit-row { border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.svc-edit-head { font-size: 13px; margin-bottom: 6px; }

/* v4.8.6: destructive action button (e.g. Delete trip) */
.btn-danger {
  background: #0FB5A6;
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.btn-danger:hover { background: #0C8B80; }
.btn-danger:active { transform: translateY(1px); }
/* Compact button modifier (used in dense lists / dashboard tables). */
.btn-small { padding: 5px 11px; font-size: 12px; border-radius: 7px; width: auto; }
/* Neutral (grey) variant for the compact secondary action in review rows. */
.btn-neutral { background: #eceded; color: #333; border: none; cursor: pointer; font-weight: 600; }
.btn-neutral:hover { background: #e0e2e2; }
/* Needs-review / consumption dashboard blocks. */
.rev-block { margin: 12px 0 4px; }
.rev-block h3 { margin: 0 0 4px; }
.rev-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.rev-table td { padding: 4px 6px; border-bottom: 1px solid #f0f1f1; vertical-align: middle; }
.rev-reason { color: #a15; font-size: 12px; }
.rev-warn { color: #b26a00; }

/* v4.8.0: Maintenance log modal rows */
.svc-log-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #E2E2E2;
}
.svc-log-row:last-child { border-bottom: none; }
.svc-log-icon { font-size: 22px; }
.svc-log-body { flex: 1; }
.svc-log-body strong { font-size: 13px; color: #1A1A1A; display: block; margin-bottom: 2px; }
.svc-log-body p { font-size: 12px; color: #4A4A4A; }
.svc-log-body .svc-log-by { font-size: 11px; color: #8A8A8A; font-style: italic; margin-top: 2px; }
.badge-service { background: #FCEBEE; color: #0FB5A6; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-left: 4px; }
.badge-wash    { background: #E3F2FD; color: #1565C0; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-left: 4px; }

/* v4.7.0: Vehicle checkbox list (edit-driver modal) */
.vlist {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}
.vlist-header {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 6px 4px;
  margin-top: 4px;
  border-top: 1px solid #f4f4f4;
}
.vlist-header:first-child { margin-top: 0; border-top: none; }
.vlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.vlist-row:active { background: var(--red-tint); }
.vlist-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.vlist-row span { flex: 1; color: var(--ink); }

/* v5.1: settings rows (workflow / reports toggles) */
.set-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.set-row:last-child{border-bottom:none}
.set-info{flex:1}
.set-title{font-weight:600}
.set-desc{color:var(--muted);font-size:13px;margin-top:2px;max-width:600px}
.seg2{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;flex:none}
.seg2-btn{border:none;background:#fff;padding:9px 16px;cursor:pointer;font-size:14px;color:var(--ink)}
.seg2-btn.on{background:var(--red);color:#fff}

/* v5.1: FAQ accordion */
.faq{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.faq details{border-bottom:1px solid var(--line)}
.faq details:last-child{border-bottom:none}
.faq summary{padding:13px 14px;cursor:pointer;font-weight:600;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary:before{content:'▸ ';color:var(--red)}
.faq details[open] summary:before{content:'▾ '}
.faq .faq-a{padding:0 14px 14px;color:var(--ink-soft);font-size:14px;line-height:1.55}
.faq .faq-a code{background:#f1f1f1;border-radius:4px;padding:1px 5px}

/* ── v5.3: Fleeta polish ──────────────────────────────────────────────── */
header, .login-header { background: linear-gradient(120deg, var(--red), var(--red-dark)); }
header .logo, .login-header .logo { color: var(--red); }
header .logo svg, .login-header .logo svg { display: block; }
.report-card { border-radius: 14px; box-shadow: 0 1px 3px rgba(20,60,50,.05); }
.list-item { border-radius: 12px; }
/* subscription banner shown in the app + login */
.sub-banner { display:flex; align-items:center; gap:10px; padding:11px 16px; font-size:13px; font-weight:600;
  background:#fff3df; color:#9a6700; border-bottom:1px solid #ffe1a8; }
.sub-banner.expired { background:#fde8e8; color:#b42318; border-bottom-color:#f6c6c6; }
.sub-banner .x { margin-left:auto; background:var(--red); color:#fff; border:none; border-radius:8px; padding:6px 12px; font-weight:700; cursor:pointer; }

/* ════ Depot 17 rebrand (v5.5.3) — additive cosmetic overrides; no DOM/handler changes ════ */
body { font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f4f6f5; }
/* Gradient headers + translucent icon chip holding the white "17" mark */
header, .login-header { background: linear-gradient(135deg, #13b9a8, #0b8174); }
header .logo, .login-header .logo {
  width: 48px; height: 48px; background: transparent; border-radius: 13px; color: #fff; overflow: hidden;
}
header h1, .login-header h1 { font-weight: 800; letter-spacing: -0.2px; }
/* Pill tabs — scrollable chips, filled when active (matches the mockup) */
.tabs { gap: 7px; padding: 10px 12px; border-bottom: 1px solid #ebeeed; }
.tab {
  flex: 0 0 auto; flex-direction: row; min-width: 0; gap: 5px;
  padding: 7px 12px; border-bottom: none; border-radius: 9px;
  background: #f1f3f2; color: #8a908e; font-weight: 700; font-size: 12.5px;
}
.tab.active { background: var(--red); color: #fff; border-bottom: none; }
.tab .count { background: rgba(255,255,255,0.30); color: inherit; }
.tab.active .count { background: rgba(255,255,255,0.28); color: #fff; }
/* Cards & rows */
.list-item { border: 1px solid #ebeeed; border-radius: 13px; box-shadow: none; padding: 12px 13px; }
.report-card { border: 1px solid #ebeeed; border-radius: 15px; box-shadow: none; }
/* Inputs + labels */
.field-input, select.field-input {
  border: 1.5px solid #e1e5e4; border-radius: 11px; background: #fff;
  font-size: 14px; font-weight: 600; padding: 11px 13px;
}
.field-label { font-size: 10.5px; font-weight: 700; color: #8a908e; }
/* Chips */
.chip { background: #fff; border: 1.5px solid #e1e5e4; border-radius: 11px; color: #6b7170; font-weight: 700; }
.chip.active { background: var(--red-tint); border-color: var(--red); color: var(--red-dark); }
/* Primary button — teal shadow (was a stale old-red), sentence case */
.btn-primary { border-radius: 12px; text-transform: none; letter-spacing: 0.2px; box-shadow: 0 5px 14px rgba(15,181,166,0.30); }
/* Modal sheet chrome */
.modal-card { border-radius: 24px 24px 0 0; }
@media (min-width: 600px) { .modal-card { border-radius: 20px; } }
.modal-head h2 { font-weight: 800; }
.modal-close { width: 30px; height: 30px; border-radius: 9px; background: #f1f3f2; font-size: 18px; line-height: 1; }
/* Inline Depot 17 line-icons (search / delete etc.) recolour via currentColor */
.ic { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---- v5.12: overview onboarding checklist ---- */
.ob-card { border-left: 4px solid #0FB5A6; }
.ob-step { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #f0f2f1; font-size: 14px; }
.ob-step:last-child { border-bottom: none; }
.ob-step[data-obtab] { cursor: pointer; }
.ob-step[data-obtab]:hover { background: #f7fbfa; }
.ob-step .ob-mark { width: 26px; height: 26px; border-radius: 50%; background: #E6F7F5; color: #0C8B80; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ob-step.done { color: #9aa6a3; text-decoration: line-through; }
.ob-step.done .ob-mark { background: #0FB5A6; color: #fff; }
.ob-step .ob-go { margin-left: auto; color: #0FB5A6; font-weight: 700; }

/* ---- Task photo documents (waybill / ТТН) grid ---- */
.td-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 4px; }
.td-doc { position: relative; border: 1px solid #ebeeed; border-radius: 11px; overflow: hidden; background: #fff; }
.td-doc-thumb { display: block; width: 100%; height: 84px; object-fit: cover; background: #f1f3f2; cursor: pointer; }
.td-doc-meta { padding: 5px 6px; font-size: 10px; color: #8a908e; line-height: 1.3; }
.td-doc-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: none; border-radius: 7px; background: rgba(15,181,166,0.92); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.td-doc-del:hover { background: var(--red-dark); }
