/* Customer app, driver app and office panel */
h1 { font-size: 1.55rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 62px; padding: 6px max(16px, 50vw - 340px); background: #fff; border-bottom: 1px solid var(--line); } .bar img { width: 148px; } .bar .grow { flex: 1; }
.page { width: min(680px, 100% - 32px); margin: 0 auto; padding: 18px 0 104px; display: grid; gap: 14px; } .page > * { min-width: 0; }
.dock { position: fixed; z-index: 10; inset: auto 0 0; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); } .dock a { flex: 1; max-width: 150px; display: grid; justify-items: center; gap: 1px; padding: 7px 2px 4px; border-radius: 10px; text-decoration: none; color: var(--soft); font-size: .84rem; font-weight: 600; line-height: 1.2; } .dock .i { width: 1.6rem; height: 1.6rem; } .dock a[aria-current] { color: var(--orange-deep); background: var(--orange-soft); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1; } .icon-btn .count { position: absolute; top: 2px; right: 0; }
.trip { display: grid; gap: 10px; text-decoration: none; color: inherit; } .trip:hover { border-color: #b4bbaf; } .back { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.now { border: 2px solid var(--ink); border-radius: 16px; background: #fff; overflow: hidden; } .now > header { background: var(--ink); color: #fff; padding: 14px 18px; } .now > header p { color: #d3d8ce; } .now > div { padding: 18px; display: grid; gap: 14px; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; } .track li { border-top: 5px solid var(--line); padding-top: 6px; font-size: .85rem; line-height: 1.2; color: var(--soft); } .track .on { border-color: var(--leaf-bright); color: var(--ink); font-weight: 600; }
.choice { position: relative; display: block; } .choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; } .choice > div { border: 1.5px solid #c5cbc1; border-radius: 12px; padding: 14px; display: grid; gap: 8px; } .choice input:checked + div { border-color: var(--orange-deep); box-shadow: inset 0 0 0 1px var(--orange-deep); background: #fffaf5; } .choice input:focus-visible + div { outline: 3px solid var(--blue); } .choice details { position: relative; z-index: 1; } summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.driver { display: grid; grid-template-columns: 58px 1fr; gap: 12px 14px; align-items: center; } .avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); font-size: 1.5rem; font-weight: 700; } .plate { display: inline-block; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 6px; background: #ffd94a; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; } .facts dt { color: var(--soft); font-size: .92rem; } .facts dd { font-size: 1.3rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.big-act { min-height: 62px; font-size: 1.15rem; width: 100%; flex-direction: column; gap: 1px; } .big-act small { color: inherit; } .km input { font-size: 1.9rem; font-weight: 700; text-align: center; min-height: 66px; letter-spacing: .06em; background: var(--ink); color: var(--orange); border-color: var(--ink); } .km input::placeholder { color: #9aa094; font-size: 1.1rem; letter-spacing: 0; font-weight: 400; }
.times { display: flex; flex-wrap: wrap; gap: 8px; } .times button { min-height: 42px; padding: 4px 14px; border: 1.5px solid #c5cbc1; border-radius: 99px; background: #fff; font-weight: 600; } .times button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tyres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; } .tyres li { font-size: .88rem; line-height: 1.25; } .tyres b { display: block; font-size: 1.1rem; } .tyres i { display: block; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 5px; } .tyres i::after { content: ''; display: block; height: 100%; width: var(--p); background: var(--c); }
.due { display: grid; gap: 6px; } .due li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; } .due span:last-child { text-align: right; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; padding: 0; font-weight: 600; } .switch i { width: 52px; height: 30px; border-radius: 99px; background: #a5aca0; position: relative; transition: background .15s; } .switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; } .switch[aria-checked=true] i { background: var(--leaf); } .switch[aria-checked=true] i::after { transform: translateX(22px); }

/* Office */
.office { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; } .side { position: sticky; top: 0; height: 100dvh; overflow: auto; background: var(--ink); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 3px; } .side img { width: 178px; margin: 0 8px 16px; } .side a, .side .more { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 9px; color: #d8dcd4; text-decoration: none; font-weight: 600; } .side a:hover { background: #30342c; } .side a[aria-current] { background: var(--orange); color: #1b1208; } .side a .count { margin-left: auto; } .side .who { margin-top: auto; padding: 14px 12px 4px; font-size: .92rem; color: #c5cac0; } .more { display: none !important; }
.main { min-width: 0; padding: 20px clamp(16px, 2.6vw, 36px) 60px; display: grid; gap: 18px; align-content: start; } .main > * { min-width: 0; } .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .head h1 { margin-right: auto; }
.cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; } .cols > * { display: grid; gap: 14px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } .kpis > * { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .kpis dt { color: var(--soft); } .kpis dd { font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.queue { display: grid; gap: 10px; } .q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; } .q:hover { border-color: #aeb5a9; } .q b { overflow-wrap: anywhere; } .q p { color: var(--soft); } .q .btn { pointer-events: none; }
.tbl { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); } .tbl table { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-weight: 600; color: var(--soft); background: #fafbf9; } .tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl tr:last-child td { border-bottom: 0; } .tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .tbl tr[data-act] { cursor: pointer; } .tbl tr[data-act]:hover { background: #fafbf9; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; } .filters button { flex: none; min-height: 42px; padding: 4px 15px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; } .filters [aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); } .search { min-height: 44px; padding: 8px 14px; border: 1.5px solid #c5cbc1; border-radius: 10px; width: min(300px, 100%); background: #fff; }
.quote { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; } .quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; } .sampled input { border-color: var(--orange-deep); background: var(--orange-soft); }
.pickrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; } .pickrow:has(:checked) { border-color: var(--leaf); background: var(--leaf-soft); } .pickrow.no { background: #f6f7f5; color: var(--soft); } .pickrow input { width: 20px; height: 20px; accent-color: var(--leaf); }
.demo-strip { background: var(--leaf-soft); border-radius: 10px; padding: 9px 14px; }
@media (max-width: 1020px) { .cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .office { grid-template-columns: minmax(0, 1fr); } .side { position: fixed; z-index: 12; inset: auto 0 0; height: auto; flex-direction: row; justify-content: space-around; gap: 0; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); overflow: visible; } .side > img, .side .who { display: none; } .side a, .side .more { flex: 1; flex-direction: column; gap: 1px; padding: 6px 2px; font-size: .82rem; min-height: 54px; position: relative; justify-content: center; } .side .more { display: flex !important; border: 0; background: none; } .side a .count { position: absolute; top: 2px; right: 18%; } .side a.extra { display: none; } .side.open { flex-wrap: wrap; } .side.open a, .side.open .more { flex: 0 0 25%; } .side.open a.extra { display: flex; } .main { padding-bottom: 110px; }
  .tbl.cards { border: 0; background: none; overflow: visible; } .tbl.cards thead { display: none; } .tbl.cards table, .tbl.cards tbody { display: grid; gap: 10px; } .tbl.cards tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; } .tbl.cards td { border: 0; padding: 2px 0; } .tbl.cards td:nth-child(odd):last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .head .search { width: 100%; } .q { grid-template-columns: minmax(0, 1fr); } .q .btn { width: 100%; } .tyres { grid-template-columns: repeat(3, 1fr); } }
