:root {
  --navy: #101a30;
  --navy-deep: #071018;
  --navy-mid: #1c3f73;
  --ink: #f4f7fb;
  --orange: #f5c400;
  --orange-deep: #e0b000;
  --forest: #0b3d28;
  --leaf: #3dff7a;
  --cane: #2ad36a;
  --mist: #163024;
  --sand: #18243c;
  --paper: #101a30;
  --passion: #b06bff;
  --passion-soft: #2a1848;
  --steel: #3aa0ff;
  --gold: #f5c400;
  --clay: #ff8b7a;
  --line: rgba(255,255,255,.1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overscroll-behavior: none; background: #0d4a30; }
html { scroll-behavior: smooth; }
main.wrap.slide-up { animation: slideUp .35s ease; }
main.wrap.slide-down { animation: slideDown .35s ease; }
@keyframes slideUp {
  from { transform: translateY(12px); }
  to { transform: none; }
}
@keyframes slideDown {
  from { transform: translateY(-12px); }
  to { transform: none; }
}
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(180,255,80,.55), transparent 50%),
    linear-gradient(165deg, #8dff4a 0%, #2ad36a 32%, #0d4a30 68%, #071018 100%);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 18px 64px; }
.card {
  background: #101a30;
  color: #f4f7fb;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
body { --card: #101a30; }
body[data-page="home"],
body[data-page="trucks"],
body[data-page="drive"],
body[data-page="cane"],
body[data-page="passion"],
body[data-page="money"] {
  --card: #101a30;
  --line: rgba(255,255,255,.1);
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(180,255,80,.5), transparent 50%),
    linear-gradient(165deg, #8dff4a 0%, #2ad36a 32%, #0d4a30 68%, #071018 100%);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img.mark-img {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; background: #102840; display: block;
}
.logo-lockup { display: flex; flex-direction: column; }
.logo-lockup strong { letter-spacing: .04em; }
.logo-lockup .eyebrow { color: var(--orange); letter-spacing: .2em; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #f5c400; }
.muted { color: rgba(244,247,251,.62); font-size: 14px; line-height: 1.55; }
.btn {
  border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer;
  font-weight: 600; font-size: 14px;
}
.btn-primary { background: #2f8cff; color: #fff; }
.btn-primary:hover { background: #1d74e0; color: #fff; }
.btn-steel { background: #1c3f73; color: #fff; }
.btn-passion { background: #b06bff; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.btn.wide { width: 100%; }
.field, select.field, textarea.field {
  width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14); background: #0c1526; color: #fff; outline: none;
}
select.field, select.nav-jump {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-color: #0c1526;
  background-image: linear-gradient(180deg, #f5c400, #e0b000);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px 22px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><rect rx='6' width='22' height='22' fill='%23f5c400'/><path d='M6 9l5 5 5-5' fill='none' stroke='%23102840' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  cursor: pointer;
}
select.field option, select.nav-jump option { color: #102840; background: #fff; }
.field:focus { border-color: #f5c400; box-shadow: 0 0 0 3px rgba(245,196,0,.25); }
.label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(244,247,251,.55); margin: 0 0 6px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 16px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--navy); }
.kpi.steel::before { background: var(--navy-mid); }
.kpi.passion::before { background: var(--passion); }
.kpi.gold::before { background: var(--orange); }
.kpi b { display: block; font-size: 20px; margin-top: 4px; }
.badge {
  display: inline-flex; border-radius: 999px; padding: 2px 8px;
  font-size: 11px; font-weight: 600; text-transform: none;
  background: #18243c; color: #f4f7fb;
}
.badge.green { background: #143322; color: #3dff7a; }
.badge.blue { background: #132844; color: #7cbcff; }
.badge.gold { background: #3a3208; color: #f5c400; }
.badge.red { background: #3a1614; color: #ff8b7a; }
.badge.purple { background: #2a1848; color: #d2a8ff; }
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7,16,24,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245,196,0,.35);
  color: #f4f7fb;
}
.top .eyebrow { color: #f5c400; }
.top-in { max-width: 1080px; margin: 0 auto; padding: 10px 18px; display: flex; flex-direction: column; gap: 10px; }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.top-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.who-block { text-align: right; }
#refresh { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; position: relative; }
@media (max-width: 800px) {
  #refresh { display: inline-flex; margin-right: 8px; }
  .top-user { flex-direction: column; align-items: flex-end; gap: 8px; }
  .who-block { margin-top: 6px; }
}
#out { background: transparent; color: #f4f7fb; border: 1px solid rgba(244,247,251,.35); white-space: nowrap; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a, .nav button.linkish {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer; color: #d7e3ef;
}
.nav a.on, .nav button.on { background: #f5c400; color: #102840; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.list { display: grid; gap: 10px; }
.item { padding: 14px 16px; }
.err { color: var(--clay); font-size: 14px; }
.ok { color: #0f7a4a; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; background: var(--sand); border-radius: 999px; padding: 6px 10px; cursor: pointer; font-size: 12px; }
.chip.on { background: var(--navy); color: #fff; }
.inspect-part .mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}
.inspect-part .mark::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #c5cdd6;
  background: #fff;
  box-sizing: border-box;
}
.inspect-part .mark.pass.on { color: #1d7a3a; }
.inspect-part .mark.pass.on::before { border-color: #1d7a3a; background: #1d7a3a; box-shadow: 0 0 0 3px #fff inset; }
.inspect-part .mark.warn.on { color: #a67c00; }
.inspect-part .mark.warn.on::before { border-color: #e0b000; background: #f5c400; box-shadow: 0 0 0 3px #fff inset; }
.inspect-part .mark.fail.on { color: #b42318; }
.inspect-part .mark.fail.on::before { border-color: #d92d20; background: #d92d20; box-shadow: 0 0 0 3px #fff inset; }
.block-btn { border: 0; border-radius: 12px; padding: 10px; cursor: pointer; background: var(--sand); }
.block-btn.on { background: var(--passion); color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(244,247,251,.5); padding: 10px 14px; background: #0c1526; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.login-page {
  min-height: 100vh;
  display: grid;
  background: #071018;
}
@media (min-width: 860px) {
  .login-page { grid-template-columns: 1.05fr 1fr; }
}
.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(141,255,74,.45), transparent 42%),
    linear-gradient(180deg, #5dff4a, #0d4a30);
  color: #f4f7fb;
}
.login-brand img.logo-full {
  width: min(320px, 80%);
  height: auto;
  display: block;
}
.login-brand h1 { font-size: 36px; line-height: 1.12; margin-top: 28px; color: #fff; }
.login-brand h1 span { color: var(--orange); }
.login-brand p, .login-brand li { color: rgba(244,247,251,.72); }
.login-brand ul { margin: 18px 0 0; padding-left: 18px; }
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(800px 300px at 80% -20%, rgba(240,144,24,.12), transparent 50%),
  background: #071018;
}
.demo {
  width: 100%; text-align: left; background: #101a30; color: #f4f7fb;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between;
}
.demo:hover { border-color: var(--orange); }
@media (max-width: 720px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .row { flex-direction: column; }
  .login-brand { padding: 32px 22px 16px; }
}

.prompt {
  background: linear-gradient(135deg, #102840, #163454);
  color: #f4f7fb;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(240,144,24,.45);
}
.prompt .eyebrow { color: var(--orange); }
.prompt h2 { color: #fff; }
.prompt .muted { color: rgba(244,247,251,.72); }

.tabs { display:flex; align-items:center; gap:6px; margin-top:12px; flex-wrap:wrap; }
.tabs a { border-radius:999px; padding:7px 14px; background:rgba(16,40,64,.06); font-size:14px; font-weight:600; }
.tabs a.on { background:var(--navy); color:#fff; }
.tabs .btn { padding:8px 14px; }

.thumbs { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.thumbs img { width:88px; height:88px; object-fit:cover; border-radius:10px; background:#102840; }

html { overflow-x: hidden; }
body { padding-bottom: env(safe-area-inset-bottom); }
.top-in { flex-wrap: wrap; }
.page-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pay-slip { background: #10243f; color: #fff; border-radius: 16px; padding: 14px; margin-top: 10px; display: grid; gap: 4px; }
.pay-slip h2 { color: #d6f25c; font-size: 20px; }
.admin-nav { background: #10243f; border-radius: 18px; padding: 12px; margin: 0 0 16px; }
.admin-nav .biz { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.admin-nav .biz a, .admin-nav .sub a { text-decoration: none; text-align: center; }
.admin-nav .biz a { color: #d7e3ef; padding: 10px 4px; border-radius: 12px; font-weight: 650; }
.admin-nav .biz a.on { background: #d6f25c; color: #10243f; }
.admin-nav .sub { display: flex; gap: 6px; overflow: auto; margin-top: 10px; }
.admin-nav .sub a { color: #d7e3ef; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.admin-nav .sub a.on { background: #fff; color: #10243f; }
.notice-bar { margin-top: 14px; background: #10243f; border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.notice-bar a, .notice-bar p { color: #fff; }
.desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.page-links a { border-radius: 999px; padding: 8px 12px; background: #10243f; color: #fff; text-decoration: none; }
.page-links a.on { background: #d6f25c; color: #10243f; }
main.wrap h1, main.wrap p { color: #f4f7fb; }
.page-links a { border-radius: 999px; padding: 8px 12px; background: #10243f; color: #fff; text-decoration: none; }
.page-links a.on { background: #d6f25c; color: #10243f; }
.pulse { position: relative; }
.pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 18px;
  border: 2px solid #e23b3b;
  animation: taskpulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.pulse-row { box-shadow: inset 3px 0 0 #e23b3b; animation: taskglow 2.4s ease-in-out infinite; }
@keyframes taskpulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.035); opacity: .25; }
}
@keyframes taskglow {
  0%, 100% { background: rgba(226,59,59,.16); }
  50% { background: rgba(226,59,59,.04); }
}
.top-menu { margin: 0; min-width: 180px; }
@media (max-width: 800px) {
  .top-menu { width: 100%; }
}
.desk { display: block; }
.side { position: static; background: transparent; padding: 0; }
.card { overflow: hidden; }
table { min-width: 560px; }
.field, select.field, textarea.field { font-size: 16px; }
img, video, audio { max-width: 100%; }
@media (max-width: 800px) {
  .desk-only { display: none !important; }
  .who-block { display: none; }
  .wrap { padding: 16px 12px 48px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .top-in { padding: 10px 12px; }
  #navJump { max-width: none; width: 100%; }
  .login-brand h1 { font-size: 28px; }
  #routeMap { height: 180px !important; }
}
@media (min-width: 801px) {
  .desk-only { display: flex; }
}

/* ── Money: spend + payroll ── */
.lbl { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: rgba(244,247,251,.7); letter-spacing: .02em; }
.lbl .field { font-weight: 400; }
.form-step { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f5c400; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: #0c1526; border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.seg-btn { border: 0; background: transparent; color: #d7e3ef; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg-btn.on { background: #f5c400; color: #101a30; }
.seg-sm .seg-btn { padding: 6px 12px; font-size: 13px; }
.seg .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: #ff8b7a; color: #101a30; font-size: 11px; line-height: 18px; }
.pay-fields { background: #0c1526; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: rgba(244,247,251,.75); }
.money-table td b { font-weight: 600; }
.money-table .nowrap { white-space: nowrap; }
.money-table tr.sub td { border-top: 0; padding-top: 0; }
.kpi.warnline::before { background: #ff8b7a; }
.worker { padding: 16px; }
.worker-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: #1c3f73; color: #fff; font-weight: 700; font-size: 18px; }
.wname { font-size: 17px; }
.chip-line { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: #132844; color: #7cbcff; font-size: 12px; font-weight: 600; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 14px; background: var(--line); border-radius: 12px; overflow: hidden; }
.stat-strip > div { background: #0c1526; padding: 10px 12px; }
.stat-strip span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(244,247,251,.5); }
.stat-strip b { display: block; margin-top: 3px; font-size: 15px; }
details.settings { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
details.settings summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #7cbcff; }
.pay-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pay-line:first-child { border-top: 0; }
.card.pay-line { padding: 12px 14px; border-top: 0; }
details.pay-line { display: block; padding: 0; }
details.pay-line > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
details.pay-line > summary::-webkit-details-marker { display: none; }
details.pay-line[open] > summary .btn { background: #1c3f73; }
.pay-form { padding: 4px 0 14px; }
.due-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.amt { white-space: nowrap; }
.pay-line.paid .amt { color: #3dff7a; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.month-head { display: flex; justify-content: space-between; margin: 14px 2px 6px; font-size: 14px; }
.month-head span { color: #3dff7a; font-weight: 700; }
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .pay-line, details.pay-line > summary { align-items: flex-start; }
  .due-right { flex-direction: column; align-items: flex-end; gap: 6px; }
  .seg { width: 100%; }
  .seg-btn { flex: 1; padding: 8px 10px; }
}
@media (max-width: 800px) { .grid.kpi4 { grid-template-columns: 1fr 1fr !important; } .kpi4 .kpi b { font-size: 17px; } }

/* ── Advances + team ── */
details.team-row { padding: 12px 14px; }
details.team-row > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
details.team-row > summary::-webkit-details-marker { display: none; }
details.team-row.add .avatar, details.team-row .avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
.adv-card { padding: 14px 16px; }
.adv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.adv-title { font-size: 16px; }
.adv-amt { font-size: 18px; white-space: nowrap; }
.adv-bar { height: 8px; border-radius: 999px; background: #0c1526; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); }
.adv-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3aa0ff, #3dff7a); }
.adv-nums { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: rgba(244,247,251,.7); }
.use-list { margin-top: 10px; border-top: 1px solid var(--line); }
.use-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.use-row:last-child { border-bottom: 0; }
.receipt { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.receipt.none { display: grid; place-items: center; text-align: center; font-size: 9px; line-height: 1.2; color: rgba(244,247,251,.45); background: #0c1526; }
.req-box { border: 1px solid rgba(245,196,0,.35); }
.adv-act { margin-top: -4px; }
@media (max-width: 720px) {
  .adv-head { flex-direction: column; }
  .adv-head > div:last-child { text-align: left !important; display: flex; gap: 10px; align-items: center; }
}

/* ── Attention: a request is waiting ── */
.admin-nav .sub a.attn, .page-links a.attn { background: #f5c400; color: #101a30; border-color: #f5c400; font-weight: 700; }
.admin-nav .sub a.attn.on, .page-links a.attn.on { box-shadow: 0 0 0 2px #fff inset; }
.attn-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: #101a30; color: #f5c400; font-size: 11px; line-height: 18px; text-align: center; }
.attn-dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: #f5c400; vertical-align: middle; box-shadow: 0 0 0 2px #10243f; }
.kpi.attn-kpi { background: #3a3208; }
.kpi.attn-kpi::before { background: #f5c400; }
a.req-link { text-decoration: none; color: inherit; display: block; }
a.req-link .muted { font-size: 12px; }
.adv-right { text-align: right; }

.login-line { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13px; color: rgba(244,247,251,.75); }
.login-line b { color: #fff; letter-spacing: .04em; }
.linkbtn { background: none; border: 0; color: #7cbcff; font-weight: 600; cursor: pointer; padding: 0 4px; font-size: 13px; }

/* ── Requests: pay in full, in parts, or settle for less ── */
details.req-card { padding: 0; margin-top: 10px; border: 1px solid rgba(245,196,0,.35); }
details.req-card > summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
details.req-card > summary::-webkit-details-marker { display: none; }
details.req-card[open] > summary { border-bottom: 1px solid var(--line); }
details.req-card[open] > summary .btn { display: none; }
.req-body { padding: 14px 16px; }
.req-alt { margin-top: 10px; display: flex; justify-content: flex-end; }
.req-progress { height: 6px; border-radius: 999px; background: #0c1526; margin: 8px 0 4px; overflow: hidden; max-width: 260px; }
.req-progress span { display: block; height: 100%; background: #f5c400; }
.receiver { display: flex; gap: 12px; align-items: center; background: #0c1526; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.receiver b { display: block; font-size: 16px; }
.receiver .muted { font-size: 12px; }
.part-choice { margin-top: 10px; background: #3a3208; border: 1px solid rgba(245,196,0,.4); border-radius: 12px; padding: 10px 12px; }
.part-choice .check { align-items: flex-start; }
.attn-n.big { font-size: 13px; line-height: 22px; min-width: 22px; vertical-align: middle; background: #f5c400; color: #101a30; }

/* ── Sign-in security ── */
.phone-box { margin-top: 12px; background: #0c1526; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.phone-box.attn { border-color: #f5c400; background: #2b2608; }
details.team-row.attn-row { border: 1px solid rgba(245,196,0,.55); }
.team-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.warn-t { color: #f5c400; font-weight: 600; }
a.card.attn-card { border: 1px solid #f5c400; background: #2b2608; }
.view-banner { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f5c400; color: #101a30; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.view-banner .btn { background: #101a30; color: #fff; }
.view-off { opacity: .55; pointer-events: none; }

/* ── Fleet tasks ── */
.part-group { margin-top: 10px; }
.part-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 13px; cursor: pointer; }
.pchip:has(input:checked) { background: #f5c400; color: #101a30; border-color: #f5c400; font-weight: 700; }
.pchip input { accent-color: #101a30; }
details.task-card { padding: 0; }
details.task-card > summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
details.task-card > summary::-webkit-details-marker { display: none; }
.task-body { padding: 0 16px 14px; }
.instr { margin-top: 10px; background: #0c1526; border-left: 4px solid #3aa0ff; border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.5; }
.instr.back { border-left-color: #ff8b7a; background: #2a1414; }
.task-card.driver { padding: 14px 16px; }
.task-card.driver.urgent { border: 1px solid #ff8b7a; }
.task-title { font-size: 19px; margin: 4px 0 2px; }
.todo-parts { margin: 10px 0 4px 18px; display: grid; gap: 4px; font-weight: 600; }
.reply-box { margin-top: 12px; background: #0c1526; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.reply-part { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.reply-part:last-of-type { border-bottom: 0; }
.reply-photo { max-width: 220px; width: 100%; border-radius: 10px; cursor: zoom-in; }
.reply-photo.big { max-width: 100%; cursor: zoom-out; }
.review-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; flex-wrap: wrap; }
.task-part { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tp-name { font-size: 16px; display: block; margin-bottom: 6px; }
.tp-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.voice-box { background: #0c1526; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.voice-box.on { border-color: #ff8b7a; }
.voice-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.voice-time { font-variant-numeric: tabular-nums; color: rgba(244,247,251,.75); }
.voice-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.voice-bar span { display: block; height: 100%; width: 0; background: #ff8b7a; }
details.task-card > summary > .badge, details.req-card > summary .badge { align-self: flex-start; white-space: nowrap; flex: 0 0 auto; }

/* ═══ Clean, consistent look ═══ */
#app h1 { font-size: 24px; letter-spacing: -.01em; margin: 4px 0 2px; }
#app h2 { font-size: 18px; }
.lbl.auto { margin-top: 0; }
.grid > .lbl.auto { margin: 0; }
/* totals two-across on phones instead of one huge box per row */
@media (max-width: 800px) {
  .grid:has(> .kpi) { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .grid:has(> .kpi) > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi { padding: 12px 14px; }
  .kpi b { font-size: 17px; }
  .kpi .eyebrow { font-size: 10px; letter-spacing: .12em; }
}
.badge.purple { background: #2a1848; color: #d2a8ff; }
.pos { color: #3dff7a; } .neg { color: #ff8b7a; } .gold-t { color: #f5c400; }
/* Home */
.hello { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.attn-card-list { padding: 14px 16px; margin-top: 12px; }
.attn-line { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.attn-line .t { flex: 1; font-weight: 600; }
.attn-line .chev { color: rgba(244,247,251,.4); font-size: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; background: #f5c400; }
.dot.red { background: #ff8b7a; } .dot.blue { background: #7cbcff; } .dot.purple { background: #d2a8ff; } .dot.green { background: #3dff7a; }
a.month-card { display: block; padding: 14px 16px; margin-top: 10px; color: inherit; text-decoration: none; }
.mini-kpis { margin-top: 10px; } .mini-kpis span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(244,247,251,.5); } .mini-kpis b { font-size: 16px; }
.biz-cards { display: grid; gap: 10px; margin-top: 10px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .biz-cards { grid-template-columns: 1fr; } }
a.biz-card { display: block; padding: 14px 16px; color: inherit; text-decoration: none; border-top: 3px solid #3aa0ff; }
a.biz-card.cane { border-top-color: #2ad36a; } a.biz-card.passion { border-top-color: #b06bff; }
.biz-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 4px; font-size: 14px; } .biz-stats b { font-size: 18px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* Flow ledger */
.flow-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.flow-filters .field { flex: 1 1 140px; width: auto; }
.kpi.in-kpi::before { background: #3dff7a; } .kpi.out-kpi::before { background: #ff8b7a; }
.biz-table { margin-top: 10px; overflow: auto; } .biz-table table { min-width: 0; } .biz-table td.num { text-align: right; white-space: nowrap; } .js-bizrow { cursor: pointer; }
.side-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
@media (max-width: 800px) { .side-grid { grid-template-columns: 1fr; } }
.side-card { padding: 12px 14px; } .side-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.day-head { display: flex; justify-content: space-between; margin: 14px 2px 6px; font-size: 14px; }
.ledger { padding: 0 14px; }
details.led-row > summary { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 0; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
details.led-row:last-child > summary { border-bottom: 0; }
details.led-row > summary::-webkit-details-marker { display: none; }
.led-main { display: grid; min-width: 0; } .led-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .led-main .muted { font-size: 12px; }
.led-amt { white-space: nowrap; }
.led-detail { display: grid; gap: 4px; padding: 6px 0 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
/* Docs */
.doc-tools { display: grid; gap: 8px; margin-top: 12px; }
.doc-seg { display: flex; overflow: auto; flex-wrap: nowrap; } .doc-seg .seg-btn { white-space: nowrap; flex: 0 0 auto; }
.doc-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; }
.doc-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0c1526; padding: 0; cursor: pointer; display: grid; place-items: center; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdf { font-weight: 800; color: #ff8b7a; letter-spacing: .05em; } .pdf.small { font-size: 13px; }
.doc-info { flex: 1; min-width: 0; display: grid; gap: 2px; } .doc-info .muted { font-size: 13px; }
.doc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* keep header rows side by side on phones */
.hello, .attn-card-list > .row, a.month-card > .row, a.biz-card > .row, .side-card > .row, .doc-card, .adv-head.keep { flex-direction: row !important; }
.attn-card-list > .row, a.month-card > .row, a.biz-card > .row, .side-card > .row { justify-content: space-between; align-items: center; }
.biz-table th, .biz-table td { padding: 9px 10px; font-size: 13px; }
@media (max-width: 420px) { .biz-table th, .biz-table td { padding: 8px 6px; font-size: 12px; } }
.row.keep { flex-direction: row !important; justify-content: space-between; }
.biz-table table { min-width: 0 !important; width: 100%; }
.led-main b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trust-card.on { border: 1px solid #3aa0ff; }

/* office sync light */
.sync-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #6b7a90; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.sync-dot.green { background: #3dff7a; }
.sync-dot.gold { background: #f5c400; }
.sync-dot.red { background: #ff5a5a; }
.sync-bar { max-width: 1080px; margin: 10px auto 0; padding: 10px 14px; border-radius: 12px; background: #3a1414; border: 1px solid #ff5a5a; color: #ffd9d9; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sync-bar[hidden] { display: none; }
.sync-word { font-size: 11px; font-weight: 600; opacity: .85; }

/* phones: a section's pages in one drop-down */
.page-pick { display: none; }
@media (max-width: 800px) {
  .admin-nav .sub, .page-links { display: none; }
  .page-pick { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
  .page-pick select { flex: 1; font-weight: 700; }
  .admin-nav .page-pick select { background-color: #fff; color: #10243f; border-color: transparent; }
  .pick-attn { background: #f5c400; color: #101a30; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
  .tab-wrap { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; }
  .tab-wrap .page-pick { flex: 1; margin-top: 0; }
}

.pick-row { width: 100%; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pick-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.08); }
.worker-head .js-paydone { align-self: flex-start; }

/* client bookings */
.bk-card summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; padding: 14px; }
.bk-card summary::-webkit-details-marker { display: none; }
.bk-body { padding: 0 14px 14px; }
.bk-route { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.bk-route .btn { justify-self: start; margin-top: 4px; }
.pin-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.pin-dot.a { background: #f29a12; } .pin-dot.b { background: #c4602d; }
.bk-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; }
.bk-facts dt { color: #9fb2c8; } .bk-facts dd { margin: 0; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bk-form { margin-top: 12px; }
.btn-whatsapp { background: #1fa855; color: #fff; border: 0; text-decoration: none; }
.share-card .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* sign-in page: way in for clients */
.client-entry { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); margin-top: 14px; padding: 10px; border-radius: 18px; background: #fff; color: #10243f; text-decoration: none; border: 2px solid #f29a12; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.client-entry img { width: 76px; height: 54px; object-fit: cover; border-radius: 12px; flex: none; }
.client-entry b { display: block; font-size: 16px; }
.client-entry small { display: block; color: #4a5d75; font-size: 13px; }
.login-panel { display: flex; flex-direction: column; align-items: center; }

.bk-pay { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(245,196,0,.12); border: 1px solid rgba(245,196,0,.5); }

.trip-ctl { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.trip-ctl select { width: auto; min-width: 150px; padding: 6px 8px; min-height: 36px; font-size: 13px; }
.trip-now { margin-top: 10px; display: flex; align-items: center; gap: 8px; }

/* where a load came from */
.src-chip { display: inline-flex; align-items: center; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; font-family: inherit; white-space: nowrap; }
.src-chip.client { background: #f29a12; color: #10243f; cursor: pointer; }
.src-chip.office { background: rgba(255,255,255,.08); color: #c9d6e4; border-color: rgba(255,255,255,.18); }
.src-chip.driver { background: rgba(58,160,255,.15); color: #9fd0ff; border-color: rgba(58,160,255,.35); }
.src-seg { grid-template-columns: repeat(4, 1fr); }

/* while the app opens: a quiet spinner instead of placeholder pages */
.boot-load { min-height: 50vh; display: grid; place-items: center; }
.boot-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #f5c400; animation: bootspin .8s linear infinite; }
@keyframes bootspin { to { transform: rotate(360deg); } }
html.going .login-panel { visibility: hidden; }
html.going .login-page::after { content: ""; position: fixed; left: 50%; top: 60%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #f5c400; animation: bootspin .8s linear infinite; }
/* client entry on the sign-in page */
.client-entry { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; width: min(420px, 100%); margin-top: 16px; padding: 10px 14px 10px 10px; border-radius: 20px; background: linear-gradient(135deg, #ffb52e, #f29a12); color: #10243f; text-decoration: none; border: 0; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.client-entry img { width: 96px; height: 68px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.client-entry b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.client-entry small { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(16,36,63,.12); color: #10243f; font-size: 12px; font-weight: 700; }
.client-entry .go { width: 36px; height: 36px; border-radius: 50%; background: #10243f; color: #fff; display: grid; place-items: center; }
.client-entry:active { transform: translateY(1px); }

/* sign-in page: team vs client */
.who-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.who-tag.team { background: rgba(58,160,255,.15); color: #9fd0ff; border: 1px solid rgba(58,160,255,.35); }
#login h2 { margin-top: 0; }
.or-line { width: min(420px, 100%); display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: rgba(244,247,251,.55); font-size: 13px; font-weight: 600; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: rgba(244,247,251,.18); }
.client-entry { margin-top: 12px; }
.client-entry .ce-text { display: block; min-width: 0; }
.client-entry em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: rgba(16,36,63,.7); margin-bottom: 1px; }
.client-entry b { line-height: 1.15; }

.fresh-card { border: 1px solid rgba(255,90,90,.45); }
.fresh-card summary { cursor: pointer; list-style: none; }
.fresh-card summary::-webkit-details-marker { display: none; }
.btn-danger { background: #c62828; color: #fff; border: 0; }

/* ---- waiting on you: a red light flashes until someone responds ---- */
@keyframes navflash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,.85); } 60% { box-shadow: 0 0 0 7px rgba(255,59,59,0); } }
@keyframes lightblink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.8); } }
@keyframes cardflash { 0%, 100% { box-shadow: inset 4px 0 0 #ff3b3b, 0 0 0 0 rgba(255,59,59,.55); } 50% { box-shadow: inset 4px 0 0 #ff3b3b, 0 0 0 6px rgba(255,59,59,0); } }
.admin-nav .sub a.attn, .page-links a.attn { animation: navflash 1.6s ease-out infinite; }
.attn-n { background: #ff3b3b !important; color: #fff !important; animation: lightblink 1.2s ease-in-out infinite; }
.attn-dot { background: #ff3b3b; box-shadow: 0 0 6px 1px rgba(255,59,59,.9); animation: lightblink 1.2s ease-in-out infinite; }
.pick-attn { background: #ff3b3b !important; color: #fff !important; animation: navflash 1.6s ease-out infinite; }
.attn-line .dot { animation: lightblink 1.2s ease-in-out infinite; }
.kpi.attn-kpi, .flash { animation: cardflash 1.6s ease-in-out infinite; border-color: rgba(255,59,59,.75) !important; }
.btn.flash { animation: navflash 1.6s ease-out infinite; }
.note-line { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 10px; margin-top: 6px; border-radius: 10px; border: 1px solid transparent; }
.note-line p { margin: 0; flex: 1; }

/* ---- voice notes are red, so they're easy to spot ---- */
.voice-box { background: #2a0e12; border: 1.5px solid #e23b3b; }
.voice-box.on { border-color: #ff6b5e; box-shadow: 0 0 0 3px rgba(226,59,59,.3); }
.voice-box .lbl { color: #ffb4ab; font-weight: 700; }
.voice-bar span { background: #ff3b3b; }
.btn-rec { background: #e23b3b; color: #fff; border: 0; font-weight: 700; }
.btn-rec:hover { background: #c92f2f; }
audio.voice-play { display: block; border-radius: 999px; background: #e23b3b; outline: 2px solid #e23b3b; }
audio.voice-play::-webkit-media-controls-panel { background: #ffd6d2; }
.voice-box.on .btn-rec, .btn-rec.rec-on { background: #1fbf5a; color: #fff; opacity: 1; animation: lightblink 1.2s ease-in-out infinite; }
.voice-box.on { border-color: #1fbf5a; box-shadow: 0 0 0 3px rgba(31,191,90,.3); }
.voice-box.on .voice-bar span { background: #1fbf5a; }

/* driver load lists: ID + material, tap to open */
.load-fold { padding: 0; overflow: hidden; }
.lf-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lf-id { font-weight: 800; letter-spacing: .02em; }
.lf-mat { flex: 1; min-width: 0; color: rgba(244,247,251,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-head .amt { white-space: nowrap; }
.lf-chev { font-size: 22px; line-height: 1; color: rgba(244,247,251,.5); transition: transform .15s; }
.load-fold.open { border-color: #f5c400; }
.load-fold.open .lf-chev { transform: rotate(90deg); color: #f5c400; }
.lf-body { margin: 0; padding: 4px 16px 14px; border-top: 1px solid var(--line); }
.lf-body[hidden] { display: none !important; }

/* ---- shared form sections ---- */
.form-card { display: block; }
.form-step { margin: 18px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f5c400; }
.form-step:first-child { margin-top: 2px; }
.form-step .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lbl .muted { font-weight: 400; }
.sum-line { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: rgba(245,196,0,.1); color: #f5c400; font-weight: 700; }
.lbl > select.js-cargo + .js-cargo-other { margin-top: 6px; }

/* ---- grouped Fleet menu ---- */
.admin-nav .sub .sub-gap { flex: 0 0 1px; align-self: stretch; margin: 4px 4px; background: rgba(255,255,255,.18); }

/* ---- office cards ---- */
.lf-head .badge { flex: 0 0 auto; }
.lf-src { margin: 10px 0 2px; }
.lf-trip:empty { display: none; }
.lf-trip { margin-top: 12px; }
.lf-actions { display: flex; gap: 8px; margin-top: 14px; }
.lf-actions .btn { flex: 1; }
.lf-body .thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.lf-body .bk-actions { margin-top: 12px; }
.truck-form { margin-top: 10px; }
.lic-img { display: block; max-width: 180px; border-radius: 10px; margin-top: 10px; }
.trash-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.trash-btns { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 520px) { .trash-row { flex-direction: column; align-items: stretch; } .trash-btns .btn { flex: 1; } }

/* ---- inspection counter ---- */
.inspect-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); position: sticky; top: 0; z-index: 2; backdrop-filter: blur(6px); }
.ok-t { color: #3dff7a !important; font-weight: 700; }

/* ---- bottom sheet ---- */
body.sheet-open { overflow: hidden; }
.sheet-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(4,10,20,.6); display: flex; align-items: flex-end; justify-content: center; animation: sheetFade .15s ease-out; }
.sheet { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #101a30; color: #f4f7fb; border: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.45); animation: sheetUp .2s ease-out; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-head b { font-size: 17px; }
.sheet-body { display: grid; gap: 10px; }
.sheet .err { min-height: 0; margin: 8px 0 0; color: #ff8b7a; }
.sheet .err:empty { display: none; }
.sheet .btn.wide { margin-top: 14px; }
.icon-x { background: rgba(255,255,255,.08); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer; flex: 0 0 auto; }
.js-ref[hidden] { display: none !important; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; border-bottom: 1px solid rgba(255,255,255,.12); } }
@keyframes sheetUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
.js-new-seller[hidden], .js-fuel-note[hidden] { display: none !important; }

/* ---- OK / Needs attention / Not OK as pill buttons ---- */
.inspect-part .mark { display: inline-flex; align-items: center; justify-content: center; padding: 7px 10px; min-height: 34px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: rgba(244,247,251,.8); font-size: 11px; font-weight: 800; letter-spacing: .04em; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.inspect-part .mark::before { display: none !important; }
.inspect-part .mark.pass.on { background: #1d7a3a; border-color: #1d7a3a; color: #fff; }
.inspect-part .mark.warn.on { background: #f5c400; border-color: #f5c400; color: #101a30; }
.inspect-part .mark.fail.on { background: #d92d20; border-color: #d92d20; color: #fff; }
.inspect-part .row > span:last-child, .tp-marks { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 420px) { .inspect-part .row { flex-direction: column; align-items: flex-start !important; gap: 8px; } }

/* where a sign-in came from */
.where { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; }
.where-net { color: #d7e3ef; }
.where-gps { color: #f5c400; font-weight: 700; text-decoration: none; }
.where-ip { font-size: 11px; }
.err.loc-help { display: block; background: rgba(255,59,59,.12); border: 1px solid rgba(255,59,59,.5); border-radius: 12px; padding: 10px 12px; color: #ffd6d2; line-height: 1.45; text-align: left; }

/* client link activity */
details.views { margin-top: 6px; }
details.views summary { cursor: pointer; color: #f5c400; font-size: 12px; font-weight: 700; list-style: none; }
details.views summary::-webkit-details-marker { display: none; }
.view-line { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

/* truck profit */
.profit-total .row b:last-child { font-size: 22px; }
.profit-grid { margin-top: 10px; gap: 8px; }
.profit-grid > div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.profit-grid b { font-size: 14px; }
.neg { color: #ff8b7a; } .pos { color: #3dff7a; }
.lf-head b.pos, .lf-head b.neg { white-space: nowrap; }
.fuel-check { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border-left: 3px solid rgba(255,255,255,.2); }
.fuel-check p { margin: 6px 0 0; }
.fuel-check.green { border-left-color: #3dff7a; } .fuel-check.gold { border-left-color: #f5c400; } .fuel-check.red { border-left-color: #ff3b3b; }
.fuel-check .fine { font-size: 11px; }

/* price suggestion */
.price-box { padding: 12px; border-radius: 12px; background: rgba(245,196,0,.08); border: 1px solid rgba(245,196,0,.35); }
.price-box .eyebrow { display: block; }
.price-big { display: block; font-size: 20px; color: #f5c400; margin: 2px 0; }
.pricing-card summary { cursor: pointer; }
.profit-head { display: grid; gap: 2px; }
.profit-head b { font-size: 26px; }

/* sound button and the new-item toast */
.top-left { display: flex; gap: 6px; align-items: center; }
.bell-btn { min-width: 40px; padding-left: 10px; padding-right: 10px; font-size: 16px; }
.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -140%); z-index: 1200; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 14px; background: #f5c400; color: #101a30; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.on { transform: translate(-50%, 0); }

/* inspection areas: a highlighted bar for each area, the parts sit inside it */
.insp-group { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(245,196,0,.55); background: rgba(255,255,255,.03); }
.insp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: #f5c400; color: #101a30; }
.insp-head b { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.insp-n { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: rgba(16,26,48,.14); }
.insp-body { padding: 2px 14px 6px; }
.insp-body .inspect-part { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.insp-body .inspect-part:last-child { border-bottom: 0; }
.insp-body .inspect-part .row > span:first-child { font-weight: 600; }
.insp-group.done { border-color: #1d7a3a; }
.insp-group.done .insp-head { background: #1d7a3a; color: #fff; }
.insp-group.done .insp-n { background: rgba(255,255,255,.2); }
.insp-group.has-warn .insp-head { background: #f5c400; color: #101a30; }
.insp-group.has-warn { border-color: #f5c400; }
.insp-group.has-fail { border-color: #d92d20; }
.insp-group.has-fail .insp-head { background: #d92d20; color: #fff; }
.insp-group.has-fail .insp-n { background: rgba(255,255,255,.2); }
.area-tag { display: inline-block; margin: 0 8px 4px 0; padding: 2px 8px; border-radius: 6px; background: #f5c400; color: #101a30; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.task-part .area-tag { display: table; margin-bottom: 6px; }
@media (max-width: 420px) {
  .top-bar .sync-word { display: none; }
  .top-left { gap: 4px; }
  .top-left .btn, .top-user #out { padding-left: 10px; padding-right: 10px; }
  .top-bar .logo-lockup strong { font-size: 15px; }
}
.insp-btns { display: flex; gap: 6px; }
.js-clear-all[hidden] { display: none !important; }

/* live location inside a truck card */
.truck-live { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.truck-live p { margin: 4px 0 0; }
.truck-map { height: 240px; margin-top: 10px; border-radius: 12px; overflow: hidden; }

/* turn on notifications */
.push-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; border: 1.5px solid rgba(245,196,0,.6); }
.push-card .muted { font-size: 12px; }
.push-btns { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 420px) { .push-card { flex-direction: column; align-items: stretch; } .push-btns .btn { flex: 1; } }
.get-app { display: block; margin: 14px auto 0; width: max-content; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; text-decoration: none; }
.get-app[hidden] { display: none; }

/* load map: which pin the next tap sets */
.pin-pick { display: flex; gap: 6px; margin-top: 10px; }
.pin-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: #f4f7fb; font-weight: 700; font-size: 13px; cursor: pointer; }
.pin-btn.on { border-color: #f5c400; background: rgba(245,196,0,.14); }
.pdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pdot.a, .map-pin.a { background: #f5c400; } .pdot.b, .map-pin.b { background: #ff6b5e; } .map-pin.t { background: #3d9bff; }
.map-pin { display: block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.js-route b { color: #f5c400; font-size: 15px; }
/* the map always keeps its tiles inside its box */
#routeMap, .truck-map, #liveMap { position: relative; overflow: hidden; }
.js-new-mill[hidden] { display: none !important; }

/* Money › Advances */
.avatar.sm { width: 34px; height: 34px; font-size: 14px; flex: 0 0 34px; }
.adv-fold .lf-head { align-items: center; }
.adv-h { flex: 1; min-width: 0; display: grid; gap: 2px; }
.adv-h b { font-size: 15px; }
.adv-h .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-mini { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 4px; }
.adv-mini i { display: block; height: 100%; background: #f5c400; }
.adv-r { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.adv-r b { font-size: 14px; white-space: nowrap; }
.adv-fold .lf-body .adv-card { border: 0; background: none; padding: 0; margin: 0; box-shadow: none; }
.adv-fold .lf-body .adv-card .adv-title, .adv-fold .lf-body .adv-card .adv-right { display: none; }
.adv-fold .lf-body .adv-card .adv-head { margin-top: 8px; }
.adv-fold.waiting { border-color: rgba(245,196,0,.6); }
.adv-sum { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .adv-sum { grid-template-columns: 1fr; } }
.bar-line { display: grid; grid-template-columns: minmax(90px, 1fr) 1.2fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bar-line:first-of-type { margin-top: 8px; }
.bar { display: block; height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #f5c400, #ff8b7a); border-radius: 8px; }
.person-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.person-line:first-of-type { margin-top: 8px; }
.pl-nums { display: grid; justify-items: end; font-size: 12px; }
.link-card { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.link-card b { flex: 0 0 auto; }
.link-card .muted { flex: 1; font-size: 12px; }
.link-card .chev { font-size: 22px; color: rgba(244,247,251,.5); }
/* Business pages: this month's money in one line */
.biz-money{display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:center;gap:10px;margin:10px 0 0;padding:10px 14px;border-radius:14px;background:var(--card,#13213a);border:1px solid rgba(255,255,255,.08);color:inherit;text-decoration:none}
.biz-money span{display:flex;flex-direction:column;line-height:1.2}
.biz-money i{font-style:normal;font-size:11px;letter-spacing:.04em;text-transform:uppercase;opacity:.65}
.biz-money b{font-size:14px}
.biz-money .bm-l{font-size:12px;font-weight:700;opacity:.8}
.biz-money .badge{flex-direction:row}
.biz-money .chev{font-size:20px;opacity:.6}
.biz-money .bm-req{grid-column:1/-1;justify-self:start}
.biz-money b{white-space:nowrap}
/* Money overview: what needs you */
.needs-you{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 2px}
.ny-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;font-weight:700;font-size:13px;text-decoration:none;color:#10243f;background:#f6c400;animation:ny 1.4s ease-in-out infinite}
.ny-chip.blue{background:#8fc3ff}.ny-chip.purple{background:#c9b1ff}
.ny-chip .chev{opacity:.6}
@keyframes ny{50%{box-shadow:0 0 0 5px rgba(246,196,0,.25)}}
@media (prefers-reduced-motion:reduce){.ny-chip{animation:none}}
/* New client fields sit right under the Client picker */
.new-client{margin-top:10px;padding:12px;border-radius:12px;background:rgba(246,196,0,.07);border:1px solid rgba(246,196,0,.25)}
/* iPhone: date/time boxes must not run past the card */
input[type="datetime-local"].field,input[type="date"].field,input[type="time"].field{width:100%;max-width:100%;min-width:0;box-sizing:border-box;-webkit-appearance:none;appearance:none;min-height:48px;display:block}
input[type="datetime-local"]::-webkit-date-and-time-value,input[type="date"]::-webkit-date-and-time-value{text-align:left}
.lbl{min-width:0}
/* Load profit */
.pb{display:flex;flex-direction:column;gap:2px}
.pb-line{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.pb-line span{display:flex;flex-direction:column;font-weight:600}
.pb-line i{font-style:normal;font-weight:400;font-size:12px;opacity:.6;margin-top:2px}
.pb-line b{white-space:nowrap}
.pb-line.neg b{color:#ff8a7a}
.pb-line.sub{background:rgba(255,255,255,.03);margin:0 -10px;padding:8px 10px;border-radius:8px}
.pb-line.muted-line b{opacity:.6;font-weight:600}
.pb-total{display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:12px 14px;border-radius:12px;font-size:17px;font-weight:800;background:rgba(53,199,89,.12);border:1px solid rgba(53,199,89,.35)}
.pb-total.neg{background:rgba(255,90,70,.12);border-color:rgba(255,90,70,.4)}
.pb-total.pos b{color:#5ee08a}.pb-total.neg b{color:#ff8a7a}
.pb-pct{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:8px;font-size:13px;opacity:.85}
.pb-preview:not(:empty){margin-top:14px;padding:12px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.pb-preview .form-step{margin-top:0}
.lp-h{display:flex;flex-direction:column;flex:1;min-width:0;text-align:left;gap:2px}
.lp-h b,.lp-h .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lp-bar{display:block;height:4px;border-radius:4px;background:rgba(255,255,255,.08);margin-top:5px;max-width:160px;overflow:hidden}
.lp-bar i{display:block;height:100%;background:#5ee08a;border-radius:4px}
.lp-bar i.neg{background:#ff7a66}
.lp-split{margin-top:12px}
.bar .pos-bar{background:#5ee08a}
.lc-form{margin-top:10px}
.js-matcost[hidden]{display:none!important}
/* Team live (main admin) */
.tl-map-card{padding:8px}
.tl-map{height:300px;border-radius:12px;overflow:hidden}
.tl-note{margin:8px 4px 2px;font-size:12px}
.tl-row{display:flex;align-items:center;gap:10px}
.tl-who{flex:1;min-width:0;display:flex;flex-direction:column}
.tl-who b,.tl-who .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
