*{box-sizing:border-box}body{margin:0;background:#f4f5ef;color:#15392d;font:16px/1.6 system-ui,-apple-system,sans-serif}header{padding:28px max(20px,calc((100% - 880px)/2));background:#103e2f;color:#fff}.brand{font-size:30px;font-weight:850}.brand span{font-size:12px;background:#e7c76b;color:#173e30;padding:5px 9px;border-radius:6px;vertical-align:middle;margin-left:8px}header p{margin:4px 0;color:#ccddd3}main{max-width:920px;margin:auto;padding:22px 20px}h1{font-size:28px;line-height:1.3}h2{font-size:21px;margin:0 0 10px}p{margin:10px 0 18px}small,.hint,footer{color:#64766d}.notice{font-weight:700;font-size:14px}.notice span{display:block;font-weight:400;color:#64766d}nav,.tabs,.filters,.top{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.top{justify-content:space-between;align-items:center}.card{background:#fff;border:1px solid #dce3dc;border-radius:20px;padding:24px;margin:18px 0;box-shadow:0 5px 20px #163b2805}#login{max-width:520px;margin:24px auto}#login small{letter-spacing:2px;font-weight:700}button,.button{font:inherit;cursor:pointer;min-height:46px;padding:10px 17px;border:1px solid #cfdbd2;border-radius:11px;background:#fff;color:#173d30;font-weight:650;display:inline-block;text-decoration:none}button:disabled{opacity:.55;cursor:wait}.primary,.selected{background:#124b36;color:#fff;border-color:#124b36}.wide{width:100%;margin-top:14px}label{display:block;font-size:14px;font-weight:650;margin:16px 0 7px}input,select{width:100%;font:inherit;background:#fafbf8;color:#16392c;border:1px solid #cbd8cf;border-radius:10px;padding:13px;margin-top:6px;min-height:48px}input:focus,button:focus-visible,select:focus{outline:3px solid #dfc876;outline-offset:2px}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hint{font-size:13px;margin-bottom:0}.badge{font-size:13px;border-radius:20px;background:#edf3ed;padding:5px 10px;font-weight:700}.fee{font-size:24px;font-weight:800}.stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.stats div{background:#f0f5ef;padding:16px;border-radius:12px}.stats b{display:block;font-size:27px}.driver{border-top:1px solid #e1e7df;padding:15px 0}.driver button{font-size:13px;min-height:38px;padding:6px 10px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.empty{text-align:center;padding:45px 15px;background:#fff;border:1px dashed #ccd9ce;border-radius:16px;color:#66776c}#message:not(:empty){padding:12px 16px;background:#fff2d4;border-radius:10px;color:#6c450b}footer{text-align:center;font-size:12px;margin:36px 0} [hidden]{display:none!important}@media(max-width:520px){.card{padding:20px}.row{grid-template-columns:1fr;gap:0}nav button{flex:1;padding:9px}main{padding:18px 14px}.filters button{padding:8px 12px;font-size:14px}}


#deliveryMap{height:420px;width:100%;border-radius:14px;margin:14px 0;position:relative;background:#edf1e9}#mapPanel{scroll-margin-top:15px}#mapList{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.map-list-item{font-size:14px}.map-pin{background:#194d91;color:#fff;border:3px solid white;border-radius:25px;box-shadow:0 3px 10px #0005;min-width:42px;min-height:42px;padding:5px 10px;font-size:16px}.map-pin.store{background:#124b36}#mapDetail{padding:15px;background:#eff5ef;border-radius:12px;margin-top:15px}#mapDetail h3{margin:0}#mapStatus{font-size:14px;color:#4c6659}@media(max-width:520px){#deliveryMap{height:360px}}


/* Mobile delivery home: profile, totals, status, map, then jobs. */
body{background:#f3f5f4;color:#19382e;letter-spacing:-.035em}header{padding:24px max(20px,calc((100% - 720px)/2));background:#123e30}.brand{font-size:28px;letter-spacing:-1px;display:flex;align-items:center;gap:10px}.brand span{background:#ffffff16;color:#dfece5;border:1px solid #ffffff30;font-weight:500;font-size:11px;padding:3px 8px;margin:0}header p{font-size:13px;margin:5px 0 0}main{max-width:760px;padding:20px}nav{display:grid;grid-template-columns:1fr 1fr auto;gap:5px;background:#e6ece8;border-radius:14px;padding:5px;margin:16px 0 24px}nav button{background:transparent;border:0;font-size:14px;padding:9px 14px;min-height:42px;border-radius:10px}nav .selected{background:#fff;color:#123e30;box-shadow:0 2px 5px #17392a0a}nav #refresh{color:#587166;font-size:12px}.notice{font-size:11px;font-weight:650;color:#61756b;display:flex;gap:8px;align-items:center}.notice:before{content:'';width:6px;height:6px;background:#c59f47;border-radius:50%}.notice span{display:inline;font-size:11px;color:#809087;font-weight:400}.workspace-heading,.list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-heading{margin:0 2px 10px;font-size:13px;font-weight:700;color:#61766b}.workspace-heading #logout{min-height:32px;padding:3px 0;border:0;background:transparent;color:#7a8a82;font-size:12px;font-weight:500}.card{border-color:#e3e9e5;box-shadow:0 4px 16px #123e3004;margin:14px 0;border-radius:20px}#profile{background:#164b39;color:white;border:0;padding:25px;margin-top:0}.profile-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-caption{color:#b2d0bf;font-size:12px}.profile-top h2{font-size:24px;margin:3px 0 0;overflow-wrap:anywhere}.profile-top h2 span{font-size:17px;font-weight:500}.profile-phone{color:#d5e6dc;font-size:14px;letter-spacing:.01em;margin-top:3px}.profile-symbol{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border:1px solid #ffffff30;border-radius:16px;background:#ffffff0b;color:#d8bd70;font-size:27px;font-weight:800}.stats{grid-template-columns:1.4fr 1fr;gap:0;background:#ffffff0c;border:1px solid #ffffff16;border-radius:14px;margin-top:22px;padding:17px 0}.stats div{background:none;border-radius:0;padding:0 18px;min-width:0}.stats div+div{border-left:1px solid #ffffff25}.stats span{font-size:12px;color:#bfd6c9}.stats b{font-size:27px;letter-spacing:-1px;line-height:1.5;white-space:nowrap;color:white}.stats small{font-size:15px;font-weight:500;color:#bfd6c9;margin-left:4px}.profile-note{font-size:10px;color:#bad1c3;margin:13px 0 0;display:flex;justify-content:space-between;gap:8px}.profile-note span{white-space:nowrap;color:#92b09f}.filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:20px 0 16px}.filters button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:12px 2px;background:#fff;border:1px solid #e0e8e2;border-radius:13px;min-height:76px;font-size:11px;white-space:nowrap;color:#75877d}.filters button b{font-size:21px;color:#244838;line-height:1.2}.filters .selected{background:#e4f0e8;border-color:#497f61;color:#1b5035}.filters .selected b{color:#16472e}.manager-view .filters{grid-template-columns:repeat(6,minmax(0,1fr))}.map-entry{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 18px;background:#fff;border:1px solid #dce6df;border-radius:16px;box-shadow:0 3px 12px #123e3003;margin-bottom:24px}.map-entry-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e8f2e9;font-size:27px;color:#286348}.map-entry strong{display:block;font-size:16px}.map-entry small{display:block;font-size:11px;font-weight:400;color:#829087;margin-top:2px}.map-arrow{margin-left:auto;font-size:23px;font-weight:400}.list-heading{margin:22px 2px 12px}.list-heading h2{margin:0;font-size:18px}.list-heading #seed{font-size:11px;padding:7px 10px;min-height:36px}.job-card{padding:20px}.job-card .top{margin:0 0 14px}.job-label{font-size:13px;color:#7c8b82}.badge{font-size:11px;padding:4px 9px}.status-1{background:#fff1dc;color:#906214}.status-2{background:#e7eefb;color:#3b6096}.status-3{background:#e3f1e9;color:#2a754c}.status-4{background:#edf0ed;color:#78877c}.job-address{font-size:19px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 18px}.job-metrics{display:flex;justify-content:space-between;gap:10px;background:#f7f9f7;border-radius:11px;padding:13px 14px}.job-metrics>span{font-size:11px;color:#7e8e83}.job-metrics b{display:block;color:#2b4939;font-size:15px;margin-top:3px}.job-metrics .fee{font-size:19px;line-height:1.35}.job-card .wide{margin-top:18px;min-height:49px;border-radius:12px;font-size:15px}.empty{border-style:solid;border-color:#e4eae5;padding:42px 16px;font-size:14px}.tabs{background:#eff3ef;padding:4px;border-radius:12px;display:grid;grid-template-columns:1fr 1fr}.tabs button{font-size:13px;border:0;padding:10px 4px;background:transparent}.tabs .selected{background:#fff;color:#174a34;box-shadow:0 2px 6px #00000008}#login h1{font-size:27px}#login>p{font-size:14px;color:#7b8a81}#login small{font-size:11px;letter-spacing:0}footer{font-size:10px;color:#91a096;line-height:1.8}.actions{gap:7px}#mapPanel .top{margin-top:0}#mapPanel h2{font-size:18px}@media(max-width:520px){main{padding:17px 16px}header{padding:22px 20px}#profile{padding:22px 20px}.stats div{padding:0 14px}.stats b{font-size:25px}.filters button{font-size:10px;padding:11px 1px}.manager-view .filters{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-view .filters button{flex-direction:row;gap:10px;min-height:48px}.row{gap:0}.profile-note{font-size:9px}.job-card{padding:19px}.notice{gap:6px}.notice span{font-size:10px}}@media(min-width:680px){#jobs{display:grid;grid-template-columns:1fr 1fr;gap:14px}#jobs .job-card{margin:0}#jobs .empty{grid-column:1/-1}}

.job-card .job-map-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;min-height:46px;background:#edf5ef;border-color:#d4e4d9;color:#235e40;font-size:14px;border-radius:12px}.job-map-link:focus-visible{outline:3px solid #dfc876;outline-offset:2px}


.settlement-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:20px}.settlement-stats button{text-align:left;background:#ffffff0d;color:#fff;border:1px solid #ffffff22;padding:15px 13px;border-radius:13px;min-width:0}.settlement-stats span{display:flex;justify-content:space-between;font-size:12px;color:#c6dfcf}.settlement-stats i{font-style:normal;font-size:17px;line-height:1}.settlement-stats b{display:block;font-size:clamp(19px,5vw,27px);line-height:1.6;letter-spacing:-.8px;overflow-wrap:anywhere}.settlement-stats small{font-size:11px;font-weight:400;color:#a9c8b6}.settlement-stats button[data-fees="unpaid"]{background:#ffffff18;border-color:#b9d2a977}.settlement-hint{font-size:10px;color:#b0cfbc;margin:10px 0 0}.settlement-line{display:flex;gap:10px;align-items:center;justify-content:space-between;padding-top:13px;margin-top:14px;border-top:1px solid #e6ebe7;font-size:13px}.settlement-line b{color:#99681b}.settlement-line.paid b{color:#247145}.settlement-line small{display:block;font-size:11px;color:#7c8a80;margin-top:3px}.settlement-line button{font-size:12px;min-height:40px;padding:8px 10px;flex-shrink:0;color:#174c34;background:#edf5ee}#feeDialog{width:min(580px,calc(100% - 24px));max-height:85dvh;padding:0;border:0;border-radius:20px;color:#173b2d;background:#f6f8f5;box-shadow:0 20px 80px #0004}#feeDialog::backdrop{background:#102d2866;backdrop-filter:blur(3px)}.fee-dialog-head{position:sticky;top:0;background:#164b39;color:white;padding:19px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:1}.fee-dialog-head small{font-size:11px;color:#bfdbc9}.fee-dialog-head h2{margin:3px 0 0;font-size:21px}.fee-dialog-head button{background:#ffffff15;color:white;border-color:#ffffff30;min-height:38px;font-size:13px;padding:7px 12px}.fee-dialog-body{padding:18px}#feeTotal{font-size:25px;font-weight:800;margin:0 0 14px}.fee-detail-row{margin-top:14px;padding:17px;background:white;border:1px solid #e0e8df;border-radius:14px}.fee-detail-row .top{margin:0 0 10px}.fee-detail-row .top b{font-size:13px;color:#6b7f72}.fee-detail-row p{font-size:14px;margin:7px 0}.fee-detail-row>small{font-size:11px;color:#7d8b81}body:has(#feeDialog[open]){overflow:hidden}

.delivery-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.delivery-types button {
  display: grid;
  gap: 5px;
  min-height: 78px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: white;
  color: #174c34;
}
.delivery-types [data-delivery-type="paid"] {
  --delivery-border: #dcc183;
  --delivery-accent: #936314;
  --delivery-tint: #ffedbf;
  background: #fff7e4;
  color: #573b0f;
}
.delivery-types [data-delivery-type="free"] {
  --delivery-border: #a6cebd;
  --delivery-accent: #2a7358;
  --delivery-tint: #cef0df;
  background: #edf9f2;
  color: #174c38;
}
.delivery-types button[data-delivery-type] {
  border-color: var(--delivery-border);
}
.delivery-types button[aria-pressed="true"] {
  background: var(--delivery-tint);
  border-color: var(--delivery-accent);
  box-shadow: inset 0 0 0 1px var(--delivery-accent);
}
.delivery-types button span {
  justify-self: start;
  border-radius: 999px;
  padding: 1px 9px;
  background: #ffffffb3;
  font-weight: 700;
}
.delivery-types strong { font-size: 15px; }
.delivery-types span { font-size: 13px; }
#openMyInfo {
  background: #164b39;
  color: white;
  border-color: #164b39;
  min-height: 44px;
}
#myInfoDialog {
  width: min(520px, calc(100% - 24px));
  max-height: 85dvh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #f6f8f5;
  color: #173b2d;
  box-shadow: 0 20px 80px #0004;
}
#myInfoDialog::backdrop { background: #102d2866; }
body:has(#myInfoDialog[open]) { overflow: hidden; }
.my-info-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #dce8de;
}
.my-info-fields > div {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 6px;
}
.my-info-fields dt {
  flex: none;
  font-size: 14px;
}
.my-info-fields dd {
  min-width: 0;
  margin: 0;
  font-size: clamp(13px, 4vw, 16px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
#myInfoPhone { white-space: nowrap; }
#myInfoFees {
  background: #164b39;
  border-radius: 14px;
  margin: 16px 0;
  padding: 12px;
}
#myInfoFees .settlement-stats { margin-top: 0; }

.delivery-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.delivery-map-actions .map-entry {
  display: flex;
  gap: 8px;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 10px;
  color: #173d30;
}
.delivery-map-actions .map-entry-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 20px;
}
.delivery-map-actions .map-entry strong {
  font-size: clamp(13px, 3.7vw, 16px);
  line-height: 1.35;
  word-break: keep-all;
}

