:root {
  color-scheme: light;
  --forest-950: #102f2e;
  --forest-900: #183c3b;
  --forest-800: #284d4c;
  --forest-700: #35605f;
  --teal-600: #2d8686;
  --teal-500: #3a9998;
  --lime-500: #d5df66;
  --lime-400: #e1e983;
  --lime-100: #f5f8db;
  --ink: #172524;
  --muted: #607170;
  --line: #dbe4e1;
  --line-strong: #c8d5d1;
  --surface: #ffffff;
  --canvas: #f2f6f5;
  --soft: #eaf1ef;
  --danger: #c83e44;
  --danger-soft: #fcebec;
  --warning: #b87018;
  --warning-soft: #fff4dc;
  --success: #188060;
  --success-soft: #e4f5ee;
  --info: #276da0;
  --info-soft: #e8f3fb;
  --shadow-sm: 0 1px 2px rgba(16, 47, 46, 0.06), 0 7px 22px rgba(16, 47, 46, 0.05);
  --shadow-lg: 0 28px 80px rgba(16, 47, 46, 0.2);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar: 264px;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: radial-gradient(circle at 70% 15%, #386463 0, transparent 27%), linear-gradient(145deg, var(--forest-950), var(--forest-800));
  color: #fff;
}

.boot-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 223, 102, 0.35);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.boot-mark img { width: 54px; height: 56px; }
.boot-screen p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.boot-line { width: 150px; height: 3px; border-radius: 20px; background: rgba(255,255,255,.12); overflow: hidden; }
.boot-line span { display: block; width: 45%; height: 100%; background: var(--lime-500); animation: loading 1.1s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(225%); } }

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg { width: 25px; height: 25px; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(330px, 43%) 1fr;
  background: var(--surface);
}

.auth-brand {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(152deg, var(--forest-950), var(--forest-800) 62%, #356866);
  color: #fff;
}

.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand::before {
  width: 460px;
  height: 460px;
  right: -230px;
  top: -160px;
  border: 1px solid rgba(213, 223, 102, .23);
  box-shadow: 0 0 0 80px rgba(213, 223, 102, .03), 0 0 0 160px rgba(213, 223, 102, .025);
}

.auth-brand::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -110px;
  background: var(--lime-500);
  opacity: .12;
}

.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.brand-symbol { width: 58px; height: 58px; padding: 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 17px; background: rgba(255,255,255,.07); }
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 760; font-size: 1.1rem; line-height: 1.15; letter-spacing: -.01em; }
.brand-name small { display: block; margin-top: 5px; font-size: .72rem; font-weight: 600; color: var(--lime-500); letter-spacing: .11em; text-transform: uppercase; }

.auth-message { position: relative; z-index: 1; max-width: 540px; margin: 80px 0; }
.auth-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--lime-500); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.auth-message h1 { margin: 0; max-width: 500px; font-size: clamp(2.35rem, 4.2vw, 4.6rem); line-height: .98; letter-spacing: -.055em; font-weight: 760; }
.auth-message h1 span { color: var(--lime-500); }
.auth-message > p { max-width: 460px; margin: 24px 0 0; color: rgba(255,255,255,.7); font-size: 1.02rem; }
.auth-proof { position: relative; z-index: 1; display: flex; gap: 28px; color: rgba(255,255,255,.7); font-size: .8rem; }
.auth-proof span { display: flex; align-items: center; gap: 8px; }
.auth-proof i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 5px rgba(213,223,102,.1); }

