:root{
  color-scheme:light;
  --bg:#f4f8f5;
  --bg-2:#edf4ef;
  --panel:#ffffff;
  --panel-strong:#f8fbf9;
  --panel2:#edf5f0;
  --text:#142019;
  --muted:#5d7065;
  --green:#28b96d;
  --green-deep:#137342;
  --blue:#287ecb;
  --blue-deep:#dcecff;
  --red:#d94a4a;
  --red-deep:#ffe2e2;
  --yellow:#d6a72c;
  --yellow-deep:#fff1b8;
  --line:#cad8d0;
  --topbar:rgba(255,255,255,.91);
  --hero:rgba(255,255,255,.88);
  --surface:rgba(255,255,255,.95);
  --table-bg:rgba(255,255,255,.96);
  --input-bg:#ffffff;
  --input-border:#b7c9bf;
  --shadow:0 10px 28px rgba(25,55,37,.10);
  --body-grad:linear-gradient(180deg,#f8fbf9 0,#eef5f0 46%,#f8fbf9 100%);
  --watermark-overlay:linear-gradient(180deg,rgba(248,251,249,.28),rgba(248,251,249,.72));
  --watermark-opacity:.12;
}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#08100c;
  --bg-2:#0b1210;
  --panel:#111a16;
  --panel-strong:#0d1511;
  --panel2:#17231e;
  --text:#f4f8f6;
  --muted:#a8b7af;
  --green:#45d483;
  --green-deep:#176c3d;
  --blue:#4aa3ff;
  --blue-deep:#163f66;
  --red:#ff6b6b;
  --red-deep:#612323;
  --yellow:#f3c969;
  --yellow-deep:#5c4917;
  --line:#2a3a32;
  --topbar:rgba(8,16,12,.82);
  --hero:rgba(12,20,16,.78);
  --surface:rgba(17,26,22,.95);
  --table-bg:rgba(12,20,16,.92);
  --input-bg:#0b1310;
  --input-border:#395047;
  --shadow:0 8px 32px rgba(0,0,0,.28);
  --body-grad:linear-gradient(180deg,rgba(8,16,12,.96) 0,rgba(11,18,16,.95) 45%,rgba(7,16,12,.97) 100%);
  --watermark-overlay:linear-gradient(180deg,rgba(4,10,7,.28),rgba(4,10,7,.72));
  --watermark-opacity:.18;
}

*{box-sizing:border-box}

html{min-height:100%;background:var(--bg)}

body{
  margin:0;
  background:var(--body-grad);
  color:var(--text);
  font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  min-height:100vh;
  position:relative;
  transition:background .2s ease,color .2s ease;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    var(--watermark-overlay),
    url("/static/dumpster-watermark.jpg") center 80px/cover no-repeat;
  opacity:var(--watermark-opacity);
  pointer-events:none;
  z-index:0;
}

a{color:inherit;text-decoration:none}

.shell{
  max-width:1200px;
  margin:auto;
  padding:22px;
  position:relative;
  z-index:1;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
  padding:12px 14px;
  border:1px solid var(--line);
  background:var(--topbar);
  backdrop-filter:blur(12px);
  border-radius:16px;
  box-shadow:var(--shadow);
}

.topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:13px}
.mark{width:42px;height:42px;border:3px solid var(--green);border-radius:12px;position:relative}
.mark:after{content:"";position:absolute;inset:9px;border:3px solid var(--green);border-left:0}
.brand h1{font-size:18px;margin:0}
.brand small{color:var(--muted)}
nav{display:flex;gap:8px;flex-wrap:wrap}

.navlink,.button,.theme-toggle{
  padding:10px 14px;
  border-radius:10px;
  background:var(--panel2);
  border:1px solid var(--line);
  color:var(--text);
  font:inherit;
  font-weight:700;
}

