:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #21152f;
  background: #f5f2fa;
  font-synthesis: none;
  --page: #f5f2fa;
  --surface: #fff;
  --surface-soft: #faf8fd;
  --text: #21152f;
  --muted: #74697f;
  --border: #e8e1ef;
  --accent: #50206f;
  --accent-hover: #3e165b;
  --accent-soft: #f0e9f7;
  --accent-text: #431660;
  --shadow: 0 12px 32px rgba(47, 20, 67, .07);
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(125, 75, 164, .08), transparent 34rem),
    var(--page);
  color: var(--text);
  transition: background-color .2s ease, color .2s ease;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }

.top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 15px max(22px, calc((100% - 1120px) / 2));
  color: #fff;
  background: linear-gradient(112deg, #291039 0%, #3c1755 58%, #51236d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 8px 28px rgba(36, 13, 53, .18);
}
.top-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 104px; height: 68px; object-fit: contain; }
.header-actions, .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-actions { justify-content: flex-end; gap: 16px; }
.header-account { display: flex; align-items: center; gap: 12px; }
.header-identity { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: #fff; font-weight: 680; }
.header-user-name { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-logout-form { margin: 0; }
.header-logout { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 720; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.header-logout:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.18); }
.header-logout:focus-visible { outline: 3px solid #d8b6f2; outline-offset: 3px; }
.header-logout span { font-size: 16px; line-height: 1; }
.header-install-row { display: flex; justify-content: flex-end; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.header-install-row[hidden] { display: none !important; }
.home-install-button { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 11px; color: #f7eefe; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 720; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.home-install-button:hover { border-color: rgba(231,207,249,.55); background: rgba(194,148,224,.2); }
.home-install-button:focus-visible { outline: 3px solid #d8b6f2; outline-offset: 3px; }
.home-install-button[hidden] { display: none !important; }
.home-install-button > span:first-child { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; color: #fff; background: rgba(194,148,224,.32); font-size: 16px; line-height: 1; }
.profile-shortcut { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 650; text-decoration: none; }
.profile-shortcut:hover { color: #f0ddff; }
.profile-shortcut:focus-visible { outline: 3px solid #d8b6f2; outline-offset: 4px; border-radius: 12px; }
.header-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: #704a89; font-size: 15px; font-weight: 750; box-shadow: 0 2px 9px rgba(0,0,0,.16); transition: transform .18s ease, border-color .18s ease; }
.profile-shortcut:hover .header-avatar { transform: translateY(-1px); border-color: #fff; }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.header-avatar-initial { color: #fff; background: linear-gradient(145deg,#9966b7,#5b2d78); }
.notify-toggle { position: relative; display: inline-grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #f4eafb; background: rgba(255,255,255,.07); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.notify-toggle svg { width: 18px; height: 18px; }
.notify-toggle .notification-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.notify-toggle:hover, .notify-toggle.notifications-enabled, .notify-toggle.web-push-active { border-color: rgba(231,207,249,.52); background: rgba(194,148,224,.2); }
.notify-toggle:hover { transform: translateY(-1px); }
.notify-toggle.notifications-enabled::after, .notify-toggle.web-push-active::after { position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; border: 1.5px solid #3c1755; border-radius: 50%; background: #78d7aa; content: ""; }
.notify-toggle:focus-visible { outline: 3px solid #d8b6f2; outline-offset: 3px; }
.wrap { width: min(1120px, 100%); margin: 38px auto; padding: 0 22px; }
h1 { margin: 0 0 7px; color: var(--text); font-size: clamp(25px, 4vw, 32px); letter-spacing: -.045em; line-height: 1.18; }
h2 { margin: 0 0 17px; color: var(--text); font-size: 19px; letter-spacing: -.025em; }
h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; letter-spacing: -.015em; }
.page-intro, .muted { color: var(--muted); font-size: 14px; line-height: 1.55; }
.page-intro { margin: 0; }

.tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 23px 0 20px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
  scrollbar-width: thin;
}
.route-mode-label {
  width: fit-content;
  margin: 23px 0 20px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
}
.delivery-offer-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(13, 8, 20, .76);
  backdrop-filter: blur(10px) saturate(.8);
  -webkit-backdrop-filter: blur(10px) saturate(.8);
}
.delivery-offer-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 25px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 43%, var(--border));
  border-radius: 27px;
  color: var(--text);
  background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 48%), linear-gradient(150deg, var(--surface-soft), var(--surface) 62%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255,255,255,.025) inset;
  animation: offer-in .24s cubic-bezier(.2,.75,.25,1) both;
}
.delivery-offer-dialog:focus { outline: none; }
.delivery-offer-dialog::before { position: absolute; inset: 0 18% auto; height: 2px; border-radius: 0 0 9px 9px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ''; opacity: .9; }
.delivery-offer-heading { display: grid; justify-items: start; gap: 6px; margin-bottom: 20px; }
.delivery-offer-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; }
.delivery-offer-close { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; padding: 0 0 3px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: color-mix(in srgb, var(--surface-soft) 82%, transparent); font: inherit; font-size: 25px; line-height: 1; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.delivery-offer-close:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); color: var(--text); background: var(--accent-soft); }
.delivery-offer-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.delivery-offer-kicker { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.delivery-offer-heading h2 { margin: 2px 0 0; font-size: clamp(22px, 6vw, 27px); line-height: 1.12; letter-spacing: -.035em; }
.delivery-offer-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.delivery-offer-route { display: grid; gap: 17px; padding: 19px; border: 1px solid color-mix(in srgb, var(--accent) 17%, var(--border)); border-radius: 20px; background: color-mix(in srgb, var(--surface-soft) 88%, transparent); box-shadow: 0 1px 0 rgba(255,255,255,.025) inset; }
.delivery-offer-stop { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 13px; align-items: start; }
.delivery-offer-dot { width: 14px; height: 14px; margin-top: 3px; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.delivery-offer-dot.dropoff { border-radius: 3px; }
.delivery-offer-copy { display: grid; gap: 5px; min-width: 0; }
.delivery-offer-copy small { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.delivery-offer-copy strong { font-size: 17px; line-height: 1.25; }
.delivery-offer-copy > span { color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.delivery-offer-earnings { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 15px; border: 1px solid color-mix(in srgb, #36b887 42%, var(--border)); border-radius: 15px; background: linear-gradient(115deg, color-mix(in srgb, #36b887 13%, var(--surface)), var(--surface) 82%); }
.delivery-offer-earnings-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 13px; color: #75e0b5; background: color-mix(in srgb, #36b887 19%, var(--surface)); font-size: 12px; font-weight: 900; }
.delivery-offer-earnings-copy { display: grid; gap: 3px; min-width: 0; }
.delivery-offer-earnings-copy small { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.delivery-offer-earnings-copy strong { color: #54d5a1; font-size: 21px; line-height: 1.15; }
.delivery-offer-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 11px; margin-top: 18px; }
.delivery-offer-actions form { min-width: 0; }
.delivery-offer-actions .btn { width: 100%; min-height: 54px; padding: 11px 12px; border-radius: 15px; font-size: 14px; }
.delivery-offer-actions form:first-child .btn { border-color: color-mix(in srgb, var(--border) 70%, var(--muted)); background: color-mix(in srgb, var(--surface-soft) 84%, #fff 4%); }
.delivery-offer-accept { color: #fff; background: linear-gradient(135deg, #572276, #744098); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 23%, transparent); }
.pickup-route-card { position: relative; display: grid; gap: 15px; padding: 18px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--accent) 32%,var(--border)); border-radius: 19px; background: radial-gradient(ellipse at top right,color-mix(in srgb,var(--accent) 13%,transparent),transparent 48%),linear-gradient(145deg,var(--surface-soft),var(--surface)); box-shadow: 0 12px 30px rgba(20,8,28,.13); }
.pickup-route-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 25%,transparent)); content: ''; }
.pickup-route-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pickup-route-card .eyebrow { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.pickup-route-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid color-mix(in srgb,#d99a36 30%,var(--border)); border-radius: 999px; color: #d99a36; background: color-mix(in srgb,#d99a36 9%,var(--surface)); font-size: 10px; font-weight: 750; white-space: nowrap; }
.pickup-route-state i { width: 7px; height: 7px; border-radius: 50%; background: #d99a36; box-shadow: 0 0 0 3px color-mix(in srgb,#d99a36 17%,transparent); }
.pickup-route-card .pickup-restaurant-identity { display: flex; align-items: center; gap: 12px; }
.pickup-restaurant-identity img, .pickup-restaurant-avatar { flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid color-mix(in srgb,var(--accent) 27%,var(--border)); border-radius: 16px; object-fit: cover; box-shadow: 0 5px 15px rgba(15,6,22,.18); }
.pickup-restaurant-avatar { display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); font-size: 21px; font-weight: 800; }
.pickup-restaurant-identity>div { display: grid; gap: 4px; min-width: 0; }
.pickup-route-card .pickup-restaurant-name { color: var(--text); font-size: 16px; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
.pickup-restaurant-identity small,.pickup-route-location small { color: var(--muted); font-size: 10px; }
.pickup-route-location { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb,var(--surface) 75%,transparent); }
.pickup-route-location>span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#572276,#8b59a6); font-size: 20px; }
.pickup-route-location>div { display: grid; gap: 4px; min-width: 0; }
.pickup-route-location strong { color: var(--text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.pickup-map-button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid color-mix(in srgb,var(--accent) 38%,var(--border)); border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .16s ease,background .16s ease; }
.pickup-map-button:hover { transform: translateY(-1px); background: color-mix(in srgb,var(--accent-soft) 72%,var(--surface)); }
.pickup-route-phone { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 11px; }
.pickup-route-phone a { color: var(--accent); font-weight: 750; text-decoration: none; }
.pickup-route-phone a:hover { text-decoration: underline; }
.pickup-confirm-form { display: grid; grid-template-columns:minmax(0,1fr); align-items: center; gap: 12px; margin: 0; padding: 13px 14px; border: 1px solid color-mix(in srgb,var(--accent) 23%,var(--border)); border-radius: 16px; background: color-mix(in srgb,var(--accent) 5%,var(--surface)); }
.courier-delivery-actions form.pickup-confirm-form { display: grid; grid-column: 1 / -1; width: 100%; }
.pickup-confirm-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pickup-confirm-copy>span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 16px; font-weight: 900; }
.pickup-confirm-copy>div { display: grid; gap: 3px; min-width: 0; }
.pickup-confirm-copy strong { color: var(--text); font-size: 12px; }
.pickup-confirm-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.courier-delivery-actions .pickup-confirm-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 17px; border: 1px solid color-mix(in srgb,var(--accent) 32%,transparent); border-radius: 13px; color: #fff; background: linear-gradient(135deg,#592679,#8250a0); box-shadow: 0 7px 18px color-mix(in srgb,var(--accent) 25%,transparent); font-size: 12px; font-weight: 800; transition: transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.courier-delivery-actions .pickup-confirm-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb,var(--accent) 33%,transparent); filter: brightness(1.08); }
.pickup-confirm-button>span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #6b3689; background: #fff; font-size: 12px; }
.pickup-swipe-control { --swipe-progress:0%; position:relative; height:54px; overflow:hidden; border:1px solid color-mix(in srgb,var(--accent) 23%,var(--border)); border-radius:999px; background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 19%,var(--surface)) 0 var(--swipe-progress),var(--surface) var(--swipe-progress) 100%); box-shadow:inset 0 2px 5px rgba(15,6,22,.08); }
.pickup-swipe-control>span { position:absolute; inset:0 50px 0 50px; display:grid; place-items:center; color:var(--muted); font-size:11px; font-weight:750; letter-spacing:.01em; pointer-events:none; }
.pickup-swipe-control input[type="range"] { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0 4px; appearance:none; background:transparent; cursor:grab; touch-action:pan-y; }
.pickup-swipe-control input[type="range"]:active { cursor:grabbing; }
.pickup-swipe-control input[type="range"]::-webkit-slider-runnable-track { height:54px; border:0; background:transparent; }
.pickup-swipe-control input[type="range"]::-webkit-slider-thumb { width:44px; height:44px; margin-top:5px; appearance:none; border:2px solid rgba(255,255,255,.75); border-radius:50%; background:linear-gradient(145deg,#8a56a8,#5b2878); box-shadow:0 3px 10px rgba(35,12,48,.32); }
.pickup-swipe-control input[type="range"]::-moz-range-track { height:54px; border:0; background:transparent; }
.pickup-swipe-control input[type="range"]::-moz-range-thumb { width:40px; height:40px; border:2px solid rgba(255,255,255,.75); border-radius:50%; background:linear-gradient(145deg,#8a56a8,#5b2878); box-shadow:0 3px 10px rgba(35,12,48,.32); }
.pickup-swipe-control input[type="range"]:focus-visible { outline:3px solid color-mix(in srgb,var(--accent) 40%,transparent); outline-offset:-3px; border-radius:999px; }
.courier-delivery-actions form.release-delivery-form { display: flex; grid-column: 1 / -1; justify-content: flex-end; width: 100%; margin-top: -5px; }
.courier-delivery-actions .release-delivery-button { min-height: 34px; padding: 6px 10px; border-color: transparent; border-radius: 9px; color: var(--muted); background: transparent; font-size: 10px; }
.courier-delivery-actions .release-delivery-button:hover { border-color: color-mix(in srgb,#c06a80 35%,var(--border)); color: #c06a80; background: color-mix(in srgb,#c06a80 8%,var(--surface)); }
@media(max-width:560px){.pickup-confirm-form{grid-template-columns:minmax(0,1fr);gap:10px}.courier-delivery-actions .pickup-confirm-button{width:100%}.pickup-route-card{padding:15px}.pickup-route-heading{align-items:flex-start}.pickup-route-state{font-size:9px}.pickup-swipe-control>span{font-size:10px}}
.delivery-destination { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; margin: 14px 0; padding: 15px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 16px; background: var(--accent-soft); }
.delivery-destination-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #542173, #8050a0); font-size: 19px; }
.delivery-destination > div { display: grid; gap: 5px; min-width: 0; }
.delivery-destination-label { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.delivery-destination strong { color: var(--text); font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
@keyframes offer-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tab:hover { color: var(--accent); background: var(--accent-soft); }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, #4a1b68, #653487);
  box-shadow: 0 4px 12px rgba(67, 27, 93, .2);
}
.tab-panel[hidden] { display: none !important; }
[hidden] { display: none !important; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  min-width: 0;
  margin-bottom: 18px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: background .2s ease, border-color .2s ease, transform .18s ease, box-shadow .18s ease;
}
.grid > .card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(47, 20, 67, .1); }
.field { display: block; margin: 14px 0; color: var(--text); font-size: 13px; font-weight: 650; }
.field input, .field textarea, .field select,
input[type="email"], input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus,
input[type="email"]:focus, input[type="password"]:focus {
  border-color: #8d65a8;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(107, 62, 137, .12);
}
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-hover); box-shadow: 0 7px 16px rgba(53, 20, 77, .2); }
.btn:focus-visible, .tab:focus-visible, .theme-toggle:focus-visible { outline: 3px solid #a984c5; outline-offset: 3px; }
.btn.secondary { color: #f5eafa; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.btn.secondary:hover { background: rgba(255,255,255,.18); }
.top .btn.secondary { color: #fff; }

.theme-toggle {
  position: relative;
  display: grid;
  width: 76px;
  height: 38px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #f2e8fa;
  background: rgba(255,255,255,.1);
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  isolation: isolate;
}
.theme-toggle::before {
  position: absolute;
  z-index: -1;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: 32px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(14, 5, 22, .2);
  content: "";
  transition: transform .22s ease, background .22s ease;
}
.theme-toggle .theme-light, .theme-toggle .theme-dark { display: flex; align-items: center; justify-content: center; line-height: 1; }
.theme-toggle:not(.is-dark) .theme-light { color: #43205d; }
.theme-toggle.is-dark::before { transform: translateX(calc(100% + 3px)); background: #7c5298; }
.theme-toggle.is-dark .theme-dark { color: #fff; }
.theme-toggle.is-dark .theme-light { color: #eadcf3; }

.flash { margin-bottom: 16px; padding: 13px 16px; border: 1px solid #e4d7ee; border-radius: 13px; color: #43205d; background: #f1eafa; }
.flash.error { border-color: #efcbd1; color: #8d2f43; background: #fff0f2; }
.tag { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid #e7daf1; border-radius: 999px; color: #51276e; background: #f4edf8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.order { padding: 18px 0; border-top: 1px solid var(--border); }
.order:first-of-type { border-top: 0; }
.amount { color: var(--accent); font-size: 15px; font-weight: 750; }
.restaurant-orders-scroll > .order {
  position: relative;
  margin: 14px 0 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface));
}
.restaurant-orders-scroll > .order:first-of-type { border-top: 1px solid var(--border); }
.restaurant-orders-scroll > .order::before { position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 16px 0 0 16px; background: linear-gradient(180deg, #a476c4, #613681); content: ""; }
.restaurant-orders-scroll > .order h3 { margin: 2px 0 7px; font-size: 16px; letter-spacing: -.02em; }
.restaurant-orders-scroll > .order > .muted:first-of-type { line-height: 1.55; }
.restaurant-orders-scroll > .order .amount { display: inline-flex; margin: 13px 0 9px; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 10px; background: var(--accent-soft); }
.restaurant-orders-scroll > .order .payment-info { display: inline-flex; margin: 0 0 6px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.restaurant-orders-scroll > .order .tag { margin-left: 8px; }
.restaurant-orders-scroll > .order form { margin-top: 12px; }
.restaurant-orders-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 1px 0 15px; }
.orders-heading-copy .eyebrow { font-size: 9px; }
.orders-heading-copy h2 { margin: 3px 0 2px; font-size: 21px; }
.orders-heading-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.orders-heading-stats { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.orders-total-pill,.orders-result-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 750; white-space: nowrap; }
.orders-total-pill { border-color: color-mix(in srgb,var(--accent) 28%,var(--border)); color: var(--accent); background: var(--accent-soft); }
.orders-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent); }
.restaurant-order-filters { display: grid; gap: 14px; margin-bottom: 13px; padding: 16px; border: 1px solid color-mix(in srgb,var(--accent) 22%,var(--border)); border-radius: 17px; background: radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--accent) 9%,transparent),transparent 58%),linear-gradient(145deg,var(--surface-soft),var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.filters-panel-heading { display: flex; align-items: center; gap: 10px; }
.filters-panel-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border)); border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 22px; line-height: 1; }
.filters-panel-heading > div { display: grid; gap: 3px; min-width: 0; }
.filters-panel-heading strong { font-size: 12px; }
.filters-panel-heading > div > span { color: var(--muted); font-size: 10px; }
.filters-reset { min-height: 32px; margin-left: auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 750; cursor: pointer; transition: .18s ease; }
.filters-reset:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.order-date-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.order-date-presets > span { margin-right: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.order-date-presets button { min-height: 29px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.order-date-presets button:hover,.order-date-presets button.active { border-color: color-mix(in srgb,var(--accent) 43%,var(--border)); color: var(--accent); background: var(--accent-soft); }
.order-filter-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 10px; }
.restaurant-order-filters .field { min-width: 0; margin: 0 0 2px; color: var(--muted); font-size: 10px; font-weight: 750; }
.restaurant-order-filters input,.restaurant-order-filters select { min-width: 0; min-height: 40px; margin-top: 6px; padding: 8px 10px; border-color: var(--border); border-radius: 11px; background-color: var(--surface); font-size: 11px; transition: border-color .18s ease,box-shadow .18s ease; }
.restaurant-order-filters input:focus,.restaurant-order-filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 13%,transparent); outline: 0; }
.restaurant-order-filters .order-id-search { position: relative; }
.restaurant-order-filters .order-id-search input { padding-left: 31px; }
.restaurant-order-filters .order-id-search::after { position: absolute; top: 29px; left: 11px; color: var(--accent); content: "⌕"; font-size: 19px; line-height: 1; }
.restaurant-order-history-panel { display: grid; gap: 14px; margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.restaurant-order-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.restaurant-order-history-heading h3 { margin: 3px 0 2px; font-size: 17px; }
.restaurant-order-history-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.restaurant-order-history-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 750; }
.restaurant-orders-scroll { max-height: min(68vh,760px); overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 6px 0; scrollbar-width: thin; scrollbar-color: color-mix(in srgb,var(--accent) 55%,transparent) var(--surface-soft); }
.restaurant-orders-scroll::-webkit-scrollbar { width: 9px; }
.restaurant-orders-scroll::-webkit-scrollbar-track { border-radius: 99px; background: var(--surface-soft); }
.restaurant-orders-scroll::-webkit-scrollbar-thumb { border: 2px solid var(--surface-soft); border-radius: 99px; background: color-mix(in srgb,var(--accent) 55%,transparent); }
.restaurant-orders-scroll > .order[hidden] { display: none !important; }
.order-id-tag { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 750; white-space: nowrap; }
.order-filter-empty { padding: 16px 8px; border: 1px dashed var(--border); border-radius: 13px; text-align: center; }
.empty { padding: 17px 0; color: var(--muted); }
.metric { color: var(--accent); font-size: 34px; font-weight: 760; letter-spacing: -.05em; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metrics > div { padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); }
.analytics-panel { display: grid; gap: 20px; padding: 24px; overflow: hidden; background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%), var(--surface); }
.analytics-heading, .analytics-subheading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.analytics-heading h2, .analytics-subheading h3 { margin: 5px 0 0; }
.analytics-heading p, .analytics-subheading p { margin: 5px 0 0; font-size: 13px; }
.courier-summary-heading { align-items: flex-start; padding: 4px 2px 2px; }
.courier-summary-heading h2 { margin-top: 7px; font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -.035em; }
.courier-summary-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.courier-summary-state, .courier-summary-calls { display: inline-flex; min-height: 29px; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 700; }
.courier-summary-state i { width: 7px; height: 7px; border-radius: 50%; background: #dc7373; box-shadow: 0 0 9px color-mix(in srgb, #dc7373 40%, transparent); }
.courier-summary-state.is-available i { background: #43c690; box-shadow: 0 0 9px color-mix(in srgb, #43c690 42%, transparent); }
.courier-summary-state.is-available { color: var(--text); }
.courier-summary-calls { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); color: var(--accent); }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.analytics-date { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 700; }
.analytics-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.courier-analytics .courier-average-metric { grid-column: span 2; }
.analytics-metrics .metric-card { display: grid; min-width: 0; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb, var(--surface-soft) 78%, transparent); }
.metric-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 800; }
.analytics-metrics .muted { font-size: 12px; }
.analytics-metrics .metric { overflow-wrap: anywhere; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.15; }
.analytics-metrics .metric-currency { font-size: clamp(19px, 2vw, 26px); }
.analytics-metrics .metric small { font-size: 14px; letter-spacing: 0; }
.analytics-metrics .metric-card > small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.analytics-lower { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 14px; }
.analytics-subpanel { min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb, var(--surface-soft) 72%, transparent); }
.analytics-subheading h3 { font-size: 14px; }
.analytics-subheading p { font-size: 11px; }
.analytics-total { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 8px; border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 14px; font-weight: 800; }
.weekly-chart { display: grid; height: 144px; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 9px; margin-top: 15px; }
.courier-trend-panel { padding: 19px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--surface-soft)), color-mix(in srgb, var(--surface-soft) 74%, transparent)); }
.courier-trend-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.courier-week-change { padding: 6px 9px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 750; }
.courier-week-change.is-up { border-color: color-mix(in srgb, #43c690 32%, var(--border)); color: #43c690; background: color-mix(in srgb, #43c690 9%, var(--surface)); }
.courier-week-change.is-down { border-color: color-mix(in srgb, #df8282 30%, var(--border)); color: #df8282; background: color-mix(in srgb, #df8282 8%, var(--surface)); }
.courier-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; }
.courier-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.courier-chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.courier-chart-legend .legend-previous { background: color-mix(in srgb, var(--muted) 55%, var(--border)); }
.courier-weekly-chart { height: 160px; margin-top: 13px; }
.courier-weekly-chart .chart-day { grid-template-rows: 18px 1fr 18px; }
.courier-weekly-chart .chart-track { width: min(16px, 42%); background: color-mix(in srgb, var(--border) 48%, transparent); }
.courier-weekly-chart .chart-bar[style*="height:0%"] { min-height: 0; }
.courier-weekly-chart .chart-bar-previous { background: linear-gradient(180deg, color-mix(in srgb, var(--muted) 55%, white), color-mix(in srgb, var(--muted) 72%, var(--surface))); box-shadow: none; }
.chart-bars { display: flex; width: 100%; height: 100%; align-items: flex-end; justify-content: center; gap: 4px; }
.chart-day { display: grid; height: 100%; grid-template-rows: 18px 1fr 18px; justify-items: center; gap: 5px; }
.chart-count, .chart-label { color: var(--muted); font-size: 10px; }
.chart-count { font-weight: 700; }
.chart-track { display: flex; width: min(25px, 75%); height: 100%; align-items: flex-end; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--border) 60%, transparent); }
.chart-bar { display: block; width: 100%; min-height: 4px; border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 62%, white), var(--accent)); box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 24%, transparent); }
.status-summary { display: flex; flex-direction: column; }
.status-line { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.status-line strong { color: var(--text); font-size: 14px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 44%, transparent); }
.status-called { background: #e7a545; }.status-accepted { background: #8f73db; }.status-picked { background: #58a8d6; }
.payment-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.payment-summary strong { color: #e3a34c; font-size: 12px; white-space: nowrap; }
.payment-summary.paid strong { color: var(--accent); }
.courier-tip { margin-top: auto; padding: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.payment-check { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; color: var(--text); font-size: 13px; font-weight: 650; white-space: nowrap; }
.payment-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.payment-info { font-size: 13px; }
.payment-received-form { margin-top: 10px; }
.payment-received-button { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border)); border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 750; }
.payment-received-button::before { content: "✓"; font-size: 14px; }
.security-code { display: flex; flex-direction: column; gap: 3px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; color: var(--accent-text); background: var(--accent-soft); }
.security-code strong { font-size: 15px; letter-spacing: .03em; }
.security-code-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.security-code strong .security-code-value { color: inherit; font-size: inherit; font-weight: inherit; }
.security-code-toggle { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--border); border-radius: 9px; color: var(--accent); background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.pickup-code-card { border-color: color-mix(in srgb,#53b88a 40%,var(--border)); background: color-mix(in srgb,#53b88a 10%,var(--surface)); }
.pickup-code-input input { text-align: center; font-size: 18px; font-weight: 800; letter-spacing: .22em; }
.pickup-code-input small { color: var(--muted); font-size: 11px; }
.security-code span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.row select { min-height: 42px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; outline: none; background: var(--surface-soft); color: var(--text); }
.login { width: min(430px, 100%); margin: 9vh auto; padding: 30px; }
.login .btn { width: 100%; margin-top: 8px; }
.restaurant-setup { width: min(680px, 100%); margin: 5vh auto; padding: clamp(22px, 5vw, 38px); }
.restaurant-setup h1 { margin: 10px 0 8px; }
.restaurant-setup form { display: grid; gap: 14px; margin-top: 22px; }
.restaurant-setup .field { margin: 0; }
.restaurant-setup input[type="file"] { width: 100%; }
.restaurant-setup .profile-hint { display: block; margin-top: 6px; }
.restaurant-onboarding { width: min(760px, 100%); }
.restaurant-onboarding [hidden] { display: none !important; }
.restaurant-onboarding h1 { font-size: clamp(26px, 5vw, 36px); }
.restaurant-onboarding-welcome > .muted, .restaurant-onboarding-config > .muted { max-width: 620px; line-height: 1.6; }
.onboarding-workflow { display: grid; gap: 10px; margin: 24px 0; }
.onboarding-workflow article { display: flex; align-items: flex-start; gap: 14px; padding: 15px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb,var(--accent) 5%,var(--surface)); }
.onboarding-workflow article > span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--accent-text); background: var(--accent-soft); font-size: 11px; font-weight: 850; }
.onboarding-workflow strong { display: block; margin: 1px 0 4px; }
.onboarding-workflow p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.onboarding-start { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.onboarding-code-settings { display: grid; gap: 6px; margin: 6px 0 14px; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb,var(--accent) 4%,var(--surface)); }
.onboarding-code-settings .payment-check { margin: 8px 0 0; }
.onboarding-code-settings small { margin: -4px 0 3px 27px; color: var(--muted); line-height: 1.45; }
.onboarding-config-actions { display: flex; justify-content: space-between; gap: 10px; }
.onboarding-config-actions .btn[type="submit"] { flex: 1; }
@media (max-width: 540px) { .onboarding-config-actions { flex-direction: column-reverse; } .onboarding-config-actions .btn { width: 100%; } }
.foot { padding: 22px; color: var(--muted); font-size: 12px; text-align: center; }
.admin-reports { display: grid; gap: 16px; }
.admin-overview { display: grid; gap: 20px; }
.system-control-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.8fr) auto; align-items: center; gap: 20px; padding: 20px 22px; border-color: color-mix(in srgb,var(--accent) 35%,var(--border)); background: linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--accent) 9%,var(--surface))); }
.system-control-copy h2 { margin: 5px 0; font-size: 18px; }
.system-control-copy p { margin: 0; font-size: 12px; }
.system-control-form { display: grid; grid-template-columns: minmax(170px,1fr) auto; align-items: end; gap: 10px; }
.system-control-form .field { margin: 0; font-size: 11px; }
.system-control-form input { padding: 10px 12px; }
.system-control-form .btn { min-height: 42px; white-space: nowrap; }
.system-control-form .btn.danger { background: #9e3b59; }
.system-state-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.system-state-pill i { width: 8px; height: 8px; border-radius: 50%; background: #48bd88; box-shadow: 0 0 0 4px color-mix(in srgb,#48bd88 15%,transparent); }
.system-state-pill.is-off i { background: #d66e89; box-shadow: 0 0 0 4px color-mix(in srgb,#d66e89 15%,transparent); }
.account-row { display: flex; align-items: center; gap: 12px; }
.account-avatar { width: 44px; height: 44px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-soft); }
.admin-accounts-panel { align-items: start; }
.account-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.account-section-heading h2 { margin: 0; font-size: 17px; }
.account-section-heading p { margin: 4px 0 0; font-size: 11px; }
.account-section-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 20px; font-weight: 800; }
.account-count-pill { display: grid; min-width: 27px; height: 27px; place-items: center; margin-left: auto; padding: 0 8px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.account-list-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.account-list-item:first-of-type { border-top: 0; }
.account-avatar-restaurant { display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.account-list-main { flex: 1; min-width: 0; }
.account-list-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account-list-top .muted { margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
.account-role-pill { display: inline-flex; margin-left: 8px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 9px; vertical-align: middle; }
.account-active-indicator { display: inline-flex; align-items: center; gap: 6px; color: #27815e; font-size: 10px; font-weight: 750; white-space: nowrap; }
.account-active-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #43ac78; }
.account-active-indicator.is-inactive { color: #a54b65; }
.account-active-indicator.is-inactive i { background: #c06a80; }
.account-edit-details { margin-top: 10px; }
.account-edit-details summary { display: inline-flex; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--accent); background: var(--surface-soft); font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }
.account-edit-details summary::-webkit-details-marker { display: none; }
.account-delete-form { display: inline-flex; margin: 10px 0 0 6px; }
.account-delete-button { min-height: 34px; padding: 7px 10px; border-color: color-mix(in srgb,#b34663 35%,var(--border)); color: #a13f5a; background: color-mix(in srgb,#b34663 7%,var(--surface)); font-size: 11px; }
.account-delete-button:hover { border-color: #b34663; color: #8f2b47; background: color-mix(in srgb,#b34663 13%,var(--surface)); }
.account-edit-form { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.account-edit-form .field { margin: 0; font-size: 11px; }
.account-edit-form .profile-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.account-active-check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.courier-phone-edit { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.courier-phone-edit input { width: min(220px,100%); min-height: 36px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); }
.courier-phone-edit .btn { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.courier-contact { margin: 8px 0 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); overflow: hidden; }
.courier-contact summary { display: flex; align-items: center; gap: 10px; padding: 9px 11px; cursor: pointer; list-style: none; }
.courier-contact summary::-webkit-details-marker { display: none; }
.courier-contact summary::after { content: "⌄"; margin-left: 2px; color: var(--muted); font-weight: 800; }
.courier-contact summary img { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 50%; object-fit: cover; background: var(--surface); }
.courier-contact summary img.courier-photo-expand { cursor: zoom-in; }
.courier-contact summary img.courier-photo-expand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(8 5 12 / 82%); backdrop-filter: blur(8px); }
.photo-lightbox > img { display: block; max-width: min(88vw, 560px); max-height: 82vh; border: 1px solid var(--border); border-radius: 24px; object-fit: contain; background: var(--surface); box-shadow: 0 24px 90px rgb(0 0 0 / 45%); }
.photo-lightbox-close { position: fixed; top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 30px; cursor: pointer; }
.ios-install-backdrop { position: fixed; z-index: 2100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(8 5 12 / 72%); backdrop-filter: blur(7px); }
.ios-install-dialog { position: relative; width: min(440px, 100%); padding: 26px; border: 1px solid var(--border); border-radius: 23px; background: var(--surface); color: var(--text); box-shadow: 0 25px 80px rgb(0 0 0 / 32%); }
.ios-install-dialog h2 { margin: 12px 38px 8px 0; font-size: 22px; letter-spacing: -.035em; }
.ios-install-dialog > .muted { margin: 0; font-size: 13px; }
.ios-install-icon { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 15px; border: 1px solid color-mix(in srgb,var(--accent) 28%,var(--border)); border-radius: 14px; color: var(--accent); background: var(--accent-soft); font-size: 22px; font-weight: 800; }
.ios-install-close { position: absolute; top: 15px; right: 15px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); background: var(--surface-soft); font-size: 23px; cursor: pointer; }
.ios-install-steps { display: grid; gap: 11px; margin: 19px 0; padding: 0; list-style: none; }
.ios-install-steps li { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.ios-install-steps li > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 800; }
.ios-install-steps li div { display: grid; gap: 3px; }
.ios-install-steps strong { font-size: 12px; }
.ios-install-steps small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.ios-install-done { width: 100%; }
.courier-contact summary strong { color: var(--accent); }
.courier-contact-hint { margin-left: auto; color: var(--muted); font-size: 11px; }
.courier-contact-phone { padding: 9px 14px 12px 59px; border-top: 1px solid var(--border); font-size: 13px; }
.courier-contact-phone a { color: var(--accent); font-weight: 750; text-decoration: none; }
.courier-contact-phone a:hover { text-decoration: underline; }
.courier-deliveries { display: grid; gap: 16px; padding: 22px; background: radial-gradient(ellipse at top right,color-mix(in srgb,var(--accent) 10%,transparent),transparent 48%),var(--surface); }
.courier-deliveries-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.courier-deliveries-heading h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.03em; }
.courier-deliveries-heading p { margin: 5px 0 0; font-size: 12px; }
.courier-total-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 11px; white-space: nowrap; }
.courier-total-pill strong { color: var(--accent); font-size: 14px; }
.courier-delivery-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.courier-overview-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb,var(--surface-soft) 76%,transparent); }
.courier-overview-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.courier-overview-icon.is-done { color: #27815e; background: #e1f3eb; }
.courier-overview-icon.is-cancelled { color: #a54b65; background: #f8e7ec; }
.courier-overview-item small, .courier-overview-item strong { display: block; }
.courier-overview-item small { color: var(--muted); font-size: 10px; }
.courier-overview-item strong { margin-top: 2px; font-size: 17px; line-height: 1; }
.courier-delivery-filters { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: thin; }
.courier-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 37px; flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.courier-filter span { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 7px; background: var(--surface-soft); font-size: 10px; }
.courier-filter:hover, .courier-filter.active { border-color: color-mix(in srgb,var(--accent) 45%,var(--border)); color: var(--accent); background: var(--accent-soft); }
.courier-deliveries > article.courier-delivery-card { position: relative; display: grid; gap: 12px; margin: 0; padding: 17px; overflow: hidden; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 16px; background: linear-gradient(145deg,var(--surface-soft),var(--surface)); box-shadow: var(--shadow); }
.courier-deliveries > article.courier-delivery-card[data-status="delivered"] { border-left-color: #48a77a; }
.courier-deliveries > article.courier-delivery-card[data-status="cancelled"] { border-left-color: #c06a80; }
.courier-delivery-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.courier-delivery-card-head h3 { margin: 4px 0 0; font-size: 15px; line-height: 1.35; }
.courier-delivery-card-head h3 span { color: var(--muted); font-weight: 400; }
.courier-order-number { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.courier-delivery-card .tag { flex: 0 0 auto; }
.courier-address-line { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: 13px; line-height: 1.5; }
.courier-address-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-soft); }
.courier-delivery-details { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.courier-delivery-details > span:first-child small, .courier-delivery-details > span:first-child strong { display: block; }
.courier-delivery-details > span:first-child small { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.courier-delivery-details > span:first-child strong { margin-top: 2px; font-size: 12px; }
.courier-delivery-details > a { color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.courier-delivery-note { width: 100%; color: var(--muted); font-size: 11px; }
.courier-delivery-payment { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.courier-delivery-payment strong { padding: 6px 9px; border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border)); border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 13px; }
.courier-delivery-payment span { color: var(--muted); font-size: 11px; }
.courier-delivery-payment{gap:10px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--accent) 19%,var(--border));border-radius:14px;background:linear-gradient(115deg,color-mix(in srgb,var(--accent) 8%,var(--surface)),var(--surface) 75%)}
.courier-delivery-payment>strong{display:grid;gap:2px;min-width:110px;padding:0;border:0;border-radius:0;color:var(--text);background:transparent}
.courier-delivery-payment>strong small{color:var(--muted);font-size:8px;letter-spacing:.09em}
.courier-delivery-payment>strong b{color:var(--accent);font-size:15px;line-height:1.2}
.courier-payment-info{display:flex;align-items:center;gap:9px;margin-left:0}
.courier-payment-info>i{display:grid;width:31px;height:31px;place-items:center;border-radius:10px;color:var(--accent);background:var(--accent-soft);font-size:15px;font-style:normal;font-weight:850}
.courier-payment-info>span{display:grid;gap:2px}
.courier-payment-info b{color:var(--text);font-size:11px}
.courier-payment-info small{font-size:10px;font-weight:700}
.courier-payment-info small.is-paid{color:#38a777}
.courier-payment-info small.is-pending{color:var(--accent)}
.courier-delivery-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; padding-top: 3px; }
.courier-delivery-actions form { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.courier-delivery-actions .field { width: min(240px,100%); margin: 0; font-size: 11px; }
.courier-delivery-actions .btn { min-height: 40px; }
.courier-completion-note, .courier-cancellation-note { color: #27815e; font-size: 12px; font-weight: 750; }
.courier-cancellation-note { color: #a54b65; }
.courier-delivery-empty { display: grid; justify-items: center; gap: 7px; padding: 30px 16px; border: 1px dashed var(--border); border-radius: 16px; text-align: center; }
.courier-delivery-empty > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: var(--accent); background: var(--accent-soft); font-size: 23px; }
.courier-delivery-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.courier-filter-empty { margin: 0; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.maintenance-screen { text-align: center; }
.admin-overview h2, .overview-section h2, .overview-insight-card h2 { margin: 4px 0 0; font-size: 18px; }
.admin-overview-today, .overview-section { display: grid; gap: 17px; padding: 22px; }
.overview-section { padding: 0; background: transparent; border: 0; box-shadow: none; }
.overview-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.overview-section-heading p { margin: 5px 0 0; font-size: 12px; }
.overview-live-pill, .overview-total-pill, .overview-period-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 750; }
.overview-live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #41bf88; box-shadow: 0 0 0 4px color-mix(in srgb, #41bf88 15%, transparent); }
.overview-total-pill { color: var(--accent); background: var(--accent-soft); }
.overview-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.overview-kpi { display: grid; gap: 7px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(145deg, var(--surface-soft), var(--surface)); box-shadow: var(--shadow); }
.overview-kpi span { color: var(--muted); font-size: 11px; font-weight: 700; }
.overview-kpi strong { overflow-wrap: anywhere; color: var(--text); font-size: clamp(23px, 2.3vw, 31px); letter-spacing: -.04em; }
.overview-kpi small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.overview-kpi-value strong { color: var(--accent); font-size: clamp(19px, 2vw, 25px); }
.overview-kpi-cancelled strong { color: #d66e89; }
.overview-status-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.overview-status-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; min-width: 0; padding: 13px; border-radius: 14px; }
.overview-status-card > span:not(.overview-status-mark) { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.overview-status-card strong { grid-column: 2; color: var(--text); font-size: 24px; line-height: 1; }
.overview-status-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.overview-status-card[data-status="delivered"] .overview-status-mark { background: #41bf88; box-shadow: 0 0 0 4px color-mix(in srgb, #41bf88 15%, transparent); }
.overview-status-card[data-status="cancelled"] .overview-status-mark { background: #d66e89; box-shadow: 0 0 0 4px color-mix(in srgb, #d66e89 15%, transparent); }
.overview-status-card[data-status="called"] .overview-status-mark { background: #e4aa53; box-shadow: 0 0 0 4px color-mix(in srgb, #e4aa53 15%, transparent); }
.overview-week-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-overview-insights { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, .9fr)); align-items: stretch; gap: 12px; }
.overview-insight-card { min-width: 0; padding: 18px; }
.overview-insight-card .overview-section-heading { min-height: 44px; align-items: flex-start; }
.overview-insight-card .overview-section-heading h2 { font-size: 15px; }
.overview-week-chart { display: flex; align-items: end; justify-content: space-around; gap: 8px; height: 156px; margin-top: 13px; padding: 12px 4px 0; }
.overview-chart-day { display: grid; grid-template-rows: 18px 1fr 18px; justify-items: center; gap: 7px; width: 100%; height: 100%; }
.overview-chart-count, .overview-chart-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.overview-chart-track { display: flex; align-items: end; justify-content: center; width: min(28px, 75%); height: 100%; overflow: hidden; border-radius: 9px; background: var(--surface-soft); }
.overview-chart-track span { width: 100%; min-height: 5px; border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 65%, #fff), var(--accent)); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 25%, transparent); }
.overview-ranking { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.overview-ranking li { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 41px; border-bottom: 1px solid var(--border); }
.overview-ranking li:last-child { border-bottom: 0; }
.overview-rank-number { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 10px; font-weight: 800; }
.overview-ranking-name { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.overview-ranking li strong { display: grid; min-width: 27px; height: 27px; place-items: center; padding: 0 7px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 11px; }
.overview-empty { margin: 20px 0 8px; font-size: 12px; }
.report-filter-card { display: grid; gap: 20px; padding: 23px; background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%), var(--surface); }
.report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.report-heading h2 { margin: 5px 0 0; font-size: 19px; }
.report-heading p { margin: 5px 0 0; font-size: 13px; }
.report-table-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.report-table-actions .btn { min-height: 36px; padding: 7px 10px; font-size: 11px; text-decoration: none; }
.report-scope-chip { display: inline-flex; margin: 5px 0 0; padding: 4px 8px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 750; }
.report-period-chip { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--border); border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 750; }
.report-filters { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) auto; align-items: end; gap: 12px; }
.report-filters .field { min-width: 0; margin: 0; }
.report-filters .btn { min-height: 44px; white-space: nowrap; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.report-kpi { display: grid; gap: 7px; min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, var(--surface-soft), var(--surface)); box-shadow: var(--shadow); }
.report-kpi span { color: var(--muted); font-size: 12px; font-weight: 650; }
.report-kpi strong { overflow-wrap: anywhere; color: var(--accent); font-size: clamp(23px, 3vw, 30px); letter-spacing: -.04em; }
.report-kpi small { color: var(--muted); font-size: 11px; }
.report-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.report-table-card { min-width: 0; padding: 19px; }
.report-table-wrap { width: 100%; max-height: min(52vh, 420px); overflow: auto; overscroll-behavior: contain; border-radius: 10px; scrollbar-gutter: stable; }
.report-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.report-table th { position: sticky; top: 0; z-index: 1; padding: 11px 9px; border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.report-table td { padding: 12px 9px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-count { display: inline-grid; min-width: 28px; min-height: 27px; place-items: center; padding: 0 8px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.report-kpi-cancelled strong { color: #b54b69; }
.entity-summary { display: grid; gap: 18px; grid-column: 1 / -1; padding: 22px; background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%), var(--surface); }
.entity-summary-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entity-payment-summary { display: grid; gap: 8px; }
.entity-payment-summary h3 { margin: 0; font-size: 15px; }
#report-courier-restaurants { grid-column: 1 / -1; }
.cancelled-id-list { display: flex; min-width: 160px; flex-wrap: wrap; gap: 5px; }
.report-cancellations { grid-column: 1 / -1; }
.report-cancel-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.report-empty { padding: 20px !important; color: var(--muted) !important; text-align: center; }
.notice-stack { position: fixed; z-index: 20; top: 94px; right: 22px; display: grid; width: min(370px, calc(100vw - 32px)); gap: 10px; pointer-events: none; }
.delivery-notice { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--border)); border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: 0 15px 44px rgba(15,6,22,.28); animation: notice-in .22s ease-out; pointer-events: auto; }
.notice-mark { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; color: var(--accent-text); background: var(--accent-soft); font-weight: 800; }
.delivery-notice-copy { display: grid; flex: 1; gap: 4px; min-width: 0; }
.delivery-notice strong { font-size: 13px; }
.delivery-notice small { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.delivery-notice-dismiss { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 20px; cursor: pointer; }
.delivery-notice-dismiss:hover { color: var(--text); background: var(--surface-soft); }
@keyframes notice-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

.customer-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(300px, 1.15fr); gap: 20px; }
.customer-block { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-soft); }
.customer-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.customer-heading h2 { margin: 0; font-size: 18px; }
.customer-heading p { margin: 5px 0 0; font-size: 13px; }
.customer-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 14px; color: var(--accent); background: var(--accent-soft); font-size: 23px; font-weight: 700; }
.customer-form-block form .field { margin: 15px 0; }
.customer-form-block .btn { width: 100%; margin-top: 5px; }
.customer-list { display: grid; gap: 10px; max-height: 560px; overflow-y: auto; padding-right: 3px; }
.customer-item { display: flex; align-items: flex-start; gap: 13px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .18s ease, transform .18s ease; }
.customer-item:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); }
.customer-item .customer-details { flex: 1; }
.customer-delete-form { flex: 0 0 auto; margin-left: auto; }
.customer-delete-button { min-height: 36px; padding: 7px 11px; border: 1px solid color-mix(in srgb, #ef5265 42%, var(--border)); border-radius: 11px; color: #ff7887; background: color-mix(in srgb, #ef5265 10%, var(--surface)); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.customer-delete-button:hover { border-color: #ef5265; background: color-mix(in srgb, #ef5265 18%, var(--surface)); }
.customer-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 13px; color: var(--accent-text); background: var(--accent-soft); font-size: 16px; font-weight: 750; }
.customer-details { display: grid; min-width: 0; gap: 4px; }
.customer-details strong { color: var(--text); font-size: 14px; }
.customer-phone, .customer-address { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.customer-empty { display: grid; min-height: 190px; align-content: center; justify-items: center; padding: 22px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; }
.customer-empty > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: var(--accent); background: var(--accent-soft); font-size: 24px; }
.customer-empty strong { margin-top: 12px; color: var(--text); font-size: 14px; }
.customer-empty p { max-width: 260px; margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.customer-transfer-block { margin-top: 18px; }
.customer-transfer-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.customer-transfer-actions > .btn { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.customer-import-form { display: flex; flex: 1 1 360px; align-items: flex-end; gap: 12px; }
.customer-import-form .field { flex: 1; margin: 0; }
.customer-import-form input[type="file"] { min-height: 44px; padding: 9px; }
.customer-transfer-note { margin: 15px 0 0; font-size: 12px; line-height: 1.55; }
.profile-layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr); gap: 22px; align-items: stretch; }
.profile-photo-column { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; border: 1px solid var(--border); border-radius: 17px; background: radial-gradient(circle at 50% 30%, var(--accent-soft), var(--surface-soft) 70%); text-align: center; }
.profile-photo-column > strong { margin-top: 8px; font-size: 17px; }
.profile-photo-column > .muted { font-size: 13px; }
.profile-avatar-wrap { display: grid; width: 132px; height: 132px; place-items: center; overflow: hidden; border: 3px solid var(--surface); border-radius: 38px; background: var(--accent-soft); box-shadow: 0 10px 30px rgba(49, 20, 67, .18), 0 0 0 1px var(--border); }
.profile-avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-placeholder { display: grid; place-items: center; color: var(--accent); font-size: 52px; font-weight: 800; }
.profile-form-column { padding: 22px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-soft); }
.profile-form-column .btn { min-width: 170px; }
.profile-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 450; }

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #110d17;
  --surface: #1b1522;
  --surface-soft: #211a2a;
  --text: #f2ecf7;
  --muted: #b6a9c1;
  --border: #382b43;
  --accent: #9b73b7;
  --accent-hover: #ad87c7;
  --accent-soft: #30243a;
  --accent-text: #eadcf3;
  --shadow: 0 12px 34px rgba(0, 0, 0, .2);
  background: var(--page);
}
html[data-theme="dark"] body { background: radial-gradient(ellipse at 12% 0%, rgba(119, 70, 151, .11), transparent 34rem), var(--page); color: var(--text); }
html[data-theme="dark"] .top { background: linear-gradient(112deg, #1b1026 0%, #281537 58%, #342047 100%); }
html[data-theme="dark"] .card { border-color: var(--border); background: var(--surface); box-shadow: var(--shadow); }
html[data-theme="dark"] .tab { color: var(--muted); }
html[data-theme="dark"] .tab.active { color: #fff; background: linear-gradient(135deg, #593477, #704d8b); }
html[data-theme="dark"] .btn:not(.secondary) { color: #fff; background: #56336f; }
html[data-theme="dark"] .btn:not(.secondary):hover { background: #6d4a86; }
html[data-theme="dark"] .btn.secondary { background: rgba(255,255,255,.09); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field select,
html[data-theme="dark"] input[type="email"], html[data-theme="dark"] input[type="password"] { border-color: var(--border); background: var(--surface-soft); color: var(--text); }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field textarea:focus, html[data-theme="dark"] .field select:focus { background: #261d30; }
html[data-theme="dark"] .row select { border-color: var(--border); background: var(--surface-soft); color: var(--text); }
html[data-theme="dark"] .flash { border-color: #483357; color: #eadcf3; background: #2a2033; }
html[data-theme="dark"] .flash.error { border-color: #69404c; color: #ffc5d0; background: #38202a; }
html[data-theme="dark"] .tag { border-color: #4a3859; color: #eadcf3; background: #30243a; }
html[data-theme="dark"] .amount, html[data-theme="dark"] .metric { color: #c9a8df; }
html[data-theme="dark"] .report-table th, html[data-theme="dark"] .report-table td { border-color: var(--border); }

@media (max-width: 960px) {
  .system-control-card { grid-template-columns: minmax(0,1fr) auto; }
  .system-control-form { grid-column: 1 / -1; grid-row: 2; }
  .system-state-pill { grid-column: 2; grid-row: 1; }
  .overview-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-week-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-overview-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-insight-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .courier-deliveries { gap: 12px; padding: 15px; }
  .courier-deliveries-heading { align-items: flex-start; }
  .courier-deliveries-heading h2 { font-size: 19px; }
  .courier-total-pill { padding: 7px 9px; font-size: 10px; }
  .courier-delivery-overview { gap: 7px; }
  .courier-overview-item { gap: 7px; padding: 9px 7px; border-radius: 12px; }
  .courier-overview-icon { width: 29px; height: 29px; border-radius: 9px; }
  .courier-overview-item small { font-size: 9px; }
  .courier-overview-item strong { font-size: 15px; }
  .courier-filter { min-height: 35px; padding: 6px 9px; }
  .courier-deliveries > article.courier-delivery-card { gap: 10px; padding: 14px; }
  .courier-delivery-card-head { gap: 7px; }
  .courier-delivery-card-head h3 { font-size: 13px; }
  .courier-delivery-card .tag { padding: 4px 7px; font-size: 10px; }
  .courier-delivery-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .courier-delivery-actions form { display: grid; grid-template-columns: 1fr; }
  .courier-delivery-actions .courier-code-form { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) auto; }
  .courier-delivery-actions .courier-code-form .field { grid-column: 1; }
  .courier-delivery-actions .courier-code-form .btn { grid-column: 2; grid-row: 1 / span 2; }
  .courier-delivery-actions form:not(.courier-code-form) .btn { width: 100%; }
  .system-control-card { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 16px; }
  .system-state-pill { grid-column: 1; grid-row: auto; justify-self: start; }
  .system-control-form { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0,1fr); }
  .admin-overview { gap: 15px; }
  .admin-overview-today { padding: 16px; }
  .overview-section-heading { align-items: flex-start; }
  .overview-live-pill, .overview-period-pill { font-size: 10px; }
  .overview-kpis, .overview-week-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .overview-kpi { padding: 12px; }
  .overview-kpi strong { font-size: 24px; }
  .overview-kpi-value strong { font-size: 18px; }
  .overview-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-overview-insights { grid-template-columns: minmax(0, 1fr); }
  .overview-insight-card:first-child { grid-column: auto; }
  .report-filter-card { gap: 15px; padding: 17px; }
  .report-heading { flex-direction: column; }
  .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-filters .field:nth-of-type(3) { grid-column: 1 / -1; }
  .report-filters .btn { grid-column: 1 / -1; width: 100%; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .entity-summary-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-kpi { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 13px 15px; }
  .report-kpi strong { grid-column: 2; grid-row: 1 / span 2; }
  .report-kpi small { grid-column: 1; }
  .report-tables { grid-template-columns: minmax(0, 1fr); }
  .report-table-card { padding: 15px; }
  .top { gap: 0; padding: 12px 17px; }
  .top-main { align-items: center; gap: 10px; }
  .brand img { width: 92px; height: 62px; }
  .header-actions { width: auto; justify-content: flex-end; gap: 8px; }
  .header-account { gap: 7px; }
  .header-user-name { max-width: min(22vw, 132px); }
  .header-logout { min-height: 37px; gap: 5px; padding: 7px 10px; }
  .header-logout span { display: none; }
  .header-install-row { padding-top: 8px; }
  .home-install-button { width: auto; justify-content: center; padding: 7px 10px; }
  .notify-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .notice-stack { top: 115px; right: 12px; width: calc(100vw - 24px); }
  .theme-toggle { width: 72px; height: 36px; font-size: 16px; }
  .theme-toggle::before { height: 28px; }
  .wrap { margin: 25px auto; padding: 0 15px; }
  .card { padding: 18px; border-radius: 17px; }
  .customer-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .customer-block { padding: 17px; }
  .customer-item { gap: 9px; padding: 12px; }
  .customer-delete-button { min-height: 34px; padding: 6px 8px; }
  .customer-import-form { align-items: stretch; flex-direction: column; }
  .customer-list { max-height: 420px; }
  .analytics-panel { gap: 14px; padding: 17px; }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .analytics-metrics .metric-card { gap: 6px; padding: 12px; }
  .analytics-metrics .metric { font-size: 25px; }
  .analytics-metrics .metric-currency { font-size: 18px; }
  .analytics-lower { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .analytics-subpanel { padding: 14px; }
  .analytics-date { padding: 7px 9px; font-size: 10px; }
  .weekly-chart { height: 126px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .profile-photo-column { min-height: 220px; }
  .profile-avatar-wrap { width: 104px; height: 104px; border-radius: 32px; }
  .tabs { margin: 18px 0 16px; }
  .delivery-offer-dialog { padding: 20px; border-radius: 23px; }
  .delivery-offer-actions { grid-template-columns: 1fr 1.2fr; gap: 9px; }
}

@media (max-width: 360px) {
  .delivery-offer-dialog { padding: 17px; }
  .delivery-offer-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  @page { margin: 12mm; }
  body[data-print-target] * { visibility: hidden !important; }
  body[data-print-target] #report-restaurants,
  body[data-print-target] #report-restaurants *,
  body[data-print-target] #report-couriers,
  body[data-print-target] #report-couriers *,
  body[data-print-target] #report-courier-restaurants,
  body[data-print-target] #report-courier-restaurants *,
  body[data-print-target] #report-cancellations,
  body[data-print-target] #report-cancellations *,
  body[data-print-target] #report-entity-summary,
  body[data-print-target] #report-entity-summary * { visibility: visible !important; }
  body[data-print-target] #report-restaurants,
  body[data-print-target] #report-couriers,
  body[data-print-target] #report-courier-restaurants,
  body[data-print-target] #report-cancellations,
  body[data-print-target] #report-entity-summary { position: absolute; top: 0; left: 0; width: 100%; margin: 0; border: 0; box-shadow: none; }
  body[data-print-target="report-restaurants"] #report-couriers,
  body[data-print-target="report-restaurants"] #report-courier-restaurants,
  body[data-print-target="report-restaurants"] #report-cancellations,
  body[data-print-target="report-couriers"] #report-restaurants,
  body[data-print-target="report-couriers"] #report-courier-restaurants,
  body[data-print-target="report-couriers"] #report-cancellations,
  body[data-print-target="report-courier-restaurants"] #report-restaurants,
  body[data-print-target="report-courier-restaurants"] #report-couriers,
  body[data-print-target="report-courier-restaurants"] #report-cancellations,
  body[data-print-target="report-cancellations"] #report-restaurants,
  body[data-print-target="report-cancellations"] #report-couriers,
  body[data-print-target="report-cancellations"] #report-courier-restaurants,
  body[data-print-target="report-entity-summary"] #report-restaurants,
  body[data-print-target="report-entity-summary"] #report-couriers,
  body[data-print-target="report-entity-summary"] #report-courier-restaurants,
  body[data-print-target="report-entity-summary"] #report-cancellations,
  body[data-print-target="report-restaurants"] #report-entity-summary,
  body[data-print-target="report-couriers"] #report-entity-summary,
  body[data-print-target="report-courier-restaurants"] #report-entity-summary,
  body[data-print-target="report-cancellations"] #report-entity-summary { display: none !important; }
  .report-table-actions { display: none !important; }
  .report-table-wrap { overflow: visible; }
  .report-table { font-size: 10pt; }
  .report-table th, .report-table td { padding: 7px; border-color: #bbb !important; color: #222 !important; }
  .report-count { border: 1px solid #ccc; background: #f1eafa !important; color: #43205d !important; print-color-adjust: exact; }
}
.courier-availability-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.courier-availability-card p{margin:5px 0 0}.courier-access-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.courier-plan-state{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted);background:var(--surface-soft);font-size:10px;font-weight:750;line-height:1.2}.courier-plan-state i{width:6px;height:6px;border-radius:50%;background:#d59d50}.courier-plan-state.is-active{border-color:color-mix(in srgb,#43c690 32%,var(--border));color:#43c690;background:color-mix(in srgb,#43c690 8%,var(--surface))}.courier-plan-state.is-active i{background:#43c690}.courier-plan-state.is-paused{border-color:color-mix(in srgb,#d59d50 30%,var(--border));color:#d59d50}@media(max-width:560px){.courier-availability-card{align-items:flex-start;flex-direction:column}.courier-availability-card form,.courier-availability-card .btn{width:100%}}
.push-settings-panel { max-width: 900px; }
.push-settings-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.push-settings-heading h2 { margin: 4px 0; font-size: 20px; }
.push-settings-heading p { margin: 0; }
.push-settings-toggles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.push-setting-toggle { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 86px; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); cursor: pointer; }
.push-setting-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 19px; font-weight: 800; }
.push-setting-toggle strong,.push-setting-toggle small { display: block; }
.push-setting-toggle strong { font-size: 12px; }
.push-setting-toggle small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.push-setting-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.push-settings-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.push-message-field { grid-column: 1 / -1; }
.push-notification-preview { display: grid; gap: 6px; margin: 2px 0 17px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(120deg,var(--surface-soft),color-mix(in srgb,var(--accent) 8%,var(--surface))); }
.push-notification-preview .eyebrow { font-size: 9px; }
.push-notification-preview strong { font-size: 13px; }
.push-notification-preview p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.push-test-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.8fr); align-items: end; gap: 22px; margin-top: 22px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-soft); }
.push-test-card h3 { margin: 6px 0; }
.push-test-card p { margin: 0; }
.push-test-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; }
.push-test-form .field { margin: 0; }
.push-test-form .btn { min-height: 44px; white-space: nowrap; }
.push-test-form .btn:disabled { opacity: .5; cursor: not-allowed; }
.courier-wizard { margin-top: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-soft); }
.courier-wizard-progress { display: grid; gap: 8px; margin-bottom: 20px; }
.courier-wizard-step-count { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.courier-wizard-progress strong { font-size: 16px; }
.courier-wizard-track { height: 6px; overflow: hidden; border-radius: 99px; background: var(--border); }
.courier-wizard-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),#a46bd0); transition: width .22s ease; }
.courier-wizard-panel > .muted { margin: 0 0 15px; font-size: 12px; }
.courier-wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.courier-wizard-actions .btn[hidden] { display: none; }
.courier-wizard-review { display: grid; gap: 9px; }
.courier-wizard-review > div { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.courier-wizard-review span { color: var(--muted); font-size: 10px; }
.courier-wizard-review strong { overflow-wrap: anywhere; font-size: 13px; }
@media(max-width:760px){.push-test-card{grid-template-columns:minmax(0,1fr)}.push-test-form{grid-template-columns:minmax(0,1fr)}.push-test-form .btn{width:100%}}
@media(max-width:560px){.account-delete-form{margin-left:4px}.account-list-top{flex-wrap:wrap}}
@media(max-width:560px){.restaurant-orders-heading{align-items:flex-start;flex-direction:column;gap:0}.restaurant-order-filters{grid-template-columns:minmax(0,1fr)}.restaurant-order-filters .btn{grid-column:auto}.restaurant-orders-scroll{max-height:62vh}}
@media(max-width:560px){.restaurant-order-history-panel{padding:14px}.restaurant-order-history-heading{align-items:flex-start}.restaurant-order-history-count{font-size:9px}}
@media(max-width:560px){.courier-wizard{padding:14px}.courier-wizard-actions .btn{flex:1}}
@media(max-width:760px){.push-settings-toggles{grid-template-columns:minmax(0,1fr)}.push-setting-toggle{min-height:70px}.push-settings-fields{grid-template-columns:minmax(0,1fr)}.push-message-field{grid-column:auto}}
/* Restaurant: active deliveries separated from the history box */
.pending-orders-panel { display: grid; gap: 12px; margin: 0 0 16px; padding: 17px; border: 1px solid color-mix(in srgb,var(--accent) 26%,var(--border)); border-radius: 17px; background: radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--accent) 10%,transparent),transparent 58%),var(--surface); }
.pending-orders-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pending-orders-heading h3 { margin: 4px 0 2px; font-size: 17px; }
.pending-orders-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.pending-orders-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--border)); border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 10px; font-weight: 800; }
.pending-orders-list { display: grid; gap: 12px; }
.pending-orders-list:empty { display: none; }
.pending-orders-list > .order { margin: 0; }
.pending-orders-empty { margin: 0; padding: 15px; border: 1px dashed var(--border); border-radius: 13px; color: var(--muted); text-align: center; font-size: 12px; }
.order-status-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.order-status-presets > span { margin-right: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.order-status-presets button { min-height: 29px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.order-status-presets button:hover,.order-status-presets button.active { border-color: color-mix(in srgb,var(--accent) 43%,var(--border)); color: var(--accent); background: var(--accent-soft); }
@media(max-width:560px){.pending-orders-heading{align-items:flex-start;flex-direction:column}.pending-orders-count{align-self:flex-start}.order-status-presets{gap:5px}}
/* Guided restaurant order creation form */
.restaurant-order-create-grid { align-items: start; }
.restaurant-order-create-grid { grid-template-columns: minmax(0, 1fr); }
.restaurant-order-create-grid > .card { min-width: 0; width: 100%; }
.restaurant-order-create-grid .restaurant-order-filters select,
.restaurant-order-create-grid .new-order-form select,
.restaurant-order-create-grid .pending-order-call-form select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a73b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.restaurant-order-filters .field { font-size: 12px; }
.restaurant-order-filters input,
.restaurant-order-filters select { min-height: 44px; font-size: 13px; }
.restaurant-order-filters .filters-panel-heading strong { font-size: 14px; }
.restaurant-order-filters .filters-panel-heading > div > span,
.restaurant-order-filters .order-date-presets > span,
.restaurant-order-filters .order-status-presets > span { font-size: 12px; }
.restaurant-order-filters .order-date-presets button,
.restaurant-order-filters .order-status-presets button { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.restaurant-order-create-grid .new-order-form .field { font-size: 13px; }
.restaurant-order-create-grid .new-order-form .field input,
.restaurant-order-create-grid .new-order-form .field select,
.restaurant-order-create-grid .new-order-form .field textarea { font-size: 14px; }
.occurrence-report { margin: 14px 0; padding: 13px 15px; border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border)); border-radius: 14px; background: color-mix(in srgb,var(--accent-soft) 36%,var(--surface)); }
.occurrence-report > summary { color: var(--accent); font-size: 13px; font-weight: 800; cursor: pointer; }
.occurrence-report > summary::marker { color: var(--accent); }
.occurrence-report-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; margin-top: 10px; }
.occurrence-report-form .field { margin: 6px 0; }
.occurrence-report-form .field:last-of-type { grid-column: 1 / -1; }
.occurrence-report-form textarea { min-height: 76px; }
.occurrence-report-form .btn { justify-self: start; }
.occurrence-admin-panel { display: grid; gap: 16px; }
.occurrence-admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.occurrence-admin-heading h2 { margin: 4px 0; }
.occurrence-admin-heading p { margin: 0; }
.occurrence-admin-counts { display: flex; flex: 0 0 auto; gap: 8px; }
.occurrence-admin-counts span { display: grid; gap: 3px; min-width: 86px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 13px; color: var(--muted); background: var(--surface-soft); font-size: 10px; text-align: center; }
.occurrence-admin-counts strong { color: var(--accent); font-size: 19px; }
.occurrence-admin-create { margin: 0; }
.occurrence-admin-list { display: grid; gap: 11px; max-height: min(68vh,780px); overflow: auto; padding-right: 5px; }
.occurrence-admin-item { display: grid; gap: 9px; padding: 15px; border: 1px solid var(--border); border-left: 3px solid #c68836; border-radius: 14px; background: var(--surface-soft); }
.occurrence-admin-item.is-resolved { border-left-color: #40896c; }
.occurrence-admin-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.occurrence-admin-item-heading h3 { margin: 4px 0 0; font-size: 14px; }
.occurrence-id { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.occurrence-status { padding: 5px 9px; border: 1px solid #e8d6b7; border-radius: 99px; color: #80531f; background: #fff5e4; font-size: 10px; font-weight: 800; white-space: nowrap; }
.occurrence-status.is-resolved { border-color: #b9ddcc; color: #286344; background: #e9f7ef; }
.occurrence-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: 11px; }
.occurrence-description { margin: 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.occurrence-resolution-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.occurrence-resolution-form .field { margin: 0; }
.occurrence-resolution-note { padding: 11px 12px; border: 1px solid #b9ddcc; border-radius: 11px; color: var(--text); background: color-mix(in srgb,#4a986f 9%,var(--surface)); }
.occurrence-resolution-note strong { font-size: 11px; }
.occurrence-resolution-note p { margin: 5px 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.occurrence-resolution-note time { color: var(--muted); font-size: 10px; }
.occurrence-empty { display: grid; gap: 5px; place-items: center; padding: 28px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; }
.occurrence-empty strong { color: var(--text); }
@media(max-width:620px){.occurrence-admin-heading{align-items:flex-start;flex-direction:column}.occurrence-admin-counts{width:100%}.occurrence-admin-counts span{flex:1}.occurrence-report-form{grid-template-columns:minmax(0,1fr)}.occurrence-report-form .field:last-of-type{grid-column:auto}.occurrence-resolution-form{grid-template-columns:minmax(0,1fr)}.occurrence-resolution-form .btn{width:100%}}
.courier-payout-panel { margin-top: 16px; }
.courier-payout-kpis { margin: 0 0 15px; }
.courier-payout-panel .report-table td:last-child { min-width: 150px; }
.courier-payout-panel .billing-action-form { margin: 0; }
.courier-payout-panel .billing-paid-date { display: block; }
.admin-finance-panel { display: grid; gap: 14px; }
.finance-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
.finance-filters .btn { grid-column: 1 / -1; justify-self: start; }
.account-courier-access { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 4px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.account-courier-access > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-courier-access > div strong { font-size: 12px; }
.account-courier-access form { margin: 0; }
@media(max-width:760px){.courier-payout-panel .report-heading{align-items:flex-start;flex-direction:column}.courier-payout-panel .report-table-actions{width:100%;justify-content:space-between}.courier-payout-panel .report-table-wrap{overflow-x:auto}.courier-payout-panel .report-table{min-width:760px}}
@media(max-width:620px){.finance-filters{grid-template-columns:minmax(0,1fr)}.finance-filters .btn{grid-column:auto;width:100%}.account-courier-access{align-items:flex-start;flex-direction:column}.account-courier-access form,.account-courier-access .btn{width:100%}}

/* Account cards: clearer grouping for identity, documents and access controls. */
.account-list-card{display:grid;gap:12px}
.account-list-item{position:relative;align-items:flex-start;gap:15px;margin:0;padding:17px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 5%,var(--surface)),var(--surface) 62%);transition:border-color .18s ease,transform .18s ease}
.account-list-item:first-of-type{border-top:1px solid var(--border)}
.account-list-item:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));transform:translateY(-1px)}
.account-avatar{width:54px;height:54px;border-radius:16px;box-shadow:0 5px 16px #0002}
.account-list-main{display:grid;gap:11px}
.account-list-top{align-items:center}
.account-list-top>div>strong{font-size:15px;letter-spacing:-.02em}
.account-role-pill{margin-left:7px;padding:4px 8px;color:var(--accent);border-color:color-mix(in srgb,var(--accent) 28%,var(--border));background:color-mix(in srgb,var(--accent) 8%,var(--surface));font-size:10px;font-weight:700}
.account-list-top .muted{line-height:1.5}
.account-list-top .muted a,.account-edit-form a{color:var(--accent);font-weight:700;text-decoration:none}
.account-list-top .muted a:hover,.account-edit-form a:hover{text-decoration:underline}
.account-active-indicator{padding:6px 9px;border:1px solid color-mix(in srgb,#43ac78 25%,transparent);border-radius:999px;background:color-mix(in srgb,#43ac78 9%,var(--surface));font-size:11px}
.account-active-indicator.is-inactive{border-color:color-mix(in srgb,#c06a80 28%,transparent);background:color-mix(in srgb,#c06a80 9%,var(--surface))}
.account-edit-details{margin:0}
.account-edit-details summary{padding:8px 12px;border-radius:10px;background:color-mix(in srgb,var(--accent) 9%,var(--surface));font-size:12px}
.account-courier-access{min-height:58px;margin:0;padding:10px 12px;border-color:color-mix(in srgb,var(--accent) 22%,var(--border));background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.account-courier-access>div strong{font-size:12px}
.account-courier-access .btn{min-height:38px;padding:8px 13px;border-radius:10px;font-size:12px}
.account-delete-form{margin:0;justify-self:start}
.account-delete-button{min-height:36px;padding:7px 12px;border-radius:10px;font-size:11px}
@media(max-width:560px){.account-list-item{gap:11px;padding:13px}.account-avatar{width:46px;height:46px;border-radius:14px}.account-list-top{align-items:flex-start}.account-active-indicator{padding:5px 7px}.account-courier-access{align-items:center;flex-direction:row}.account-courier-access form,.account-courier-access .btn{width:auto}.account-delete-form{width:auto}}
.courier-route-contacts{display:grid;gap:8px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border));border-radius:14px;background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.courier-route-contacts-label{color:var(--muted);font-size:11px;font-weight:650}
.courier-route-contacts>div{display:flex;flex-wrap:wrap;gap:8px}
.courier-call-button{display:flex;align-items:center;gap:10px;min-width:170px;padding:9px 12px;border:1px solid var(--border);border-radius:11px;color:var(--text);background:var(--surface);text-decoration:none;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.courier-call-button:hover{transform:translateY(-1px);border-color:var(--accent);background:var(--accent-soft)}
.courier-call-button>span:first-child{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;color:var(--accent);background:var(--accent-soft);font-size:17px}
.courier-call-button small,.courier-call-button strong{display:block}
.courier-call-button small{color:var(--muted);font-size:8px;letter-spacing:.08em}
.courier-call-button strong{margin-top:2px;color:var(--text);font-size:11px}
@media(max-width:560px){.courier-route-contacts>div{display:grid;grid-template-columns:1fr 1fr}.courier-call-button{min-width:0;padding:8px}.courier-call-button strong{font-size:10px}}
.courier-occurrence-report{width:min(100%,300px);margin:0;padding:0;border:0;border-radius:13px;background:transparent}
.courier-occurrence-report>summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 11px;border:1px solid var(--border);border-radius:14px;color:var(--text);background:linear-gradient(120deg,var(--surface-soft),var(--surface));box-shadow:0 5px 15px rgba(15,6,22,.09);list-style:none;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.courier-occurrence-report>summary::-webkit-details-marker{display:none}
.courier-occurrence-report>summary:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.courier-issue-icon{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border:1px solid color-mix(in srgb,#d99a36 28%,var(--border));border-radius:11px;color:#d99a36;background:color-mix(in srgb,#d99a36 11%,var(--surface));font-size:15px;font-weight:900}
.courier-issue-summary-copy{display:grid;flex:1;gap:3px;min-width:0}
.courier-issue-summary-copy strong{font-size:11px;font-weight:800}
.courier-issue-summary-copy small{color:var(--muted);font-size:9px;line-height:1.35}
.courier-issue-chevron{color:var(--muted);font-size:16px;transition:transform .18s ease}
.courier-occurrence-report[open]{width:100%;padding:13px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--border));border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 7%,var(--surface)),var(--surface));box-shadow:0 8px 22px rgba(15,6,22,.1)}
.courier-occurrence-report[open]>summary{min-height:40px;padding:0 0 10px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
.courier-occurrence-report[open] .courier-issue-chevron{transform:rotate(180deg)}
.courier-occurrence-report .occurrence-report-form{grid-template-columns:minmax(0,1fr);gap:2px;margin-top:9px}
.courier-occurrence-report .occurrence-report-form .field{margin:5px 0;font-size:10px}
.courier-occurrence-report .occurrence-report-form .field:last-of-type{grid-column:auto}
.courier-occurrence-report .occurrence-report-form textarea{min-height:72px}
.courier-occurrence-report .courier-issue-submit{justify-self:end;min-height:38px;margin-top:5px;padding:8px 14px;border-radius:11px;font-size:11px}
.courier-delivery-card>.courier-occurrence-report{justify-self:end;align-self:end;margin-top:-3px}
.courier-delivery-card>.courier-occurrence-report[open]{justify-self:stretch}
.courier-delivery-card>.courier-occurrence-report[open]>summary{margin-left:auto}
.restaurant-occurrence-alert,.courier-occurrence-update{display:grid;gap:11px;padding:14px;border:1px solid color-mix(in srgb,#d99a36 34%,var(--border));border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,#d99a36 9%,var(--surface)),var(--surface) 78%)}
.restaurant-no-code-history-note{display:grid;gap:4px;margin:10px 0;padding:11px 13px;border:1px solid color-mix(in srgb,#35b887 35%,var(--border));border-radius:12px;background:color-mix(in srgb,#35b887 8%,var(--surface));font-size:12px;line-height:1.45}
.restaurant-no-code-history-note strong{color:color-mix(in srgb,#35b887 72%,var(--text));font-size:13px}
.restaurant-no-code-history-note span{color:var(--muted)}
.restaurant-occurrence-alert-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.restaurant-occurrence-alert-heading .eyebrow{color:#d99a36}
.restaurant-occurrence-summary strong{font-size:13px}
.restaurant-occurrence-summary p{margin:5px 0;color:var(--text);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.restaurant-occurrence-summary small{color:var(--muted);font-size:10px}
.restaurant-occurrence-response{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;margin:0;padding-top:10px;border-top:1px solid var(--border)}
.restaurant-occurrence-response .field{margin:0;font-size:11px}
.restaurant-occurrence-response .field:nth-of-type(2){grid-column:1}
.restaurant-occurrence-response>.btn{grid-column:2;grid-row:1 / span 2;justify-self:end}
.courier-occurrence-update.is-waiting{border-color:color-mix(in srgb,#d99a36 34%,var(--border))}
.courier-occurrence-update.is-resolved{border-color:color-mix(in srgb,#43ac78 32%,var(--border));background:linear-gradient(135deg,color-mix(in srgb,#43ac78 8%,var(--surface)),var(--surface) 78%)}
.courier-occurrence-update>div:first-child{display:grid;gap:3px}
.courier-occurrence-update>div:first-child .eyebrow{color:var(--muted);font-size:9px}
.courier-occurrence-update>div:first-child strong{font-size:13px}
.courier-occurrence-update>p{margin:0;color:var(--text);font-size:11px;line-height:1.5}
.courier-occurrence-resolution{padding:10px 11px;border-radius:10px;color:var(--text);background:color-mix(in srgb,var(--accent) 8%,var(--surface));font-size:11px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:620px){.restaurant-occurrence-response{grid-template-columns:1fr}.restaurant-occurrence-response .field:nth-of-type(2),.restaurant-occurrence-response>.btn{grid-column:auto;grid-row:auto;justify-self:stretch}.restaurant-occurrence-response>.btn{width:100%}.restaurant-occurrence-alert-heading{align-items:flex-start;flex-direction:column}}
@media print {
  body[data-print-target] #finance-receivables,
  body[data-print-target] #finance-receivables *,
  body[data-print-target] #report-courier-payouts,
  body[data-print-target] #report-courier-payouts * { visibility: visible !important; }
  body[data-print-target] #finance-receivables,
  body[data-print-target] #report-courier-payouts { position: absolute; top: 0; left: 0; width: 100%; margin: 0; border: 0; box-shadow: none; }
}
.new-order-panel { padding: clamp(18px,3vw,29px); overflow: hidden; background: radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 38%),var(--surface); }
.new-order-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.new-order-header h2 { margin: 4px 0 5px; font-size: clamp(21px,3vw,26px); letter-spacing: -.04em; }
.new-order-header p { max-width: 580px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.new-order-header-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid color-mix(in srgb,var(--accent) 27%,var(--border)); border-radius: 16px; color: #fff; background: linear-gradient(145deg,var(--accent),color-mix(in srgb,var(--accent) 73%,#b78bd0)); box-shadow: 0 8px 20px color-mix(in srgb,var(--accent) 20%,transparent); font-size: 29px; font-weight: 400; }
.new-order-progress { display: flex; align-items: center; gap: 10px; margin: 17px 0 22px; }
.new-order-progress-step { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.new-order-progress-step i { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); font-size: 10px; font-style: normal; }
.new-order-progress-step.is-current { color: var(--accent); }
.new-order-progress-step.is-current i { border-color: var(--accent); color: #fff; background: var(--accent); }
.new-order-progress-line { width: min(120px,15vw); height: 1px; background: var(--border); }
.new-order-form { display: grid; gap: 20px; }
.new-order-section { min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb,var(--surface-soft) 68%,transparent); }
.new-order-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.new-order-section-heading > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid color-mix(in srgb,var(--accent) 23%,var(--border)); border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 10px; font-weight: 850; }
.new-order-section-heading > div { display: grid; gap: 3px; min-width: 0; }
.new-order-section-heading strong { font-size: 13px; }
.new-order-section-heading small,.new-order-saved-customer > small { color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.45; }
.new-order-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.new-order-form .field { min-width: 0; margin: 8px 0 2px; font-size: 11px; font-weight: 750; }
.new-order-form .field input,.new-order-form .field select,.new-order-form .field textarea { min-height: 44px; margin-top: 7px; padding: 11px 13px; border-radius: 12px; font-size: 12px; }
.new-order-form .field textarea { min-height: 66px; resize: vertical; }
.new-order-saved-customer { display: block; }
.new-order-saved-customer > small { display: block; margin-top: 6px; }
.new-order-save-customer { margin: 10px 0 2px; white-space: normal; font-size: 12px; }
.new-order-save-customer-hint { display: block; margin: -2px 0 0 24px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.field-required,.field-optional { display: inline-flex; align-items: center; margin-left: 4px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 8px; font-weight: 700; vertical-align: middle; }
.field-required { border-color: color-mix(in srgb,var(--accent) 22%,var(--border)); color: var(--accent); background: var(--accent-soft); }
.new-order-currency-field { display: flex; align-items: center; min-height: 44px; margin-top: 7px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); transition: border-color .18s ease,box-shadow .18s ease; }
.new-order-currency-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent); }
.new-order-form .new-order-currency-field input { min-width: 0; min-height: 42px; margin: 0; border: 0; background: transparent; box-shadow: none; }
.new-order-currency-field > span { padding: 0 0 0 13px; color: var(--accent); font-size: 12px; font-weight: 850; }
.new-order-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; border: 1px solid color-mix(in srgb,var(--accent) 22%,var(--border)); border-radius: 15px; background: linear-gradient(100deg,color-mix(in srgb,var(--accent) 8%,var(--surface)),var(--surface)); }
.new-order-submit-row > div { display: grid; gap: 3px; }
.new-order-submit-row > div strong { font-size: 12px; }
.new-order-submit-row > div small { color: var(--muted); font-size: 10px; }
.new-order-submit { min-width: 164px; min-height: 46px; justify-content: center; gap: 7px; border-radius: 12px; box-shadow: 0 6px 16px color-mix(in srgb,var(--accent) 20%,transparent); }
.new-order-submit > span { font-size: 18px; font-weight: 400; line-height: 1; }
@media(max-width:620px){.new-order-panel{padding:16px}.new-order-section{padding:13px}.new-order-fields{grid-template-columns:minmax(0,1fr);gap:0}.new-order-submit-row{align-items:stretch;flex-direction:column}.new-order-submit{width:100%}.new-order-progress{gap:7px}.new-order-progress-step{font-size:9px}.new-order-progress-line{flex:1;width:auto}}
/* Compact, scannable active-delivery cards */
.pending-orders-list > .pending-order-card { display: grid; gap: 9px; margin: 0; padding: 15px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 14px; background: color-mix(in srgb,var(--surface-soft) 58%,var(--surface)); box-shadow: 0 5px 15px rgba(0,0,0,.06); }
.pending-order-header { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; }
.pending-order-header h3 { min-width: 0; margin: 0; font-size: 14px; }
.pending-order-header .order-id-tag { padding: 4px 8px; font-size: 10px; }
.pending-order-header .tag { margin: 0; }
.pending-order-address { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.pending-order-amount { width: fit-content; margin: 0; padding: 5px 9px; border: 1px solid color-mix(in srgb,var(--accent) 24%,var(--border)); border-radius: 9px; background: var(--accent-soft); font-size: 13px; }
.pending-order-code { gap: 3px; margin: 0; padding: 9px 11px; border-radius: 11px; }
.pending-order-code strong { font-size: 12px; }
.pending-order-code span { font-size: 10px; }
.pending-order-code .security-code-toggle { padding: 5px 8px; font-size: 10px; }
.pending-order-payment { width: fit-content; margin: 0; padding: 5px 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 10px; }
.pending-order-actions { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.7fr); align-items: center; gap: 9px; padding-top: 9px; border-top: 1px solid var(--border); }
.pending-order-actions .order-cancel-form { margin: 0; }
.pending-order-actions .order-cancel-form .btn { min-height: 40px; padding: 8px 11px; white-space: nowrap; }
.restaurant-reassign-control { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 9px; padding: 12px 13px; border: 1px solid color-mix(in srgb,#d6a24a 28%,var(--border)); border-radius: 13px; background: color-mix(in srgb,#d6a24a 6%,var(--surface-soft)); }
.restaurant-reassign-control>div { display: grid; gap: 3px; min-width: 0; }
.restaurant-reassign-control strong { font-size: 12px; }
.restaurant-reassign-control span { color: var(--muted); font-size: 11px; }
.restaurant-reassign-control form { flex: 0 0 auto; margin: 0; }
.restaurant-reassign-control .btn { min-height: 38px; padding: 7px 11px; font-size: 11px; }
.restaurant-reassign-control .btn:disabled { cursor: not-allowed; opacity: .52; }
.pending-order-call-form { display: grid; grid-template-columns: minmax(110px,.75fr) auto minmax(150px,1fr); align-items: center; gap: 8px; min-width: 0; margin: 0; }
.pending-order-call-form select { min-width: 0; min-height: 40px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); font-size: 11px; }
.pending-order-call-form .payment-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.pending-order-call-form .payment-check input { width: 15px; height: 15px; accent-color: var(--accent); }
.pending-order-call-button { min-height: 40px; justify-content: center; padding: 8px 11px; white-space: nowrap; }
@media(max-width:760px){.pending-order-actions{grid-template-columns:minmax(0,1fr)}.pending-order-call-form{grid-template-columns:minmax(0,1fr) auto}.pending-order-call-button{grid-column:1/-1}}
@media(max-width:480px){.pending-orders-panel{padding:13px}.pending-order-card{padding:12px}.pending-order-header{grid-template-columns:minmax(0,1fr) auto;}.pending-order-header .tag{grid-column:1/-1;justify-self:start}.pending-order-call-form{grid-template-columns:minmax(0,1fr)}.pending-order-call-form .payment-check{padding:4px 0}.pending-order-call-button{grid-column:auto;width:100%}.pending-order-actions .order-cancel-form .btn{width:100%}}
@media(max-width:480px){.restaurant-reassign-control{align-items:stretch;flex-direction:column}.restaurant-reassign-control .btn{width:100%}}
.pending-order-payment { display: inline-flex; align-items: center; gap: 5px; }
.pending-order-payment [data-pending-payment-method] { color: var(--text); font-weight: 750; }
.pending-order-payment [data-pending-payment-state] { color: var(--muted); }
/* Administrator delivery-fee and revenue estimates */
.report-estimate-fields { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; padding: 14px; border: 1px solid color-mix(in srgb,var(--accent) 22%,var(--border)); border-radius: 14px; background: linear-gradient(135deg,color-mix(in srgb,var(--accent) 7%,var(--surface)),var(--surface-soft)); }
.report-estimate-heading { display: grid; grid-column: 1 / -1; gap: 3px; }
.report-estimate-heading strong { font-size: 12px; }
.report-estimate-heading small { color: var(--muted); font-size: 10px; }
.report-estimate-fields .field { margin: 0; font-size: 11px; }
.report-estimate-fields input { min-height: 41px; margin-top: 6px; border-radius: 10px; }
.report-finance-panel { display: grid; gap: 15px; padding: 20px; border-color: color-mix(in srgb,var(--accent) 27%,var(--border)); background: radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--accent) 11%,transparent),transparent 48%),var(--surface); }
.report-finance-panel .report-heading { margin: 0; }
.report-finance-panel .report-heading h2 { margin: 4px 0; }
.report-finance-panel .report-heading p { max-width: 650px; margin: 0; font-size: 11px; }
.report-finance-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.report-finance-kpi { display: grid; gap: 6px; min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: color-mix(in srgb,var(--surface-soft) 75%,transparent); }
.report-finance-kpi span { color: var(--muted); font-size: 11px; font-weight: 700; }
.report-finance-kpi strong { color: var(--accent); font-size: clamp(19px,2.3vw,27px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.report-finance-kpi small { color: var(--muted); font-size: 10px; line-height: 1.4; }
@media(max-width:760px){.report-finance-kpis{grid-template-columns:1fr}.report-estimate-fields{grid-template-columns:1fr}.report-estimate-heading{grid-column:auto}}

/* External billing and courier plan controls */
.courier-plan-card,.admin-plans-panel{display:grid;gap:18px;padding:22px;border-color:color-mix(in srgb,var(--accent) 27%,var(--border));background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--accent) 10%,transparent),transparent 45%),var(--surface)}
.courier-plan-card h2,.admin-plans-panel h2{margin:5px 0}
.courier-plan-form,.plan-prices-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.courier-plan-form .btn,.plan-prices-form>.btn{min-height:44px}
.plan-prices-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}
.plan-review-heading{margin-top:8px}
.plan-review-list{display:grid;gap:10px;max-height:580px;overflow:auto;padding-right:5px}
.plan-review-item{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:14px;align-items:center;padding:15px;border:1px solid var(--border);border-radius:15px;background:var(--surface-soft)}
.plan-review-main{display:grid;gap:4px;min-width:0}.plan-review-main span,.plan-review-main small{color:var(--muted);font-size:12px}.plan-review-actions{display:flex;flex-wrap:wrap;gap:7px}.plan-review-actions form{margin:0}.plan-empty-state{padding:24px;border:1px dashed var(--border);border-radius:14px;color:var(--muted);text-align:center}
.billing-status{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 9px;border:1px solid var(--border);border-radius:999px;font-size:11px;font-weight:800}.billing-status.is-paid{color:#8ce3b3;background:color-mix(in srgb,#38b978 14%,transparent);border-color:color-mix(in srgb,#38b978 36%,var(--border))}.billing-status.is-pending{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}.billing-status.is-rejected{color:#ff9ca9;background:color-mix(in srgb,#e64d65 12%,transparent)}
.billing-paid-date{display:block;margin-top:4px;color:var(--muted);font-size:10px}.billing-action-form{margin-top:7px}.billing-action-form .btn-small,.plan-review-actions .btn-small{min-height:32px;padding:6px 10px;font-size:11px}
.overview-ranking-name small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:500}.overview-ranking li>strong{font-size:12px;white-space:nowrap}
.report-finance-kpis{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.plan-unconfigured-note{grid-column:1/-1;margin:0;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);color:var(--muted);font-size:12px}
@media(max-width:760px){.courier-plan-form,.plan-prices-form,.report-finance-kpis{grid-template-columns:1fr}.plan-review-item{grid-template-columns:1fr;align-items:start}.plan-review-actions{display:flex}.plan-review-actions form{flex:1}.plan-review-actions .btn{width:100%}}
.admin-courier-map{display:grid;gap:14px;padding:18px;background:var(--surface-soft)}.admin-courier-map-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.admin-courier-map-heading h3{margin:4px 0;font-size:18px}.admin-courier-map-heading .muted{margin:4px 0 0}.admin-courier-map-live{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:8px 12px;border:1px solid color-mix(in srgb,#38b978 36%,var(--border));border-radius:999px;background:color-mix(in srgb,#38b978 10%,var(--surface));color:#218755;font-size:12px;font-weight:800}.admin-courier-map-live>i{width:8px;height:8px;border-radius:50%;background:#38b978;box-shadow:0 0 0 4px #38b97822;animation:adminMapPulse 1.8s infinite}@keyframes adminMapPulse{50%{box-shadow:0 0 0 8px #38b97800}}.admin-courier-map-frame{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#e8e5eb}.admin-courier-map-canvas{width:100%;height:clamp(320px,48vh,560px);z-index:0}.admin-courier-map-status{position:absolute;z-index:500;top:12px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);padding:9px 14px;border:1px solid color-mix(in srgb,var(--border) 80%,transparent);border-radius:999px;background:color-mix(in srgb,var(--surface) 92%,transparent);color:var(--text);text-align:center;font-size:12px;font-weight:750;box-shadow:0 5px 18px #0002;pointer-events:none}.admin-courier-map-status[hidden]{display:none}.admin-courier-map-legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:11px}.admin-courier-map-legend span{display:inline-flex;align-items:center;gap:6px}.admin-courier-map-legend i{display:inline-block;width:9px;height:9px;border-radius:50%}.admin-courier-map-legend .available{background:#279468}.admin-courier-map-legend .delivery{background:#8653ad}.admin-courier-map-marker-shell{background:transparent;border:0}.admin-courier-map-marker{display:grid;place-items:center;width:40px;height:40px;border:3px solid #fff;border-radius:50%;background:#279468;color:#fff;box-shadow:0 3px 12px #0007;font-size:18px}.admin-courier-map-marker--delivery{background:#8653ad}
@media(max-width:600px){.admin-courier-map{padding:13px}.admin-courier-map-heading{align-items:flex-start;flex-direction:column}.admin-courier-map-live{align-self:flex-start}.admin-courier-map-canvas{height:55vh;min-height:300px}}
.restaurant-live-location-panel{display:grid;gap:10px;margin:0 0 14px;padding:13px;border:1px solid var(--border);border-radius:15px;background:var(--surface-soft)}.restaurant-live-location-panel[hidden]{display:none}.restaurant-live-location-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.restaurant-live-location-heading h4{margin:3px 0;font-size:15px}.restaurant-live-location-heading .muted{margin:3px 0 0;font-size:11px}.restaurant-live-location-count{flex:none;padding:6px 9px;border:1px solid color-mix(in srgb,#38b978 34%,var(--border));border-radius:999px;background:color-mix(in srgb,#38b978 10%,var(--surface));color:#218755;font-size:10px;font-weight:800}.restaurant-live-location-frame{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#e8e5eb}.restaurant-live-location-canvas{width:100%;height:clamp(210px,30vh,310px);z-index:0}.restaurant-live-location-status{position:absolute;z-index:500;top:10px;left:50%;transform:translateX(-50%);max-width:calc(100% - 20px);padding:8px 11px;border:1px solid color-mix(in srgb,var(--border) 80%,transparent);border-radius:999px;background:color-mix(in srgb,var(--surface) 92%,transparent);color:var(--text);text-align:center;font-size:11px;font-weight:700;box-shadow:0 4px 12px #0002;pointer-events:none}.restaurant-live-location-status[hidden]{display:none}.restaurant-live-location-legend{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:10px}.restaurant-live-location-legend span{display:inline-flex;align-items:center;gap:6px}.restaurant-live-location-legend i{width:8px;height:8px;border-radius:50%}.restaurant-live-location-legend .to-pickup{background:#279468}.restaurant-live-location-legend .to-customer{background:#8653ad}.restaurant-live-location-legend .restaurant-point{background:#fff;border:2px solid #8653ad}.restaurant-live-location-marker-shell{background:transparent;border:0}.restaurant-live-location-marker{display:grid;place-items:center;width:38px;height:38px;border:3px solid #fff;border-radius:50%;background:#279468;color:#fff;box-shadow:0 3px 12px #0007;font-size:17px}.restaurant-live-location-marker.is-picked-up{background:#8653ad}.restaurant-live-location-marker.is-establishment{border-color:#8653ad;background:#fff;color:#694087;font-size:22px;font-weight:900}
@media(max-width:600px){.restaurant-live-location-heading{align-items:flex-start;flex-direction:column}.restaurant-live-location-canvas{height:240px}}
.restaurant-live-location-estimates{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.restaurant-live-location-estimates[hidden]{display:none}.restaurant-live-location-estimate{display:grid;gap:4px;padding:11px 13px;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--border));border-radius:12px;background:color-mix(in srgb,var(--accent-soft) 56%,var(--surface));font-size:12px}.restaurant-live-location-estimate strong{color:var(--text);font-size:12px}.restaurant-live-location-estimate span,.restaurant-live-location-estimate-note{color:var(--muted);font-size:11px;line-height:1.45}.restaurant-live-location-estimate-note{grid-column:1/-1}.restaurant-location-picker{display:grid;gap:8px}.restaurant-location-picker-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.restaurant-location-picker-actions .btn{width:auto;margin:0}.restaurant-location-picker-map{height:230px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#e8e5eb}.restaurant-location-picker-map .leaflet-container{width:100%;height:100%;font:inherit;z-index:0}
@media(max-width:600px){.restaurant-location-picker-map{height:210px}.restaurant-location-picker-actions{align-items:flex-start;flex-direction:column}}
.restaurant-delivery-rates{display:grid;gap:8px;margin:12px 0;padding:14px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-radius:14px;background:color-mix(in srgb,var(--accent-soft) 34%,var(--surface))}.restaurant-delivery-rates>strong{font-size:13px}.restaurant-delivery-rates>.profile-hint,.restaurant-delivery-rates>p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.restaurant-delivery-rate-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.restaurant-delivery-rate-fields .field{margin:0}@media(max-width:600px){.restaurant-delivery-rate-fields{grid-template-columns:1fr}}
.tariff-finance-overview,.tariff-restaurant-table{margin-top:16px}.tariff-finance-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0}.tariff-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tariff-type-card{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:15px;background:color-mix(in srgb,var(--surface-soft) 75%,transparent)}.tariff-type-card>div:first-child{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:800}.tariff-type-dot{width:9px;height:9px;border-radius:50%;background:var(--accent)}.tariff-type-standard .tariff-type-dot{background:#52a9df}.tariff-type-extended .tariff-type-dot{background:#db9b48}.tariff-type-card>strong{color:var(--text);font-size:27px;line-height:1}.tariff-type-card>strong small{color:var(--muted);font-size:11px;font-weight:650}.tariff-type-card dl{display:grid;gap:8px;margin:0;padding-top:10px;border-top:1px solid var(--border)}.tariff-type-card dl>div{display:flex;justify-content:space-between;gap:10px}.tariff-type-card dt{color:var(--muted);font-size:10px}.tariff-type-card dd{margin:0;color:var(--text);font-size:10px;font-weight:800;text-align:right}.tariff-usage-cell{display:grid;gap:3px}.tariff-usage-cell small{color:var(--muted);font-size:10px;white-space:nowrap}.tariff-restaurant-table .report-heading{align-items:center}.tariff-restaurant-table .report-table{min-width:760px}@media(max-width:760px){.tariff-finance-kpis{grid-template-columns:1fr}.tariff-type-grid{grid-template-columns:1fr}.tariff-restaurant-table .report-heading{align-items:flex-start;flex-direction:column}}
.courier-offer-rate{display:flex;align-items:center;gap:12px;margin:12px 0;padding:13px 15px;border:1px solid color-mix(in srgb,#36b887 42%,var(--border));border-radius:14px;background:linear-gradient(115deg,color-mix(in srgb,#36b887 13%,var(--surface)),var(--surface) 80%)}.courier-offer-rate>span{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:13px;background:color-mix(in srgb,#36b887 20%,var(--surface));color:#54d5a1;font-size:13px;font-weight:900}.courier-offer-rate>div{display:grid;gap:3px}.courier-offer-rate small{color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.08em}.courier-offer-rate strong{color:#54d5a1;font-size:21px;line-height:1.15}
.courier-payments-panel{display:grid;gap:20px}.courier-pix-withdrawal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.courier-pix-form,.courier-withdrawal-form{display:grid;align-content:start;gap:14px;margin:0}.courier-pix-form h3,.courier-withdrawal-form h3,.courier-withdrawal-history h3{margin:0}.courier-pix-form p,.courier-withdrawal-form p{margin:0}.courier-withdrawal-actions,.courier-withdrawal-admin-actions{display:flex;gap:8px;flex-wrap:wrap}.courier-withdrawal-actions .btn{flex:1}.courier-withdrawal-history{display:grid;gap:10px}.courier-withdrawal-proof-form,.courier-withdrawal-reject{display:grid;gap:8px;min-width:190px}.courier-withdrawal-reject input{min-width:180px;max-width:240px;border:1px solid var(--line,#382843);border-radius:10px;padding:10px;background:var(--surface,#1b1521);color:var(--text,#f8f4fb)}.courier-withdrawal-admin-actions form{margin:0}.courier-withdrawal-admin-panel .report-table td{vertical-align:top}.courier-withdrawal-admin-panel .report-table small{display:block}.courier-withdrawal-admin-panel .field{font-size:12px}.courier-withdrawal-admin-panel input[type=file]{max-width:220px}@media(max-width:760px){.courier-pix-withdrawal-grid{grid-template-columns:1fr}.courier-withdrawal-actions{flex-direction:column}.courier-withdrawal-actions .btn{width:100%}}
.courier-payments-panel[hidden]{display:none}
