/* Driver App: small additions on top of the shared design system (mobile, on-the-road use). */
.dv-toggle{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:hsl(var(--muted));border-radius:16px;padding:5px}
.dv-toggle button{height:52px;border:0;border-radius:12px;background:transparent;font-weight:700;font-size:15px;color:hsl(var(--muted-foreground));display:flex;align-items:center;justify-content:center;gap:8px}
.dv-toggle button.on.onduty{background:hsl(var(--success));color:#fff;box-shadow:var(--sh)}
.dv-toggle button.on.offduty{background:hsl(var(--card));color:hsl(var(--foreground));box-shadow:var(--sh)}
.dv-dot{width:10px;height:10px;border-radius:50%;background:currentColor;display:inline-block}
.dv-duty{display:block;color:inherit;text-decoration:none!important}
.dv-duty .top{display:flex;align-items:center;gap:8px;justify-content:space-between}
.dv-duty .when{font-weight:700;font-size:15px}
.dv-duty .addr{display:grid;grid-template-columns:14px 1fr;gap:4px 8px;margin-top:8px;font-size:13.5px}
.dv-duty .addr i{width:10px;height:10px;border-radius:50%;margin-top:5px;display:block}
.dv-duty .addr i.a{background:hsl(var(--success))}.dv-duty .addr i.b{background:hsl(var(--destructive))}
.dv-duty .addr span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.dv-hero .cd{font-family:var(--mono);font-size:30px;font-weight:600;letter-spacing:.02em;line-height:1.1}
.dv-hero .btn{height:48px;border-radius:14px;font-size:15px}
.dv-hero .btn.white{background:#fff;color:#4c1d95}
.dv-hero .btn.glass{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.35)}
.dv-alert{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;border:1px solid hsl(var(--warning)/.3);background:hsl(var(--warning)/.08);color:inherit;text-decoration:none!important}
.dv-alert.bad{border-color:hsl(var(--destructive)/.3);background:hsl(var(--destructive)/.07)}
.dv-alert.info{border-color:hsl(var(--info)/.3);background:hsl(var(--info)/.07)}
.dv-alert .ai{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:hsl(var(--card));flex:none}
.dv-alert .ai .i{width:20px;height:20px}
.dv-alert.bad .ai{color:hsl(var(--destructive))}.dv-alert .ai{color:hsl(var(--warning))}.dv-alert.info .ai{color:hsl(var(--info))}
.dv-big{height:56px;font-size:16px;border-radius:16px;width:100%}
.dv-sos{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:99px;border:0;background:hsl(var(--destructive));color:#fff;font-weight:800;letter-spacing:.06em;font-size:13px}
.dv-sos .i{width:16px;height:16px}
.dv-sosbig{width:100%;height:84px;border-radius:22px;border:0;background:hsl(var(--destructive));color:#fff;font-size:20px;font-weight:800;letter-spacing:.04em;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 10px 24px hsl(var(--destructive)/.35)}
.dv-stage{border:2px solid var(--pc);border-radius:22px;padding:16px;background:hsl(var(--card));display:flex;flex-direction:column;gap:14px}
.dv-stage .sn{display:flex;align-items:center;gap:12px}
.dv-stage .sn .num{width:46px;height:46px;border-radius:14px;background:var(--pg);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:800;flex:none}
.dv-stage h2{font-size:20px;line-height:1.2}
.dv-stage .lbl2{font-size:13px;font-weight:700;margin-bottom:6px;display:block}
.dv-code{font-family:var(--mono);font-size:32px;text-align:center;letter-spacing:.5em;height:62px;padding-left:.5em}
.dv-photo{border:1.5px dashed hsl(var(--input));border-radius:16px;padding:12px;display:flex;align-items:center;gap:12px;background:hsl(var(--muted)/.4);cursor:pointer;min-height:68px}
.dv-photo.has{border-style:solid;border-color:hsl(var(--success)/.5);background:hsl(var(--success)/.06)}
.dv-photo.invalid{border-color:hsl(var(--destructive))}
.dv-photo .thumb{width:48px;height:48px;border-radius:12px;background:hsl(var(--card));display:grid;place-items:center;overflow:hidden;flex:none;border:1px solid hsl(var(--border))}
.dv-photo .thumb img{width:100%;height:100%;object-fit:cover}
.dv-photo .thumb .i{width:22px;height:22px}
.dv-photo input{display:none}
.dv-timer{font-family:var(--mono);font-size:28px;font-weight:600}
.dv-kv{display:grid;grid-template-columns:auto 1fr;gap:10px 14px;font-size:14px}
.dv-kv dt{color:hsl(var(--muted-foreground));font-size:12.5px;padding-top:1px}
.dv-kv dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.dv-actrow{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dv-actrow .btn{height:48px;border-radius:14px}
.dv-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dv-stats>div{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:16px;padding:12px 14px}
.dv-stats b{display:block;font-size:20px;font-variant-numeric:tabular-nums}
.dv-stats span{font-size:12px;color:hsl(var(--muted-foreground))}
.dv-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.dv-chips .chip{height:36px;padding:0 14px;font-size:13px;flex:none}
.dv-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:hsl(var(--muted));border-radius:14px;padding:4px;gap:4px}
.dv-seg button{height:42px;border:0;border-radius:11px;background:transparent;font-weight:700;font-size:13.5px;color:hsl(var(--muted-foreground))}
.dv-seg button.on{background:hsl(var(--card));color:hsl(var(--foreground));box-shadow:var(--sh)}
.dv-seg button .n{font-size:11px;margin-left:4px;opacity:.75}
.dv-list{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:18px;overflow:hidden}
.dv-list .li{padding:14px 16px;min-height:60px}
.dv-list .li .i{width:20px;height:20px}
.dv-notif.unread{background:var(--pt)}
.dv-notif .nd{width:9px;height:9px;border-radius:50%;background:var(--pc);flex:none}
.dv-notif:not(.unread) .nd{background:transparent}
.dv-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:18px 8px}
.dv-done .ok-ic{width:64px;height:64px;border-radius:50%;background:hsl(var(--success));color:#fff;display:grid;place-items:center}
.dv-done .ok-ic .i{width:32px;height:32px;stroke-width:2.6}
.dv-sheetbody{display:flex;flex-direction:column;gap:14px;padding-bottom:6px}
.sheet .mb{overflow:auto}
.dv-month{display:flex;justify-content:space-between;align-items:baseline;margin:8px 2px -4px}
.dv-month b{font-size:14px}
.dv-month span{font-size:12px;color:hsl(var(--muted-foreground))}
.dv-slip .doc{font-size:12px;overflow-x:auto}
.sheet .mf .btn{flex:1;height:50px;border-radius:14px;font-size:15px}
.dv-err{font-size:13.5px}

/* 2D inspection views: keep a view wider than the phone centred (shared .iv2 grid left-aligns overflow) */
.iv2{display:flex!important;align-items:center;justify-content:center}.iv2 .icanvas{flex:none}
/* driving score ring */
.dv-score{width:64px;height:64px;border-radius:50%;flex:none;display:grid;place-items:center;background:conic-gradient(var(--c) calc(var(--p) * 1%),hsl(var(--muted)) 0)}
.dv-score b{width:50px;height:50px;border-radius:50%;background:hsl(var(--card));display:grid;place-items:center;font-size:18px}