#seedResult {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eaf4ed;
  color: #174c34;
  font-size: 14px;
}

.assignment-panel { padding: 16px; margin-bottom: 18px; }
.assignment-panel > label { font-size: 14px; font-weight: 700; }
.assignment-panel select { width: 100%; margin: 6px 0 12px; }
.assignment-selection { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.assignment-selection label, .job-selection { display: flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; min-height: 44px; }
.assignment-selection input, .job-selection input { width: 22px; height: 22px; min-height: 22px; margin: 0; flex: 0 0 22px; accent-color: #164b39; }
.assignment-selection label { font-size: 13px; }
#selectedJobCount { font-size: 13px; white-space: nowrap; color: #4e6d5a; }
.assignment-buttons { display: grid; grid-template-columns: minmax(0,1fr); }
.assignment-buttons button { padding: 10px 8px; font-size: 13px; word-break: keep-all; }
.assignment-panel button:disabled { opacity: .45; cursor: default; }
#assignmentMessage { font-size: 14px; margin: 12px 0 0; }
#assignmentMessage:empty { display: none; }
.job-card:has(.job-selection input:checked) { border-color: #397a56; background: #f5faf6; }


.admin-driver-view { padding: 16px; margin-bottom: 14px; }
.admin-driver-view label { font-size: 14px; font-weight: 700; }
.admin-driver-view select { width: 100%; margin-top: 8px; }


/* Administrator dashboard: compact rows and one consolidated summary. */
.manager-view { background: #f8faf8; }
.manager-view header { padding-top: 19px; padding-bottom: 19px; }
.manager-view header p { display: none; }
.manager-view main { max-width: 760px; }
.manager-view nav { margin: 12px 0 16px; }
.manager-view #workspace { display: flex; flex-direction: column; }
.manager-view .workspace-heading { order: 0; margin-bottom: 12px; }
.manager-view #workspaceTitle { display: none; }
.manager-view #seed { margin-left: auto; padding: 5px 10px; min-height: 32px; font-size: 11px; color: #61766b; background: transparent; border: 1px solid #dbe4de; }
.manager-view #adminDriverView { order: 2; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; padding: 0; margin: 0 0 16px; background: transparent; box-shadow: none; }
.manager-view #adminDriverView label { margin: 0; font-size: 13px; white-space: nowrap; }
.manager-view #viewDriver { margin: 0; min-height: 42px; padding: 8px 10px; font-size: 14px; background: #fff; }
#openDriverManager { min-height: 42px; padding: 8px 12px; font-size: 13px; border-color: #ba9a47; color: #765c19; background: #fffdf6; white-space: nowrap; }
.manager-view #profile { order: 1; padding: 16px; border-radius: 14px; margin: 0; background: #103f2e; box-shadow: 0 5px 14px #143e3012; }
.manager-view #profile .profile-top h2 { font-size: 18px; }
.manager-view #profile .profile-caption { display: none; }
.manager-view #profile .profile-note { margin: 4px 0 10px; font-size: 11px; }
.manager-view #profile.all-drivers .profile-top, .manager-view #profile.all-drivers .profile-note { display: none; }
.manager-view #profile .settlement-stats { gap: 0; margin-top: 0; }
.manager-view #profile .settlement-stats button { padding: 12px; border: 0; border-radius: 0; background: transparent; }
.manager-view #profile .settlement-stats button:nth-child(odd) { border-right: 1px solid #ffffff26; }
.manager-view #profile .settlement-stats button:nth-child(-n+2) { border-bottom: 1px solid #ffffff26; }
.manager-view #profile .settlement-stats button span { color: #e0eee5; font-size: 12px; }
.manager-view #profile .settlement-stats b { font-size: clamp(22px,5.7vw,30px); line-height: 1.45; }
.manager-view #profile .settlement-stats small { font-size: 10px; }
.manager-view #profile .settlement-hint { margin-top: 8px; text-align: center; }
.manager-view #filters { order: 3; display: flex; flex-wrap: nowrap; gap: 0; padding: 4px; margin: 18px 0; background: white; border: 1px solid #e1e7e2; border-radius: 12px; overflow-x: auto; }
.manager-view #filters button { flex: 1 0 auto; flex-direction: row; gap: 5px; min-height: 42px; padding: 8px 9px; font-size: 12px; border: 0; border-radius: 8px; color: #52685b; background: transparent; }
.manager-view #filters button b { color: inherit; font-size: 13px; }
.manager-view #filters button.selected { color: #fff; background: #124b36; box-shadow: inset 0 -3px #d0b463; }
.manager-view #assignmentPanel { order: 4; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 12px; border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0; box-shadow: none; }
.manager-view #assignmentPanel > label { align-self: center; margin: 0; font-size: 14px; }
.manager-view #assignmentDriver { margin: 0; min-height: 44px; padding: 8px 10px; background: white; }
.manager-view .assignment-selection { grid-column: 1/-1; margin: 6px 0 0; border-bottom: 1px solid #dce5de; }
.manager-view #assignmentMessage { grid-column: 1/-1; margin-bottom: 10px; }
.manager-view .list-heading { order: 5; margin: 12px 0 4px; }
.manager-view .list-heading h2 { font-size: 13px; color: #75877c; font-weight: 500; }
.manager-view #seedResult { order: 6; }
.manager-view #jobs { order: 7; display: block; background: #fff; padding: 0 12px; border: 1px solid #e1e8e2; border-radius: 12px; }
.manager-view #jobs .admin-job-row { padding: 14px 0; margin: 0; border: 0; border-bottom: 1px solid #e2e8e3; border-radius: 0; box-shadow: none; background: transparent; }
.manager-view #jobs .admin-job-row:last-child { border-bottom: 0; }
.admin-job-heading, .admin-job-heading > div { display: flex; align-items: center; gap: 8px; }
.admin-job-heading { justify-content: space-between; }
.admin-job-heading > div { min-width: 0; flex-wrap: wrap; }
.admin-job-heading strong { font-size: 16px; overflow-wrap: anywhere; }
.admin-job-heading .job-selection { min-height: 32px; min-width: 0; }
.admin-job-fee { font-size: 18px; white-space: nowrap; color: #124b36; }
.admin-job-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; }
.admin-job-detail p { font-size: 13px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.admin-map-link { flex-shrink: 0; font-size: 12px; font-weight: 650; color: #245e40; text-underline-offset: 4px; min-height: 36px; display: flex; align-items: center; }
.admin-job-driver { font-size: 11px; color: #77887d; margin: 6px 0 0; }
.admin-job-row .status-0 { background: #fff1c8; color: #80651b; }
.manager-view #jobs .admin-job-row:has(input:checked) { background: #f0f7f1; }
.manager-view .delivery-map-actions { order: 8; margin: 18px 0 12px; }
.manager-view .delivery-map-actions .map-entry { border-radius: 10px; min-height: 46px; justify-content: center; padding: 8px; box-shadow: none; border-color: #276848; }
.manager-view .delivery-map-actions .map-entry:last-child { border-color: #b49b51; color: #765d22; }
.manager-view .delivery-map-actions .map-entry strong { font-size: 13px; }
.manager-view .delivery-map-actions .map-entry small { display: none; }
.manager-view .delivery-map-actions .map-entry-icon { background: transparent; width: 22px; flex-basis: 22px; font-size: 22px; }
.manager-view #mapPanel { order: 9; }
.manager-view #dispatchFooter { order: 10; position: sticky; bottom: 0; z-index: 5; margin: 0 -4px; padding: 12px 4px max(12px,env(safe-area-inset-bottom)); background: #f8faf8f5; }
.manager-view #dispatchFooter button { min-height: 52px; font-size: 16px; border-radius: 10px; }
#driverManagerDialog { width: min(560px,calc(100% - 24px)); max-height: 85dvh; border: 0; border-radius: 18px; padding: 0; color: #173b2d; background: #f6f8f5; box-shadow: 0 20px 80px #0004; }
#driverManagerDialog::backdrop { background: #102d2866; }
#driverManagerDialog #driverEditor { padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
#driverManagerMessage:empty { display: none; }
#driverManagerMessage:not(:empty) { padding: 10px; background: #fff2d4; border-radius: 8px; font-size: 13px; }
body:has(#driverManagerDialog[open]) { overflow: hidden; }
@media (max-width:360px) {
  .manager-view #adminDriverView { gap: 6px; }
  #openDriverManager { padding: 7px; font-size: 12px; }
  .admin-job-fee { font-size: 16px; }
}


/* Driver view inspired by the compact task-focused design. */
.driver-view { background: #f8faf8; }
.driver-view header { padding-top: 19px; padding-bottom: 19px; }
.driver-view header p { display: none; }
.driver-view nav { margin: 12px 0 16px; }
.driver-view #workspace { display: flex; flex-direction: column; }
.driver-view #driverFeeSummary { order: 0; background: #fff; border: 1px solid #e6ebe6; border-radius: 15px; padding: 14px 5px; box-shadow: 0 4px 14px #173d3007; margin-bottom: 16px; }
.driver-view #driverFeeSummary .settlement-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; }
.driver-view #driverFeeSummary .settlement-stats .fee-summary-item { background: transparent; color: #15452f; border: 0; border-right: 1px solid #dce5df; border-radius: 0; padding: 4px; text-align: center; }
.driver-view #driverFeeSummary .settlement-stats .fee-summary-item:last-child { border-right: 0; }
.driver-view #driverFeeSummary .settlement-stats span { display: block; font-size: clamp(9px,2.6vw,12px); color: #506354; white-space: nowrap; }
.driver-view #driverFeeSummary .settlement-stats b { font-size: clamp(13px,3.7vw,24px); line-height: 1.6; letter-spacing: -.05em; }
.driver-view #driverFeeSummary .settlement-stats i,
.driver-view #driverFeeSummary .settlement-stats small,
.driver-view #driverFeeSummary .settlement-hint { display: none; }
.driver-view .workspace-heading { order: 1; margin: 0 0 16px; color: #193c2a; }
.driver-view #workspaceTitle { font-size: 17px; }
.driver-view #openMyInfo { background: #fffdf5; border-color: #b49a51; color: #77601f; min-height: 40px; padding: 7px 15px; font-size: 13px; }
.driver-view #deliveryTypes { order: 2; margin: 0 0 14px; gap: 8px; }
.driver-view #deliveryTypes button { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: 10px; }
.driver-view #deliveryTypes strong { font-size: 13px; }
.driver-view #deliveryTypes span { font-size: 12px; }
.driver-view #filters { order: 3; display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; background: white; padding: 4px; border: 1px solid #e1e7e2; border-radius: 12px; margin: 0 0 16px; }
.driver-view #filters button { flex: 1 0 auto; flex-direction: row; gap: 4px; min-height: 42px; padding: 8px; font-size: 12px; border: 0; border-radius: 8px; color: #52685b; background: transparent; }
.driver-view #filters button b { font-size: 13px; color: inherit; }
.driver-view #filters button.selected { color: white; background: #124b36; box-shadow: inset 0 -3px #d0b463; }
.driver-view .list-heading { order: 4; margin: 0 0 8px; }
.driver-view .list-heading h2 { font-size: 13px; font-weight: 500; color: #75877c; }
.driver-view #jobs { order: 5; display: flex; flex-direction: column; gap: 10px; }
.driver-view #jobs .driver-job-row { padding: 15px 14px 13px 18px; margin: 0; border: 1px solid #dce6de; border-radius: 14px; position: relative; overflow: hidden; box-shadow: none; background: white; }
.driver-job-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #dcebd4; }
.driver-job-row.status-card-1::before { background: #e7cf8b; }
.driver-job-row.status-card-3::before { background: #589171; }
.driver-job-row.status-card-4::before { background: #dde4dd; }
.driver-job-heading, .driver-job-heading > div { display: flex; align-items: center; gap: 8px; }
.driver-job-heading { justify-content: space-between; }
.driver-job-heading > div { min-width: 0; flex-wrap: wrap; }
.driver-job-heading strong { font-size: 17px; overflow-wrap: anywhere; }
.driver-job-fee { font-size: 20px; color: #124b36; white-space: nowrap; }
.driver-job-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.driver-job-detail p { font-size: 14px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.driver-map-link { font-size: 12px; color: #245e40; font-weight: 650; flex-shrink: 0; min-height: 40px; display: flex; align-items: center; text-underline-offset: 4px; }
.driver-job-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.driver-job-bottom small { font-size: 10px; color: #7b8b7e; }
.driver-job-bottom button { min-height: 42px; padding: 8px 18px; font-size: 14px; border-radius: 9px; }
.driver-view:has(#workspace:not([hidden]) #deliveryMapActions:not([hidden])) main {
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}
.driver-view #deliveryMapActions {
  position: fixed;
  z-index: 5;
  inset: auto 0 0;
  width: 100%;
  margin: 0;
  padding: 10px max(18px, calc((100% - 664px) / 2));
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #dce6de;
  background: #f8faf8;
  box-shadow: 0 -4px 18px #173d3012;
}
.driver-view #mapPanel {
  scroll-margin-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}
.driver-view #deliveryMapActions .map-entry { justify-content: center; min-height: 48px; border-radius: 10px; padding: 8px; border-color: #276848; }
.driver-view #deliveryMapActions .map-entry:last-child { border-color: #b49b51; color: #765d22; }
.driver-view #deliveryMapActions .map-entry strong { font-size: 13px; }
.driver-view #deliveryMapActions .map-entry small { display: none; }
.driver-view #deliveryMapActions .map-entry-icon { background: transparent; width: 22px; flex-basis: 22px; font-size: 22px; }
.driver-view #mapPanel { order: 7; }
@media(max-width:360px) {
  .driver-job-heading strong { font-size: 15px; }
  .driver-job-fee { font-size: 18px; }
  .driver-job-detail { gap: 8px; }
}


.driver-view .workspace-heading { order: 0; }
.driver-view #workspaceTitle { display: none; }
#driverTopControls { display: flex; align-items: center; gap: 10px; width: 100%; }
.driver-date-search { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 5px 7px; border: 1px solid #d7e1d9; border-radius: 10px; background: white; }
.driver-date-search label { margin: 0; font-size: 11px; white-space: nowrap; }
.driver-date-search input { width: 0; min-width: 0; flex: 1; min-height: 32px; margin: 0; padding: 3px; border: 0; background: transparent; font-size: 12px; }
.driver-date-search button { min-height: 32px; padding: 4px 7px; font-size: 11px; border-radius: 7px; }
.driver-view #openMyInfo { flex-shrink: 0; min-height: 44px; padding: 8px 12px; }
.driver-view #driverFeeSummary { order: 1; margin-bottom: 10px; }
#driverDateStatus { font-size: 12px; color: #58705f; }
.driver-view #deliveryTypes { order: 3; }
.driver-view #filters { order: 4; }
.driver-view .list-heading { order: 5; }
.driver-view #jobs { order: 6; }
.driver-view #mapPanel { order: 8; }

/* Compact driver spacing with larger, legible labels. */
.driver-view main { max-width: 700px; padding-left: 18px; padding-right: 18px; }
.driver-view .workspace-heading { margin-bottom: 10px; }
.driver-view #driverTopControls { gap: 7px; }
.driver-view #openMyInfo { padding: 6px 10px; font-size: 15px; min-height: 44px; }
.driver-view .driver-date-search { padding: 3px 6px; gap: 5px; }
.driver-view .driver-date-search label { font-size: 13px; }
.driver-view .driver-date-search input { font-size: 14px; padding: 2px; }
.driver-view .driver-date-search button { font-size: 13px; padding: 4px 6px; min-height: 36px; }
.driver-view #driverFeeSummary { padding: 9px 3px; margin-bottom: 8px; border-radius: 12px; }
.driver-view #driverFeeSummary .settlement-stats .fee-summary-item { padding: 3px; }
.driver-view #driverFeeSummary .settlement-stats span { font-size: clamp(10px,2.9vw,13px); color: #354b3c; }
.driver-view #driverFeeSummary .settlement-stats b { font-size: clamp(16px,4.5vw,25px); line-height: 1.5; font-variant-numeric: tabular-nums; }
.driver-view #deliveryTypes { margin-bottom: 10px; }
.driver-view #deliveryTypes button { padding: 7px 10px; min-height: 44px; }
.driver-view #deliveryTypes strong { font-size: 15px; }
.driver-view #deliveryTypes span { font-size: 14px; }
.driver-view #filters { margin-bottom: 12px; }
.driver-view #filters button { font-size: 14px; padding: 7px; min-height: 44px; }
.driver-view #filters button b { font-size: 15px; }
.driver-view .list-heading h2 { font-size: 15px; color: #526958; }
.driver-view #jobs { gap: 8px; }
.driver-view #jobs .driver-job-row { padding: 12px 12px 10px 16px; }
.driver-view .driver-job-heading strong { font-size: 18px; }
.driver-view .driver-job-fee { font-size: 22px; }
.driver-view .driver-job-detail { margin: 7px 0; gap: 8px; }
.driver-view .driver-job-detail p { font-size: 16px; }
.driver-view .driver-map-link { font-size: 14px; }
.driver-view .driver-job-bottom small { font-size: 12px; color: #566c5c; }
.driver-view .driver-job-bottom button { font-size: 16px; padding: 7px 14px; min-height: 44px; }
.driver-view #deliveryMapActions .map-entry strong { font-size: 15px; }
.driver-view .settlement-line { margin-top: 10px; padding-top: 10px; }
.driver-view .settlement-line b { font-size: 15px; }
.driver-view .settlement-line small { font-size: 13px; }
@media (max-width: 360px) {
  .driver-view #driverTopControls { flex-wrap: wrap; }
  .driver-view .driver-date-search { min-width: 210px; }
}

.driver-view #driverFeeSummary { padding: 0; border: 0; background: transparent; box-shadow: none; }
.driver-view #driverFeeSummary .settlement-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.driver-view #driverFeeSummary .settlement-stats .fee-summary-item { padding: 12px 10px; border: 1px solid #dce5df; border-radius: 12px; background: #fff; text-align: left; }
.driver-view #driverFeeSummary .settlement-stats .fee-summary-item:last-child { border: 1px solid #e2b67a; background: #fff5e8; }
.driver-view #driverFeeSummary .settlement-stats span { font-size: 14px; color: #374f3f; }
.driver-view #driverFeeSummary .settlement-stats b { font-size: clamp(23px,6.2vw,30px); line-height: 1.5; }
.driver-view #driverFeeSummary .settlement-stats .fee-summary-item[data-summary-fee="unpaid"] b { color: #ae561a; }
.my-info-detail-title { font-size: 15px; margin: 18px 0 0; }

#myInfoFees { background: transparent; margin: 10px 0 18px; padding: 0; }
.driver-fee-rows { border: 1px solid #d9e4dc; border-radius: 12px; overflow: hidden; background: #fff; }
.driver-fee-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; padding: 12px 14px; border: 0; border-bottom: 1px solid #e1e8e3; border-radius: 0; text-align: left; color: #244734; background: #fff; }
.driver-fee-row:last-child { border-bottom: 0; background: #fff6e9; }
.driver-fee-row span { font-size: 16px; font-weight: 600; }
.driver-fee-row strong { font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.driver-fee-row:last-child strong { color: #a45118; }
.driver-fee-note { color: #6e8173; font-size: 12px; margin: 8px 0 0; }


.info-date-search{margin:12px 0;position:relative}
.info-date-search button{min-height:42px;padding:8px 12px;border-radius:8px;font-size:15px;white-space:nowrap}
#clearDriverDate[aria-pressed="true"]{background:#164b39;border-color:#164b39;color:#fff}
.ledger-date-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 14px minmax(0, 1fr) 42px;
  align-items: center;
  column-gap: 5px;
}
.ledger-date-field {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #bdcec5;
  border-radius: 8px;
  background: white;
}
.ledger-date-field span {
  font-size: clamp(12px, 3.5vw, 15px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.ledger-date-field:focus-within {
  outline: 2px solid #dfc876;
  outline-offset: 1px;
}
.ledger-date-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.ledger-date-field input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}
.ledger-date-bar button {
  min-height: 36px;
  padding-block: 4px;
}
#driverQuickToggle { padding-block: 4px; }
.ledger-date-separator {
  text-align: center;
}
#driverQuickToggle{padding:6px;font-size:19px}
#driverQuickPanel{padding:14px;margin-top:10px;background:white;border:1px solid #bdcec5;border-radius:12px;box-shadow:0 5px 16px #173e2512}
#driverQuickPanel[hidden]{display:none}
.date-quick-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
#driverQuickClose{border:0;min-height:32px;font-size:24px;padding:0 10px}
.ledger-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.date-quick-all{width:100%;margin-top:8px}
#driverDateError{color:#a13b24;font-size:13px;margin:8px 0}
#driverDateError:empty{display:none}
@media (max-width: 380px) {
  .ledger-date-bar {
    grid-template-columns: auto minmax(0, 1fr) 12px minmax(0, 1fr) 36px;
    column-gap: 4px;
  }
  .info-date-search button { padding-inline: 6px; font-size: 13px; }
}

.driver-fee-value {
  min-height: 0;
  padding: 4px 0 4px 4px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
}
.driver-fee-value strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fee-day-group {
  margin: 10px 0;
  border: 1px solid #d9e4dc;
  border-radius: 12px;
  background: white;
}
.fee-day-group > summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}
.fee-day-summary {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  width: calc(100% - 22px);
  vertical-align: middle;
}
.fee-paid-day {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}
.fee-day-jobs { padding: 0 12px 12px; }


#jobs:has(>.fee-day-group){display:block}#jobs>.fee-day-group{margin:0 0 12px;background:white;border:1px solid #dbe5df;border-radius:16px;overflow:hidden}#jobs>.fee-day-group>summary{padding:19px 16px;cursor:pointer}#jobs .fee-day-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;width:100%;font-size:17px;font-weight:700}#jobs .fee-day-summary strong{font-size:20px}#jobs .fee-day-jobs{padding:0 12px 12px;border-top:1px solid #e2e8e3}#jobs .fee-day-jobs article{margin-top:12px}#jobs details[open]>summary{background:#eaf3ed}#seed{display:none!important}@media(max-width:420px){#jobs .fee-day-summary{gap:9px;font-size:15px}#jobs .fee-day-summary strong{font-size:18px}}

/* Profile and nested details: use available screen space with one scrollable body. */
#myInfoDialog,#feeDialog{width:min(620px,calc(100vw - 16px));height:auto;max-width:none;max-height:calc(100dvh - 16px);margin:auto;padding:0;overflow:hidden;box-sizing:border-box}
#myInfoDialog[open],#feeDialog[open]{display:flex;flex-direction:column}
#myInfoDialog>.fee-dialog-head,#feeDialog>.fee-dialog-head{flex:0 0 auto;position:relative;padding:14px 18px}
#myInfoDialog>.fee-dialog-body,#feeDialog>.fee-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 18px max(20px,env(safe-area-inset-bottom));scroll-padding-bottom:24px}
#feeRows,.fee-day-jobs{min-width:0}#feeRows .fee-detail-row p{overflow-wrap:anywhere}
@media(max-width:600px){#myInfoDialog,#feeDialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:16px}#myInfoDialog .my-info-fields{margin-top:0;margin-bottom:12px}#myInfoDialog .driver-fee-row{padding-top:12px;padding-bottom:12px}#myInfoDialog .my-info-detail-title{margin-top:12px;margin-bottom:12px}}

#freeFeeSettings h2{font-size:20px;margin:0 0 14px}#freeFeeForm{display:flex;align-items:center;gap:10px}#freeFeeAmount{min-width:0;flex:1;width:100px;text-align:right;font-size:24px;font-weight:700;padding:10px}#freeFeeForm button{white-space:nowrap;background:#204c3b;color:white;padding:12px 22px}#freeFeeSettings p{font-size:14px;line-height:1.5;color:#607468;margin:12px 0 0}

nav.delivery-toolbar{display:flex;justify-content:flex-end;background:transparent;padding:0}nav.delivery-toolbar #refresh{flex:0 0 auto;background:#fff;border:1px solid #cfdbd2;font-size:14px}

/* Preserve each delivery type's resting tint; share a clear selected state. */
.driver-view .delivery-toolbar { display: none; }
.driver-view #deliveryTypes button[aria-pressed="true"] {
  background: #164b39;
  color: #fff;
  border-color: #164b39;
  box-shadow: inset 0 0 0 1px #164b39;
}
.driver-view #deliveryTypes button[aria-pressed="true"] strong::before {
  content: "✓ ";
}
.driver-view #deliveryTypes button[aria-pressed="true"] span {
  background: #fff;
  color: #164b39;
}
html:has(body.driver-view) { overscroll-behavior-y: contain; }
#pullRefreshStatus { text-align:center; color:#456b59; font-size:14px; padding:10px 0; }

/* Map modal: only the map body scrolls; selected address and destination chips stay below. */
#mapPanel { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; background: #f6f8f5; color: #173e30; overflow: hidden; box-shadow: 0 20px 80px #0005; }
#mapPanel:not([open]) { display: none; }
#mapPanel[open] { display: flex; flex-direction: column; }
#mapPanel::backdrop { background: #123c2c88; backdrop-filter: blur(3px); }
body:has(#mapPanel[open]) { overflow: hidden; }
#mapPanel .map-modal-head { flex: 0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; background:#164b39; color:#fff; }
#mapPanel .map-modal-head small { color:#c1d9c9; font-size:12px; }
#mapPanel .map-modal-head h2 { margin:4px 0 0; font-size:23px; }
#mapClose { background:#ffffff14; border:1px solid #ffffff50; color:#fff; padding:8px 13px; }
#mapPanel .map-modal-body { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:12px; }
#mapStatus { margin:0 0 10px; }
#mapPanel #deliveryMap { height:clamp(220px,42dvh,430px); margin:10px 0; }
#mapPanel .map-modal-footer { flex:0 0 auto; padding:12px; padding-bottom:max(12px,env(safe-area-inset-bottom,0px)); background:#f6f8f5; border-top:1px solid #dce5df; box-shadow:0 -4px 16px #19382e0a; max-height:50dvh; overflow:auto; }
#mapPanel #mapDetail { margin:0; background:#fff; border:1px solid #dce5df; border-radius:14px; padding:14px; }
#mapDetail h3 { font-size:16px; margin:0; }
#mapDetail p { margin:8px 0 12px; font-size:18px; line-height:1.4; overflow-wrap:anywhere; }
#mapDetail .map-select-hint { color:#74867b; text-align:center; font-size:15px; margin:10px 0; }
#mapDetail a { display:block; background:#164b39; color:#fff; border:0; border-radius:10px; padding:12px; text-align:center; text-decoration:none; font-weight:700; }
#mapPanel #mapList { margin:10px 0 0; display:flex; flex-wrap:nowrap; overflow-x:auto; padding:2px; gap:7px; }
#mapList button { flex:0 0 auto; white-space:nowrap; font-size:14px; min-height:42px; }
#mapList button[aria-pressed="true"] { background:#e2f0e6; border-color:#347555; color:#164b39; font-weight:800; }
#mapPanel .map-pin[aria-pressed="true"] { background:#a7661d; outline:3px solid #e6bf6f; }

/* Center delivery-type labels without shifting them when selected. */
.driver-view #deliveryTypes button{justify-content:center;text-align:center}
.driver-view #deliveryTypes strong{position:relative;white-space:nowrap}
.driver-view #deliveryTypes button[aria-pressed="true"] strong::before{position:absolute;right:100%;margin-right:4px;content:"✓"}

/* Keep the map edge-to-edge even when card/mobile rules also apply. */
html body dialog#mapPanel{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;box-shadow:none!important}
html body dialog#mapPanel[open]{display:flex!important;flex-direction:column!important}
html body dialog#mapPanel .map-modal-head{flex-shrink:0;padding-top:max(12px,env(safe-area-inset-top,0px));padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
html body dialog#mapPanel .map-modal-body{min-height:0;flex:1;overflow:auto}

/* Map-first layout: fixed header/footer, map fills the remaining space. */
html body dialog#mapPanel .map-modal-head{padding:12px 16px;gap:10px}
#mapPanel .map-modal-head small{font-size:10px}#mapPanel .map-modal-head h2{font-size:20px;margin:2px 0 0}
html body dialog#mapPanel .map-modal-body{position:relative;overflow:hidden;padding:0;min-height:100px;background:#eaf0ec}
#mapPanel #mapCanvasWrap{position:absolute;inset:0}
#mapPanel #deliveryMap{height:100%;width:100%;margin:0;border-radius:0}
#mapPanel #mapCanvasWrap .actions{position:absolute;top:12px;right:12px;z-index:5;margin:0;gap:6px}
#mapPanel #mapCanvasWrap .actions button{min-height:36px;padding:6px 10px;font-size:12px;box-shadow:0 2px 8px #173d301a}
#mapPanel .map-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#748b80;padding:16px 16px 90px}
#mapPanel .map-empty>span{font-size:46px;line-height:1}#mapPanel .map-empty>strong{font-size:17px}#mapPanel .map-empty>small{font-size:12px}
#mapPanel .map-status-bar{position:absolute;bottom:10px;left:12px;right:12px;z-index:6;display:flex;align-items:center;gap:10px;background:#fffffff2;border:1px solid #dce6df;border-radius:12px;padding:9px 11px;box-shadow:0 3px 12px #143e3010}
#mapPanel #mapStatus{flex:1;min-width:0;margin:0;font-size:11px;line-height:1.4}
#mapPanel #mapRefresh{flex:none;min-height:36px;padding:6px 8px;font-size:11px}
#mapPanel .map-modal-footer{max-height:42dvh;padding:12px 14px max(12px,env(safe-area-inset-bottom,0px));background:#fff;border-radius:18px 18px 0 0;border-top:1px solid #dce5df;box-shadow:0 -4px 16px #19382e10;z-index:7}
#mapPanel .map-destination-label{font-size:11px;color:#6c8174;margin:0 0 6px}
#mapPanel #mapList{margin:0 0 10px;gap:7px;padding:1px 0 3px}
#mapPanel #mapList button{min-width:40px;min-height:38px;padding:6px 12px;border-radius:10px;font-size:14px}
#mapPanel #mapList button[aria-pressed="true"]{background:#164b39;color:white;border-color:#164b39}
#mapPanel #mapDetail{padding:0;border:0;border-radius:0;background:transparent}
#mapPanel #mapDetail h3{font-size:13px;color:#61766a}
#mapPanel #mapDetail p{font-size:16px;font-weight:650;line-height:1.4;margin:4px 0 10px}
#mapPanel #mapDetail a{min-height:44px;padding:10px;font-size:15px;border-radius:11px}

/* Checkbox controls must not inherit full-width text-field dimensions. */
#bonusForm .bonus-tax{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px}
#bonusForm .bonus-tax input[type="checkbox"]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;accent-color:#174d39}

/* Driver sign-in: identity first, then existing secure password/enrollment flow. */
.driver-login{max-width:560px;margin:24px auto;}
.driver-login .driver-identity-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px;}
.driver-login input{min-width:0;width:100%;box-sizing:border-box;}
.driver-login input[readonly]{background:#f2f6f4;color:#52645a;}
.driver-login #changeIdentity{margin-top:10px;}
.driver-login [hidden]{display:none!important;}
@media(max-width:360px){.driver-login .driver-identity-row{grid-template-columns:1fr;}}