.auth-content { min-height: 100vh; display: grid; place-items: center; padding: 32px clamp(24px, 7vw, 110px); background: #fff; }
.auth-card { width: min(100%, 470px); }
.auth-card-head { margin-bottom: 28px; }
.auth-card-head h2 { margin: 0 0 9px; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -.035em; }
.auth-card-head p { margin: 0; color: var(--muted); }

.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 26px; padding: 5px; border-radius: 14px; background: var(--soft); }
.tab-button { border: 0; border-radius: 10px; padding: 11px 14px; background: transparent; color: var(--muted); font-weight: 750; font-size: .9rem; transition: .2s ease; }
.tab-button.active { background: #fff; color: var(--forest-800); box-shadow: 0 3px 12px rgba(16,47,46,.08); }

.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: #3e5250; font-size: .84rem; font-weight: 750; }
.field small { color: var(--muted); font-size: .76rem; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7a8c89; pointer-events: none; }
.input-wrap input { padding-left: 45px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { min-height: 92px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #9eb1ad; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(45,134,134,.12); }
input[readonly] { background: var(--soft); color: #455c59; }
input::placeholder, textarea::placeholder { color: #96a5a2; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 760;
  font-size: .88rem;
  line-height: 1.2;
  transition: transform .15s ease, background .18s ease, border .18s ease, opacity .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.primary { background: var(--forest-800); color: #fff; box-shadow: 0 8px 20px rgba(40,77,76,.17); }
.button.primary:hover:not(:disabled) { background: var(--forest-900); }
.button.lime { background: var(--lime-500); color: var(--forest-950); }
.button.lime:hover:not(:disabled) { background: var(--lime-400); box-shadow: 0 2px 8px rgba(132,204,22,0.35); }
.button.lime.block { font-size: 1.05rem; padding: 0.65rem 1rem; font-weight: 600; }
.button.secondary { border-color: var(--line-strong); background: #fff; color: var(--forest-800); }
.button.secondary:hover:not(:disabled) { border-color: var(--teal-600); background: #f8fbfa; }
.button.ghost { background: transparent; color: var(--muted); }
.button.ghost:hover:not(:disabled) { background: var(--soft); color: var(--forest-800); }
.button.danger { background: var(--danger-soft); color: var(--danger); }
.button.block { width: 100%; }
.button.small { min-height: 36px; padding: 7px 11px; font-size: .78rem; border-radius: 9px; }
.button.icon-only { width: 42px; padding: 0; }

.form-error { margin: 0; padding: 11px 13px; border: 1px solid #f3c9cc; border-radius: 10px; background: var(--danger-soft); color: #9b3036; font-size: .84rem; }
.form-hint { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .78rem; }
.security-note { display: flex; gap: 11px; margin-top: 20px; padding: 14px; border-radius: 12px; background: var(--lime-100); color: #53601d; font-size: .78rem; }
.security-note .icon { flex: 0 0 auto; }

.app-shell { min-height: 100vh; padding-left: var(--sidebar); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--forest-950), var(--forest-800));
  color: #fff;
  box-shadow: 10px 0 35px rgba(16,47,46,.12);
}
.sidebar-brand { height: 96px; display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand .brand-symbol { width: 49px; height: 49px; border-radius: 14px; }
.sidebar-brand .brand-name { font-size: .98rem; }
.sidebar-brand .brand-name small { font-size: .64rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 22px 14px; }
.nav-label { margin: 0 10px 9px; color: rgba(255,255,255,.38); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; margin: 0 0 24px; padding: 0; list-style: none; }
.nav-button { width: 100%; min-height: 45px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 11px; padding: 10px 12px; background: transparent; color: rgba(255,255,255,.65); text-align: left; font-size: .86rem; font-weight: 690; transition: .18s ease; }
.nav-button:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-button.active { background: var(--lime-500); color: var(--forest-950); box-shadow: 0 8px 20px rgba(7,30,29,.18); }
.nav-button .nav-count { margin-left: auto; min-width: 23px; padding: 2px 6px; border-radius: 20px; background: rgba(255,255,255,.12); font-size: .68rem; text-align: center; }
.nav-button.active .nav-count { background: rgba(16,47,46,.13); }
.sidebar-account { padding: 15px; border-top: 1px solid rgba(255,255,255,.09); }
.account-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: rgba(213,223,102,.16); color: var(--lime-500); font-weight: 800; }
.account-info { min-width: 0; flex: 1; }
.account-info strong, .account-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-info strong { font-size: .78rem; }
.account-info span { margin-top: 2px; color: rgba(255,255,255,.48); font-size: .68rem; }
.account-card .button { width: 34px; min-height: 34px; color: rgba(255,255,255,.6); }

.workspace { min-height: 100vh; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 3vw, 42px); border-bottom: 1px solid rgba(200,213,209,.8); background: rgba(242,246,245,.92); backdrop-filter: blur(16px); }
.topbar-context { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; color: var(--success); }
.live-indicator::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(24,128,96,.11); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(24,128,96,0); } }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.alert-toggle.active { border-color: var(--lime-500); background: var(--lime-100); color: #606e1f; }

.content { width: min(100%, 1600px); margin: 0 auto; padding: 30px clamp(20px, 3vw, 42px) 60px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.view-title h1 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.45rem); line-height: 1.1; letter-spacing: -.035em; }
.view-title p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.view-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric-card { min-height: 142px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; width: 85px; height: 85px; right: -36px; bottom: -43px; border-radius: 50%; background: var(--metric-color, var(--soft)); opacity: .13; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-label { color: var(--muted); font-size: .76rem; font-weight: 760; letter-spacing: .035em; text-transform: uppercase; }
.metric-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: var(--metric-soft, var(--soft)); color: var(--metric-color, var(--forest-800)); }
.metric-value { margin-top: 14px; font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.metric-detail { margin-top: 7px; color: var(--muted); font-size: .72rem; }
.metric-card.danger-metric { --metric-color: var(--danger); --metric-soft: var(--danger-soft); }
.metric-card.warning-metric { --metric-color: var(--warning); --metric-soft: var(--warning-soft); }
.metric-card.success-metric { --metric-color: var(--success); --metric-soft: var(--success-soft); }
.metric-card.info-metric { --metric-color: var(--info); --metric-soft: var(--info-soft); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.panel-title { min-width: 0; }
.panel-title h2 { margin: 0; font-size: .98rem; letter-spacing: -.015em; }
.panel-title p { margin: 4px 0 0; color: var(--muted); font-size: .73rem; }
.panel-body { padding: 19px; }
.panel-body.flush { padding: 0; }

.sla-gauge { display: grid; place-items: center; padding: 26px 15px; }
.gauge-ring { --value: 100; width: 174px; aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime-500) calc(var(--value) * 1%), #e7eeec 0); }
.gauge-ring::before { content: ""; position: absolute; width: 130px; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gauge-center { position: relative; z-index: 1; text-align: center; }
.gauge-center strong { display: block; color: var(--forest-800); font-size: 2.15rem; line-height: 1; letter-spacing: -.05em; }
.gauge-center span { color: var(--muted); font-size: .7rem; }
.gauge-note { max-width: 220px; margin: 17px auto 0; color: var(--muted); text-align: center; font-size: .75rem; }
.performance-list { display: grid; gap: 12px; }
.performance-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; }
.performance-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.performance-item span { color: var(--muted); font-size: .72rem; }
.performance-bar { grid-column: 1 / -1; height: 6px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.performance-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--teal-600), var(--lime-500)); }

.table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8faf9; color: #70817e; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #e9efed; color: #405250; font-size: .79rem; vertical-align: middle; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #f8fbfa; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-primary { display: block; color: var(--ink); font-weight: 760; }
.table-secondary { display: block; margin-top: 3px; color: var(--muted); font-size: .69rem; }
.protocol { color: var(--forest-800); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: .75rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 4px 9px; border-radius: 30px; font-size: .68rem; font-weight: 780; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-received { background: var(--info-soft); color: var(--info); }
.status-in-progress { background: #e7f3f2; color: var(--teal-600); }
.status-waiting-data { background: var(--warning-soft); color: var(--warning); }
.status-ready { background: var(--lime-100); color: #687622; }
.status-sent { background: var(--success-soft); color: var(--success); }
.status-canceled { background: #eef0ef; color: #687572; }
.status-overdue { background: var(--danger-soft); color: var(--danger); }

.timer { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 800; font-size: .75rem; }
.timer.ok { color: var(--success); }
.timer.warning { color: var(--warning); }
.timer.critical, .timer.overdue { color: var(--danger); }
.timer.done { color: var(--muted); }
.timer.critical { animation: timerPulse 1.15s infinite; }
@keyframes timerPulse { 50% { opacity: .55; } }

.filter-bar { display: grid; grid-template-columns: minmax(210px, 1fr) repeat(3, minmax(130px, .35fr)) auto; gap: 11px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.filter-bar input, .filter-bar select { min-height: 42px; }

.empty-state { min-height: 220px; display: grid; place-content: center; justify-items: center; padding: 35px 20px; color: var(--muted); text-align: center; }
.empty-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 17px; background: var(--soft); color: var(--teal-600); }
.empty-state h3 { margin: 0 0 6px; color: var(--ink); font-size: .97rem; }
.empty-state p { max-width: 390px; margin: 0; font-size: .78rem; }

.driver-app { min-height: 100vh; background: var(--canvas); }
.driver-top { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px max(20px, calc((100vw - 1180px) / 2)); background: var(--forest-900); color: #fff; }
.driver-top .brand-symbol { width: 47px; height: 47px; padding: 8px; border-radius: 14px; }
.driver-user { display: flex; align-items: center; gap: 10px; }
.driver-user-text { text-align: right; }
.driver-user-text strong, .driver-user-text span { display: block; }
.driver-user-text strong { font-size: .81rem; }
.driver-user-text span { color: rgba(255,255,255,.55); font-size: .68rem; }
.driver-main { width: min(100% - 32px, 1180px); margin: 0 auto; padding: 28px 0 70px; }
.driver-welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 18px; padding: clamp(23px, 4vw, 38px); border-radius: var(--radius-lg); background: linear-gradient(130deg, var(--forest-800), var(--teal-600)); color: #fff; box-shadow: 0 18px 45px rgba(40,77,76,.18); }
.driver-welcome::after { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -100px; border: 36px solid rgba(213,223,102,.12); border-radius: 50%; }
.driver-welcome > div { position: relative; z-index: 1; }
.driver-welcome h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em; }
.driver-welcome p { max-width: 650px; margin: 10px 0 0; color: rgba(255,255,255,.7); font-size: .87rem; }
.driver-welcome .button { position: relative; z-index: 1; flex: 0 0 auto; }
.driver-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 18px; align-items: start; }
.driver-card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.driver-card h2 { margin: 0; font-size: 1.1rem; }
.driver-card > p { margin: 6px 0 21px; color: var(--muted); font-size: .8rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.choice-card { position: relative; display: flex; gap: 11px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 13px; cursor: pointer; transition: .18s ease; }
.choice-card:hover { border-color: var(--teal-600); background: #f5faf9; }
.choice-card.selected { border-color: var(--forest-800); background: linear-gradient(135deg, var(--forest-800), var(--teal-600)); color: #fff; box-shadow: 0 10px 24px rgba(40,77,76,.2), 0 0 0 3px rgba(213,223,102,.2); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-dot { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid #9aa9a7; border-radius: 50%; margin-top: 2px; }
.selected .choice-dot { border-color: var(--lime-500); }
.selected .choice-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime-500); }
.choice-card strong { display: block; font-size: .82rem; }
.choice-card span { display: block; margin-top: 3px; color: var(--muted); font-size: .69rem; }
.choice-card.selected span { color: rgba(255,255,255,.75); }
.choice-card.selected strong { color: #fff; }
.partner-fields[hidden], #self-data[hidden] { display: none !important; }
.profile-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; padding: 15px; border-radius: 13px; background: var(--soft); }
.profile-item span, .profile-item strong { display: block; }
.profile-item span { color: var(--muted); font-size: .66rem; font-weight: 760; text-transform: uppercase; }
.profile-item strong { margin-top: 3px; color: var(--forest-800); font-size: .82rem; }
.profile-item small { display: block; margin-top: 4px; color: var(--muted); font-size: .64rem; line-height: 1.35; }
.self-go-result { padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; transition: .18s ease; }
.self-go-result[data-status="loading"], .self-go-result[data-status="waiting"] { border-color: #c8d5d2; background: #fff; }
.self-go-result[data-status="ready"] { border-color: #bfcc6d; background: var(--lime-100); }
.self-go-result[data-status="error"] { border-color: #e6afb3; background: var(--danger-soft); }
.self-go-result[data-status="error"] strong, .self-go-result[data-status="error"] small { color: var(--danger); }
.self-confirmation { align-items: end; }
.self-plate-confirmation { grid-column: 1 / -1; padding-top: 13px; border-top: 1px solid var(--line); }
.self-plate-confirmation > label { display: block; margin-bottom: 7px; color: var(--forest-800); font-size: .72rem; font-weight: 780; }
.plate-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.plate-input-row input { min-width: 0; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; }
.plate-input-row input[readonly] { color: var(--forest-800); background: #fff; cursor: default; }
.plate-input-row input.editing { border-color: var(--teal-600); background: #fff; box-shadow: 0 0 0 3px rgba(45,134,134,.1); }
.plate-input-row input.changed { border-color: #9aac31; background: var(--lime-100); }
.self-plate-confirmation small { display: block; margin-top: 7px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.partner-vehicle-note { padding: 11px 13px; border: 1px solid #bfcc6d; border-radius: 11px; background: var(--lime-100); color: var(--forest-800); font-size: .72rem; font-weight: 700; line-height: 1.45; }
.driver-history { display: grid; gap: 11px; }
.request-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: .18s ease; }
.request-card:hover { border-color: #b7c8c4; box-shadow: var(--shadow-sm); }
.request-card-top, .request-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.request-card-name { margin: 13px 0 3px; font-weight: 780; font-size: .85rem; }
.request-card-meta { margin: 0; color: var(--muted); font-size: .7rem; }
.request-card-bottom { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.request-card-bottom > span { color: var(--muted); font-size: .7rem; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8,28,27,.58); backdrop-filter: blur(5px); animation: fadeIn .16s ease; }
.modal { width: min(100%, 620px); max-height: min(90vh, 900px); display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; animation: modalIn .2s ease; }
.modal.wide { width: min(100%, 900px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fafcfb; }
.modal-spacer { flex: 1; }
.plate-changed-note { display: block; margin-top: 4px; color: #8b5e00; font-size: .64rem; font-weight: 720; line-height: 1.35; }
.danger-note { border: 1px solid #f0c6c9; background: var(--danger-soft); color: #95343a; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 19px; }
.detail-tile { min-width: 0; padding: 12px; border-radius: 11px; background: var(--soft); }
.detail-tile span, .detail-tile strong { display: block; }
.detail-tile span { color: var(--muted); font-size: .65rem; font-weight: 760; text-transform: uppercase; }
.detail-tile strong { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.detail-section { margin-top: 20px; }
.detail-section h3 { margin: 0 0 11px; font-size: .83rem; }
.timeline { position: relative; display: grid; gap: 0; padding-left: 4px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 10px; padding-bottom: 16px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 22px; bottom: -1px; width: 1px; background: var(--line-strong); }
.timeline-dot { width: 23px; height: 23px; position: relative; z-index: 1; display: grid; place-items: center; border: 1px solid #c8d5d1; border-radius: 50%; background: #fff; color: var(--teal-600); }
.timeline-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.timeline-copy strong { display: block; font-size: .76rem; }
.timeline-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: .67rem; }
.upload-zone { position: relative; display: grid; place-items: center; min-height: 130px; border: 1.5px dashed #9fb4b0; border-radius: 13px; padding: 20px; background: #f8fbfa; color: var(--muted); text-align: center; transition: .18s ease; }
.upload-zone:hover { border-color: var(--teal-600); background: #f2f9f8; }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone .icon { width: 29px; height: 29px; margin-bottom: 8px; color: var(--teal-600); }
.upload-zone strong { display: block; color: var(--ink); font-size: .8rem; }
.upload-zone span { display: block; margin-top: 4px; font-size: .69rem; }
.file-ready { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #c9e1d8; border-radius: 12px; background: var(--success-soft); color: var(--success); }
.file-ready > div { min-width: 0; flex: 1; }
.file-ready strong, .file-ready span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ready strong { font-size: .78rem; }
.file-ready span { margin-top: 3px; font-size: .67rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; }

.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.entity-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.entity-card-head { display: flex; align-items: center; gap: 11px; }
.entity-card .avatar { background: var(--soft); color: var(--forest-800); }
.entity-card-title { min-width: 0; flex: 1; }
.entity-card-title strong, .entity-card-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-card-title strong { font-size: .83rem; }
.entity-card-title span { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.entity-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.entity-detail span, .entity-detail strong { display: block; }
.entity-detail span { color: var(--muted); font-size: .63rem; text-transform: uppercase; }
.entity-detail strong { margin-top: 3px; font-size: .72rem; }
.entity-card-actions { display: flex; justify-content: flex-end; margin-top: 13px; }

.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: 155px minmax(150px,.5fr) minmax(220px,1fr) 120px; gap: 13px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .74rem; }
.audit-row:last-child { border-bottom: 0; }
.audit-action { font-weight: 760; color: var(--forest-800); }
.audit-meta { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 40px)); display: grid; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 16px 45px rgba(16,47,46,.18); animation: toastIn .24s ease; pointer-events: auto; }
.toast.success { border-color: #b9decf; }
.toast.error { border-color: #efc5c8; }
.toast .icon { color: var(--teal-600); }
.toast.error .icon { color: var(--danger); }
.toast-copy strong, .toast-copy span { display: block; }
.toast-copy strong { font-size: .78rem; }
.toast-copy span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

.loading-cover { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; background: rgba(242,246,245,.72); backdrop-filter: blur(2px); }
.spinner { width: 38px; height: 38px; border: 3px solid #d9e3e0; border-top-color: var(--teal-600); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mobile-title, .mobile-menu { display: none; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .filter-bar > :first-child { grid-column: span 2; }
  .filter-bar .button { width: 100%; }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar { inset: auto 0 0; width: auto; height: 69px; display: block; background: rgba(16,47,46,.97); backdrop-filter: blur(16px); }
  .sidebar-brand, .sidebar-account, .nav-label { display: none; }
  .sidebar-nav { height: 100%; overflow: visible; padding: 7px 9px max(7px, env(safe-area-inset-bottom)); }
  .nav-list { height: 100%; display: flex; justify-content: space-around; gap: 5px; margin: 0; }
  .nav-list.secondary-nav { display: none; }
  .nav-button { min-width: 62px; min-height: 52px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 7px; font-size: .6rem; text-align: center; }
  .nav-button .icon { width: 19px; height: 19px; }
  .nav-button .nav-count { position: absolute; transform: translate(15px,-15px); }
  .topbar { height: 66px; }
  .mobile-title { display: block; color: var(--forest-800); font-size: .85rem; font-weight: 800; }
  .topbar-context { display: none; }
  .mobile-menu { display: inline-flex; }
  .content { padding-bottom: 100px; }
  .dashboard-grid, .driver-grid { grid-template-columns: 1fr; }
  .driver-top { padding-inline: 18px; }
  .driver-main { padding-bottom: 35px; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .view-actions, .filter-bar, .button, .metric-icon { display: none !important; }
  .app-shell { padding-left: 0; }
  .content { width: 100%; max-width: none; padding: 0; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .metric-card, .panel { box-shadow: none; break-inside: avoid; }
  .data-table { white-space: normal; }
  .data-table th, .data-table td { padding: 8px; font-size: 10px; }
  .data-table th:last-child, .data-table td:last-child { display: none; }
}

@media (max-width: 720px) {
  .auth-shell { grid-template-columns: 1fr; background: linear-gradient(160deg, var(--forest-950), var(--forest-800) 42%, #fff 42%); }
  .auth-brand { min-height: 240px; padding: 24px 22px 42px; background: transparent; }
  .auth-message { margin: 25px 0 0; }
  .auth-message h1 { max-width: 360px; font-size: 2.2rem; }
  .auth-message > p, .auth-proof { display: none; }
  .auth-content { min-height: auto; padding: 29px 22px 45px; place-items: start center; border-radius: 26px 26px 0 0; }
  .auth-card { margin-top: -48px; padding: 24px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
  .auth-card-head h2 { font-size: 1.6rem; }
  .view-head { align-items: flex-start; flex-direction: column; }
  .view-actions { width: 100%; }
  .view-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 128px; padding: 15px; }
  .metric-value { font-size: 1.7rem; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar > :first-child { grid-column: 1 / -1; }
  .filter-bar .button { grid-column: 1 / -1; }
  .entity-grid { grid-template-columns: 1fr; }
  .detail-summary { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .driver-welcome { align-items: flex-start; flex-direction: column; }
  .driver-welcome .button { width: 100%; }
  .audit-row { grid-template-columns: 110px 1fr; }
  .audit-row > :nth-child(3), .audit-row > :nth-child(4) { display: none; }
}

@media (max-width: 480px) {
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .plate-input-row { grid-template-columns: 1fr; }
  .plate-input-row .button { width: 100%; }
  .dispatch-date-row { grid-template-columns: 1fr; }
  .dispatch-date-row .button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-label { font-size: .67rem; }
  .metric-card { min-height: 119px; }
  .metric-detail { display: none; }
  .driver-user-text { display: none; }
  .driver-main { width: min(100% - 22px, 1180px); }
  .profile-box { grid-template-columns: 1fr; }
  .topbar { padding-inline: 14px; }
  .content { padding-inline: 12px; }
  .filter-bar { grid-template-columns: 1fr; padding: 11px; }
  .filter-bar > :first-child, .filter-bar .button { grid-column: auto; }
  .detail-summary { grid-template-columns: 1fr; }
  .modal-body { padding: 18px; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Tempo de resposta por atendente: "Joao respondido em 5 minutos". */
.response-summary { color: #2d6b52; font-weight: 650; }
.table-secondary.response-summary { display: block; margin-top: 4px; font-size: .74rem; }
.request-card-meta.response-summary { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.request-card-meta.response-summary .icon { width: 15px; height: 15px; }
.security-note.response-summary { margin-top: 14px; border-color: rgba(45,134,134,.28); background: #f2f8f5; }

/* Prioridade CARREGADO */
.priority-banner {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin-bottom: 14px;
  animation: pulse-priority 1.4s ease-in-out infinite;
}
@keyframes pulse-priority {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(185,28,28,.4); }
  50% { opacity: .88; box-shadow: 0 0 18px 4px rgba(185,28,28,.18); }
}
.priority-badge {
  background: #b91c1c;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: middle;
}
.empty-vehicle-badge {
  background: #fff0b8;
  color: #946200;
  border: 1px solid #f2cd58;
  margin-left: 6px;
  vertical-align: middle;
}
.resolved-badge {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86d9a0;
  margin-left: 6px;
  vertical-align: middle;
}
.resolved-badge .icon,
.priority-badge .icon { width: 14px; height: 14px; }
.resolved-badge::before,
.priority-badge::before { display: none; }
.empty-vehicle-banner,
.resolved-banner,
.canceled-operation-banner {
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.empty-vehicle-banner {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #4a3600;
}
.resolved-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #15803d, #22a559);
  color: #fff;
}
.resolved-banner .icon { width: 22px; height: 22px; }
.canceled-operation-banner {
  background: #eef0ef;
  color: #687572;
  border: 1px solid #d5ddda;
}
tr.priority-row { background: #fef2f2; }
tr.priority-row:hover { background: #fee2e2; }
tr.resolved-row { background: #f0fdf4; }
tr.resolved-row:hover { background: #dcfce7; }
.priority-card { border-left: 3px solid #b91c1c; }

/* Grid de upload de 3 documentos */
.doc-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.doc-upload-item {
  border: 1px solid var(--line, #dde5e0);
  border-radius: 10px;
  padding: 12px;
}
.doc-upload-item > strong {
  display: block;
  margin-bottom: 8px;
  font-size: .82rem;
  color: var(--ink, #1c3347);
  letter-spacing: .04em;
}
.upload-zone.compact {
  padding: 10px;
  margin-top: 8px;
}
.upload-zone.compact strong { font-size: .78rem; }
.doc-status-bar {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
}
.doc-ok { color: #2d6b52; }
.doc-pending { color: #b91c1c; }

/* Grid de download de documentos do motorista */
.doc-download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Grid do formulario de despacho */
.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.dispatch-date-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dispatch-date-row input { min-width: 0; }
.dispatch-date-field small { display: block; margin-top: 5px; color: var(--ink-muted, #4a6a7a); font-size: .72rem; }
.dispatch-observation { grid-column: 1 / -1; }
.dispatch-observation textarea { min-height: 108px; resize: vertical; }
.finalized-edit-note { margin-top: 14px; }

.report-table th,
.report-table td { white-space: nowrap; vertical-align: top; }
.report-table .report-driver { min-width: 190px; }
.report-table .report-observation {
  min-width: 280px;
  max-width: 440px;
  white-space: normal;
  line-height: 1.45;
}

.form-hint {
  font-size: .78rem;
  color: var(--ink-muted, #4a6a7a);
  margin-top: 6px;
}

/* Integracao com outro sistema. */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.check-line { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line, #dde5e0); border-radius: 10px; background: #fff; font-size: .84rem; cursor: pointer; }
.check-line input { width: 16px; height: 16px; accent-color: #2d6b52; }

/* Modulo NOTAS EM ABERTO */
.open-invoice-table th, .open-invoice-table td { vertical-align: top; min-width: 145px; }
.open-invoice-row { background: #fff1f2; }
.open-invoice-row:hover { background: #ffe4e6; }
.open-invoice-closed-row { background: #f0fdf4; }
.open-invoice-closed-row:hover { background: #dcfce7; }
.open-invoice-open, .open-invoice-overdue { background: #b91c1c; color: #fff; border-color: #991b1b; }
.open-invoice-finished { background: #15803d; color: #fff; border-color: #166534; }
.open-invoice-time { margin-top: 6px; font-weight: 700; }
.open-invoice-metrics { margin-bottom: 18px; }
.open-invoice-number { display: inline-block; color: #d6a700; font-weight: 900; font-size: 1.02rem; letter-spacing: .02em; }
.reminder-period-control { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(110px, .8fr); gap: 8px; }

/* v1.3.0 - controle robusto da viagem por placa */
.journey-progress { background: #fff1f2; color: #b4232f; border-color: #fecdd3; }
.journey-finalized { background: #e9f8ef; color: #18743d; border-color: #b9e5c9; }
.journey-progress-banner { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #f1b8bd; border-radius: 12px; background: #fff1f2; color: #9f1d2a; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.journey-progress-banner .icon { width: 17px; height: 17px; }
.journey-driver-line { margin: 12px 0 2px; }
.journey-clock { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: .74rem; font-weight: 800; }
.journey-clock .icon { width: 15px; height: 15px; }
.journey-clock.running { background: #f8faf9; color: var(--forest-800); }
.journey-clock.due { background: #fff1f2; border-color: #fecdd3; color: #b4232f; }
.journey-clock.done { background: #edf8f1; border-color: #c6e8d2; color: #18743d; }
.driver-card-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.plate-lock-warning { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px; border: 1px solid #f3c3c7; border-radius: 14px; background: #fff4f5; color: #8f1d28; }
.plate-lock-warning > .icon { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; }
.plate-lock-warning strong, .plate-lock-warning span { display: block; }
.plate-lock-warning strong { margin-bottom: 4px; font-size: .82rem; }
.plate-lock-warning span { color: #7b3a40; font-size: .74rem; line-height: 1.5; }
.delivery-confirmation-box { display: flex; align-items: flex-start; gap: 14px; padding: 17px; border: 1px solid #f1b8bd; border-radius: 16px; background: #fff1f2; }
.delivery-confirmation-box > .icon { flex: 0 0 auto; width: 24px; height: 24px; color: #b4232f; }
.delivery-confirmation-box strong, .delivery-confirmation-box span { display: block; }
.delivery-confirmation-box strong { margin-bottom: 5px; color: #8f1d28; font-size: .94rem; }
.delivery-confirmation-box span { color: #70373c; font-size: .78rem; line-height: 1.55; }
.delivery-confirmation-actions { justify-content: space-between; }
.journey-note { margin: 14px 0; }
@media (max-width: 640px) {
  .driver-card-actions { width: 100%; justify-content: stretch; }
  .driver-card-actions .button, .driver-card-actions a.button { flex: 1 1 100%; }
  .delivery-confirmation-actions .button { width: 100%; }
}
.journey-active-row { background: #fff8f8; }
.journey-active-row:hover { background: #fff0f1; }

/* v1.4.0 - manifesto por placa + GO, previsao e baixa obrigatoria */
.delivery-progress-copy { margin: 10px 0 8px; color: var(--forest-800); font-size: .82rem; font-weight: 850; }
.delivery-estimate { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbfa; }
.delivery-estimate.compact { margin: 10px 0 4px; padding: 10px; }
.delivery-estimate-title { display: block; margin-bottom: 8px; color: var(--forest-800); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; }
.delivery-estimate-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.estimate-chip { min-height: 34px; padding: 7px 9px; border: 1px solid #cbd9d5; border-radius: 9px; background: #fff; color: var(--forest-800); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; transition: .15s ease; }
.estimate-chip:hover { border-color: var(--forest-700); }
.estimate-chip.active { border-color: var(--forest-800); background: var(--forest-800); color: #fff; }
.delivery-estimate small { display: block; margin-top: 8px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.journey-unlock-note { margin-top: 9px; color: var(--muted); font-size: .74rem; text-align: center; }
.manifest-conflict-slot { margin-top: 12px; }
.manifest-conflict-warning { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #f1b8bd; border-radius: 13px; background: #fff1f2; color: #8f1d28; }
.manifest-conflict-warning > .icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.manifest-conflict-warning strong, .manifest-conflict-warning span, .manifest-conflict-warning small { display: block; }
.manifest-conflict-warning strong { margin-bottom: 4px; font-size: .86rem; }
.manifest-conflict-warning span { font-size: .76rem; font-weight: 760; }
.manifest-conflict-warning small { margin-top: 4px; color: #7b3a40; font-size: .7rem; line-height: 1.45; }
.upload-zone:has(input:disabled) { opacity: .46; cursor: not-allowed; }
.delivery-estimate-staff { display: block; margin-top: 7px; padding: 6px 8px; border-radius: 8px; background: #f8fbfa; color: var(--forest-800); font-size: .7rem; font-weight: 800; }
.trip-update-list { display: grid; gap: 6px; margin-bottom: 9px; }
.trip-update-list > span { display: block; padding: 6px 8px; border-left: 2px solid #a7bbb5; background: #f8fbfa; border-radius: 0 7px 7px 0; }
.trip-update-list strong, .trip-update-list small { display: block; }
.trip-update-list strong { color: var(--forest-800); font-size: .7rem; }
.trip-update-list small { margin-top: 2px; color: var(--muted); font-size: .64rem; }
@media (max-width: 640px) {
  .delivery-estimate-actions { grid-template-columns: 1fr 1fr; }
}
