*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --card: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e6eaf0;
  --field: #8a94a6; /* formos laukų rėmelis - 3:1 kontrastas su baltu (WCAG 1.4.11) */
  --brand: #1570ef;
  --brand-dark: #0d5bc4;
  --brand-soft: #eaf2ff;
  --green: #12b76a;
  --amber: #f79009;
  --red: #f04438;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.12);
  --maxw: 1080px;
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 6vw, 44px); }
h2 { font-size: clamp(20px, 4vw, 28px); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.hide { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.narrow { max-width: 640px; }

/* ---------- Header ---------- */
header.top {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 12px; height: 62px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.logo span { color: var(--brand); }
.spacer { flex: 1; }
.langs { display: flex; gap: 2px; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.langs button {
  border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.langs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.top-link { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
/* Siauruose telefonuose, kai netelpa - kalbų jungiklis pereina į antrą eilutę dešinėje */
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; height: auto; min-height: 62px; padding-top: 6px; padding-bottom: 6px; row-gap: 4px; }
  .langs { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; padding: 14px 22px; min-height: 50px;
  background: var(--brand); color: #fff; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.wide { width: 100%; }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: 14px; border-radius: 10px; }
.btn.wa { background: #25d366; }
.btn.wa:hover { background: #1eb257; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; text-align: center; }
.hero p.lead { font-size: clamp(16px, 3.4vw, 20px); color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 34px 0; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s, transform .12s;
  color: inherit; display: block;
}
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile .ico { font-size: 40px; line-height: 1; display: block; margin-bottom: 10px; }
.tile .t { font-weight: 650; font-size: 17px; }
.tile .d { color: var(--muted); font-size: 14px; margin-top: 4px; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 48px 0; }
.trust div { background: var(--bg-soft); border-radius: 14px; padding: 18px; }
.trust b { display: block; font-size: 15px; }
.trust span { color: var(--muted); font-size: 14px; }

/* ---------- Cards / forms ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px;
}
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: 12px; padding: 13px 14px; min-height: 50px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ---------- Adresų pasiūlymai ---------- */
.sugg-wrap { position: relative; }
.sugg {
  position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(16,24,40,.22); overflow: hidden; max-height: 320px; overflow-y: auto;
}
.sugg-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 12px 14px; cursor: pointer; font: inherit; border-bottom: 1px solid var(--line);
}
.sugg-item:last-child { border-bottom: 0; }
.sugg-item:hover, .sugg-item.on { background: var(--brand-soft); }
.sugg-item .s1 { display: block; font-weight: 600; font-size: 15px; }
.sugg-item .s2 { display: block; color: var(--muted); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pick {
  border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 18px 10px;
  text-align: center; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink);
}
.pick .ico { display: block; font-size: 30px; margin-bottom: 6px; }
.pick.on { border-color: var(--brand); background: var(--brand-soft); }

.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; margin: 6px 0 14px; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: 0 0 auto; }

/* ---------- Wizard ---------- */
.steps { display: flex; gap: 6px; margin: 20px 0 22px; }
.steps i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.steps i.on { background: var(--brand); }
.step-label { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.nav-row { display: flex; gap: 10px; margin-top: 8px; }
.nav-row .btn { flex: 1; }

/* ---------- Orders ---------- */
.order { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; background: #fff; }
.order-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.onum { font-weight: 700; }
.badge { font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.badge.pending { background: #fff6e5; color: #b54708; }
.badge.awaiting_payment { background: #f4ebff; color: #6941c6; }
.badge.confirmed { background: #e7f7ee; color: #027a48; }
.badge.in_progress { background: var(--brand-soft); color: var(--brand-dark); }
.badge.completed { background: #eafaf1; color: #05603a; }
.badge.cancelled { background: #fee4e2; color: #b42318; }
.route { font-size: 15px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin-top: 10px; font-size: 14px; }
.kv b { display: block; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--bg-soft); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.filters input, .filters select { min-height: 44px; padding: 10px 12px; }
.daygroup { margin: 22px 0 10px; font-weight: 700; font-size: 15px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 15px; z-index: 100; box-shadow: var(--shadow); max-width: 90vw;
}
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0; color: var(--muted); font-size: 14px; }


.sugg-note { padding: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Vairuotojai, pristatymo laikas, dokumentai ---------- */
.sum { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.sum::-webkit-details-marker { display: none; }
.sum::after { content: '▾'; margin-left: auto; color: var(--muted); }
details[open] > .sum::after { content: '▴'; }
.sub-h { font-weight: 700; font-size: 14px; margin: 16px 0 8px; }
.drv { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
/* išjungtas vairuotojas / adminas: pilkas fonas ir brūkšninis rėmelis vietoj permatomumo - tekstas lieka įskaitomas (A11Y-B2) */
.drv.off { background: var(--bg-soft); border-style: dashed; }
/* vairuotojo darbai - visu pločiu po vairuotojo eilute */
.drv-jobs { flex-basis: 100%; padding: 4px 0 2px; }
.drv-jobs .sub-h { margin-top: 0; }
.drv-jobs .jobs { list-style: none; margin: 0 0 10px; padding: 0; }
.drv-jobs .jobs li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.drv-jobs .jobs li.done { color: #475467; }
.drv-assign { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.drv-assign select { flex: 1 1 260px; min-width: 0; }
.drv-name { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
/* vairuotojo vardas GPS sąraše ir užsakymo kortelėje - mygtukas, atidarantis jo darbus */
button.drv-link { font: inherit; color: inherit; cursor: pointer; border: 0; text-decoration: underline dotted; text-underline-offset: 3px; }
button.drv-link:not(.badge) { background: none; padding: 0; }
button.drv-link:hover { text-decoration-style: solid; }
.drv.off b, .drv.off .muted, .drv.off .badge { color: #475467; }
.badge.drv-b { background: #f2f4f7; color: var(--ink); }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; margin-top: 14px; }
@media (max-width: 1000px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
.grid3 select, .grid3 input { min-height: 44px; padding: 10px 12px; }

details.docs { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.docs-in { margin-top: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px; background: #fff; }
.doc-link { color: inherit; }
.doc-link:hover { border-color: var(--brand); }
.doc-ico { font-size: 22px; }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-main a, .doc-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-act { display: flex; align-items: center; gap: 6px; }
.mini-check input { width: 20px; height: 20px; min-height: 0; }
.ok-txt { color: #027a48; }
.upl { background: var(--bg-soft); border-radius: 12px; padding: 14px; margin-top: 12px; }
.upl .sub-h { margin-top: 0; }
.upl input[type=file] { background: #fff; }

.eta-box { display: flex; flex-wrap: wrap; gap: 14px 28px; background: var(--brand-soft); border-radius: 12px;
  padding: 14px 16px; margin: 12px 0 4px; }
.eta-big { font-size: 18px; }

.stop { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.stop-l { grid-column: 1 / -1; font-size: 14px; }
.stop-a { font-size: 15px; }
.big-actions { margin-top: 14px; display: grid; gap: 8px; }
.btn.ok { background: var(--green); }
.btn.ok:hover { background: #0e9f5c; }

/* ---------- Vairuotojo reiso žingsniai ---------- */
.stepper { display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 6px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; min-height: 84px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--muted); }
.step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--bg-soft); color: var(--muted); font-size: 14px; }
.step-t { font-size: 13px; font-weight: 650; text-align: center; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 400px) { .step { padding: 10px 3px; } .step-t { font-size: 12px; } }
/* 4 būsenos siaurame ekrane - 2x2, kad žodžiai nebūtų laužomi */
@media (max-width: 470px) {
  .stepper.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper.many .step { min-height: 66px; }
}
.step.done { border-color: #b7e4cc; background: #f3fbf6; color: #027a48; }
.step.done .step-n { background: var(--green); color: #fff; }
.step.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); cursor: default; }
.step.on .step-n { background: var(--brand); color: #fff; }
.step:not(.on):hover { border-color: var(--brand); }
.step[disabled] { opacity: 1; }

.eta-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
/* tinklelio langeliai gali susitraukti siauriau už laukų natūralų plotį (kitaip 320 px telefonuose išlenda) */
.row > *, .grid3 > *, .grid-3 > *, .eta-pair > * { min-width: 0; }
.grid3 .eta-pair input { min-height: 44px; padding: 10px 12px; }

/* ---------- Užsakymo kortelės suskleidimas ---------- */
.order.collapsed > :not(.order-head):not(.route):not(.thumbs) { display: none !important; }
.order.collapsed .order-head { margin-bottom: 4px; }
.col-btn { width: 34px; height: 34px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 15px; color: var(--muted); flex: 0 0 auto; }
.col-btn::after { content: '▴'; }
.order.collapsed .col-btn::after { content: '▾'; }
.col-btn:hover { border-color: var(--brand); color: var(--brand); }
.col-bar { display: flex; gap: 8px; justify-content: flex-end; margin: 4px 0 10px; flex-wrap: wrap; }

/* ---------- Reiso atsisakymas / paslėpimas ---------- */
.remove-row { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: flex-end; }
/* be fono: kitaip paveldėtų .btn.danger raudoną foną (raudonas tekstas ant raudono - A11Y-B1) */
.btn.ghost.danger { color: #b42318; border-color: #fecdca; background: transparent; }
.btn.ghost.danger:hover { background: #fef3f2; }
.admin-log { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fffaeb; color: #93370d; font-size: 14px; }

/* ---------- Nuotraukų miniatiūros ir peržiūra ---------- */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; }
.thumb { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); cursor: zoom-in; flex: 0 0 auto; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: var(--brand); }
.order.collapsed .thumbs { margin-top: 6px; }
.order.collapsed .thumb { width: 48px; height: 48px; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,22,.92); display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lb-x, .lb-prev, .lb-next { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center; }
.lb-x { top: calc(14px + env(safe-area-inset-top)); right: 14px; font-size: 22px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-x:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.26); }
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; opacity: .8; }

/* ---------- Krovinio duomenys ---------- */
.cargo-extra { margin-top: 16px; padding: 14px; background: var(--bg-soft); border-radius: 12px; }
.cargo-extra .sub-h { margin-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-3 .field { margin-bottom: 8px; }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

/* ---------- Navigacijos pasirinkimas ---------- */
.nav-sheet { position: fixed; inset: 0; z-index: 150; background: rgba(16,24,40,.45); display: flex; align-items: flex-end; justify-content: center; }
.nav-box { background: #fff; width: 100%; max-width: 480px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.btn.waze { background: #33ccff; color: #05233a; }
.btn.waze:hover { background: #1fbcf0; }
@media (min-width: 700px) { .nav-sheet { align-items: center; } .nav-box { border-radius: 18px; } }

/* ---------- GPS žemėlapis ---------- */
.map-box { height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; background: var(--bg-soft); position: relative; z-index: 0; isolation: isolate; }
.map-box.small { height: 280px; }
.veh-pin span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap;
  background: var(--brand); color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 5px 8px; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(16,24,40,.25); }
.veh-pin span::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px;
  border: 5px solid transparent; border-bottom: 0; border-top-color: var(--brand); }
.veh-list { display: grid; gap: 6px; margin-top: 12px; }
.veh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); cursor: pointer; }
.veh > b { min-width: 120px; }
.veh.moving > b::before { content: '● '; color: var(--green); }
.veh .spacer { flex: 1; }
/* ---- langai (dialog): vairuotojo, užsakymo, naujo užsakymo ---- */
.new-order-top { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.dlg { border: 0; border-radius: 16px; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg); color: var(--ink); box-shadow: 0 24px 64px rgba(16, 24, 40, .32); }
.dlg-wide { width: min(980px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(16, 24, 40, .5); }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.dlg-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft); font-size: 16px; cursor: pointer; color: var(--ink); }
.dlg-x:hover { background: var(--line); }
.dlg-body { padding: 14px 18px 20px; }
.dlg-sub { margin: 0 0 12px; }
.dlg-sub a { text-decoration: underline; text-underline-offset: 2px; }
.dlg .order { margin: 0; padding: 0; border: 0; box-shadow: none; }
.dlg .jobs { display: grid; gap: 0; margin: 0 0 12px; }
.dlg .job { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; width: 100%; padding: 12px 8px; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.dlg .job:hover, .dlg .job:focus-visible { background: var(--bg-soft); }
.dlg .job.done { color: #475467; }
.dlg .job-num { color: var(--brand-dark); }
.dlg .job-go { margin-left: auto; font-size: 20px; line-height: 1; color: #98a2b3; }
.dlg .assign-ex { margin-top: 8px; }
.dlg .assign-ex summary { cursor: pointer; color: #475467; font-size: 14px; padding: 6px 0; }
.new-order { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 14px; background: var(--bg-soft); }
.new-order .field { margin: 0 0 10px; }
.new-order .no-more summary { cursor: pointer; color: #475467; font-size: 14px; padding: 4px 0 10px; }
@media (max-width: 600px) {
  .dlg, .dlg-wide { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .new-order-top .btn { width: 100%; }
}
/* vairuotojas GPS sąraše: vardas (jo darbai), „Darbai“, „Pridėti užsakymą“; darbų langas - visu pločiu po eilute */
.veh-drv { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; cursor: default; }
.veh-drv .btn.sm { padding: 4px 10px; }
.veh.no-veh { cursor: default; }
.veh .drv-jobs { cursor: default; background: var(--bg, #fff); border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.track-meta { font-size: 13px; color: var(--muted); margin-top: 8px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: #d92d20; }

/* ---------- Push pranešimų kortelė ---------- */
.push-box { padding: 14px 16px; }
/* pasiūlymas įjungti pranešimus - apačioje virš turinio */
.push-sheet { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); z-index: 90; padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.push-sheet .nav-row { justify-content: flex-end; }
.push-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.push-ico { font-size: 24px; line-height: 1; }
.push-txt { flex: 1 1 220px; min-width: 0; }
.push-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .push-btns { width: 100%; } .push-btns .btn { flex: 1; } }

/* ---------- 2026-10: slaptažodžio laukas, paspaudimo plotai (min 44 px) ---------- */
.pw-wrap { position: relative; }
/* Cloudflare Turnstile: matomas tik kai reikia patvirtinti */
.captcha:not(:empty) { margin: 12px 0; }
.pw-wrap input { padding-right: 84px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
  background: var(--bg-soft); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.langs button { min-height: 38px; min-width: 40px; }
/* ---------- 2 etapas: kainos pasiūlymas, mokėjimas, redagavimas ---------- */
.quote-box, .pay-box {
  margin-top: 12px; padding: 14px 16px; border-radius: 12px;
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.quote-box { background: #eff8ff; border: 1px solid #b2ddff; }
.pay-box { background: #ecfdf3; border: 1px solid #abefc6; display: block; }
.fee-box { background: #fffaeb; border: 1px solid #fedf89; }
.fee-box a { color: var(--brand-dark); text-decoration: underline; } /* 4,5:1 ant gelsvo fono ir pabraukta - atskiriama nuo teksto (A11Y-B3) */
#wizard h1 { font-size: clamp(20px, 4vw, 28px); } /* vedlio žingsnio antraštė - h1 puslapiui, bet h2 dydžio (A11Y-B6) */
.card.fee-box { margin-top: 12px; }
.edit-box { margin-top: 10px; }
.edit-box summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.verify-box { background: #fffaeb; border-color: #fedf89; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; font-size: 19px; }
.legal p, .legal li { color: #344054; }
.legal ul { padding-left: 20px; }

/* ---------- 3 etapas: įvertinimas, 2FA, žurnalas ---------- */
.rate-box { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #fffaeb; border: 1px solid #fedf89; }
.stars { display: flex; gap: 4px; margin: 6px 0 4px; }
.star { background: none; border: 0; font-size: 32px; line-height: 1; padding: 4px; min-width: 44px; min-height: 44px; color: #d0d5dd; cursor: pointer; }
.star.on { color: #f79009; }
.stars-static { color: #f79009; letter-spacing: 2px; }
.rate-box textarea { margin: 6px 0 8px; min-height: 64px; }
.tfa-secret { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: 2px; word-break: break-all;
  background: var(--bg, #f9fafb); padding: 10px 12px; border-radius: 8px; border: 1px dashed #d0d5dd; user-select: all; }
.rec-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.audit-row { display: grid; grid-template-columns: 128px 1fr; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid #eaecf0; font-size: 13px; }
.audit-row .when { color: #667085; }
@media (max-width: 600px) { .audit-row { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid #d0d5dd; }
.timeline li { position: relative; padding: 0 0 10px 6px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand, #1570ef); }

/* iPhone: atidarius klaviatūrą lipni antraštė „nušoka“ po būsenos juosta - kol rašoma, antraštė nelipni */
@supports (-webkit-touch-callout: none) {
  body:has(input:focus, textarea:focus, select:focus) header.top { position: relative; }
}
/* ---------- auditas 2026-10-17 ---------- */
/* poraštės nuorodos - didesnis paspaudimo plotas telefone */
footer a { display: inline-block; padding: 11px 0; }
/* prisijungusiam poraštėje „Prisijungti“ nerodoma */
body.logged-in footer .f-login { display: none; }
/* pranešimo atidarytas užsakymas paryškinamas */
.order, .trip { scroll-margin-top: 84px; }
.order.focus, .trip.focus { box-shadow: 0 0 0 3px var(--brand); transition: box-shadow .3s; }
.badge:empty { display: none; }
/* admin skirtukai: užsakymai / nustatymai */
.tabs { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs a { padding: 10px 16px; border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs a.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* ---------- iPhone patikra 2026-10-19 ---------- */
/* iPhone: tuščias datos laukas neturi jokio teksto - kalendoriaus ženklas rodo, kur spausti; data kairėje kaip kituose laukuose */
@supports (-webkit-touch-callout: none) {
  input[type=date] {
    -webkit-appearance: none; appearance: none; display: block;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
    padding-right: 46px;
  }
  input[type=date]::-webkit-date-and-time-value { text-align: left; }
}
/* teisiniuose puslapiuose nuorodos tekste - pabrauktos, ne tik kita spalva (prieinamumas, A11Y-A1) */
.legal p a, .legal li a { text-decoration: underline; text-underline-offset: 2px; }
.warn-note { color: #b54708; } /* neapmokėta pavedimu - įspėjimas vairuotojui (LOGIKA-29) */
/* naujo užsakymo lange antraštė jau yra lango viršuje - formos rėmelis ir antraštė nereikalingi */
#newDlg .new-order { border: 0; padding: 0; background: none; }
#newDlg .new-order > .sub-h { display: none; }
