:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f0f3f8;
  --text: #172033;
  --muted: #667085;
  --line: #d8dee8;
  --primary: #1f5eff;
  --primary-dark: #184bd0;
  --danger: #d92d20;
  --danger-bg: #fff1f0;
  --warning: #b54708;
  --warning-bg: #fff7e8;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --shadow: 0 14px 40px rgba(22, 34, 51, 0.10);
  --radius: 16px;
  --weeks: 53;
  --left-col: 440px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
code {
  background: #eef2f7;
  padding: 2px 5px;
  border-radius: 6px;
}

.app-shell {
  width: min(1840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 3vw, 42px); }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.subheadline { margin: 8px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

.top-actions, .dialog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.spacer { flex: 1; }

.btn, .icon-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: .15s ease;
}
.btn {
  padding: 10px 14px;
  min-height: 42px;
}
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { background: white; color: var(--text); border-color: var(--line); }
.btn.secondary:hover { background: var(--panel-2); }
.btn.danger { background: #fff; color: var(--danger); border-color: #ffc9c3; }
.btn.danger:hover { background: var(--danger-bg); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  font-size: 22px;
}

.status {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(22, 34, 51, .05);
}
.card .label { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.card .value { font-size: 24px; font-weight: 800; }
.card .note { margin-top: 4px; color: var(--muted); font-size: 12px; }
.card.danger-card { background: var(--danger-bg); border-color: #ffccc7; }
.card.warning-card { background: var(--warning-bg); border-color: #fedf89; }

.settings-panel, .filters {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.field.wide { grid-column: 1 / -1; }
.field.compact { min-width: 220px; }
.field label, .checkline { font-size: 13px; font-weight: 700; color: #344054; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,94,255,.12);
}
.input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-row span {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.checkline input { width: auto; }

.dashboard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.loading { padding: 28px; color: var(--muted); }

.grid-wrap { overflow-x: auto; }
.grid-row {
  display: grid;
  grid-template-columns: var(--left-col) minmax(780px, 1fr);
  min-width: 1240px;
  border-bottom: 1px solid var(--line);
}
.grid-row:last-child { border-bottom: 0; }
.left-head, .task-left {
  background: #fff;
  border-right: 1px solid var(--line);
}
.left-head {
  padding: 12px 14px;
  position: sticky;
  left: 0;
  z-index: 4;
  font-weight: 800;
}
.timeline-head { background: #fff; }
.months-row, .weeks-row, .summary-row, .task-timeline {
  display: grid;
  grid-template-columns: repeat(var(--weeks), minmax(28px, 1fr));
}
.month-cell, .week-cell, .summary-cell, .timeline-cell {
  min-height: 28px;
  border-right: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.month-cell {
  color: #344054;
  font-weight: 800;
  background: #f9fafb;
}
.month-cell.blank { color: transparent; }
.week-cell { color: var(--muted); background: #fff; }
.summary-cell {
  min-height: 40px;
  background: #fcfcfd;
  cursor: pointer;
}
.summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1849a9;
  font-weight: 800;
  font-size: 11px;
}
.summary-cell:hover { background: #eef4ff; }

.task-left {
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 12px 14px;
}
.task-mainline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: flex-start;
}
.done-btn {
  width: 28px;
  height: 28px;
  border: 2px solid #98a2b3;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: transparent;
  font-weight: 900;
}
.done-btn:hover { border-color: var(--primary); color: var(--primary); }
.task-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 5px;
}
.task-title { font-weight: 800; }
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge.category { background: #eef2f7; color: #344054; }
.badge.mode { background: #f4f3ff; color: #5925dc; }
.badge.important { background: #fff1f0; color: #b42318; border-color: #ffccc7; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.soon { background: var(--warning-bg); color: var(--warning); }
.badge.overdue { background: var(--danger-bg); color: var(--danger); }
.task-tools { display: flex; gap: 6px; }
.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 6px 8px;
  min-width: 32px;
  font-weight: 800;
}
.mini-btn:hover { background: var(--panel-2); }
.info-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 900;
  cursor: help;
}
.task-timeline { min-height: 76px; background: #fff; }
.timeline-cell { min-height: 76px; position: relative; }
.timeline-cell.due { background: #f8fbff; }
.timeline-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,94,255,.12);
}
.timeline-marker.overdue { background: var(--danger); box-shadow: 0 0 0 4px rgba(217,45,32,.12); }
.timeline-marker.soon { background: #f79009; box-shadow: 0 0 0 4px rgba(247,144,9,.16); }
.empty-state { padding: 28px; color: var(--muted); }

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 92vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .2s ease;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.side-panel.open { transform: translateX(0); }
.side-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.side-panel-content { padding: 18px; overflow: auto; }
.week-task {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.week-task p { margin: 6px 0 0; }

.dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(920px, calc(100vw - 26px));
  box-shadow: var(--shadow);
}
.small-dialog { width: min(470px, calc(100vw - 26px)); }
.dialog::backdrop { background: rgba(16, 24, 40, .42); }
.dialog-card { padding: 0; background: #fff; }
.dialog-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.form-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dialog-actions {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}
.dialog-check { align-self: end; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(120%);
  background: #101828;
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 30;
  transition: transform .2s ease;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast button {
  border: 0;
  background: #fff;
  color: #101828;
  border-radius: 10px;
  padding: 7px 9px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 920px) {
  :root { --left-col: 360px; }
  .topbar { flex-direction: column; }
  .status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 18px, 100%); padding-top: 12px; }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; }
  .status { grid-template-columns: 1fr; }
  .settings-panel, .filters { align-items: stretch; }
  .field, .field.compact { width: 100%; min-width: 0; }
  .grid-row { grid-template-columns: 310px minmax(1000px, 1fr); min-width: 1310px; }
  .timeline-cell, .summary-cell { min-width: 28px; }
}

.top-right { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.stk-header { min-width:350px; padding:14px 18px; border:2px solid #f79009; border-left:8px solid #f79009; background:#fff7e8; color:#7a2e0e; box-shadow:0 8px 24px rgba(181,71,8,.16); }
.stk-header .stk-label { display:block; margin-bottom:3px; color:#b54708; font-size:12px; font-weight:900; letter-spacing:.08em; }
.stk-header strong { display:block; font-size:20px; line-height:1.2; }
.stk-header small { display:block; margin-top:5px; color:#b54708; font-size:13px; font-weight:700; }
@media (max-width:920px) { .top-right { width:100%; align-items:stretch; } .stk-header { min-width:0; } }

/* Modern four-month overview */
:root { --left-col: 430px; --radius: 7px; --shadow: 0 12px 32px rgba(23,32,51,.08); }
body { font-family: Inter,"Segoe UI",Arial,sans-serif; background:#eef1f5; }
.app-shell { width:min(1880px,calc(100% - 28px)); padding-top:18px; }
.topbar { padding:20px; background:#fff; border:1px solid var(--line); align-items:center; }
.topbar,.settings-panel,.filters,.dashboard,.card { border-radius:6px; }
h1 { font-size:32px; letter-spacing:-.03em; }
.status { grid-template-columns:repeat(4,minmax(0,1fr)); }
.card { padding:16px; box-shadow:none; }
.card .value { font-size:22px; }
.settings-panel,.filters { padding:12px 14px; gap:12px; }
.settings-panel .muted { margin:0 0 2px auto; }
input,select,textarea,.btn,.icon-btn { border-radius:5px; }
.dashboard { overflow-x:auto; box-shadow:var(--shadow); }
.service-table { min-width:1180px; }
.service-grid { display:grid; grid-template-columns:var(--left-col) minmax(750px,1fr); }
.service-grid-head { position:sticky; top:0; z-index:8; border-bottom:1px solid #cfd6e2; }
.task-column-head { padding:15px 16px; background:#172033; color:#fff; border-right:1px solid #39445a; }
.task-column-head span,.month-column-head span { display:block; font-size:13px; font-weight:800; text-transform:capitalize; }
.task-column-head small,.month-column-head small { display:block; margin-top:5px; color:#b9c2d0; font-size:11px; }
.month-columns { display:grid; grid-template-columns:repeat(4,minmax(180px,1fr)); }
.month-column-head { min-height:64px; padding:10px 9px; border:0; border-right:1px solid #39445a; background:#172033; color:#fff; cursor:pointer; text-align:left; }
.month-column-head:hover { background:#22304a; }
.service-body .task-row { min-height:82px; border-bottom:1px solid #e1e5ec; }
.service-body .task-row:hover .task-left,.service-body .task-row:hover .month-task-cell { background:#f8faff; }
.task-left { position:sticky; left:0; z-index:3; display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:11px; align-items:center; padding:12px 14px; border-right:1px solid #d8dee8; background:#fff; }
.task-copy { min-width:0; }
.task-title-row { margin:0 0 7px; gap:8px; }
.task-title { font-size:14px; font-weight:800; line-height:1.25; }
.priority-mark { padding:2px 5px; border:1px solid #f4b183; color:#a33b00; background:#fff7ed; font-size:10px; font-weight:800; text-transform:uppercase; }
.task-context { display:flex; flex-wrap:wrap; gap:5px 10px; color:#667085; font-size:11px; }
.task-context>span:not(.info-dot)+span:not(.info-dot)::before { content:"·"; margin-right:10px; color:#aab2c0; }
.done-btn { border-radius:4px; }
.edit-btn { padding:6px 8px; border:1px solid #d8dee8; border-radius:4px; background:#fff; color:#344054; font-size:11px; font-weight:700; cursor:pointer; }
.edit-btn:hover { border-color:#1f5eff; color:#1f5eff; }
.task-months { min-height:82px; }
.month-task-cell { display:flex; align-items:center; justify-content:center; padding:8px; border-right:1px solid #edf0f4; background:#fff; }
.month-task-cell.has-task { background:#f7f9fc; }
.due-card { width:100%; padding:8px; border:1px solid #b8c8ee; border-left:4px solid #1f5eff; border-radius:4px; background:#eef4ff; color:#173b80; text-align:left; cursor:pointer; }
.due-card strong { display:block; font-size:12px; }
.due-card span { display:block; margin-top:3px; font-size:10px; font-weight:700; }
.due-card.soon { border-color:#f5c27a; border-left-color:#f79009; background:#fff7e8; color:#8a3a00; }
.due-card.overdue { border-color:#f1aaa4; border-left-color:#d92d20; background:#fff1f0; color:#9b1c14; }
.stk-header { border-radius:5px; }
@media(max-width:1100px){:root{--left-col:360px}.status{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-panel .muted{width:100%;margin-left:0}}
@media(max-width:700px){.app-shell{width:calc(100% - 12px)}.topbar{padding:14px}h1{font-size:27px}.status{grid-template-columns:1fr}.service-grid{grid-template-columns:320px minmax(750px,1fr)}}

/* Refined contemporary visual layer */
:root {
  --bg: #f3f5f8;
  --panel-2: #f7f8fa;
  --line: #dfe3ea;
  --primary: #155eef;
  --primary-dark: #004eeb;
  --text: #101828;
  --muted: #667085;
}
body { background: linear-gradient(180deg,#eef3f9 0,#f6f7f9 280px,#f3f5f8 100%); }
.topbar { border:0; border-top:4px solid var(--primary); box-shadow:0 8px 24px rgba(16,24,40,.07); }
.eyebrow { color:#155eef; letter-spacing:.12em; }
.subheadline { font-size:14px; }
.card { border:0; box-shadow:0 3px 12px rgba(16,24,40,.06); }
.card .label { font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:11px; }
.settings-panel,.filters { border:0; box-shadow:0 3px 12px rgba(16,24,40,.05); }
.btn { min-height:40px; letter-spacing:.01em; }
.btn.primary { box-shadow:0 4px 10px rgba(21,94,239,.22); }
.dashboard { border:0; }
.task-column-head,.month-column-head { background:#111827; }
.month-column-head { min-height:70px; padding:13px 14px; }
.month-column-head span { font-size:14px; }
.month-column-head small { margin-top:6px; }
.service-body .task-row { min-height:76px; }
.task-left { padding:11px 14px; }
.task-title { font-size:13px; letter-spacing:-.01em; }
.month-task-cell { padding:10px; }
.due-card { padding:10px; box-shadow:0 2px 7px rgba(21,94,239,.08); }
.due-card:hover { transform:translateY(-1px); box-shadow:0 5px 12px rgba(21,94,239,.14); }
.due-card,.btn,.edit-btn,.month-column-head { transition:.15s ease; }
.stk-header { min-width:360px; background:#fff8eb; box-shadow:0 5px 14px rgba(181,71,8,.10); }
@media(max-width:900px){.month-columns{grid-template-columns:repeat(4,minmax(160px,1fr))}}


/* Vehicle identification */
.vehicle-info {
  display: grid;
  grid-template-columns: 150px minmax(360px, 1fr);
  gap: 10px;
  align-items: stretch;
}
.plate-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
  padding: 11px 14px;
  border: 2px solid #172033;
  border-left: 10px solid #155eef;
  border-radius: 5px;
  background: #fff;
  color: #101828;
  box-shadow: 0 5px 14px rgba(16,24,40,.10);
}
.plate-label {
  margin-bottom: 4px;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.plate-box strong {
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}
.vehicle-info .stk-header {
  min-width: 0;
}
@media (max-width: 920px) {
  .vehicle-info { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .vehicle-info { grid-template-columns: 1fr; }
  .plate-box { min-height: 68px; }
}

/* Layout refresh 2.3 */
:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --text: #142033;
  --muted: #667085;
  --line: #d9e0e9;
  --primary: #1457d9;
  --primary-dark: #0e46b4;
  --danger: #c43228;
  --warning: #bd5b00;
  --ok: #087a50;
  --radius: 3px;
  --left-col: 410px;
}
* { box-sizing: border-box; }
body {
  background: #f4f6f9;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}
.app-shell {
  position: relative;
  width: min(1760px, calc(100% - 32px));
  padding: 16px 0 40px;
}
.page-accent {
  height: 4px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #1457d9 0 34%, #69a1ff 34% 45%, #172033 45% 100%);
}
.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .05);
}
.eyebrow { margin-bottom: 6px; color: var(--primary); font-size: 11px; letter-spacing: .16em; }
h1 { font-size: clamp(27px, 2.5vw, 36px); font-weight: 750; letter-spacing: -.035em; }
.subheadline { max-width: 620px; margin-top: 7px; font-size: 13px; }
.top-right { display: grid; grid-template-rows: 1fr auto; align-items: stretch; gap: 9px; }
.vehicle-info { display: grid; grid-template-columns: 150px 300px; gap: 8px; }
.plate-box,
.stk-header {
  min-height: 66px;
  padding: 10px 13px;
  border-radius: 2px;
  box-shadow: none;
}
.plate-box {
  border: 1px solid #aeb8c7;
  border-left: 7px solid var(--primary);
  background: #fff;
}
.plate-label { font-size: 9px; letter-spacing: .18em; }
.plate-box strong { font-size: 21px; }
.stk-header {
  border: 1px solid #e3b36d;
  border-left: 7px solid #e07a00;
  background: #fff9ee;
}
.stk-header .stk-label { font-size: 9px; letter-spacing: .16em; }
.stk-header strong { font-size: 17px; }
.stk-header small { margin-top: 3px; font-size: 11px; }
.top-actions { justify-content: flex-end; gap: 8px; }
.btn {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 12px;
  box-shadow: none !important;
}
.status {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.card {
  position: relative;
  min-height: 88px;
  padding: 14px 15px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: none;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #98a2b3;
}
.card:nth-child(1)::before { background: var(--primary); }
.card:nth-child(2)::before { background: #5b6b82; }
.card.danger-card::before { background: var(--danger); }
.card.warning-card::before { background: #e07a00; }
.card .label { margin-left: 3px; font-size: 10px; letter-spacing: .08em; }
.card .value { margin-left: 3px; font-size: 20px; line-height: 1.2; }
.card .note { margin: 5px 0 0 3px; font-size: 11px; }
.settings-panel,
.filters {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}
.settings-panel { grid-template-columns: 230px 280px 1fr; align-items: end; }
.filters { grid-template-columns: minmax(220px, 1.4fr) minmax(190px, .8fr) minmax(180px, .7fr) auto; align-items: end; }
.settings-panel .muted { align-self: center; margin: 0; text-align: right; }
.field { min-width: 0; gap: 5px; }
.field label, .checkline { font-size: 11px; }
input, select, textarea {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 2px;
  font-size: 12px;
}
.dashboard {
  border: 1px solid #cfd7e3;
  border-radius: 2px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .06);
}
.service-table { min-width: 1050px; }
.service-grid { grid-template-columns: var(--left-col) minmax(640px, 1fr); }
.service-grid-head { border-bottom: 0; }
.task-column-head,
.month-column-head {
  min-height: 58px;
  padding: 11px 13px;
  border-color: #354054;
  background: #172033;
}
.task-column-head span,
.month-column-head span { font-size: 12px; }
.task-column-head small,
.month-column-head small { margin-top: 4px; font-size: 10px; }
.month-columns { grid-template-columns: repeat(4, minmax(155px, 1fr)); }
.service-body .task-row { min-height: 68px; border-color: #e5e9ef; }
.task-left {
  min-height: 68px;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 9px 11px;
  border-color: #d9e0e9;
}
.task-title-row { margin-bottom: 5px; }
.task-title { font-size: 12px; }
.task-context { gap: 3px 8px; font-size: 10px; }
.priority-mark { padding: 1px 4px; font-size: 8px; }
.done-btn { width: 24px; height: 24px; border-radius: 2px; }
.edit-btn { padding: 5px 7px; border-radius: 2px; font-size: 10px; }
.task-months { min-height: 68px; }
.month-task-cell { min-height: 68px; padding: 7px; }
.due-card {
  padding: 7px 8px;
  border-radius: 2px;
  box-shadow: none;
}
.due-card:hover { transform: none; box-shadow: none; border-color: var(--primary); }
.due-card strong { font-size: 11px; }
.due-card span { font-size: 9px; }
.dialog,
.side-panel,
.week-task,
.toast { border-radius: 3px; }
@media (max-width: 1100px) {
  :root { --left-col: 350px; }
  .topbar { grid-template-columns: 1fr; }
  .top-right { grid-template-columns: 1fr auto; grid-template-rows: auto; }
  .vehicle-info { grid-template-columns: 150px minmax(260px, 1fr); }
  .settings-panel { grid-template-columns: 220px 260px 1fr; }
  .status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { width: calc(100% - 12px); padding-top: 6px; }
  .topbar { padding: 14px; }
  .top-right { display: flex; flex-direction: column; }
  .vehicle-info { grid-template-columns: 1fr; }
  .settings-panel,
  .filters { grid-template-columns: 1fr; }
  .settings-panel .muted { text-align: left; }
  .status { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 310px minmax(640px, 1fr); }
}

/* Remove unnecessary bottom horizontal scrollbar on desktop */
html, body { overflow-x: hidden; }
.dashboard { overflow-x: hidden; }
.service-table { width: 100%; min-width: 0; }
.service-grid { width: 100%; min-width: 0; }
.month-columns { min-width: 0; }
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .dashboard { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #98a2b3 #eef1f5; }
  .service-table { min-width: 950px; }
}

/* Definitive horizontal page scrollbar fix */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
}
.app-shell,
.topbar,
.status,
.settings-panel,
.filters,
.dashboard,
.service-table,
.service-grid,
.month-columns {
  max-width: 100%;
}
.dashboard,
.service-table {
  overflow-x: clip !important;
}
.service-table,
.service-grid {
  min-width: 0 !important;
}
.side-panel {
  max-width: 100vw;
  contain: layout paint;
}
@media (max-width: 900px) {
  html,
  body {
    overflow-x: clip !important;
  }
  .dashboard {
    overflow-x: auto !important;
    max-width: 100%;
  }
  .service-table {
    min-width: 950px !important;
  }
}

/* Hide the inactive toast completely below the viewport */
.toast {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(calc(100% + 40px)) !important;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) !important;
}

/* Item dropdown */
.item-switcher-wrap{position:relative;display:inline-block}.item-switcher{display:inline-flex;align-items:center;gap:9px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;cursor:pointer;text-align:left}.item-switcher:hover #activeItemName{color:var(--primary)}.item-switcher-arrow{font-size:.55em;color:var(--muted);transition:transform .15s}.item-switcher[aria-expanded="true"] .item-switcher-arrow{transform:rotate(180deg)}.item-dropdown{position:absolute;z-index:40;top:calc(100% + 9px);left:0;width:340px;max-width:calc(100vw - 36px);padding:8px;border:1px solid var(--line);border-radius:3px;background:#fff;box-shadow:0 14px 34px rgba(16,24,40,.16)}.item-list{display:grid;gap:4px}.item-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 11px;border:1px solid transparent;border-radius:2px;background:#fff;color:var(--text);cursor:pointer;text-align:left;font-weight:700}.item-choice:hover{background:#f4f7fb}.item-choice.active{border-color:#b8c8ee;background:#eef4ff;color:#174ea6}.item-choice small{color:var(--muted);font-weight:600}.add-item-form{margin-top:8px;padding:10px 3px 3px;border-top:1px solid var(--line)}.add-item-form label{display:block;margin-bottom:7px;font-size:11px;font-weight:700;color:#344054}.add-item-form .input-row{align-items:stretch}.add-item-form .btn{min-height:36px;white-space:nowrap}


/* Subtle item switcher */
.item-switcher-wrap { position: relative; display: inline-block; }
.item-switcher {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit;
  letter-spacing: inherit; cursor: pointer; text-align: left;
}
.item-switcher #activeItemName {
  border-bottom: 1px dashed #98a2b3;
  transition: color .15s ease, border-color .15s ease;
}
.item-switcher:hover #activeItemName,
.item-switcher[aria-expanded="true"] #activeItemName {
  color: var(--primary); border-bottom-color: var(--primary);
}
.item-switcher-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border: 1px solid #d0d5dd; border-radius: 50%; color: #667085; font-size: 13px; line-height: 1;
  transition: .15s ease;
}
.item-switcher:hover .item-switcher-arrow,
.item-switcher[aria-expanded="true"] .item-switcher-arrow {
  border-color: var(--primary); background: #eef4ff; color: var(--primary);
}
.item-switcher[aria-expanded="true"] .item-switcher-arrow { transform: rotate(180deg); }
.item-switcher-hint {
  display: block; margin: 4px 0 0; padding: 0; border: 0; background: transparent;
  color: #667085; font-size: 10px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
}
.item-switcher-hint:hover { color: var(--primary); }

/* Public app and item template wizard */
.add-item-label{display:block;margin-bottom:7px;font-size:11px;font-weight:700;color:#344054}.add-item-wide{width:100%}.item-wizard{width:min(760px,calc(100vw - 26px))}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 18px 4px}.template-card{position:relative;display:flex;min-height:165px;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:2px solid var(--line);border-radius:7px;background:#fff;cursor:pointer}.template-card:hover{border-color:#98b7ef;background:#f8faff}.template-card.selected{border-color:var(--primary);background:#eef4ff}.template-card input{position:absolute;opacity:0}.template-card strong{font-size:17px}.template-card small{color:var(--muted);line-height:1.45}.template-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:9px;background:#172033;color:#fff;font-weight:900}.template-card.selected .template-icon{background:var(--primary)}.wizard-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px}.wizard-fields .wide{grid-column:1/-1}.topbar.generic-item .vehicle-info{display:none}.topbar.generic-item .top-right{grid-template-rows:auto}@media(max-width:680px){.template-grid,.wizard-fields{grid-template-columns:1fr}.template-card{min-height:110px}.wizard-fields .wide{grid-column:auto}}


/* Distinct Home dashboard: no vehicle or mileage UI */
body.home-mode .settings-panel,body.home-mode .vehicle-info{display:none!important}body.home-mode .dashboard{border:0;box-shadow:none;background:transparent;overflow:visible!important}body.home-mode .filters{margin-top:0}body.home-mode .topbar{border-top-color:#087a50}body.home-mode .eyebrow{color:#087a50}.home-dashboard{display:grid;gap:14px}.home-dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;border:1px solid #cfe5da;background:linear-gradient(135deg,#f0faf5,#fff);box-shadow:0 5px 16px rgba(8,122,80,.06)}.home-dashboard-head h2{font-size:25px}.home-dashboard-head p:not(.eyebrow){margin:7px 0 0;color:var(--muted)}.home-dashboard-stat{display:flex;min-width:145px;flex-direction:column;align-items:flex-end}.home-dashboard-stat strong{font-size:34px;color:#087a50}.home-dashboard-stat span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.home-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-category-card{overflow:hidden;border:1px solid var(--line);background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.05)}.home-category-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid var(--line);background:#f8faf9}.home-category-head h3{margin-top:3px;font-size:16px}.home-category-kicker{font-size:9px;font-weight:800;color:#087a50;text-transform:uppercase;letter-spacing:.1em}.home-count{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#e8f6ef;color:#087a50;font-weight:800}.home-task-list{display:grid}.home-task{display:grid;grid-template-columns:34px 1fr;gap:8px;align-items:center;padding:12px 13px;border-bottom:1px solid #edf0f3}.home-task:last-child{border-bottom:0}.home-task.overdue{background:#fff7f6}.home-task.soon{background:#fffaf2}.home-check{display:grid;width:28px;height:28px;place-items:center;border:1px solid #a9b4c3;background:#fff;color:transparent;cursor:pointer}.home-check:hover{border-color:#087a50;color:#087a50}.home-task-content{display:flex;min-width:0;flex-direction:column;gap:3px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.home-task-content strong{font-size:12px;color:var(--text)}.home-task-content span{font-size:11px;color:#536070}.home-task-content small{font-size:10px;color:#8a94a3}.home-task-content:hover strong{color:#087a50}@media(max-width:1150px){.home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.home-dashboard-head{align-items:flex-start;padding:17px}.home-dashboard-stat{min-width:80px}.home-category-grid{grid-template-columns:1fr}}


/* Home chronological calendar and warranties */
.calendar-timeline{display:grid;gap:14px}.calendar-month{border:1px solid var(--line);background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.05)}.calendar-month-head{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--line);background:#f6faf8}.calendar-month-head h3{text-transform:capitalize}.calendar-month-head span{font-size:11px;color:var(--muted)}.calendar-events{display:grid}.calendar-event{display:grid;grid-template-columns:58px 30px 1fr;gap:12px;align-items:center;padding:12px 15px;border-bottom:1px solid #edf0f3;border-left:4px solid #087a50}.calendar-event:last-child{border-bottom:0}.calendar-event.soon{border-left-color:#f79009;background:#fffaf2}.calendar-event.overdue{border-left-color:#d92d20;background:#fff7f6}.calendar-date{display:flex;flex-direction:column;align-items:center;padding-right:12px;border-right:1px solid var(--line)}.calendar-date strong{font-size:22px}.calendar-date span{font-size:10px;color:var(--muted);text-transform:uppercase}.calendar-event-content{display:flex;min-width:0;flex-direction:column;gap:3px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.calendar-event-content strong{font-size:13px}.calendar-event-content span{font-size:11px;color:#536070}.calendar-event-content small{font-size:10px;color:#8a94a3}.calendar-event-content:hover strong{color:#087a50}.warranty-section{display:grid;gap:14px;margin-top:10px;padding-top:20px;border-top:3px solid #dfe6e2}.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:4px 2px}.section-title-row p:not(.eyebrow){margin:5px 0 0;color:var(--muted)}.warranty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.warranty-card{padding:15px;border:1px solid var(--line);background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.05);cursor:pointer}.warranty-card:hover{border-color:#86b9a1}.warranty-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:12px}.warranty-card-head h3{margin-top:3px;font-size:15px}.warranty-seller{font-size:9px;font-weight:800;color:#087a50;text-transform:uppercase;letter-spacing:.08em}.deadline-row{display:grid;grid-template-columns:1fr auto;gap:3px 10px;margin-top:8px;padding:9px;border-left:4px solid #98a2b3;background:#f8f9fb}.deadline-row span{font-size:10px;font-weight:800;text-transform:uppercase;color:#667085}.deadline-row strong{font-size:12px}.deadline-row small{grid-column:1/-1;color:#667085}.deadline-row.ok{border-left-color:#087a50;background:#f0faf5}.deadline-row.soon{border-left-color:#f79009;background:#fff7e8}.deadline-row.expired{border-left-color:#d92d20;background:#fff1f0}.warranty-note{margin:10px 0 0;color:#667085;font-size:11px;white-space:pre-wrap}.warranty-empty{grid-column:1/-1;padding:25px;border:1px dashed #aeb8c7;background:#fff;color:var(--muted);text-align:center}.warranty-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:1050px){.warranty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.calendar-event{grid-template-columns:46px 28px 1fr;padding:10px 8px;gap:8px}.warranty-grid{grid-template-columns:1fr}.section-title-row{align-items:flex-start;flex-direction:column}.warranty-form-grid{grid-template-columns:1fr}}


/* Horizontal Home periods and warranty timelines */
.calendar-horizontal{overflow-x:auto;padding:2px 2px 12px;scrollbar-width:thin;scrollbar-color:#98a2b3 #eef1f5}.calendar-months-row{display:flex;align-items:stretch;gap:12px;min-width:max-content}.calendar-month{width:350px;min-width:350px;align-self:stretch}.calendar-events{height:calc(100% - 48px)}.warranty-horizontal{display:grid;gap:10px;overflow-x:auto;padding-bottom:8px}.warranty-row{display:grid;grid-template-columns:190px minmax(620px,1fr) 70px;gap:18px;align-items:center;min-width:930px;padding:15px;border:1px solid var(--line);background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.05);cursor:pointer}.warranty-row:hover{border-color:#86b9a1}.warranty-row-info{min-width:0}.warranty-row-info span{font-size:9px;font-weight:800;color:#087a50;text-transform:uppercase;letter-spacing:.08em}.warranty-row-info h3{margin:4px 0;font-size:15px}.warranty-row-info small{display:block;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.warranty-track-wrap{padding:12px 34px 2px}.warranty-track{position:relative;height:8px;margin:30px 0 34px;border-radius:999px;background:#d9e0e9}.warranty-return-zone{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#f7b955}.warranty-point{position:absolute;top:50%;width:120px;transform:translate(-50%,-50%);text-align:center}.warranty-point i{display:block;width:17px;height:17px;margin:auto;border:4px solid #fff;border-radius:50%;background:#667085;box-shadow:0 0 0 2px #667085}.warranty-point b,.warranty-point small{position:absolute;left:50%;width:120px;transform:translateX(-50%)}.warranty-point b{bottom:16px;font-size:10px}.warranty-point small{top:17px;color:#667085;font-size:10px}.warranty-point.purchase i{background:#155eef;box-shadow:0 0 0 2px #155eef}.warranty-point.return i{background:#f79009;box-shadow:0 0 0 2px #f79009}.warranty-point.warranty i{background:#087a50;box-shadow:0 0 0 2px #087a50}.warranty-track-status{display:flex;justify-content:space-between;gap:12px;font-size:10px;font-weight:700}.warranty-track-status .soon{color:#b54708}.warranty-track-status .expired{color:#d92d20}.warranty-track-status .ok{color:#087a50}.warranty-track-empty{padding:18px;border:1px dashed #aeb8c7;color:var(--muted);text-align:center}.warranty-edit{justify-self:end}@media(max-width:700px){.calendar-month{width:300px;min-width:300px}.warranty-row{grid-template-columns:160px minmax(560px,1fr) 60px}.warranty-track-wrap{padding-inline:28px}}


/* Warranty A/B switches and current-position bars */
.warranty-option{align-self:end;padding:9px 10px;border:1px solid var(--line);background:#f8fafc}.warranty-option input{width:auto}.option-disabled{opacity:.45}.warranty-periods{display:grid;gap:18px;padding:4px 24px}.period-line{min-width:520px}.period-line-title{display:flex;justify-content:space-between;gap:20px;margin-bottom:24px}.period-line-title strong{font-size:11px}.period-line-title span{font-size:10px;font-weight:700;color:#667085}.period-line.expired .period-line-title span{color:#d92d20}.period-track{position:relative;height:8px;margin:0 50px 30px;border-radius:999px;background:#d9e0e9}.period-fill{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#f7b955}.period-line.warranty .period-fill{background:#62b58d}.period-track.past-end,.period-line.warranty.expired .period-track{height:4px;background:#d92d20}.period-line.warranty.expired .period-fill{background:#d92d20}.period-now,.period-start,.period-end{position:absolute;top:50%;transform:translate(-50%,-50%);text-align:center}.period-now{z-index:3}.period-start{left:0}.period-end{left:100%}.period-now i,.period-start i,.period-end i{display:block;width:15px;height:15px;margin:auto;border:4px solid #fff;border-radius:50%;background:#155eef;box-shadow:0 0 0 2px #155eef}.period-now i{width:18px;height:18px;background:#172033;box-shadow:0 0 0 2px #172033}.period-end i{background:#087a50;box-shadow:0 0 0 2px #087a50}.period-line.return .period-end i{background:#f79009;box-shadow:0 0 0 2px #f79009}.period-line.expired .period-end i,.period-line.expired .period-now i{background:#d92d20;box-shadow:0 0 0 2px #d92d20}.period-now b,.period-start b,.period-end b,.period-start small,.period-end small{position:absolute;left:50%;width:100px;transform:translateX(-50%);white-space:nowrap}.period-now b{bottom:16px;font-size:8px;color:#172033}.period-line.expired .period-now b{color:#d92d20}.period-start b,.period-end b{top:16px;font-size:9px}.period-start small,.period-end small{top:29px;color:#667085;font-size:9px}.period-line.missing{padding:12px;border:1px dashed #aeb8c7}.period-line.missing .period-line-title{margin:0}.warranty-row{grid-template-columns:190px minmax(700px,1fr) 70px;min-width:1040px}@media(max-width:700px){.period-line{min-width:500px}.warranty-row{grid-template-columns:150px minmax(640px,1fr) 60px}}


/* Warranty display switches belong to existing warranty rows */
.warranty-display-options{display:grid;gap:7px;margin-top:13px}.warranty-display-options label{display:flex;align-items:flex-start;gap:7px;color:#344054;font-size:10px;font-weight:700;line-height:1.3;cursor:pointer}.warranty-display-options input{width:auto;min-height:0;margin:1px 0 0;accent-color:#087a50}.warranty-display-options label:hover{color:#087a50}


/* One global A/B warranty view switch */
.warranty-view-switch{display:flex;gap:8px;align-items:stretch;padding:10px;border:1px solid var(--line);background:#fff}.warranty-view-switch label{display:flex;align-items:center;min-height:42px;padding:9px 13px;border:1px solid var(--line);background:#f8fafc;color:#344054;font-size:11px;font-weight:700;cursor:pointer}.warranty-view-switch label.active{border-color:#087a50;background:#ecfdf3;color:#067647;box-shadow:0 0 0 2px rgba(8,122,80,.08)}.warranty-view-switch input{position:absolute;opacity:0;pointer-events:none}.warranty-view-switch b{display:inline-grid;width:23px;height:23px;margin-right:8px;place-items:center;border-radius:50%;background:#172033;color:#fff;font-size:10px}.warranty-view-switch label.active b{background:#087a50}.warranty-row{grid-template-columns:190px minmax(700px,1fr) 70px}.warranty-display-options{display:none!important}@media(max-width:700px){.warranty-view-switch{flex-direction:column}.warranty-view-switch label{width:100%}}


/* A and B may be selected together */
.warranty-view-switch input{position:static!important;width:16px!important;min-height:16px!important;margin:0 9px 0 0;opacity:1!important;pointer-events:auto!important;accent-color:#087a50}.warranty-periods.both{gap:24px}.warranty-periods.both .period-line:first-child{padding-bottom:8px;border-bottom:1px solid #e4e8ed}


/* Definitive single warranty timeline */
.warranty-periods{display:block!important;padding:4px 28px}.warranty-periods.both{gap:0}.unified-period{min-width:560px}.unified-track{position:relative;height:9px;margin:34px 55px 42px;border-radius:999px;background:#d9e0e9}.unified-progress{position:absolute;inset:0 auto 0 0;border-radius:999px;background:linear-gradient(90deg,#155eef,#62b58d)}.unified-marker{position:absolute;top:50%;z-index:2;transform:translate(-50%,-50%);text-align:center}.unified-marker i{display:block;width:16px;height:16px;margin:auto;border:4px solid #fff;border-radius:50%;background:#155eef;box-shadow:0 0 0 2px #155eef}.unified-marker.return i{background:#f79009;box-shadow:0 0 0 2px #f79009}.unified-marker.warranty i{background:#087a50;box-shadow:0 0 0 2px #087a50}.unified-marker.now{z-index:4}.unified-marker.now i{width:20px;height:20px;background:#172033;box-shadow:0 0 0 2px #172033}.unified-marker b,.unified-marker small{position:absolute;left:50%;width:110px;transform:translateX(-50%);white-space:nowrap}.unified-marker b{top:18px;font-size:9px}.unified-marker small{top:31px;color:#667085;font-size:9px}.unified-marker.now b{top:auto;bottom:18px;color:#172033;font-size:8px}.unified-period.expired-warranty .unified-track,.unified-period.expired-warranty .unified-progress{height:4px;background:#d92d20}.unified-period.expired-warranty .unified-marker.now i,.unified-period.expired-warranty .unified-marker.warranty i{background:#d92d20;box-shadow:0 0 0 2px #d92d20}.unified-period.expired-warranty .period-line-title span,.unified-period.expired-warranty .unified-marker.now b{color:#d92d20}.unified-period.expired .unified-track,.unified-period.expired .unified-progress{background:#98a2b3}@media(max-width:700px){.unified-period{min-width:540px}}


/* Proportional distance to warranty end */
.warranty-progress-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 55px 6px;font-size:10px}.warranty-progress-summary strong{color:#172033}.warranty-progress-summary span{color:#667085}.unified-track{overflow:visible}.unified-remaining{position:absolute;top:0;height:100%;border-radius:0 999px 999px 0;background:#edf1f5}.warranty-distance{display:flex;margin:-20px 55px 0;font-size:9px;line-height:1.25}.warranty-distance span{min-width:0;color:#667085;text-align:left}.warranty-distance strong{min-width:0;color:#087a50;text-align:right}.unified-period.expired-warranty .warranty-progress-summary strong,.unified-period.expired-warranty .warranty-distance strong{color:#d92d20}@media(max-width:700px){.warranty-progress-summary{align-items:flex-start;flex-direction:column;margin-inline:35px}.warranty-distance{margin-inline:35px}}

/* Warranty end defines the proportional scale even when only return details are selected */
.unified-marker.warranty.context-only i{background:#98a2b3;box-shadow:0 0 0 2px #98a2b3}.unified-marker.warranty.context-only b,.unified-marker.warranty.context-only small{color:#667085}.warranty-distance strong{white-space:nowrap}


/* Exact A-only, B-only and A+B warranty modes */
.unified-period.expired-final .unified-track,
.unified-period.expired-final .unified-progress,
.unified-period.expired-final .unified-remaining{height:4px;background:#d92d20}
.unified-period.expired-final .unified-marker.now i,
.unified-period.expired-final .unified-marker.return i,
.unified-period.expired-final .unified-marker.warranty i{background:#d92d20;box-shadow:0 0 0 2px #d92d20}
.unified-period.expired-final .period-line-title span,
.unified-period.expired-final .warranty-progress-summary strong,
.unified-period.expired-final .unified-marker.now b{color:#d92d20}


/* Expired deadline remains behind TODAY proportionally */
.unified-overdue{position:absolute;top:0;height:100%;border-radius:0 999px 999px 0;background:#d92d20}.unified-period.expired-final .unified-track{height:8px;background:#d9e0e9}.unified-period.expired-final .unified-progress{height:100%;background:#98a2b3}.unified-period.expired-final .unified-marker.deadline i{background:#d92d20;box-shadow:0 0 0 2px #d92d20}.unified-period.expired-final .unified-marker.now i{background:#172033;box-shadow:0 0 0 2px #172033}.unified-period.expired-final .unified-marker.now b{color:#172033}.overdue-distance strong{color:#d92d20;white-space:nowrap}.overdue-distance span{color:#667085}