.button,.theme-toggle{cursor:pointer}
.button.primary{background:var(--green);color:#062414;border-color:var(--green)}
.button.danger{background:#f8dcdc;border-color:#e4a5a5;color:#7e2222}
html[data-theme="dark"] .button.danger{background:#321919;border-color:#5a2828;color:#ffd7d7}

.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:88px;
  white-space:nowrap;
}
.theme-toggle:hover,.navlink:hover,.button:hover{filter:brightness(.98)}
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .navlink:hover,
html[data-theme="dark"] .button:hover{filter:brightness(1.08)}

.hero{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin:18px 0 20px;
  padding:18px 20px;
  border:1px solid var(--line);
  background:var(--hero);
  backdrop-filter:blur(10px);
  border-radius:18px;
  box-shadow:var(--shadow);
}

.hero h2{font-size:34px;margin:0 0 5px;letter-spacing:-.03em}
.muted{color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

.card{
  background:linear-gradient(180deg,var(--surface),var(--panel-strong));
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
}

.stat b{font-size:28px;display:block;margin-top:5px}
.stat.revenue{grid-column:auto}

.section{margin-top:24px}
.section h3{font-size:18px;margin:0 0 12px}

.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.status-legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  color:var(--muted);
  font-size:13px;
}

.status-legend span{display:inline-flex;align-items:center;gap:6px}
.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.legend-dot.reserved{background:#3a8fe6}
.legend-dot.active{background:#33b76f}
.legend-dot.overdue{background:#e45151}
.legend-dot.complete{background:#e1b43b}
.legend-dot.repair{background:#8246ba}

.tablewrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--table-bg);
  box-shadow:var(--shadow);
}

.table{width:100%;border-collapse:collapse;background:transparent}
.table th,.table td{text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.table tbody tr:hover{background:rgba(39,126,203,.05)}
html[data-theme="dark"] .table tbody tr:hover{background:rgba(255,255,255,.025)}

.badge{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:var(--panel2);
  font-size:12px;
  font-weight:750;
}

.badge.PAID{background:#d9f5e5;color:#17643c}
.badge.UNPAID,.badge.BALANCE{background:#fff0c7;color:#785b0c}
.badge.status-reserved{background:#dcecff;color:#185d9a}
.badge.status-active{background:#d9f5e5;color:#17643c}
.badge.status-overdue{background:#ffe2e2;color:#8c2929}
.badge.status-complete{background:#fff1b8;color:#755a08}
.badge.status-canceled{background:#e7e9e8;color:#555}
.badge.status-repair{background:#e9dafa;color:#5c258f}
html[data-theme="dark"] .badge.PAID{background:#143d28;color:#8cf0b6}
html[data-theme="dark"] .badge.UNPAID,
html[data-theme="dark"] .badge.BALANCE{background:#4a3618;color:#ffe08a}
html[data-theme="dark"] .badge.status-reserved{background:#163f66;color:#b9dcff}
html[data-theme="dark"] .badge.status-active{background:#143d28;color:#8cf0b6}
html[data-theme="dark"] .badge.status-overdue{background:#612323;color:#ffd0d0}
html[data-theme="dark"] .badge.status-complete{background:#5c4917;color:#ffe9a4}
html[data-theme="dark"] .badge.status-canceled{background:#3a3a3a;color:#d8d8d8}
html[data-theme="dark"] .badge.status-repair{background:#4e286d;color:#f2dcff}

.formcard{
  max-width:760px;
  margin:30px auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}

.formcard h2{font-size:30px;margin:0}
.price{font-size:42px;font-weight:800;letter-spacing:-.04em}

.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.fact{padding:13px;background:var(--panel2);border-radius:12px;color:var(--muted)}

label{display:block;font-weight:650;margin:14px 0 6px}

input,textarea,select{
  width:100%;
  padding:12px 13px;
  border:1px solid var(--input-border);
  border-radius:10px;
  background:var(--input-bg);
  color:var(--text);
  font:inherit;
}

input:focus,textarea:focus,select:focus{
  outline:2px solid rgba(40,185,109,.25);
  border-color:var(--green);
}

textarea{min-height:90px;resize:vertical}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.radio-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  margin:0;
}

.radio-row input{width:auto}

.address-autocomplete{
  min-height:48px;
  border-radius:10px;
  overflow:visible;
}

gmp-place-autocomplete{width:100%}
html[data-theme="dark"] gmp-place-autocomplete{color-scheme:dark}

.field-help{
  margin:6px 0 2px;
  font-size:12px;
  color:var(--muted);
}

.alert{
  padding:12px 14px;
  border-radius:10px;
  background:#ffe5e5;
  border:1px solid #e8adad;
  color:#872929;
  margin:14px 0;
}
html[data-theme="dark"] .alert{background:#351d1d;border-color:#693030;color:#ffc1c1}

.success{background:#daf4e4;border-color:#9ddab5;color:#17603a}
html[data-theme="dark"] .success{background:#123823;border-color:#245c3a;color:#b9f6d1}

.driver-list{padding:0;overflow:hidden}

.job{
  display:grid;
  grid-template-columns:90px minmax(0,1fr) minmax(240px,auto);
  gap:15px;
  align-items:start;
  padding:18px;
  border-bottom:1px solid var(--line);
}

.job:last-child{border:0}
.jobtype{font-weight:850;letter-spacing:.04em}
.jobtype.delivery{color:#1d8b53}
.jobtype.pickup{color:#287ecb}
.jobtype.complete{color:#a57900}
html[data-theme="dark"] .jobtype.delivery{color:var(--green)}
html[data-theme="dark"] .jobtype.pickup{color:var(--blue)}
html[data-theme="dark"] .jobtype.complete{color:var(--yellow)}

.job.status-complete{
  background:linear-gradient(90deg,rgba(255,241,184,.62),rgba(255,255,255,.78));
  border-left:4px solid #e1b43b;
}
html[data-theme="dark"] .job.status-complete{
  background:linear-gradient(90deg,rgba(92,73,23,.30),rgba(17,26,22,.92));
  border-left-color:var(--yellow);
}

.job-title{font-size:17px;margin-bottom:4px}
.job-dumpster{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:8px;background:var(--panel2);color:var(--text);font-size:12px}
.job-note{margin-top:8px;padding:8px 10px;background:var(--panel2);border-radius:8px;color:var(--text)}

.actions{display:flex;gap:7px;flex-wrap:wrap;align-items:flex-start}
.inline{display:inline}
.mini{padding:7px 9px;font-size:12px}

.receipt-form{
  width:100%;
  min-width:260px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel-strong);
}

.receipt-form label{margin:7px 0}
.receipt-form input{margin-top:5px}
.receipt-form .button{width:100%;margin-top:10px}

.tire-charge-box{
  margin:12px 0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel2);
}
.tire-charge-box > b{display:block;margin-bottom:2px}
.tire-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 10px;
  margin-top:10px;
}
.tire-grid label{
  margin:0;
  padding:9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--input-bg);
  font-size:12px;
}
.tire-grid label span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-weight:600;
}
.tire-grid input{
  margin-top:7px;
  padding:9px 10px;
}
@media(max-width:560px){
  .tire-grid{grid-template-columns:1fr}
}


.completed-pickup{
  min-width:260px;
  padding:14px;
  border:1px solid #e1b43b;
  border-radius:12px;
  background:#fff4c8;
  color:#6f5408;
}
html[data-theme="dark"] .completed-pickup{
  border-color:var(--yellow);
  background:rgba(92,73,23,.34);
  color:#fff3bf;
}
.completed-pickup b{display:block;font-size:15px;margin-bottom:6px}
.completed-pickup span{display:block;font-size:12px;margin-top:3px}

.email-setup-note{
  max-width:300px;
  padding:10px 12px;
  border-radius:10px;
  background:#fff0c7;
  color:#785b0c;
  font-size:12px;
}
html[data-theme="dark"] .email-setup-note{background:#4a3618;color:#ffe6a5}

.empty-state{padding:30px;color:var(--muted)}

.dumpgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:9px}

.dump{
  padding:14px 8px;
  border:1px solid var(--line);
  border-radius:12px;
  text-align:center;
  background:var(--surface);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
  box-shadow:0 3px 12px rgba(25,55,37,.05);
}

.dump:hover{transform:translateY(-1px)}
.dump b{display:block;font-size:16px}
.dump small{display:block;margin-top:3px;color:inherit;opacity:.92}

.dump.status-reserved{background:linear-gradient(180deg,#e7f2ff,#d4e8ff);border-color:#4d9ae6;color:#174f82}
.dump.status-active{background:linear-gradient(180deg,#e3f8ec,#d5f1e1);border-color:#3fb474;color:#17613a}
.dump.status-overdue{background:linear-gradient(180deg,#ffe9e9,#ffdcdc);border-color:#e16060;color:#8d2b2b}
.dump.status-complete{background:linear-gradient(180deg,#fff6cf,#ffedaa);border-color:#ddb33e;color:#715608}
.dump.status-available{background:var(--surface);border-color:var(--line);color:var(--text)}
.dump.status-repair{background:linear-gradient(180deg,#f3e9ff,#e6d5f9);border:2px solid #8342b8;color:#5c258f}
.dump.status-repair .dump-details-link{font-weight:750}

html[data-theme="dark"] .dump.status-reserved{background:linear-gradient(180deg,#1b5387,#163f66);border-color:#4aa3ff;color:#e8f4ff}
html[data-theme="dark"] .dump.status-active{background:linear-gradient(180deg,#1d7043,#155637);border-color:#45d483;color:#eafff2}
html[data-theme="dark"] .dump.status-overdue{background:linear-gradient(180deg,#762d2d,#562020);border-color:#ff6b6b;color:#fff0f0}
html[data-theme="dark"] .dump.status-complete{background:linear-gradient(180deg,#735d1d,#564616);border-color:#f3c969;color:#fff3bf}
html[data-theme="dark"] .dump.status-available{background:rgba(17,26,22,.94);border-color:#33473d;color:#eef7f2}
html[data-theme="dark"] .dump.status-repair{background:linear-gradient(180deg,#49265d,#331b46);border:2px solid #bd8be8;color:#f0ddff}
.fleet-repair-panel{margin:18px 0}
.fleet-repair-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.fleet-repair-heading h3{margin:0}
.fleet-repair-panel form{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin-top:15px}
.fleet-repair-panel textarea{width:100%;max-width:650px;min-height:70px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font:inherit}
.fleet-repair-button{background:#712a9f!important;border-color:#712a9f!important;color:#fff!important}
.fleet-repair-warning{border-left:4px solid #8b53b5;padding:10px 12px;background:var(--panel2);border-radius:5px}
.fleet-repair-history{margin-top:18px;color:var(--text)}
.fleet-repair-history summary{cursor:pointer;font-weight:700}
.fleet-repair-history li{margin:8px 0;overflow-wrap:anywhere}

.footer{color:var(--muted);text-align:center;padding:35px 0 10px}
.totalbox{display:flex;justify-content:space-between;font-size:20px;padding:15px 0;border-top:1px solid var(--line);margin-top:15px}

@media(max-width:1000px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .job{grid-template-columns:80px 1fr}
  .job .actions{grid-column:2}
}

@media(max-width:800px){
  .grid{grid-template-columns:1fr 1fr}
  .dumpgrid{grid-template-columns:repeat(4,1fr)}
  .topbar,.hero{align-items:flex-start;flex-direction:column}
  .topbar-actions{width:100%;justify-content:space-between}
  .row,.facts{grid-template-columns:1fr}
  .job{grid-template-columns:1fr}
  .job .actions{grid-column:auto}
  .shell{padding:15px}
}

@media(max-width:560px){
  .topbar-actions{align-items:stretch;flex-direction:column}
  nav{width:100%}
  .navlink{flex:1;text-align:center}
  .theme-toggle{width:100%}
}

@media(max-width:480px){
  .grid{grid-template-columns:1fr 1fr}
  .dumpgrid{grid-template-columns:repeat(3,1fr)}
  .hero h2{font-size:28px}
  .formcard{padding:20px 16px}
}


/* Rental agreement */
.agreement-shell{
  max-width:980px;
  margin:0 auto;
}

.agreement-document{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
  box-shadow:var(--shadow);
  color:var(--text);
}

.agreement-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding-bottom:16px;
  border-bottom:2px solid var(--green);
}

.agreement-header h2{
  margin:2px 0 0;
  font-size:30px;
}

.agreement-kicker{
  color:var(--green-deep);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
}

.agreement-phone{
  font-weight:700;
  color:var(--muted);
  white-space:nowrap;
}

.agreement-section{
  padding:20px 0 6px;
  border-bottom:1px solid var(--line);
}

.agreement-section:last-child{border-bottom:0}

.agreement-section h3{
  margin:0 0 12px;
  color:var(--green-deep);
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.agreement-section p{margin:9px 0}

.agreement-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 16px;
  margin:12px 0 16px;
}

.agreement-details > div{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel-strong);
}

.agreement-details .wide{grid-column:1 / -1}
.agreement-details span,
.agreement-special span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:3px;
}

.agreement-fees{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  margin:10px 0 14px;
}

.agreement-fees > div{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:14px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}

.agreement-fees > div:last-child{border-bottom:0}
.agreement-fees > div:nth-child(odd){background:var(--panel-strong)}

.agreement-special{
  margin-top:12px;
  padding:12px 14px;
  background:var(--panel2);
  border-radius:10px;
}

.agreement-booking-card{margin-top:18px}

.agreement-booking-heading{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-start;
}

.agreement-booking-heading p{margin:5px 0 0}

.agreement-preview{
  margin-top:14px;
  border-top:1px solid var(--line);
  padding-top:12px;
}

.agreement-preview summary{
  cursor:pointer;
  font-weight:750;
  color:var(--green-deep);
}

.agreement-preview .agreement-document{
  box-shadow:none;
  margin-top:14px;
  padding:18px;
}

.agreement-sign-card{
  margin:18px 0 30px;
}

.agreement-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:18px 0;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel-strong);
}

.agreement-check input{
  width:auto;
  margin-top:3px;
  flex:0 0 auto;
}

.signature-wrap{
  border:2px dashed var(--input-border);
  border-radius:12px;
  background:var(--input-bg);
  overflow:hidden;
}

.signature-canvas{
  display:block;
  width:100%;
  height:180px;
  touch-action:none;
  cursor:crosshair;
}

.signature-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.badge.agreement-signed{
  background:#d9f5e5;
  color:#17643c;
}

.badge.agreement-pending{
  background:#fff0c7;
  color:#785b0c;
}

html[data-theme="dark"] .badge.agreement-signed{
  background:#143d28;
  color:#8cf0b6;
}

html[data-theme="dark"] .badge.agreement-pending{
  background:#4a3618;
  color:#ffe08a;
}

@media(max-width:700px){
  .agreement-document{padding:18px 14px}
  .agreement-header{flex-direction:column}
  .agreement-details{grid-template-columns:1fr}
  .agreement-details .wide{grid-column:auto}
  .agreement-fees > div{grid-template-columns:1fr}
  .agreement-booking-heading{flex-direction:column}
  .agreement-booking-heading .button{width:100%;text-align:center}
  .signature-actions .button{width:100%}
}

.agreement-driver-warning{
  min-width:240px;
  padding:12px 14px;
  border:1px solid #d6a72c;
  border-radius:12px;
  background:#fff0c7;
  color:#785b0c;
}
.agreement-driver-warning b,
.agreement-driver-warning span{display:block}
.agreement-driver-warning span{font-size:12px;margin-top:3px}
html[data-theme="dark"] .agreement-driver-warning{
  background:#4a3618;
  color:#ffe08a;
  border-color:#8f6b1f;
}

.logout-button{
  cursor:pointer;
  font:inherit;
}
.square-customer-picker{
  margin:18px 0;
  border-color:rgba(40,185,109,.45);
}
.square-picker-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.square-picker-heading p{margin:4px 0 0}
.square-customer-results{
  display:grid;
  gap:7px;
  margin-top:9px;
  max-height:360px;
  overflow:auto;
}
.square-customer-result{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  border:1px solid var(--line);
  border-radius:11px;
  padding:11px 12px;
  background:var(--input-bg);
  color:var(--text);
  cursor:pointer;
  font:inherit;
}
.square-customer-result:hover,
.square-customer-result:focus{
  border-color:var(--green);
  outline:none;
  background:var(--panel2);
}
.square-customer-result b,
.square-customer-result small{
  display:block;
}
.square-customer-result small{
  color:var(--muted);
  margin-top:2px;
}
.square-selected-customer{
  margin-top:10px;
  padding:12px 14px;
  border:1px solid var(--green);
  border-radius:12px;
  background:var(--panel-strong);
}
.square-selected-customer > b,
.square-selected-customer > span{
  display:block;
}
.square-selected-customer > span{
  color:var(--muted);
  margin:3px 0 8px;
}
.square-selected-customer .badge{margin:0 8px 8px 0}
.square-no-results{
  padding:12px;
  color:var(--muted);
  border:1px dashed var(--line);
  border-radius:10px;
}
.owner-login-card{max-width:460px}
@media(max-width:600px){
  .square-picker-heading{flex-direction:column}
  .square-customer-result{align-items:flex-start;flex-direction:column}
}

.square-connection-status{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel-strong);
  color:var(--muted);
  font-size:12px;
}
.square-connection-status b{color:var(--text)}


/* Staff authentication and administration */
.auth-card{max-width:520px}
.auth-primary{width:100%;display:block;text-align:center;margin-top:16px}
.auth-links{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.auth-links a{color:var(--green-deep);font-weight:700}
.signed-in-user{
  display:flex;
  flex-direction:column;
  line-height:1.15;
  padding:0 4px;
}
.signed-in-user span{font-size:12px;font-weight:800}
.signed-in-user small{font-size:10px;color:var(--muted);margin-top:3px}
.approval-waiting{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:15px;
  margin:16px 0;
  border:1px solid var(--yellow);
  background:var(--yellow-deep);
  border-radius:12px;
}
.approval-waiting p{margin:4px 0 0}
.approval-dot{
  width:13px;
  height:13px;
  border-radius:50%;
  background:var(--yellow);
  margin-top:5px;
  box-shadow:0 0 0 6px rgba(214,167,44,.14);
  flex:0 0 auto;
}
.login-request-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}
.login-request-row:last-child{border-bottom:0}
.login-request-row span,
.login-request-row small{display:block;color:var(--muted);margin-top:2px}
.role-form{display:flex;gap:6px;align-items:center}
.role-form select{min-width:105px;padding:7px 9px}
.staff-table td{vertical-align:middle}

@media(max-width:700px){
  .login-request-row{align-items:flex-start;flex-direction:column}
  .signed-in-user{display:none}
}


/* Phone app installation */
.install-nav-button{cursor:pointer}
.install-page{max-width:860px;margin:0 auto}
.install-hero{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:16px;
}
.install-hero h2{margin:2px 0 6px;font-size:30px}
.install-app-icon{
  width:92px;
  height:92px;
  border-radius:22px;
  box-shadow:var(--shadow);
  flex:0 0 auto;
}
.install-actions{text-align:center;margin-bottom:16px}
.install-main-button{
  width:100%;
  max-width:460px;
  padding:15px 18px;
  font-size:18px;
}
.install-status{margin:10px 0 0}
.install-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.install-grid h3{margin-top:0}
.install-steps{margin:10px 0 0;padding-left:24px}
.install-steps li{margin:8px 0}
.install-share-card{margin-top:16px}
.install-share-card p{margin:6px 0 12px}
.install-modal[hidden]{display:none}
.install-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  align-items:end;
  justify-items:center;
}
.install-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.48);
  backdrop-filter:blur(3px);
}
.install-modal-card{
  position:relative;
  width:min(560px,calc(100% - 24px));
  margin:12px;
  padding:22px;
  border-radius:20px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  box-shadow:0 20px 60px rgba(0,0,0,.30);
}
.install-modal-card h3{font-size:23px;margin:3px 36px 12px 0}
.install-modal-close{
  position:absolute;
  top:12px;
  right:14px;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--panel2);
  color:var(--text);
  font-size:25px;
  line-height:1;
  cursor:pointer;
}
.share-symbol{
  display:inline-block;
  font-weight:800;
  border:1px solid var(--line);
  border-radius:6px;
  padding:0 4px;
}
.modal-open{overflow:hidden}

@media(max-width:700px){
  .install-grid{grid-template-columns:1fr}
  .install-hero{align-items:flex-start}
  .install-app-icon{width:76px;height:76px;border-radius:18px}
}
@media(max-width:520px){
  .install-hero{flex-direction:column}
}


/* Tire charge quantity controls */
.tire-box-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.tire-subtotal{
  white-space:nowrap;
  padding:8px 10px;
  border-radius:10px;
  background:var(--panel-strong);
  border:1px solid var(--line);
  font-size:13px;
}
.tire-fee-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--input-bg);
}
.tire-fee-item > div:first-child{
  min-width:0;
}
.tire-fee-item b,
.tire-fee-item span{
  display:block;
}
.tire-fee-item span{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.quantity-stepper{
  display:grid;
  grid-template-columns:38px 54px 38px;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
}
.quantity-stepper input{
  margin:0;
  padding:8px 4px;
  text-align:center;
  min-width:0;
  -moz-appearance:textfield;
}
.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.qty-button{
  width:38px;
  height:38px;
  padding:0;
  border:1px solid var(--input-border);
  border-radius:9px;
  background:var(--panel2);
  color:var(--text);
  font:inherit;
  font-size:20px;
  font-weight:800;
  cursor:pointer;
}
.qty-button:hover{border-color:var(--green)}
.charge-breakdown{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}
.complete-pickup-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:16px 0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel-strong);
}
.complete-pickup-check input{
  width:auto;
  margin:3px 0 0;
}
.complete-pickup-check span,
.complete-pickup-check small{
  display:block;
}
.complete-pickup-check small{
  color:var(--muted);
  margin-top:2px;
}
#adminChargeForm > .button.primary{
  width:100%;
  margin-top:4px;
}

@media(max-width:620px){
  .tire-box-heading{flex-direction:column}
  .tire-subtotal{width:100%}
  .tire-fee-item{align-items:flex-start;flex-direction:column}
  .quantity-stepper{
    width:100%;
    grid-template-columns:44px 1fr 44px;
  }
  .qty-button{width:44px}
}


.pickup-charge-summary{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.pickup-charge-summary > div:not(.tire-receipt-lines){
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--line);
}
.tire-receipt-lines{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.tire-receipt-lines span{
  padding:5px 8px;
  border-radius:999px;
  background:var(--panel2);
  color:var(--muted);
  font-size:12px;
}


/* Prepaid tire credits and live balances */
.prepaid-credit-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0;
  padding:10px 12px;
  border:1px solid #9ddab5;
  border-radius:10px;
  background:#daf4e4;
  color:#17603a;
}
html[data-theme="dark"] .prepaid-credit-note{
  background:#123823;
  border-color:#245c3a;
  color:#b9f6d1;
}
.balance-due-amount{
  margin-top:5px;
  font-size:12px;
  font-weight:800;
  color:#a23b2b;
}
html[data-theme="dark"] .balance-due-amount{color:#ffb3aa}
.balance-due-row{
  margin-top:5px;
  padding-top:10px !important;
  border-top:2px solid var(--line) !important;
  font-size:17px;
}
.booking-tire-picker{margin-top:18px}


/* Compact owner dashboard and mobile navigation (2026-10). */
.dashboard-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,330px);align-items:start;gap:18px 24px}
.dashboard-hero-copy{min-width:0;flex:1 1 auto}
.dashboard-hero .dashboard-summary{margin:6px 0 0;line-height:1.45}
.dashboard-hero-actions{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0}
.dashboard-booking-button{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;min-height:52px;padding:12px 18px;white-space:normal;line-height:1.25;font-size:16px}
.dashboard-booking-button span{font-size:22px;font-weight:800;line-height:1}
.dashboard-quick-links{display:grid;grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px;padding-top:16px;border-top:1px solid var(--line);width:100%;min-width:0}
.dashboard-quick-links a{display:flex;justify-content:center;align-items:center;color:var(--text);font-size:14px;line-height:1.3;font-weight:700;text-align:center;min-height:48px;padding:10px 12px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);white-space:normal;overflow-wrap:normal;word-break:normal}
.dashboard-quick-links a:hover,.dashboard-quick-links a:focus-visible{background:var(--panel2);color:var(--text)}
.dashboard-payment-tools{margin-top:14px;padding:14px 18px}
.dashboard-payment-tools > summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none;font-weight:800;min-height:32px}
.dashboard-payment-tools > summary::-webkit-details-marker{display:none}
.dashboard-payment-tools > summary::after{content:"+";font-size:23px;line-height:1;color:var(--muted);margin-left:auto}
.dashboard-payment-tools[open] > summary::after{content:"−"}
.dashboard-payment-tools > summary .muted{font-size:12px;font-weight:500}
.dashboard-payment-tools-content{padding-top:10px;border-top:1px solid var(--line);margin-top:10px}
.dashboard-payment-tools-content p{margin:0 0 12px;font-size:14px;line-height:1.5}
.dashboard-payment-tools-content form{margin:0}
@media(max-width:800px){
  .dashboard-hero{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:16px}
  .dashboard-hero-actions{width:100%;max-width:none}
  .dashboard-quick-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
@media(max-width:700px){
  .admin-topbar{padding:13px;gap:12px;margin-bottom:14px}
  .admin-topbar .brand{width:100%;gap:10px;min-width:0}
  .admin-topbar .brand h1{font-size:17px;line-height:1.2}
  .admin-topbar .brand small{font-size:12px}
  .admin-topbar .mark{width:36px;height:36px;flex:0 0 36px;border-radius:10px}
  .admin-topbar .mark::after{inset:7px}
  .admin-topbar .topbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;width:100%}
  .admin-topbar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;gap:8px;width:100%}
  .admin-topbar nav .navlink{display:flex;justify-content:center;align-items:center;min-width:0;min-height:42px;padding:9px 8px;border-radius:10px;font-size:13px;line-height:1.25;white-space:normal;text-align:center}
  .admin-topbar .install-nav-button{grid-column:1/-1;min-height:42px;font-size:13px}
  .admin-topbar .topbar-actions > form.inline{width:100%;margin:0;grid-column:1}
  .admin-topbar .logout-button{display:block;width:100%;min-height:42px;padding:9px 8px;font-size:13px}
  .admin-topbar .theme-toggle{grid-column:2;min-height:42px;width:100%;padding:9px 8px;font-size:13px}
  .dashboard-hero{padding:18px 16px;margin:0 0 14px;border-radius:16px}
  .dashboard-hero h2{font-size:clamp(23px,6vw,28px);line-height:1.16;letter-spacing:-.025em}
  .dashboard-eyebrow{font-size:13px}
  .dashboard-summary{font-size:13px}
  .dashboard-hero-actions{gap:8px}
  .dashboard-booking-button{min-height:54px;width:100%;font-size:16px;border-radius:12px}
  .dashboard-quick-links a{font-size:13px;padding:11px 9px;min-height:50px}
  .dashboard-payment-tools{padding:12px 14px}
  .dashboard-payment-tools > summary{flex-wrap:wrap;row-gap:2px;font-size:14px}
  .dashboard-payment-tools-content .button{width:100%;text-align:center;min-height:44px}
}
@media(max-width:390px){
  .admin-topbar .brand h1{font-size:15px}
  .dashboard-hero h2{font-size:24px}
}

/* Public vacation mode and address range check */
.vacation-admin-control{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0}
.vacation-admin-control h3{font-size:17px;margin:0 0 6px}
.vacation-admin-control h3 .badge{display:inline-block;vertical-align:middle;font-size:12px;margin-left:6px}
.vacation-admin-control p{font-size:13px;line-height:1.5;margin:0;max-width:630px}
.vacation-admin-control form{flex:0 0 auto}
.vacation-admin-control button{min-height:44px}
.vacation-customer{max-width:680px;margin:35px auto;padding:36px;text-align:center}
.vacation-customer h2{font-size:clamp(26px,5vw,38px);margin:12px 0}
.vacation-customer p{font-size:16px;line-height:1.6;margin:14px 0 22px}
.vacation-customer .vacation-icon{display:inline-flex;align-items:center;justify-content:center;width:66px;height:66px;border-radius:18px;background:var(--panel2);font-size:34px}
.vacation-call{display:inline-flex;align-items:center;justify-content:center;min-height:54px;font-size:19px}
.service-area-check{display:grid;gap:9px;margin:16px 0;padding:14px}
.service-area-check .button{justify-self:start;min-width:158px}
.service-area-check .field-help{margin:4px 0 0}
.service-area-result{padding:12px;border-radius:10px;font-size:14px;line-height:1.5;background:var(--panel2);border:1px solid var(--line);margin:4px 0 0}
.service-area-result.eligible{background:#d9f5e5;border-color:#30a66c;color:#18482e}
.service-area-result.outside{background:#fff0cf;border-color:#d39c33;color:#6b4c0a}
html[data-theme="dark"] .service-area-result.eligible{background:#174b31;color:#ddfbe5}
html[data-theme="dark"] .service-area-result.outside{background:#4b3b17;color:#fff0bf}
.service-area-override{margin-top:12px}
@media(max-width:700px){
 .vacation-admin-control{flex-direction:column;align-items:stretch}
 .vacation-admin-control form,.vacation-admin-control button{width:100%}
 .vacation-customer{margin:14px auto;padding:24px 18px}
 .vacation-call,.service-area-check .button{width:100%}
}

/* One customer-facing Google address search with automatically filled details */
.booking-address-group{margin-top:18px}
.booking-address-group > label:first-child{font-weight:750}
.address-autocomplete{min-height:52px;margin:7px 0 5px;overflow:visible}
.address-autocomplete gmp-place-autocomplete{display:block;width:100%;min-width:0}
.address-manual-toggle{
  appearance:none;background:transparent;border:0;padding:10px 0;
  color:var(--green-deep);text-decoration:underline;font:inherit;font-size:13px;
  font-weight:750;cursor:pointer;text-align:left
}
#addressManualFields{padding:8px 0 2px}
#addressManualFields label{font-size:14px}
#addressLookupStatus{font-size:13px;line-height:1.5}
@media(max-width:560px){
  .booking-address-group{margin-top:16px}
  .address-autocomplete{min-height:54px}
  .address-manual-toggle{min-height:44px;display:inline-flex;align-items:center}
}

/* Separate rental billing/delivery sections and print-friendly invoicing */
.billing-address-panel{margin:18px 0;padding:16px}
.billing-address-panel h3{margin:0 0 6px;font-size:18px}
.billing-address-panel p{font-size:13px;line-height:1.5}
.billing-same-check{display:flex;align-items:flex-start;gap:10px;margin:14px 0}
.billing-same-check input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0}
#billingAddressFields{margin-top:10px}
#billingAddressFields[hidden]{display:none}
.invoice-sheet{max-width:900px;margin:20px auto;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.invoice-two-addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.invoice-address{border:1px solid var(--line);border-radius:10px;padding:14px;line-height:1.6}
.invoice-address h3{margin:0 0 8px;font-size:15px}
.invoice-sheet table{width:100%;border-collapse:collapse}
.invoice-sheet td,.invoice-sheet th{border-bottom:1px solid var(--line);padding:12px 8px;text-align:left}
.invoice-sheet .invoice-amount{text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:650px){.invoice-two-addresses{grid-template-columns:1fr}.invoice-sheet{padding:16px}}
@media print{.invoice-sheet{border:0;box-shadow:none;margin:0;padding:0}.invoice-no-print,.topbar{display:none!important}body{background:white!important;color:#111!important}}

/* Skylar Mae black/neon-green branded logo replaces the old square glyph. */
.brand-logo{
  display:block;flex:0 0 52px;width:52px;height:52px;object-fit:contain;
  background:#070b06;border-radius:13px;border:1px solid rgba(126,242,10,.23);
  box-shadow:0 3px 12px rgba(0,0,0,.15);overflow:hidden
}
.brand>div:last-child{min-width:0}
.brand h1{line-height:1.18}
@media(max-width:700px){
 .admin-topbar .brand-logo{width:43px;height:43px;flex-basis:43px;border-radius:11px}
 .topbar:not(.admin-topbar) .brand-logo{width:48px;height:48px;flex-basis:48px}
}

/* Mobile-first signing flow and reservation-link read receipts. */
.agreement-mobile-actions{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;margin:0 0 10px}
.agreement-mobile-actions .button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.agreement-mobile-hint{font-size:14px;line-height:1.5;color:var(--muted);margin:4px 0 18px}
.agreement-document{overflow-wrap:anywhere}
.agreement-sign-card input[name="printed_name"]{font-size:16px}
.signature-wrap{background:#fff;border-color:#799d82}
.signature-canvas{height:185px;background:#fff}
#agreementForm{scroll-margin-top:24px}
.link-open-status{display:flex;flex-direction:column;gap:2px;min-width:200px;margin:0 0 10px;
  padding:9px 11px;background:var(--panel2);border:1px solid var(--line);border-radius:9px;
  font-size:12px;line-height:1.45;white-space:normal}
.link-open-status span{color:var(--muted)}
.link-open-yes{color:var(--green-deep)}
.link-open-wait{color:var(--text)}
@media(max-width:700px){
 .agreement-shell{width:100%;max-width:100%;margin:0}
 .agreement-shell .hero{padding:16px}
 .agreement-shell .hero h2{font-size:clamp(22px,6vw,29px);line-height:1.19}
 .agreement-mobile-actions{flex-direction:column}
 .agreement-mobile-actions .button{width:100%}
 .agreement-document{padding:17px 13px;line-height:1.58;font-size:15px}
 .agreement-document .agreement-header h2{font-size:24px;line-height:1.2}
 .agreement-document .agreement-section h3{font-size:15px;line-height:1.35}
 .agreement-document .agreement-details>div{padding:11px 10px}
 .agreement-fees>div{padding:11px 10px;overflow-wrap:anywhere}
 .agreement-sign-card{padding:18px 14px}
 .agreement-check{padding:11px 10px}
 .signature-canvas{height:190px}
 .signature-actions{flex-direction:column}
 .signature-actions .button{min-height:50px;font-size:15px}
 .link-open-status{min-width:160px}
}

/* Phone-friendly overview of opened private reservation links. */
.link-activity-section>p{font-size:13px;line-height:1.55;margin-top:0}
.link-activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.link-activity-card{padding:15px;display:grid;gap:5px;font-size:13px;line-height:1.5}
.link-activity-card strong{font-weight:750}
.link-activity-top{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;justify-content:space-between}
.link-activity-label{font-size:12px;padding:3px 8px;border-radius:8px;font-weight:800}
.link-activity-label.opened{background:#d9f5e5;color:#17542c}
.link-activity-label.waiting{background:#f2e9d8;color:#5a410b}
html[data-theme="dark"] .link-activity-label.opened{background:#1e4933;color:#a6f5c6}
html[data-theme="dark"] .link-activity-label.waiting{background:#493718;color:#f9d889}
@media(max-width:700px){.link-activity-grid{grid-template-columns:1fr}.link-activity-card{padding:13px}}

/* Clear signature-before-payment instructions for Admin on phones. */
.signature-payment-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}
.signature-payment-actions form{margin:0}
.signature-payment-actions .button{min-height:44px}
@media(max-width:700px){.signature-payment-actions{flex-direction:column;align-items:stretch}
.signature-payment-actions form,.signature-payment-actions button{width:100%}}

/* Admin-only invoice archive and safe reactivation controls */
.archive-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.archive-summary{font-size:14px;line-height:1.55;max-width:790px}
.archive-list{display:grid;gap:14px}
.archive-card{padding:17px}
.archive-card-title{display:flex;align-items:center;gap:9px;justify-content:space-between;flex-wrap:wrap}
.archive-card-title h3{margin:0;font-size:17px}
.archive-card-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 17px;font-size:14px;margin:12px 0;line-height:1.45}
.archive-card-details span{overflow-wrap:anywhere}
.archive-buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.archive-status{font-weight:750;color:#915022}
.archive-field{font-size:14px;margin:11px 0}
.restore-dumpster-options{display:grid;gap:11px;margin:12px 0}
.restore-warning{font-size:14px;line-height:1.55}
.archive-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0}
@media(max-width:640px){
 .archive-heading,.archive-buttons{align-items:stretch;flex-direction:column}
 .archive-buttons .button{width:100%;text-align:center}
 .archive-card-details{grid-template-columns:1fr}
 .archive-card{padding:15px}
}

/* Fleet prioritization and outstanding-invoices section */
.outstanding-summary{padding:22px;margin:17px 0 22px}
.outstanding-summary-head{display:flex;justify-content:space-between;align-items:center;gap:18px}
.outstanding-summary-head .muted{display:block;font-size:14px}
.outstanding-amount{display:block;font-size:clamp(28px,6vw,43px);font-weight:850;line-height:1.13;letter-spacing:-.035em;margin:6px 0}
.outstanding-summary-head p{font-size:13px;line-height:1.5;margin:5px 0}
.outstanding-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}
.outstanding-breakdown>div{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.outstanding-breakdown span{font-size:12px;color:var(--muted)}
.outstanding-breakdown b{font-size:18px;font-variant-numeric:tabular-nums}
.dump-current-order{display:block;font-weight:800;font-size:13px;margin-top:5px}
.dump-current-customer{display:block;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.dump-details-link{display:block;font-size:12px;opacity:.8;margin-top:6px}
.current-rental-highlight{border:2px solid #2ca76b;padding:20px;margin:15px 0}
.current-rental-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.current-rental-head h3{font-size:20px;margin:6px 0 10px}
.current-rental-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0}
.current-rental-grid>div{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.current-rental-address{grid-column:1/-1}
.current-rental-grid span{font-size:13px}
.current-on-site-notice{font-size:14px;line-height:1.5}
.current-history-row{background:rgba(41,164,100,.10)}
.current-rental-tag{font-size:11px;font-weight:800;color:#1d9a5f}
@media(max-width:700px){
 .outstanding-summary{padding:16px}
 .outstanding-summary-head{flex-direction:column;align-items:stretch}
 .outstanding-summary-head .button{width:100%}
 .outstanding-breakdown{grid-template-columns:1fr}
 .current-rental-highlight{padding:15px}
 .current-rental-grid{grid-template-columns:1fr}
}

/* Deliver active rentals without prepayment; never imply that payment was received. */
.unpaid-delivery-label{display:block;padding:7px 9px;margin:5px 0;border:1px solid #ddb967;
  border-radius:8px;background:#fff5df;color:#6c470f;font-size:12px;font-weight:750;line-height:1.4}
.delivery-status-note{display:block;color:var(--muted);font-size:12px;line-height:1.4}
html[data-theme="dark"] .unpaid-delivery-label{background:#493a18;border-color:#8b7334;color:#ffe1a2}

/* Free, private Order Assistant — mobile-first pasted-order review. */
.dashboard-assistant-button{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;min-height:48px}
.assistant-page{max-width:880px;margin:0 auto;padding-bottom:32px}
.assistant-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:15px 0 18px}
.assistant-heading h2{font-size:clamp(23px,4vw,34px);line-height:1.16;margin:5px 0}
.assistant-heading p{line-height:1.55;max-width:650px}
.assistant-paste,.assistant-preview{margin:16px 0;padding:20px}
.assistant-paste h3,.assistant-preview h3{margin:0 0 12px;font-size:19px}
.assistant-paste textarea{font-size:16px;line-height:1.5;resize:vertical;min-height:145px}
.assistant-paste-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px}
.assistant-paste-bottom .muted{font-size:13px;line-height:1.4;max-width:430px}
.assistant-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.assistant-preview-header p{line-height:1.5}
.assistant-preview h4{margin:23px 0 12px;font-size:16px}
.assistant-two,.assistant-three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.assistant-three{grid-template-columns:2fr 1fr 1.4fr}
.assistant-preview label{display:block;margin:8px 0 6px}
.assistant-preview input,.assistant-preview select,.assistant-preview textarea{font-size:16px}
.assistant-review-notes{background:var(--panel2);padding:13px 16px;border-radius:12px;border:1px solid var(--line);font-size:14px;line-height:1.5}
.assistant-review-notes ul{margin:7px 0 0;padding-left:20px}
.assistant-review-notes li{margin:5px 0}
.assistant-price-preview{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:21px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
.assistant-price-preview div{display:flex;flex-direction:column;gap:4px}
.assistant-price-preview small{color:var(--muted);font-size:12px}
.assistant-price-preview strong{font-size:clamp(22px,5vw,30px);font-variant-numeric:tabular-nums}
.assistant-next-button{display:block;width:100%;min-height:51px;font-size:16px}
.assistant-privacy-note{font-size:12px;line-height:1.5;margin:12px 0 0}
#asBilling[hidden]{display:none}
.assistant-prefill-banner{padding:15px;border:1px solid #5bbd85;border-radius:12px;background:var(--panel2);display:flex;flex-direction:column;gap:6px;margin:16px 0;line-height:1.5}
.assistant-prefill-banner span,.assistant-prefill-banner a{font-size:13px}
.assistant-pickup-widget{margin:14px 0}
@media(max-width:700px){
  .assistant-heading,.assistant-paste-bottom{flex-direction:column;align-items:stretch}
  .assistant-page{padding:0 3px 25px}
  .assistant-paste,.assistant-preview{padding:15px}
  .assistant-two,.assistant-three{grid-template-columns:1fr}
  .assistant-heading .button,.assistant-paste-bottom button{width:100%}
  .assistant-price-preview{align-items:flex-start;flex-direction:column}
  .dashboard-assistant-button{width:100%}
}

/* One-tap Assistant shortcut available to Admins across the app. */
.assistant-floating-link{position:fixed;right:17px;bottom:calc(16px + env(safe-area-inset-bottom,0px));
 z-index:45;display:inline-flex;align-items:center;gap:8px;min-height:49px;padding:10px 17px;
 border-radius:999px;background:#165d38;color:#fff;text-decoration:none;font-weight:800;
 box-shadow:0 6px 26px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.20);
 font-size:14px}
.assistant-floating-link:hover,.assistant-floating-link:focus{background:#0e4529;color:#fff}
.assistant-floating-link span:first-child{font-size:24px;line-height:1;color:#b7ff5e}
@media(max-width:700px){
 .assistant-floating-link{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:11px 15px}
 .shell{padding-bottom:64px}
}

/* Junk-removal estimate editor, customer signature, and invoice pages. */
.junk-editor-shell{max-width:960px;margin:0 auto 36px}
.junk-card{padding:22px;margin:14px 0}
.junk-card h3{margin:8px 0 12px}
.junk-section-title{display:flex;gap:10px;align-items:center;margin-bottom:11px}
.junk-section-title h3{margin:0}
.junk-step{display:inline-flex;align-items:center;justify-content:center;flex:none;
  border-radius:50%;width:32px;height:32px;background:#206e47;color:white;font-weight:850}
.junk-editor-shell input,.junk-editor-shell textarea,.junk-public input,.junk-public textarea{
  width:100%;font-size:16px;min-height:44px}
.junk-editor-shell label,.junk-public label{display:block;margin:10px 0 5px;font-weight:650}
.junk-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 15px}
.junk-square-search{display:flex;align-items:center;gap:10px;margin:12px 0}
.junk-square-search input{flex:1;min-width:0}
.junk-square-results{display:flex;flex-direction:column;gap:7px;margin:10px 0;max-height:320px;overflow:auto}
.junk-match{cursor:pointer;display:block;text-align:left;border:1px solid var(--line);
  background:var(--panel2);color:inherit;border-radius:10px;padding:11px;font:inherit}
.junk-match:hover{border-color:#2ca76b}
.junk-edit-line{display:grid;grid-template-columns:minmax(0,1fr) 95px 125px auto;align-items:center;
  gap:9px;margin:10px 0}
.junk-edit-line input{min-width:0;width:100%;min-height:44px}
.junk-estimate-total{display:flex;justify-content:space-between;gap:15px;align-items:center;
  font-size:19px;font-weight:700;padding:15px 0;margin:17px 0;border-top:2px solid var(--line)}
.junk-estimate-total strong{font-size:clamp(25px,5vw,37px);font-variant-numeric:tabular-nums}
.junk-wide-button{display:block;width:100%;text-align:center;min-height:50px;font-size:17px}
.junk-center{text-align:center}
.junk-status-row,.junk-invoice-head{display:flex;justify-content:space-between;gap:15px;align-items:center}
.junk-share-row{display:flex;gap:8px;margin:9px 0 18px}
.junk-share-row input{min-width:0;flex:1;font-size:14px}
.junk-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:15px 0}
.junk-actions form{margin:0}
.junk-invoice-card{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:15px}
.junk-invoice-card strong{font-size:21px}
.junk-signed-proof{padding:15px;border-radius:12px;border:1px solid #9dd2b2;
  background:rgba(32,139,79,.08);display:flex;flex-direction:column;gap:6px;margin:14px 0;overflow-wrap:anywhere}
.junk-signed-proof small{font-size:11px;color:var(--muted)}
.junk-preserve{white-space:pre-line;overflow-wrap:anywhere;line-height:1.65}
.junk-public{max-width:850px;margin:12px auto 40px}
.junk-public-heading{padding:12px 4px}
.junk-public-heading h2{font-size:clamp(26px,5vw,36px);margin:5px 0}
.junk-check{display:flex!important;gap:11px;align-items:flex-start;padding:12px;
  border:1px solid var(--line);border-radius:12px;line-height:1.5}
.junk-check input{width:20px!important;min-height:0!important;height:20px;margin-top:2px;flex:none}
.junk-decision-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:15px}
.junk-decision-actions .button{min-height:52px}
.junk-print-bar{display:flex;gap:10px;justify-content:flex-end;margin:9px 0}
.junk-pay-panel{padding:18px;border-radius:13px;border:1px solid var(--line);
  background:var(--panel2);margin-top:18px}
@media(max-width:690px){
 .junk-card{padding:15px}
 .junk-form-grid{grid-template-columns:1fr}
 .junk-square-search,.junk-share-row{flex-direction:column;align-items:stretch}
 .junk-edit-line{grid-template-columns:minmax(0,1fr) 75px 92px}
 .junk-edit-line button{grid-column:1/-1;justify-self:start}
 .junk-status-row,.junk-invoice-head{align-items:flex-start;flex-wrap:wrap}
 .junk-decision-actions{grid-template-columns:1fr}
 .junk-actions .button{width:100%;text-align:center}
 .junk-actions form{width:100%}
}
@media print{
 .junk-print-bar,.topbar,.footer,.assistant-floating-link,.theme-toggle{display:none!important}
 .junk-card{box-shadow:none!important;border:none!important;padding:0}
 .junk-public{max-width:none;margin:0}
 .junk-pay-panel{display:none!important}
}

.junk-summary-actions{display:flex;gap:9px;flex-wrap:wrap}
@media(max-width:700px){.junk-summary-actions{flex-direction:column;width:100%}.junk-summary-actions .button{width:100%;text-align:center}}

/* Compact admin order overview: no horizontal table scrolling */
.current-orders-wrap{overflow:visible}
.current-orders-table{width:100%;table-layout:fixed;font-size:12px}
.current-orders-table th,.current-orders-table td{white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:9px 5px;vertical-align:middle}
.current-orders-table th:nth-child(1){width:5%}
.current-orders-table th:nth-child(2){width:13%}
.current-orders-table th:nth-child(3){width:8%}
.current-orders-table th:nth-child(4),.current-orders-table th:nth-child(5){width:10%}
.current-orders-table th:nth-child(6){width:12%}
.current-orders-table th:nth-child(7){width:10%}
.current-orders-table th:nth-child(8){width:10%}
.current-orders-table th:nth-child(9){width:10%}
.current-orders-table th:nth-child(10){width:12%}
.current-orders-table .badge{white-space:normal}
.current-orders-table .actions{display:block}
.order-actions-menu{position:relative}
.order-actions-menu>summary{cursor:pointer;list-style:none;display:inline-block}
.order-actions-menu>summary::-webkit-details-marker{display:none}
.order-actions-body{position:relative;display:flex;flex-wrap:wrap;gap:6px;width:min(320px,70vw);margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 4px 18px #0001;z-index:2}
.order-actions-body .link-open-status{width:100%}
.grid a.stat{color:inherit;text-decoration:none;cursor:pointer}
.grid a.stat:hover{outline:2px solid var(--line)}
@media(max-width:850px){.current-orders-table{display:block}.current-orders-table thead{display:none}.current-orders-table tbody{display:grid;gap:12px}.current-orders-table tr.order-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.current-orders-table tr.order-row td{display:block;width:auto;padding:5px 4px;border:0}.current-orders-table tr.order-row td::before{display:block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase}.current-orders-table tr.order-row td:nth-child(1)::before{content:"Order"}.current-orders-table tr.order-row td:nth-child(2)::before{content:"Customer"}.current-orders-table tr.order-row td:nth-child(3)::before{content:"Dumpster"}.current-orders-table tr.order-row td:nth-child(4)::before{content:"Delivery"}.current-orders-table tr.order-row td:nth-child(5)::before{content:"Pickup"}.current-orders-table tr.order-row td:nth-child(6)::before{content:"Rental status"}.current-orders-table tr.order-row td:nth-child(7)::before{content:"Payment"}.current-orders-table tr.order-row td:nth-child(8)::before{content:"Agreement"}.current-orders-table tr.order-row td:nth-child(9)::before{content:"Total"}.current-orders-table tr.order-row td:nth-child(10){grid-column:1/-1}.current-orders-table tr.order-row td:nth-child(10)::before{content:"Actions"} .order-actions-body{width:100%}}

/* Each current order shows the actual rental jobsite, never the billing address. */
.current-order-customer-name{font-weight:650}
.current-order-dropoff{display:flex;flex-direction:column;gap:3px;margin-top:9px;line-height:1.4;overflow-wrap:anywhere}
.current-order-dropoff-label{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:750}
.current-order-dropoff-value{font-size:12px;font-weight:500}
.current-order-dropoff-missing{font-size:12px;font-weight:750;line-height:1.5}
@media(max-width:850px){
  .current-orders-table .current-order-customer{overflow-wrap:break-word}
  .current-order-dropoff{margin-top:10px}
  .current-order-dropoff-label{font-size:11px}
  .current-order-dropoff-value,.current-order-dropoff-missing{font-size:14px;line-height:1.55}
}

/* Fast, obvious delivery updates for dispatch and drivers */
.order-management{display:flex!important;flex-direction:column;align-items:stretch;gap:9px}
.order-delivery-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.order-delivery-actions .button{white-space:normal;text-align:center}
.order-actions-menu{min-width:0}
.delivery-workflow{width:100%;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel-strong)}
.delivery-workflow>b{display:block;margin-bottom:8px}
.delivery-workflow-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.delivery-workflow-actions form{margin:0}
.delivery-quick-action .button{min-height:36px}
@media(max-width:850px){.order-delivery-actions{flex-direction:row;flex-wrap:wrap}.order-delivery-actions .button{width:100%}}

/* Keep expanded Manage Order actions inside the viewport without widening the orders table. */
.current-orders-table .order-actions-menu{position:relative;z-index:3}
.current-orders-table .order-actions-menu[open]{z-index:10}
.current-orders-table .order-actions-body{position:absolute;right:0;top:100%;width:min(320px,85vw);max-height:65vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}
@media(max-width:850px){.current-orders-table .order-actions-body{position:relative;top:auto;right:auto;width:100%;max-height:none}}

/* Dashboard Bookkeeping disclosure replaces the cramped seven-link shortcut row. */
.dashboard-hero .dashboard-quick-links{
  grid-column:1/-1;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  max-width:440px;
  gap:10px;
  padding-top:14px;
  margin:0;
  box-sizing:border-box;
}
.dashboard-quick-links .dashboard-section-tile{
  display:flex;
  width:100%;
  min-height:52px;
  box-sizing:border-box;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  font-size:15px;
  font-weight:750;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
}
.dashboard-quick-links .dashboard-section-tile:hover,
.dashboard-quick-links .dashboard-section-tile:focus-visible{
  background:var(--panel-strong);
  outline-offset:2px;
}
.dashboard-quick-links .dashboard-section-tile span{flex:0 0 auto;font-size:19px;line-height:1}
.dashboard-bookkeeping{width:100%;min-width:0}
.dashboard-bookkeeping>summary{list-style:none}
.dashboard-bookkeeping>summary::-webkit-details-marker{display:none}
.dashboard-bookkeeping[open] .dashboard-bookkeeping-chevron{transform:rotate(180deg)}
.dashboard-bookkeeping-chevron{transition:transform .16s ease}
.dashboard-bookkeeping-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:10px 0 0;
}
.dashboard-bookkeeping-links>a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 12px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:13px;
  line-height:1.35;
  text-align:center;
  font-weight:650;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
}
.dashboard-bookkeeping-links>a:hover,
.dashboard-bookkeeping-links>a:focus-visible{background:var(--panel2)}
@media(max-width:390px){
  .dashboard-bookkeeping-links{grid-template-columns:minmax(0,1fr)}
}

/* Schedule editing: one-day stepping and an always-visible pickup preview. */
.order-date-edit-link{display:block;width:max-content;max-width:100%;margin-top:5px;color:var(--green);font-size:11px;font-weight:750;line-height:1.3;text-decoration:underline;text-underline-offset:2px;white-space:normal}
.order-date-edit-link:hover,.order-date-edit-link:focus-visible{filter:brightness(.8)}
.schedule-editor{max-width:850px;margin:0 auto 20px}
.schedule-order-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:18px}
.schedule-order-summary>div{display:flex;flex-direction:column;gap:4px;padding:12px;background:var(--panel2);border-radius:11px;min-width:0}
.schedule-order-summary .muted{font-size:12px}
.schedule-order-summary b{overflow-wrap:anywhere}
.schedule-editor-note{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);line-height:1.5}
.schedule-editor-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;align-items:end;margin:20px 0 10px}
.schedule-date-field{min-width:0}
.schedule-date-field>label{display:block;font-weight:750;margin-bottom:9px}
.schedule-date-field input[type=date]{min-width:0;width:100%;box-sizing:border-box;min-height:50px;margin:0;font-size:16px}
.schedule-date-field input[readonly]{background:var(--panel2);color:var(--text);opacity:1}
.schedule-date-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}
.schedule-date-controls .button{min-height:48px;padding:8px 10px;white-space:nowrap}
.schedule-live-note{padding:11px 13px;border-radius:9px;background:var(--panel2);font-weight:700}
.schedule-save-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}
.schedule-save-row .button{min-height:46px}
.schedule-save-row button:disabled{cursor:not-allowed;opacity:.55}
.schedule-linked-orders{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.schedule-linked-orders summary{cursor:pointer;font-weight:700}
.schedule-linked-orders li{margin-top:6px}
@media(max-width:700px){.schedule-editor-grid{grid-template-columns:minmax(0,1fr)}.schedule-order-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.schedule-date-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.schedule-date-controls input[type=date]{grid-column:1/-1;grid-row:1}.schedule-date-controls .button{grid-row:2}.schedule-save-row .button{flex:1 1 190px;text-align:center}}

.schedule-address-shortcut{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:12px;background:var(--panel2);border-radius:10px;margin-bottom:16px}
.schedule-address-shortcut .button{white-space:normal;text-align:center}

/* Admin cash rental collection: clear separation of unpaid, signed and received. */
.cash-method-choice{margin:12px 0;display:flex;flex-direction:column;gap:7px}
.cash-method-choice h3,.cash-payment-panel h3{margin:0 0 7px}
.cash-method-choice .radio-row{white-space:normal;line-height:1.45}
.cash-payment-panel{margin:16px 0;padding:18px}
.cash-payment-panel form{display:flex;flex-direction:column;gap:12px}
.cash-payment-panel .signature-payment-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}
.cash-payment-panel .signature-payment-actions form{display:block}
.cash-order-label{font-weight:750;font-size:11px;margin:6px 0;color:var(--green)}
@media(max-width:650px){.cash-payment-panel .signature-payment-actions{flex-direction:column}}

/* Scheduled vacation closure administration and public booking notices. */
.vacation-date-settings{margin:16px 0;padding:20px}
.vacation-date-settings h3{margin:0 0 10px}
.vacation-date-settings .muted{line-height:1.5}
.vacation-block-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:18px 0}
.vacation-block-form label{display:flex;flex-direction:column;gap:7px;min-width:0;font-weight:700}
.vacation-block-form input[type=date]{width:100%;min-width:0;box-sizing:border-box;font-size:16px;min-height:47px}
.vacation-block-form button{min-height:47px;white-space:normal}
.vacation-block-items{display:grid;gap:10px}
.vacation-block-item{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--panel2)}
.vacation-block-item>div{flex:1 1 230px;min-width:0}
.vacation-block-item p{margin:6px 0 0}
.vacation-block-item form{flex-shrink:0}
.vacation-overlap-warning{font-weight:600}
.vacation-public-notice{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);margin:14px 0;line-height:1.5}
.vacation-public-notice p{margin:8px 0}
.vacation-public-notice strong{font-weight:800}
@media(max-width:710px){
  .vacation-block-form{grid-template-columns:minmax(0,1fr)}
  .vacation-block-form button{width:100%}
  .vacation-date-settings{padding:16px}
  .vacation-block-item form,.vacation-block-item button{width:100%}
}

/* Vacation pickup offer: surfaced as soon as delivery date is chosen. */
.vacation-date-message{margin:10px 0;padding:12px 14px;border:1px solid #c5d5ca;background:var(--panel2);color:var(--text);border-radius:11px;line-height:1.5;font-size:14px}
.vacation-extension-offer{margin:13px 0;padding:16px;border:2px solid #26885e;border-radius:13px;background:var(--panel2);color:var(--text)}
.vacation-extension-offer h4{margin:0 0 7px;font-size:17px;font-weight:800}
.vacation-extension-offer p{margin:8px 0 13px;line-height:1.5}
.vacation-extension-offer .cart-option{align-items:flex-start;line-height:1.5;background:var(--surface)}
.vacation-extension-offer .cart-option input{margin-top:3px}
.vacation-extension-offer .agreement-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
.vacation-extension-offer .agreement-check input{width:20px;height:20px;flex:0 0 20px;margin:3px 0 0}
.vacation-extension-offer[hidden],.vacation-date-message[hidden]{display:none!important}

/* Booking retry: highlight only fields flagged for correction, not the form. */
.booking-retry-highlight,
.booking-retry-highlight:focus-visible,
[aria-invalid="true"].booking-retry-highlight {
  outline:3px solid #b95446;
  outline-offset:2px;
  border-color:#b95446!important;
}
#manualBookingRetryNotice p,
#cartRetryNotice p {line-height:1.5;margin:8px 0 0}

/* Show outstanding invoices as cards on phones so resend/combination controls
   don't force sideways scrolling or hide customers and invoice numbers. */
#combineInvoiceChoices .combine-invoice-check{width:22px;height:22px;accent-color:#208750}
#combineInvoiceButton:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:720px){
  #combineInvoiceChoices .invoice-due-wrap{overflow:visible}
  #combineInvoiceChoices .invoice-due-table,
  #combineInvoiceChoices .invoice-due-table tbody{display:block;width:100%}
  #combineInvoiceChoices .invoice-due-table thead{display:none}
  #combineInvoiceChoices .invoice-due-table tbody tr{
    display:grid;grid-template-columns:1fr;gap:10px;
    margin:0 0 13px;border:1px solid var(--line);border-radius:15px;
    padding:15px;background:var(--panel);
  }
  #combineInvoiceChoices .invoice-due-table tbody td{
    display:flex;justify-content:space-between;align-items:flex-start;
    gap:14px;padding:4px 0;border:0;min-width:0;
    overflow-wrap:anywhere;
  }
  #combineInvoiceChoices .invoice-due-table tbody td:before{
    content:attr(data-label);flex:0 0 90px;font-size:12px;
    font-weight:750;text-transform:uppercase;letter-spacing:.035em;
    color:var(--muted);
  }
  #combineInvoiceChoices .invoice-due-table tbody td[data-label="Actions"]{
    display:block;
  }
  #combineInvoiceChoices .invoice-due-table tbody td[data-label="Actions"]:before{
    display:block;margin-bottom:8px;
  }
  #combineInvoiceChoices .invoice-due-table tbody td[data-label="Actions"] .button{
    min-height:42px;white-space:normal;text-align:center;
  }
  #combineInvoiceChoices #selectedInvoicesForm{display:block;margin-top:15px}
  #combineInvoiceChoices #combineInvoiceButton{width:100%;min-height:50px}
  #combineInvoiceHelp{display:block;margin-top:8px}
}

/* Private customer reservation page: readable cards and separate finger-sized
   actions instead of overlapping inline buttons on small phones. */
.customer-reservation{
  width:100%;
  max-width:820px;
  min-width:0;
  margin:0 auto;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
.customer-reservation .hero,.customer-reservation .card{
  width:100%;
  max-width:100%;
  min-width:0;
}
.customer-reservation .card{
  overflow-wrap:anywhere;
}
.customer-reservation .button{
  display:inline-flex;
  max-width:100%;
  min-height:48px;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  text-align:center;
  white-space:normal;
  line-height:1.35;
  overflow-wrap:anywhere;
  margin:5px 6px 5px 0;
}
.customer-reservation form{max-width:100%}
@media(max-width:640px){
  .customer-reservation .card{padding:20px 16px}
  .customer-reservation .hero{padding:16px}
  .customer-reservation h2{font-size:clamp(23px,6vw,30px)}
  .customer-reservation h3{font-size:clamp(19px,5vw,23px);line-height:1.3}
  .customer-reservation .button,
  .customer-reservation form,
  .customer-reservation form .button{
    display:flex;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:10px 0 0;
  }
  .customer-reservation form .button{min-height:50px}
}

/* Invoice cards must never expand the whole dashboard on narrow phones. */
#combineInvoiceChoices,#combineInvoiceChoices .invoice-due-wrap{width:100%;max-width:100%;min-width:0}
#combineInvoiceChoices .invoice-due-table td{white-space:normal}
#combineInvoiceChoices .invoice-cell-content{min-width:0;overflow-wrap:anywhere;word-break:normal}
#combineInvoiceChoices .invoice-customer-email{overflow-wrap:anywhere;word-break:break-word}
#combineInvoiceChoices .invoice-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
#combineInvoiceChoices .invoice-card-actions form{min-width:0;margin:0}
#combineInvoiceChoices .invoice-card-actions .button{white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:center}
@media(max-width:720px){
  .shell{width:100%;max-width:100%;padding:12px}
  .section,.card,.tablewrap{min-width:0;max-width:100%}
  #combineInvoiceChoices .invoice-due-wrap{overflow:visible}
  #combineInvoiceChoices .invoice-due-table,
  #combineInvoiceChoices .invoice-due-table tbody{width:100%;max-width:100%;min-width:0}
  #combineInvoiceChoices .invoice-due-table tbody tr{
    width:100%;min-width:0;max-width:100%;
    padding:14px 12px;margin:0 0 12px;
  }
  #combineInvoiceChoices .invoice-due-table tbody td{
    display:grid!important;grid-template-columns:76px minmax(0,1fr);
    gap:10px;align-items:start;white-space:normal!important;
    overflow-wrap:anywhere;word-break:normal;
  }
  #combineInvoiceChoices .invoice-due-table tbody td::before{
    display:block!important;grid-column:1;min-width:0;
    font-size:11px;flex:none;white-space:normal;
  }
  #combineInvoiceChoices .invoice-due-table tbody td .invoice-cell-content{
    grid-column:2;min-width:0;max-width:100%;white-space:normal;
    overflow-wrap:anywhere;word-break:normal;
  }
  #combineInvoiceChoices .invoice-due-table tbody td[data-label="Actions"]{
    display:block!important;padding-top:10px;border-top:1px solid var(--line);
  }
  #combineInvoiceChoices .invoice-due-table tbody td[data-label="Actions"]::before{
    margin-bottom:8px;
  }
  #combineInvoiceChoices .invoice-due-table tbody td[data-label="Actions"] .invoice-card-actions{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;width:100%;margin-top:2px;
  }
  #combineInvoiceChoices .invoice-card-actions form,
  #combineInvoiceChoices .invoice-card-actions .button{
    width:100%;min-width:0;max-width:100%;margin:0;
  }
  #combineInvoiceChoices .invoice-card-actions form .button{width:100%}
  #combineInvoiceChoices #selectedInvoicesForm{width:100%;max-width:100%}
}
@media(max-width:380px){
  #combineInvoiceChoices .invoice-due-table tbody td{grid-template-columns:67px minmax(0,1fr)}
  #combineInvoiceChoices .invoice-due-table tbody td[data-label="Actions"] .invoice-card-actions{
    grid-template-columns:minmax(0,1fr);
  }
}
