:root {
  --ink: #0b1220;
  --muted: #334155;
  --paper: #eef3f8;
  --card: #ffffff;
  --line: #d5dee8;
  --accent: #0f766e;
  --accent-ink: #f0fdfa;
  --info: #438eb9;
  --info-hot: #2f70a3;
  --danger: #c2413a;
  --danger-bg: #fff1f2;
  --success: #2a8f62;
  --warn: #d97706;
  --btn: #0e7c72;
  --btn-hot: #0a5f58;
  --btn-danger: #c2413a;
  --btn-danger-hot: #9f322c;
  --btn-ready: #2a8f62;
  --btn-ready-hot: #217352;
  --header: #f3f7fb;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

.skipLink {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}
.skipLink:focus { top: 12px; }
.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}

.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

h1 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 18px; font-size: 14px; line-height: 1.5; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs.tabs3 {
  display: flex;
  width: max-content;
  max-width: 100%;
  grid-template-columns: none;
}
.tabs.tabs3 a.tabLink { min-width: 140px; }
.tabs a.tabLink {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 10px 8px;
  color: var(--muted);
  font-weight: 650;
}
.tabs a.tabLink[aria-selected="true"] {
  background: var(--info);
  color: #fff;
}

.tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.tabs button[aria-selected="true"] {
  background: var(--info);
  color: #fff;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  min-height: 36px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.btn,
.orderMapBtn,
.editPkgBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  background: var(--btn);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
  text-decoration: none;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(15, 23, 42, 0.12);
}
.btn::before,
.orderMapBtn::before,
.editPkgBtn::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}
.btn:hover,
.orderMapBtn:hover,
.editPkgBtn:hover { background: var(--btn-hot); color: #fff; text-decoration: none; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { min-height: 30px; padding: 5px 14px 5px 10px; font-size: 12px; }
.btn-sm::before { width: 7px; height: 7px; }
.btn-primary,
.btn-info,
.btn-warn,
.btn-purple,
.orderMapBtn,
.editPkgBtn { background: var(--btn); color: #fff; }
.btn-primary:hover,
.btn-info:hover,
.btn-warn:hover,
.btn-purple:hover,
.orderMapBtn:hover,
.editPkgBtn:hover { background: var(--btn-hot); color: #fff; }
.btn-danger,
.editDangerBtn { background: var(--btn-danger); color: #fff; }
.btn-danger:hover,
.editDangerBtn:hover { background: var(--btn-danger-hot); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost::before { background: var(--btn); box-shadow: none; }
.btn-ghost:hover { background: var(--header); color: var(--ink); border-color: #c5d0dc; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.landing .btn.btn-app::before { content: none; display: none; }

.alert {
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.panel { display: none; }
.panel.is-open { display: block; }

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.appBar { display: none; }
.sidebarBackdrop { display: none; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #eef3f8;
  color: #1e3a5f;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid #d5dee8;
  overflow: hidden;
}

.brandLogo {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex: 1 1 auto;
}
html.nav-collapsed .brandLogo {
  display: block;
  max-width: 40px;
  max-height: 28px;
}
.trialBookmarkRow {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.trialBookmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0e7c72;
  font-weight: 700;
  text-decoration: none;
}
.trialBookmark:hover { background: #ecfdf8; color: #0b5f58; }
.trialBookmark svg { flex: 0 0 auto; }
.brandRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.navCollapse {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  background: #fff;
  color: #3b82f6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.navCollapseOut { display: none; }
.navCollapseIn { display: inline-block; }
html.nav-collapsed .app { grid-template-columns: 56px 1fr; }
html.nav-collapsed .brand,
html.nav-collapsed .sidebarNavText,
html.nav-collapsed .sidebarNavChevron { display: none; }
html.nav-collapsed .sidebar { padding: 10px 6px; gap: 10px; }
html.nav-collapsed .brandRow { justify-content: center; }
html.nav-collapsed .sidebarNav {
  gap: 4px;
  scrollbar-width: thin;
}
html.nav-collapsed .sidebarNavGroupBody { display: none !important; }
html.nav-collapsed .sidebarNavGroup { gap: 0; }
html.nav-collapsed .sidebarNavBtn {
  width: 40px;
  min-height: 36px;
  height: 36px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  border-color: transparent;
}
html.nav-collapsed .sidebarNavBtn.active,
html.nav-collapsed .sidebarNavGroup.is-active > .sidebarNavGroupToggle {
  background: rgba(59, 130, 246, 0.14);
  border-color: transparent;
}
html.nav-collapsed .sidebarNavLabel { gap: 0; justify-content: center; }
html.nav-collapsed .sidebarIcon {
  font-size: 16px;
  width: 20px;
  flex: none;
  color: #3b82f6;
  line-height: 1;
}
html.nav-collapsed .navCollapse {
  width: 40px;
  height: 32px;
  margin: 0 auto;
  font-size: 14px;
}
html.nav-collapsed .navCollapseOut { display: inline-block; }
html.nav-collapsed .navCollapseIn { display: none; }
html.nav-collapsed .sidebarSignOut {
  width: 40px;
  min-height: 36px;
  height: 36px;
  margin: 0 auto;
  padding: 0;
  font-size: 16px;
  border-radius: 10px;
  background: transparent;
  border-color: transparent;
  color: #3b82f6;
  display: grid;
  place-items: center;
}
html.nav-collapsed .sidebarSignOutText { display: none; }
html.nav-collapsed .sidebarSignOutIcon { display: inline-block; }

.sidebarNav {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.sidebarNavBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d5dee8;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  min-height: 38px;
  touch-action: manipulation;
}
.sidebarNavBtn:hover {
  background: #f7fbff;
  text-decoration: none;
  color: #0f766e;
}
.sidebarNavBtn.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.35);
  color: #0f766e;
}
.sidebarNavLabel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebarIcon {
  width: 20px;
  text-align: center;
  flex: 0 0 20px;
  color: #3b82f6;
  font-size: 15px;
  line-height: 1;
}
.sidebarIcon i { display: inline-block; width: 1em; }
.sidebarNavChevron { font-size: 11px; color: var(--muted); }
.sidebarNavGroup { display: grid; gap: 4px; }
.sidebarNavGroup.is-active > .sidebarNavGroupToggle {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.08);
}
.sidebarNavGroupBody {
  display: none;
  gap: 4px;
  padding: 2px 0 4px 8px;
  border-left: 1px solid #c5d0dc;
  margin-left: 10px;
}
.sidebarNavGroup.is-open .sidebarNavGroupBody { display: grid; }
.sidebarNavSubBtn { padding: 9px 12px; font-size: 12px; font-weight: 650; }
.sidebarNavSubBtn .sidebarIcon { color: #3b82f6; }

.sidebarSignOut {
  width: 100%;
  border: 1px solid #d5dee8;
  background: #fff;
  color: #1e3a5f;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sidebarSignOutIcon { color: #3b82f6; }
.sidebarSignOut:hover { border-color: #0f766e; color: #0f766e; }

.sidebarFoot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
}

.main { padding: 22px 28px 32px; min-width: 0; background: var(--paper); }
.app.is-desk .main { padding: 12px 14px 20px; }
.main h1 { margin-bottom: 4px; }
.meta { color: var(--muted); margin: 0 0 16px; font-size: 13px; }
.pageHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.pageHead h1 { margin: 0; }

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

.stat, .tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.stat .value { font-size: 28px; font-weight: 750; color: var(--info); letter-spacing: -0.03em; }
.stat .label, .tile p { color: var(--muted); margin: 4px 0 0; font-size: 13px; }

.tile { text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tile:hover { text-decoration: none; border-color: #b7e0d8; box-shadow: var(--shadow); }
.tile h2 { font-size: 15px; margin: 0 0 4px; color: var(--ink); }

.homeLanding {
  background:
    radial-gradient(900px 420px at 50% -8%, #d7f4ef 0%, transparent 70%),
    linear-gradient(180deg, #f4f8fb 0%, #e8eef5 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 36px 20px 48px;
  font-family: var(--font);
  color: var(--ink);
  font-weight: 400;
}
.homeLanding .landing-inner {
  width: min(1080px, 100%);
  text-align: center;
}
.homeLanding .landingBrand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.homeLanding .landing-logo-img {
  margin: 0;
  max-height: 168px;
  max-width: min(220px, 70vw);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.homeLanding h1 {
  margin: 0;
  color: #16324f;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 4vw, 40px);
}
.homeLanding .landingLead {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
}
.homeLanding .landing-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
}
.homeLanding .landingCard {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px 22px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.homeLanding .landingCard:hover {
  transform: translateY(-5px);
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}
.homeLanding .landingCardIco {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}
.homeLanding .landingCardLabel {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.homeLanding .landingCardHint {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.3;
  max-width: 12em;
}
.homeLanding .landingCard.is-admin { background: linear-gradient(165deg, #14958a 0%, #0b5f58 100%); }
.homeLanding .landingCard.is-client { background: linear-gradient(165deg, #3b82f6 0%, #1d4ed8 100%); }
.homeLanding .landingCard.is-register { background: linear-gradient(165deg, #f59e0b 0%, #c2410c 100%); }
.homeLanding .landingCard.is-tracking { background: linear-gradient(165deg, #6366f1 0%, #4338ca 100%); }
.homeLanding .landingCard.is-pricing { background: linear-gradient(165deg, #14b8a6 0%, #0f766e 100%); }
@media (max-width: 700px) {
  .homeLanding .landingCard { min-height: 160px; padding: 22px 12px; }
}
.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.landing-inner {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #438eb9;
}
.landing h1 {
  color: #438eb9;
  font-weight: 300;
  font-size: clamp(22px, 6vw, 32px);
  margin: 16px 0 20px;
}
.landing-icons {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.landing .btn.btn-app {
  display: inline-block;
  width: 100px;
  font-size: 18px;
  font-weight: normal;
  color: #fff;
  text-align: center;
  text-shadow: 0 -1px -1px rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 12px;
  padding: 12px 0 8px;
  margin: 2px;
  line-height: 1.7;
  text-decoration: none;
  vertical-align: top;
}
.landing .btn-app.btn-info {
  background: var(--btn);
  background-image: linear-gradient(to bottom, #14958a 0%, var(--btn) 100%);
}
.landing .btn-app.btn-info:hover {
  background: var(--btn-hot);
  background-image: linear-gradient(to bottom, var(--btn) 0%, var(--btn-hot) 100%);
  color: #fff;
  text-decoration: none;
}
.landing .bigger-230 {
  display: block;
  font-size: 230%;
  line-height: 1.1;
  margin-bottom: 4px;
}
.landing-ico {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
}
.landing-ico svg { width: 100%; height: 100%; display: block; }
.landing-logo-img {
  margin-top: 20px;
  max-width: min(220px, 80%);
  max-height: 168px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.alert-ok {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #115e59;
}

.menuMgmtLayout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.menuMgmtSide, .menuMgmtMain {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
}
.menuMgmtSide h2 { font-size: 16px; margin: 0 0 8px; }
.menuMgmtHint { font-size: 13px; line-height: 1.55; color: var(--muted); }
.menuMgmtLegend { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 16px; }
.menuMgmtToolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.menuMgmtToolbar select { min-width: 200px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.menuMgmtList { display: grid; gap: 6px; max-height: min(70vh, 720px); overflow: auto; }
.menuMgmtRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.menuMgmtRow.isGroup { background: #eef8f6; border-color: #b7e0d8; }
.menuMgmtRowMain { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menuMgmtIcon { width: 22px; text-align: center; flex: 0 0 22px; color: #0f766e; font-weight: 800; }
.menuMgmtRowTitle { font-size: 13px; font-weight: 800; color: var(--ink); }
.menuMgmtRowMeta { font-size: 11px; color: var(--muted); word-break: break-all; }
.menuMgmtAccess { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.menuMgmtRadio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}
.menuMgmtEmpty { padding: 24px; text-align: center; color: var(--muted); }

.monitorBar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
}
.monitorBar .monitorToolbar { order: 1; }
.monitorBar .monitorFilters {
  order: 2;
  margin-left: auto;
  flex: 0 1 auto;
  justify-content: flex-end;
}
.monitorBar .monitorCols { order: 3; margin-left: 0; }
.monitorTabs {
  display: flex;
  gap: 6px;
  overflow: visible;
  margin: 0;
  flex: 0 1 auto;
  align-items: center;
}
.monitorFilters { gap: 6px; padding: 4px 0; }
.monitorDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tab-color, #64748b);
  flex: 0 0 8px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.monitorFilterBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d8e0ea;
  background: #fff;
  color: #334155;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
}
.monitorFilterBtn:hover { text-decoration: none; color: #1e3a5f; }
.monitorFilterBtn.is-active {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}
.monitorFilterBtn .monitorBadge {
  background: #eef2f7;
  color: #334155;
  min-width: 1.5em;
}
.monitorFilterBtn.is-active .monitorBadge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.monitorTab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  touch-action: manipulation;
}
.monitorTab:hover { text-decoration: none; color: var(--tab-color, var(--accent)); }
.monitorTab.is-active {
  background: var(--tab-color, var(--accent));
  border-color: transparent;
  color: #fff;
}
.monitorBadge {
  min-width: 1.4em;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 11px;
  text-align: center;
}
.monitorTab.is-active .monitorBadge { background: rgba(255, 255, 255, 0.22); }
.monitorToolbar.is-qd {
  flex: 1 1 100%;
  width: 100%;
  padding: 4px 12px 10px;
}
.monitorToolbar.is-qd .monitorToolbarSelect { min-width: 200px; }
.monitorWhen {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.monitorWhen a {
  min-height: 32px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}
.monitorWhen a.is-active { background: var(--info); color: #fff; text-decoration: none; }
.monitorSearch { margin: 0; }
.monitorSearch input {
  margin: 0;
  width: min(240px, 70vw);
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}
.monitorEmpty { color: var(--muted); font-size: 13px; }
.monitorChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e0ea;
  color: var(--chip-color, #334155);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
.monitorChip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, #64748b);
  flex: 0 0 8px;
}
.monitorZip {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px 4px 10px;
}
.monitorZip::before {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}
.monitorAssign { margin: 0 0 8px; }
.monitorAssignField {
  display: inline-flex;
  align-items: stretch;
  width: min(280px, 100%);
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.monitorAssignSelect { flex: 1 1 auto; min-width: 0; margin: 0; }
.monitorAssign select {
  display: block;
  width: 100%;
  height: 30px;
  border: 0;
  background: transparent;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.monitorAssign select:focus { outline: none; }
.monitorAssignField:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.monitorAssignBtn,
.monitorIconBtn,
.monitorCols .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  width: 32px;
  padding: 0;
  border: 0;
  background: #eef2f6;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.monitorAssignBtn {
  flex: 0 0 32px;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.monitorAssignBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.monitorAssignBtn:not(:disabled),
.monitorAssignBtn.is-ready {
  background: var(--btn-ready);
  color: #fff;
  border-left-color: var(--btn-ready);
}
.monitorAssignBtn:not(:disabled):hover,
.monitorAssignBtn.is-ready:hover {
  background: var(--btn-ready-hot);
  border-left-color: var(--btn-ready-hot);
}
.monitorIconBtn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}
.monitorIconBtn:hover { color: var(--ink); }
.monitorCols .btn {
  width: auto;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--btn);
  background: var(--btn);
  color: #fff;
}
.monitorSort { color: inherit; text-decoration: none; white-space: nowrap; }
.monitorSort:hover { color: var(--accent); }
.monitorSort.is-active { color: var(--accent); }
.monitorTable tbody tr { position: relative; }
.monitorTable tbody tr:hover,
.monitorTable tbody tr.is-tools { z-index: 8; }
.monitorCheck { width: 28px; vertical-align: top; }
.monitorActsHost { position: relative; overflow: visible; }
.monitorTable tbody tr:hover .monitorActsHost,
.monitorTable tbody tr.is-tools .monitorActsHost {
  z-index: 40;
}
.monitorActsHost input { position: relative; z-index: 12; }
.monitorActs {
  display: none;
  position: absolute;
  left: 0;
  top: auto;
  bottom: 2px;
  z-index: 41;
  pointer-events: auto;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8e0ea;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.monitorTable tbody tr:hover .monitorActs,
.monitorTable tbody tr:focus-within .monitorActs,
.monitorTable tbody tr.is-tools .monitorActs {
  display: inline-flex;
}
.monitorAct {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.monitorAct i { font-size: 12px; }
.monitorAct-log { background: #1e3a5f; }
.monitorAct-print { background: #0f766e; }
.monitorAct-mail { background: #0369a1; }
.monitorAct-barcode { background: #4338ca; }
.monitorAct-cancel { background: #b91c1c; }
.monitorAct-edit { background: #15803d; }
.monitorAct-map { background: #0e7490; }
.monitorAct-near { background: #1d4ed8; }
.monitorAct:hover { filter: brightness(1.08); }
.monitorModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.monitorModal[hidden] { display: none; }
.monitorModalCard {
  width: min(720px, 96vw);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px 16px;
}
.monitorModalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.monitorModalCard.is-driver {
  width: min(1100px, 96vw);
  height: min(86vh, 820px);
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 10px;
}
.monitorModalCard.is-driver #monitorModalBody {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.driverRun {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
}
.driverRunBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.driverRunMeta { font-size: 13px; font-weight: 700; color: #1e3a5f; }
.driverRunActs { display: flex; gap: 6px; flex-wrap: wrap; }
.driverRunTableWrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.driverRunTable { width: 100%; border-collapse: collapse; font-size: 12px; }
.driverRunTable th, .driverRunTable td {
  text-align: left;
  vertical-align: top;
  padding: 8px 8px;
  border-bottom: 1px solid #e8eef4;
}
.driverRunTable thead th {
  position: sticky;
  top: 0;
  background: var(--header);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b6b7c;
}
.driverRunWhen { color: #b91c1c; font-weight: 800; margin-bottom: 4px; }
.driverRunOther { color: #b91c1c; font-weight: 700; margin-top: 6px; }
.driverRunRowActs { display: flex; gap: 4px; white-space: nowrap; }
.driverRunRowActs .monitorAct { text-decoration: none; }
.monitorModalCard.is-map {
  width: min(1280px, 98vw);
  height: min(92vh, 900px);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
}
.monitorModalCard.is-map .monitorModalHead {
  margin: 0;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-ink);
}
.monitorModalCard.is-map .monitorIconBtn { color: var(--accent-ink); border-color: rgba(255,255,255,0.35); }
.monitorModalCard.is-map #monitorModalBody {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: #fff;
}
.orderMapDesk {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  min-height: 0;
  flex: 1;
  background: #fff;
}
.orderMapSide {
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 12px 12px 16px;
}
.orderMapOrder {
  background: #e0f2fe;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  margin-bottom: 12px;
}
.orderMapStop {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
button.orderMapStop {
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.orderMapStop small { display: block; color: var(--muted); font-size: 11px; }
.orderMapStop input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  background: #fff;
}
.orderMapPin {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orderMapPin.is-a { background: var(--accent); }
.orderMapPin.is-b { background: var(--danger); }
.orderMapBtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}
.orderMapBtn {
  min-height: 32px;
}
.orderMapBtn:disabled { opacity: 0.6; cursor: wait; }
.leaflet-div-icon.orderMapMarker {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.28);
  font-size: 14px;
  border: 2px solid #fff;
}
.leaflet-div-icon.orderMapMarker-to { background: var(--danger); }
.orderMapPanel { font-size: 12px; background: #fff; }
.orderMapSteps { margin: 0; padding: 0 0 0 1.2em; }
.orderMapSteps li { margin: 0 0 10px; }
.orderMapSteps small { display: block; color: var(--muted); }
.orderMapMain { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.orderMapDist {
  text-align: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-weight: 600;
}
.orderMapCanvas {
  flex: 1;
  min-height: 0;
  background: #e5e7eb;
}
@media (max-width: 800px) {
  .orderMapDesk {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 58%) auto;
  }
  .orderMapMain { order: 1; min-height: 280px; }
  .orderMapSide { order: 2; border-right: 0; border-top: 1px solid var(--line); max-height: 42%; }
}
.monitorModalCard.is-track {
  width: min(560px, 96vw);
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
}
.monitorModalCard.is-track .monitorModalHead {
  margin: 0;
  padding: 14px 16px 10px;
  background: var(--accent);
  color: var(--accent-ink);
}
.monitorModalCard.is-track .monitorModalHead strong { font-size: 15px; letter-spacing: 0.02em; }
.monitorModalCard.is-track .monitorIconBtn { color: var(--accent-ink); border-color: rgba(255,255,255,0.35); }
.monitorModalCard.is-track #monitorModalBody,
.monitorModalCard.is-track #timelineFloatBody {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.trackSheet { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.trackPills {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trackPill {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trackPill.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}
.trackPill .n {
  background: var(--line);
  color: var(--ink);
  border-radius: 999px;
  min-width: 1.4em;
  padding: 0 6px;
  font-size: 11px;
  text-align: center;
}
.trackPill.is-on .n { background: var(--accent-ink); color: var(--accent); }
.trackPane { display: none; padding: 16px 18px 22px; overflow: auto; flex: 1; background: #fff; }
.trackPane.is-on { display: block; }
.trackRoute {
  position: relative;
  padding-left: 28px;
}
.trackRoute::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.trackStop { position: relative; padding: 0 0 22px 8px; }
.trackStop:last-child { padding-bottom: 0; }
.trackDot {
  position: absolute;
  left: -23px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px currentColor;
  background: currentColor;
}
.trackStop.is-end .trackDot {
  width: 18px;
  height: 18px;
  left: -24px;
  border-radius: 4px;
}
.trackWhen {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.trackTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.trackText { margin: 4px 0 0; color: var(--ink); font-size: 13px; line-height: 1.4; }
.trackWho { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.trackEnds {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.trackEnd {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.trackEnd b { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.trackEnd span { font-weight: 700; }
.trackEnd small { display: block; color: var(--muted); }
.trackEmpty { color: var(--muted); padding: 24px 8px; text-align: center; }
.trackTable { width: 100%; border-collapse: collapse; font-size: 13px; }
.trackTable th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.trackTable td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.trackMail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.trackMail b { display: block; margin: 0 0 4px; }
.trackMail .meta { color: var(--muted); font-size: 12px; }
.editOrderBack { margin: 0 0 10px; font-size: 13px; }
.layoutTestToggle {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.layoutTestToggle a {
  padding: 4px 10px;
  color: var(--muted);
  text-decoration: none;
  background: #fff;
}
.layoutTestToggle a.is-on { background: var(--btn); color: #fff; }
.layoutTestToggle a:hover { text-decoration: none; }
.editOrderHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.editOrderHead h1 {
  margin: 0;
  font-size: 16px;
  line-height: 32px;
  white-space: nowrap;
}
.editOrderAccount { flex: 1 1 420px; min-width: 180px; max-width: 560px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.editOrderAccount .editCombo { z-index: 40; }
.editOrderAccount .editComboSearch {
  height: 32px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  width: 100%;
}
.editOrderAccountName { margin: 0; font-size: 14px; font-weight: 700; line-height: 32px; }
.editOrderPrice {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f766e;
  line-height: 32px;
  white-space: nowrap;
}
.editOrderTools { margin-left: auto; }
.editOrderTools .btn-sm { min-height: 32px; }
.editOrderNote {
  background: #ecfdf5;
  border: 1px solid #b7e0d8;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0 0 12px;
}
.editOrderGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.editCard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px 12px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.editCard h2 {
  margin: -10px -12px 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
  color: #1e3a5f;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
}
.editCard h3 { margin: 12px 0 8px; font-size: 12px; color: var(--muted); }
.editCard label {
  display: grid;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.editCard input, .editCard select, .editCard textarea {
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  width: 100%;
  min-height: 32px;
  margin: 0;
  background: #fff;
}
.editCard input[readonly],
.editCard textarea[readonly] {
  background: #f3f7fb;
  color: #475569;
}
.editColorSelect { font-weight: 700; }
.editStatusLocked {
  display: block;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 32px;
  font-weight: 700;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.editCard input[type="checkbox"],
.editCard input[type="radio"] {
  width: 15px;
  min-width: 15px;
  max-width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  margin: 0;
  border-radius: 3px;
  flex: 0 0 15px;
  accent-color: var(--btn);
}
.editCard input[type="hidden"] {
  display: none;
  width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  margin: 0;
}
.editCard label.editCheck {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.editRow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.editRowTypePcs { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; align-items: end; }
.editRowFacts { display: grid; grid-template-columns: 118px 96px minmax(0, 1fr); gap: 8px; }
.editSlim input, .editSlim select { text-align: center; padding-left: 6px; padding-right: 6px; }
.editBy { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.editBy legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0; }
.editBy label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; color: var(--ink); }
.editBy input { width: auto; }
.editInner {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px 4px;
  margin: 0 0 10px;
  background: #f8fbfd;
  min-width: 0;
}
.editInner > legend {
  font-size: 11px;
  font-weight: 750;
  color: #1e3a5f;
  padding: 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.editInner .editBy { margin-bottom: 8px; }
.editMulti { display: grid; gap: 6px; }
.editMulti select { width: 100%; }
.editMultiChips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.editChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 4px 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.editChip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.editChip button:hover { color: var(--danger); background: var(--danger-bg); }
.editCheck { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.editCheck input { width: auto; }
.editDriverPick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.editDriverPick > .editField { margin-bottom: 0; }
.editDriverPick > label { margin-bottom: 0; }
.editDriverPick .editIconBtn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  align-self: end;
  margin: 0;
}
.editExtras { list-style: none; margin: 0; padding: 0; }
.editTrack { background: #e0f2fe; padding: 8px 10px; border-radius: 8px; }
.editOrderFoot { margin: 16px 0 24px; }
.editOrderTools { display: flex; align-items: center; gap: 8px; }
.editIconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--info);
  cursor: pointer;
  text-decoration: none;
}
.editIconBtn:hover { border-color: var(--accent); color: var(--accent); background: #f0fdfa; }
.editOrderGrid4 { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editSig { width: 100%; max-height: 180px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.editTimeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.editTimeline li { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.editTimeDot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px; border-radius: 999px; border: 1px solid var(--line); font-size: 10px; font-weight: 700;
  background: var(--paper);
}
.editPkgDims {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.editPkgDims label { flex: 0 0 56px; min-width: 0; }
.editPkgDims label:last-child { flex: 1 1 120px; }
.editPkgBtn, .editDangerBtn {
  display: inline-flex;
  width: auto;
  margin-top: 8px;
}
.editPkgBtn { width: 100%; }
.editFloat {
  position: fixed; inset: 0; background: rgba(30, 41, 59, 0.32); z-index: 80;
  display: grid; place-items: start center; padding: 24px 12px; overflow: auto;
}
.editFloat[hidden] { display: none; }
.editFloatCard {
  width: min(520px, 96vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0 0 12px;
}
.editFloatWide { width: min(980px, 96vw); }
.editFloatCard header {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 10px; padding: 10px 14px;
  background: var(--header); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
}
.editFloatCard h2 { margin: 0; font-size: 15px; color: var(--ink); }
.editFloatCard .editFloatBody { padding: 4px 14px 8px; }
.editFloatCard .editSig { max-height: 360px; }
.editFloatCard .editTimeline { max-height: min(60vh, 520px); }
.editPriceTable { width: calc(100% - 24px); margin: 0 12px 12px; border-collapse: collapse; font-size: 13px; color: var(--ink); }
.editPriceTable th, .editPriceTable td { border: 1px solid #c5d0dc; padding: 8px 10px; color: var(--ink); }
.editPriceTable th { background: #e8eef4; text-align: left; font-weight: 750; color: var(--ink); }
.editPriceTable td.is-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.editPriceTable input, .editPriceTable select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; min-height: 32px; margin: 0; font: inherit; color: var(--ink); }
.editPayWho { font-weight: 800; font-size: 14px; color: var(--ink); margin: 0; }
.editPayWho.is-empty { font-weight: 650; color: var(--muted); }
.editPayHint { margin: 0 12px 10px; font-size: 12px; color: var(--muted); }
.editMoneyInput {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.editMoneyInput span { flex: 0 0 auto; }
.editMoneyInput input { flex: 1 1 auto; min-width: 0; }
.editDriverCols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editPkgHead { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 8px; }
.editPkgActions { display: flex; gap: 8px; flex-wrap: wrap; }
.editPkgActions .btn { width: auto; margin: 0; }
.editOrderActions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.editOrderActions .btn { text-decoration: none; }
@media (max-width: 900px) {
  .editOrderGrid, .editRow2, .editOrderGrid4, .editDriverCols { grid-template-columns: 1fr; }
  .editOrderHead { flex-wrap: wrap; }
  .editOrderAccount { flex: 1 1 100%; max-width: none; }
  .editOrderTools { margin-left: 0; }
}
.monitorCols { position: relative; }
.monitorCols > summary { list-style: none; }
.monitorCols > summary::-webkit-details-marker { display: none; }
.monitorColsPanel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: min(92vw, 420px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.monitorCols[open] > .monitorIconBtn { color: var(--ink); border-color: var(--ink); }
.monitorColsHint { font-size: 12px; color: var(--muted); margin: 8px 0; }
.monitorColsList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px 12px;
  margin-bottom: 10px;
}
.monitorColsList label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.editPkgHead, .editPkgActions, .editDriverCols { padding: 0 12px; }
.monitorTable .monitorEmptyRow td {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  font-size: 13px;
  background: #f8fafc;
}
.monitorDesk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 10px;
  align-items: start;
}
.monitorDeskMain { min-width: 0; }
.driverDock {
  position: sticky;
  top: 8px;
  z-index: 8;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  padding: 10px;
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.driverDockBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.driverDockBar strong { font-size: 14px; color: #1e3a5f; }
.driverDockActions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.driverPill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #d8e0ea;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.driverPill:hover { color: #1e3a5f; text-decoration: none; }
.driverPill.is-on, .driverPill.is-info { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.driverPill.is-warn { background: #c2410c; border-color: #c2410c; color: #fff; }
.driverPill.is-quiet { font-size: 11px; }
.driverDockSearch input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  margin-bottom: 8px;
}
.driverDockCols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.driverList {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  min-height: 0;
}
.driverRow {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-areas: "count who acts" "count km acts";
  gap: 2px 8px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid #eef2f7;
  cursor: grab;
}
.driverRow.is-dragging { opacity: 0.45; }
.driverCount {
  grid-area: count;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e8f1fb;
  color: #1e3a5f;
  font-size: 11px;
  font-weight: 800;
}
.driverWho {
  grid-area: who;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a5f;
  cursor: pointer;
  padding: 0;
}
.driverKm {
  grid-area: km;
  font-size: 11px;
  color: #b91c1c;
  font-weight: 700;
}
.driverRowActs {
  grid-area: acts;
  display: flex;
  gap: 4px;
}
.driverIcon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.driverIcon i { font-size: 12px; }
.driverIcon.is-assign { background: #0f766e; }
.driverIcon.is-map { background: #1e3a5f; }
.driverIcon:hover { filter: brightness(1.08); color: #fff; }
.monitorTableWrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.monitorTable { width: 100%; min-width: 100%; border-collapse: collapse; font-size: 12px; }
.monitorTable th, .monitorTable td {
  text-align: left;
  vertical-align: top;
  padding: 7px 8px;
  border-bottom: 1px solid #e8eef4;
}
.monitorTable thead th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b7c;
  white-space: nowrap;
  background: var(--header);
  font-weight: 750;
}
.monitorTable tbody tr:hover { background: #f7fbff; }
.monitorTable tbody tr.is-drop td { background: #d1fae5; }
.monitorTable tr:last-child td { border-bottom: 0; }
.monitorTable .date { font-weight: 700; }
.monitorTable .label {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
}
.monitorTable .label-danger { background: #d15b47; }
.monitorTable .label-success { background: #82af6f; }
.monitorPager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
}
.monitorPager a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.monitorPager a:hover { border-color: var(--info); color: var(--info); text-decoration: none; }

@media (max-width: 980px) {
  .menuMgmtLayout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .navCollapse { display: none; }
  html.nav-collapsed .app { grid-template-columns: 1fr; }
  html.nav-collapsed .brand,
  html.nav-collapsed .sidebarNavText,
  html.nav-collapsed .sidebarNavChevron { display: initial; }
  html.nav-collapsed .sidebar { padding: 22px 16px; gap: 16px; }
  html.nav-collapsed .brandRow { justify-content: space-between; }
  html.nav-collapsed .brandLogo { max-width: 160px; max-height: 48px; }
  html.nav-collapsed .sidebarNavGroupBody { display: none; }
  html.nav-collapsed .sidebarNavGroup.is-open .sidebarNavGroupBody { display: grid; }
  html.nav-collapsed .sidebarNavBtn,
  html.nav-collapsed .sidebarSignOut,
  html.nav-collapsed .tourHelpToggle {
    width: 100%;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 11px 12px;
    border-radius: 14px;
    background: #fff;
    border-color: #d5dee8;
    font-size: 13px;
  }
  html.nav-collapsed .tourHelpToggle {
    background: linear-gradient(180deg, #fff8e8 0%, #fdecc8 100%);
    border-color: #e4b34a;
  }
  html.nav-collapsed .sidebarIcon { font-size: 15px; width: 20px; flex: 0 0 20px; color: #3b82f6; }
  html.nav-collapsed .sidebarSignOutText { display: inline; }
  html.nav-collapsed .navCollapse { display: none; }
  .appBar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: #eef3f8;
    border-bottom: 1px solid #d5dee8;
  }
  .appBarMenu {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #d5dee8;
    border-radius: 10px;
    background: #fff;
    color: #1e3a5f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .appBarBrand { font-weight: 800; color: #16324f; display: flex; align-items: center; min-width: 0; }
  .appBarBrand img {
    max-height: 32px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .sidebarBackdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 50;
  }
  .sidebarBackdrop[hidden] { display: none; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(300px, 88vw);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  body.is-nav-open { overflow: hidden; }
  body.is-nav-open .sidebar { transform: none; }
  .main { padding: 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .monitorDesk { grid-template-columns: 1fr; }
  .driverDock {
    position: static;
    max-height: 42vh;
    order: 2;
  }
}

@media (max-width: 720px) {
  .monitorTable thead { display: none; }
  .monitorTable, .monitorTable tbody, .monitorTable tr, .monitorTable td { display: block; width: 100%; }
  .monitorTable tr {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .monitorTable td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 8px;
    border: 0;
    padding: 4px 0;
  }
  .monitorTable td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
  }
  .monitorActsHost {
    display: block;
    width: 100%;
    padding: 8px 0 !important;
    overflow: visible;
  }
  .monitorActsHost::before { content: none; }
  .monitorActs {
    position: static;
    display: inline-flex;
    top: auto;
    left: auto;
  }
  .menuMgmtRow { flex-wrap: wrap; }
  .menuMgmtAccess { width: 100%; justify-content: flex-start; }
  .menuMgmtRadio { min-height: 44px; }
}

.cc-places { position: relative; display: flex; align-items: stretch; gap: 6px; width: 100%; }
.cc-places-input { flex: 1 1 auto; min-width: 0; width: auto; }
.cc-places-map {
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #0e7c72;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-places-map:hover { background: #eef5ff; color: #0b1220; }
.cc-places-list {
  display: none;
  box-sizing: border-box;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow: auto;
}
.cc-places-list.is-open { display: block; }
.cc-places-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.cc-places-item:hover,
.cc-places-item.is-active { background: #eef5ff; }
.cc-places-pin {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230e7c72'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}
.cc-places-copy { display: flex; flex-direction: column; min-width: 0; }
.cc-places-main { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cc-places-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.cc-places-status { padding: 10px 12px; font-size: 12px; color: var(--muted); }
.editField { display: grid; gap: 3px; margin-bottom: 8px; }
.editFieldLabel {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.editInner, .editCard, .editField { overflow: visible; }
.editCombo { position: relative; display: block; width: 100%; z-index: 5; overflow: visible; }
.editComboSearch { width: 100%; }
.editComboList {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 90;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.editComboList[hidden] { display: none !important; }
.editComboItem {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef3f8;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.editComboItem.is-hide,
.editComboItem[hidden] { display: none !important; }
.editComboItem:hover,
.editComboItem.is-active { background: #eef5ff; }
.editDialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  padding: 16px;
}
.editDialog[hidden] { display: none; }
.editDialogCard {
  width: min(520px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}
.editDialogCard h2 { margin: 0; font-size: 18px; }
.editDialogCard.estDlgCard {
  width: min(480px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}
.estDlgCard { padding: 0; }
.estDlgHead {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #d9edf7;
  color: #31708f;
  padding: 12px 14px;
  border-radius: 12px 12px 0 0;
  flex: 0 0 auto;
}
.estDlgHead h2 { flex: 1; font-size: 16px; font-weight: 700; color: #31708f; }
.estDlgIcon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5bc0de;
  color: #fff;
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
}
.estDlgX {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #31708f;
  cursor: pointer;
}
.estimateBody {
  padding: 16px 18px 8px;
  overflow: auto;
  background: #fff;
}
.estDlgFoot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px 16px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  flex: 0 0 auto;
}
.estDlgFoot .btn { min-height: 36px; }
.estimateBody .table,
.estimateBody .estimateTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
}
.estimateBody .table td,
.estimateBody .estimateTable td {
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  font-size: 14px;
  color: #1f2937;
}
.estimateBody .table td:last-child,
.estimateBody .estimateTable td:last-child {
  text-align: right;
  white-space: nowrap;
  width: 28%;
}
.estimateBody .table-striped tr:nth-child(odd),
.estimateBody .estimateTable tr:nth-child(odd) { background: #f3f4f6; }
.estimateBody .label-success,
.estimateTotal {
  display: inline-block;
  background: #82af6f;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 700;
}
.estimateVehicle {
  margin: 14px 0 4px;
  padding-top: 10px;
  border-top: 1px solid #d0d7de;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.pkgHint {
  color: #82af6f;
  font-size: 16px;
  margin: 10px 0 8px;
}
.pkgTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
.pkgTable th,
.pkgTable td {
  border: 1px solid #d7e2ea;
  padding: 2px;
  font-size: 12px;
}
.pkgTable input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
input.lookDateWarn {
  border-color: #ea580c;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}
input.lookDateAlert {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
}
.app.has-route {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
}
.app.has-route .main {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}
.routePage {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  align-items: stretch;
}
.routeSide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.routeCrumbs { margin: 0 0 10px; font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.routeField { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 8px; flex: 0 0 auto; }
.routeField select, .routeField input { font-weight: 600; font-size: 13px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; }
.routeTools { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; flex: 0 0 auto; }
.routeMeta { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: #0f766e; flex: 0 0 auto; }
.dmapStops { font-size: 12px; }
.dmapStops li { cursor: pointer; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 5px; background: #fff; }
.dmapStops li.is-on { border-color: #0f766e; background: #ecfdf5; }
.routeErr { margin: 0 0 8px; font-size: 12px; color: #b91c1c; font-weight: 700; flex: 0 0 auto; }
.routeStops {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 0;
  min-height: 0;
  overscroll-behavior: contain;
}
.routeStop {
  display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px;
  margin-bottom: 6px; background: #fff; cursor: grab;
}
.routeStop.is-drag { opacity: 0.55; }
.routeStopNum {
  flex: 0 0 28px; height: 28px; border-radius: 999px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.routeStopBody { font-size: 12px; line-height: 1.35; min-width: 0; word-break: break-word; }
.routeStopBody em { color: var(--muted); font-style: normal; }
.trackList {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  min-height: 0;
}
.trackList li { border-bottom: 1px solid var(--line); }
.trackList button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 4px;
  font: inherit;
  cursor: pointer;
}
.trackList button:hover { background: #f7fbff; }
.routeMapWrap {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e2e8f0;
}
.routeMap { position: absolute; inset: 0; }
.routeMapBar {
  position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; gap: 6px;
}
.routeFixModal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px 12px;
  overflow: auto;
}
.routeFixModal[hidden] { display: none; }
.routeFixCard {
  width: min(640px, 96vw);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}
.routeFixHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.routeFixLead, .routeFixMsg { font-size: 13px; margin: 0 0 10px; }
.routeFixMsg { color: #b91c1c; font-weight: 700; }
.routeFixBlock {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: #f8fafc;
}
.routeFixBlock.is-bad { border-color: #fca5a5; background: #fff7f7; }
.routeFixBlock h4 { margin: 0 0 8px; font-size: 13px; }
.routeFixGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.routeFixGrid label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: #334155; }
.routeFixGrid input { font-weight: 600; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.routeFixGrid .span2 { grid-column: 1 / -1; }
.routeFixSide { font-size: 11px; font-weight: 800; color: #0f766e; margin: 6px 0 4px; }
.routeFixActions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.routeFixGrid .cc-places-map {
  flex-basis: 34px;
  width: 34px;
  min-height: 32px;
  border-radius: 8px;
}
.routeErrLink {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.ccMapPick {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px 12px;
  overflow: auto;
}
.ccMapPick[hidden] { display: none; }
.ccMapPickCard {
  width: min(640px, 96vw);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}
.ccMapPickHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ccMapPickLead { margin: 0 0 10px; font-size: 13px; color: #334155; }
.ccMapPickCanvas { height: 360px; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ccMapPickMeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 12px 0 0;
}
.ccMapPickMeta dt { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.ccMapPickMeta dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #0b1220; }
.ccMapPickActions { display: flex; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 640px) {
  .ccMapPickMeta { grid-template-columns: 1fr; }
  .ccMapPickCanvas { height: 280px; }
}
@media (max-width: 640px) {
  .routeFixGrid { grid-template-columns: 1fr; }
  .routeFixGrid .span2 { grid-column: auto; }
}
@media (max-width: 900px) {
  .app.has-route { height: auto; min-height: 100dvh; overflow: auto; }
  .app.has-route .main { overflow: visible; height: auto; }
  .routePage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 42vh) minmax(280px, 58vh);
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .routeSide { max-height: 42vh; height: auto; }
  .routeMapWrap { min-height: 280px; height: 58vh; }
}

.driverPage, .driverFormPage { display: grid; gap: 14px; }
.driverHead h1 { margin: 0; font-size: 22px; }
.driverCrumbs { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.driverTabs { display: flex; flex-wrap: wrap; gap: 6px; }
.driverTab {
  display: inline-flex; align-items: center; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700;
}
.driverTab.is-on { background: #0e7c72; border-color: #0e7c72; color: #fff; }
.driverToolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.driverSearch input { min-width: min(320px, 100%); }
.driverMeta { margin: 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.driverGridWrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.driverTable { width: 100%; border-collapse: collapse; font-size: 13px; }
.driverTable th, .driverTable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.driverTable thead th { background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.driverTable tbody tr:hover { background: #f7fbff; }
.driverTable td.num, .driverTable th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.driverTable td.date { white-space: nowrap; }
.driverTable tfoot td {
  font-weight: 700;
  background: #f8fafc;
  border-top: 2px solid var(--line);
}
.driverTable.payGrid { min-width: 980px; }
.driverTable .colCheck { width: 40px; text-align: center; }
.driverTable td.num, .driverTable th.num { min-width: 88px; }
.payActions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.payActions .lede { margin: 0; }
.driverTable input.js-zips, .driverTable select.js-before {
  width: 100%; min-width: 72px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px;
}
.driverRowActs { display: flex; flex-wrap: wrap; gap: 6px; }
.driverEmpty { margin: 16px; color: var(--muted); }
.driverCard {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.driverCard h2 { margin: 0 0 12px; font-size: 15px; }
.driverCard h3 { margin: 10px 0 6px; font-size: 13px; }
.driverGrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.driverGrid2 label, .driverForm label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: #334155; }
.driverGrid2 input, .driverGrid2 select, .driverGrid2 textarea,
.driverForm input:not([type="checkbox"]):not([type="radio"]), .driverForm select, .driverForm textarea {
  font: 14px/1.3 inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
}
.driverGrid2 .span2 { grid-column: 1 / -1; }
.apiAllowGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 12px;
}
.apiAllowGrid > label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: #334155; }
.chipPick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.chipPickTags { display: contents; }
.chipPick .editChip { font-size: 12px; font-weight: 600; text-transform: none; }
.chipPickAdd {
  flex: 1 1 140px;
  min-width: 120px;
  border: 0 !important;
  box-shadow: none;
  background: transparent;
  padding: 4px 6px;
  font: 14px/1.3 inherit;
}
.apiAllowGrid .meta { font-weight: 500; margin: 0; }
.driverTableWrap { overflow: auto; }
.driverFormPage .driverTableWrap { max-height: min(78vh, 820px); overflow: auto; }
.driverTable.is-form input:not([type="radio"]) { width: 100%; max-width: 90px; }
.feeGrid {
  font-size: 12px;
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}
.feeGrid thead th {
  position: sticky; top: 0; z-index: 2;
  background: #e8eef4;
}
.feeGrid th, .feeGrid td {
  display: table-cell;
  vertical-align: top;
  padding: 4px 6px;
}
.feeGrid .feeZoneHead,
.feeGrid td:first-child,
.feeGrid td:nth-child(2) { white-space: nowrap; }
.feeGrid .feeSvcHead {
  white-space: normal;
  max-width: 88px;
  line-height: 1.2;
}
.feeCell { min-width: 80px; }
.feePair { display: flex; flex-direction: column; gap: 2px; align-items: stretch; }
.feePair label { display: grid; gap: 1px; font-size: 9px; color: var(--muted); text-transform: uppercase; margin: 0; }
.feePair input { width: 72px !important; max-width: 72px !important; min-height: 26px; padding: 3px 5px; }
.feePair label:has(.feePayInput) { color: #9a3412; }
.feePayInput {
  color: #9f1239 !important;
  font-weight: 700;
}
.feeGrid select {
  min-width: 118px;
  max-width: 160px;
  color: var(--ink);
  font-weight: 700;
  background: #fff;
  min-height: 30px;
}
.zoneGrid .zoneName { max-width: 140px !important; }
.zoneGrid .zonePrefix { max-width: 90px !important; }
.zoneGrid .zonePcodes { max-width: none !important; width: 100%; min-width: 240px; }
.zoneGrid .zoneBlocked { min-width: 180px; min-height: 72px; }
.zoneActions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.driverPayMode { display: inline-flex; gap: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.driverPayBtn {
  margin: 0; padding: 7px 14px; border: 0; background: #fff; color: var(--ink);
  font: 700 13px inherit; cursor: pointer;
}
.driverPayBtn + .driverPayBtn { border-left: 1px solid var(--line); }
.driverPayBtn.is-on { background: #0e7c72; color: #fff; }
.driverHint { margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.driverInline { display: flex !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.driverCatCols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.driverActions { display: flex; gap: 8px; flex-wrap: wrap; }
.acctForm { display: grid; gap: 12px; }
.acctFrame {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.acctFrame h2 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: #0f172a; }
.acctGrid3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 200px));
  gap: 10px 14px;
  align-items: start;
  justify-content: start;
}
.acctGrid3 label {
  display: grid;
  grid-template-rows: 2.6em 36px;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  min-width: 0;
  align-items: stretch;
}
.acctGrid3 input:not([type="checkbox"]):not([type="radio"]),
.acctGrid3 select {
  font: 13px/36px inherit;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background-color: #fff;
  margin: 0;
}
.acctGrid3 select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23334155' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}
.acctGrid3 textarea {
  font: 13px/1.3 inherit;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  grid-row: 2 / span 2;
}
.acctGrid3 .span2 { grid-column: span 2; }
.acctGrid3 .span3 { grid-column: 1 / -1; }
.acctGrid3 .span3 input, .acctGrid3 .span3 select, .acctGrid3 .span3 textarea { max-width: 640px; }
.prepInvoiceRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  position: relative;
  z-index: 1;
}
.prepInvoiceCheck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  cursor: pointer;
}
.prepInvoiceSubmit {
  position: relative;
  z-index: 2;
  margin-top: 14px;
}
.prepResultFrame { margin-top: 22px; }
.prepShowToggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.invEditGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .invEditGrid { grid-template-columns: 1fr; }
}
.invEditTable input { width: 100%; min-height: 30px; }
.invEditTotals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 12px 0;
  font-size: 13px;
}
.invNotify {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 8px;
}
.invNotify .invLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}
.acctGrid3 .acctCheck {
  display: flex;
  grid-template-rows: none;
  align-self: end;
  min-height: 36px;
}
.acctGrid3 .acctCheck span { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.acctGrid3 .meta { margin: 0; align-self: center; font-size: 12px; color: var(--muted); }
.driverFormPage, .driverForm, .acctForm { min-width: 0; max-width: 100%; }
.driverFormPage.is-pricing { gap: 10px; overflow: visible; }
.driverFormPage.is-pricing .acctFrame { padding: 10px 12px; overflow: visible; }
.acctForm.is-pricing .driverTableWrap {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  width: 100%;
}
.acctForm.is-pricing .acctDeliveryWrap {
  position: relative;
  isolation: isolate;
  max-height: min(52vh, 560px);
  margin-top: 12px;
}
.acctForm.is-pricing .acctPriceTable,
.acctForm.is-pricing .feeGrid,
.driverFormPage.is-pricing .acctPriceTable {
  border-collapse: collapse;
}
.acctForm.is-pricing .acctPriceTable th,
.acctForm.is-pricing .acctPriceTable td,
.acctForm.is-pricing .feeGrid th,
.acctForm.is-pricing .feeGrid td,
.driverFormPage.is-pricing .acctPriceTable th,
.driverFormPage.is-pricing .acctPriceTable td {
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #e2e8f0;
}
.acctForm.is-pricing .acctPriceTable th:first-child,
.acctForm.is-pricing .acctPriceTable td:first-child,
.acctForm.is-pricing .feeGrid th:first-child,
.acctForm.is-pricing .feeGrid td:first-child,
.driverFormPage.is-pricing .acctPriceTable th:first-child,
.driverFormPage.is-pricing .acctPriceTable td:first-child {
  border-right: 2px solid #94a3b8;
}
.acctForm.is-pricing .acctPriceTable,
.acctForm.is-pricing .feeGrid {
  font-size: 12px;
  width: max-content;
  max-width: none;
  min-width: 0;
}
.acctForm.is-pricing .acctPriceTable input,
.acctForm.is-pricing .feeGrid input:not([type="checkbox"]) {
  width: 64px; max-width: 64px; min-height: 26px; padding: 3px 5px;
}
.acctForm.is-pricing .acctPriceTable select,
.acctForm.is-pricing .feeGrid select {
  width: 108px; min-width: 108px; max-width: 108px; min-height: 26px; padding: 3px 5px;
}
.acctForm.is-pricing input.is-override:not([type="checkbox"]),
.acctForm.is-pricing .acctIncRate input.is-override {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #9a3412 !important;
  font-weight: 700;
}
.distDialog {
  width: min(640px, 96vw);
  max-height: 90vh;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}
.distDialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.distDialogForm { display: grid; gap: 12px; }
.distDialogGrab {
  cursor: move;
  user-select: none;
  padding: 8px 10px;
  background: #f1f5f9;
  border-radius: 8px;
  touch-action: none;
}
.distEditBands { width: 100%; }
.distEditBands input { width: 80px !important; max-width: 80px !important; }
.distRowActs { white-space: nowrap; }
.distChip {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
}
.distBull {
  display: inline-block;
  margin: 0 6px;
  color: #0f172a;
  font-weight: 900;
  font-size: 14px;
}
.distChip.is-override {
  background: #fef3c7;
  border-color: #d97706;
  color: #9a3412;
}
.acctForm.is-pricing td.is-override {
  color: #9a3412;
  font-weight: 700;
}
.distLoadList {
  display: grid;
  gap: 6px;
  max-height: 40vh;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.distLoadItem {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.distBands { line-height: 1.8; }
#distFieldStore { display: none; }
.acctIncTable td { vertical-align: top; }
.acctIncStack {
  display: grid;
  grid-template-columns: 16px 48px 48px;
  gap: 2px 3px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.acctIncStack input { width: 48px !important; max-width: 48px !important; min-height: 22px; padding: 2px 4px; }
.acctIncRate { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; }
.acctIncRate input { width: auto !important; max-width: none !important; }
@media (max-width: 900px) {
  .acctGrid3 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .acctGrid3 .span2, .acctGrid3 .span3 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .driverGrid2, .driverCatCols { grid-template-columns: 1fr; }
  .driverGrid2 .span2 { grid-column: auto; }
  .apiAllowGrid { grid-template-columns: 1fr; }
  .acctGrid3 { grid-template-columns: minmax(0, 1fr); }
  .acctGrid3 .span2, .acctGrid3 .span3 { grid-column: auto; }
}
.appToast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 160;
  max-width: min(420px, calc(100vw - 24px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
  animation: appToastIn 0.22s ease-out;
}
.appToast.is-hide {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@keyframes appToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .appToast { top: 58px; right: 12px; }
}
.invGridBar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.invTableWrap { overflow: auto; }
.invTable { font-size: 12px; }
.invTable th, .invTable td { white-space: nowrap; }
.invTable tr.is-new { background: #ecfdf5; }
.invTable td.is-overdue { background: #ffaabb; }
.invTable .invTotal td { font-weight: 700; background: #f8fafc; }
.invTable .invPdf { margin-right: 6px; }
.invCash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.3;
}
.invCash:hover { background: #059669; color: #fff; }
.invTotals { margin-top: 12px; font-size: 14px; }
.stmtForm .stmtAccount { max-width: 520px; }
.stmtActions { margin-top: 12px; }
.stmtMeta { font-weight: 650; margin: 8px 0 12px; }
.stmtPageHead { display: flex; align-items: center; gap: 16px; }
.stmtPageLogo { max-height: 56px; max-width: 180px; object-fit: contain; }
@media print {
  .sidebar, .appBar, .invGridBar, .driverHead, .alert, .removeprint { display: none !important; }
  .app { display: block; }
  .invTableWrap { overflow: visible; }
}
.prepGauge {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center;
}
.prepGauge[hidden] { display: none !important; }
.prepGaugeCard {
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  text-align: center;
}
.prepGaugeDial { position: relative; width: 140px; height: 140px; margin: 0 auto 12px; }
.prepGaugeDial svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.prepGaugeTrack { fill: none; stroke: #e2e8f0; stroke-width: 10; }
.prepGaugeValue { fill: none; stroke: #0f766e; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.25s ease; }
.prepGaugePct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #0f172a;
}
.prepGaugeStep { margin: 0; font-size: 14px; line-height: 1.4; color: #334155; min-height: 2.8em; }

.dmapHint { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.4; }
.dmapAssignH { margin: 12px 0 6px; font-size: 14px; color: #629b58; }
.dmapRouteLink { display: inline-block; margin: 8px 0 0; font-size: 12px; font-weight: 650; }
.dmapLabel {
  position: absolute;
  transform: translate(-50%, 0);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  z-index: 3;
}
.dmapLabel-cross {
  background: #ecfdf8;
  border-color: #99f6e4;
  color: #0f766e;
}

.dashPage { display: grid; gap: 18px; }
.dashWelcome {
  padding: 10px 14px;
  border: 1px solid #c6e6c6;
  background: #dff0d8;
  color: #3c763d;
  border-radius: 6px;
  font-size: 14px;
}
.dashWelcome i { margin-right: 6px; }
.dashWelcome strong { color: #2b7a2b; }
.dashTop {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 1.2fr);
  gap: 20px;
  align-items: start;
}
.dashTiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
a.dashBox { text-decoration: none; color: inherit; }
.dashBox {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #d0d7de;
  border-radius: 8px;
  background: #fff;
  min-height: 76px;
}
.dashIco {
  grid-row: 1 / span 3;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; align-self: center;
}
.dashNum { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.dashLbl { font-size: 12px; color: var(--muted); font-weight: 650; }
.dashLbl small { font-weight: 500; }
.dashSub { font-size: 11px; color: #64748b; grid-column: 2; }
.dashBox.is-red .dashIco { background: #d15b47; }
.dashBox.is-red .dashNum { color: #d15b47; }
.dashBox.is-green .dashIco { background: #87b87f; }
.dashBox.is-green .dashNum { color: #629b58; }
.dashBox.is-pink .dashIco { background: #d6487e; }
.dashBox.is-pink .dashNum { color: #d6487e; }
.dashBox.is-orange .dashIco { background: #ff892a; }
.dashBox.is-orange .dashNum { color: #e67e22; }
.dashBox.is-blue .dashIco { background: #6fb3e0; }
.dashBox.is-blue .dashNum { color: #4f99c6; }
.dashBox.is-sky .dashIco { background: #3983ac; }
.dashBox.is-sky .dashNum { color: #3983ac; }
.dashChips { display: flex; flex-wrap: wrap; gap: 10px; }
.dashChip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 6px 14px;
  border-radius: 6px; color: #fff; text-decoration: none; font-weight: 650;
}
.dashChip strong { margin-left: 4px; }
.dashChip.is-green { background: #82af6f; }
.dashChip.is-blue { background: #3983ac; }
.dashChip.is-grey { background: #848484; }
.dashOps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.dashOps a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: inherit; background: #f8fafc; font-size: 12px; font-weight: 650;
}
.dashOps span { font-size: 18px; font-weight: 800; color: #0f4c81; }
.dashCharts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 8px;
  border-top: 1px dotted #cbd5e1;
}
.dashChart h2 {
  margin: 0 0 12px; font-size: 16px; color: #629b58; font-weight: 650;
}
.dashChart h2 i { margin-right: 6px; }
.dashChartBody { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dashPie {
  width: 168px; height: 168px; border-radius: 50%;
  flex: 0 0 168px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.dashLegend { list-style: none; margin: 0; padding: 0; font-size: 12px; color: #475569; }
.dashLegend li { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.dashLegend span { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 10px; }
.dashLegend em { margin-left: auto; font-style: normal; font-weight: 700; color: #0f172a; }
@media (max-width: 980px) {
  .dashTop, .dashCharts { grid-template-columns: 1fr; }
  .dashTiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dashTiles { grid-template-columns: 1fr; }
}
.dashDesk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 4px;
}
.dashDeskCard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dashDeskNote { margin: -6px 0 10px; font-size: 12px; color: var(--muted); }
.dashEmpty { margin: 0; font-size: 13px; color: var(--muted); }
.dashBars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dashBars a { text-decoration: none; color: inherit; display: grid; gap: 4px; }
.dashBarMeta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.dashBarMeta strong { font-weight: 700; }
.dashBarMeta em { font-style: normal; font-weight: 700; color: #0f172a; white-space: nowrap; }
.dashBarTrack { display: block; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.dashBarFill { display: block; height: 100%; background: #0e7c72; border-radius: 999px; }
.dashBarFill.is-city { background: #3983ac; }
.dashBarSub { font-size: 11px; color: #64748b; }
.dashRank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dashRank a {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit; font-size: 13px;
  padding: 6px 8px; border-radius: 8px;
}
.dashRank a:hover { background: #f8fafc; }
.dashRankN {
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  background: #e8eef4; color: #334155; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dashRankName { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.dashRank em { font-style: normal; font-weight: 800; color: #0f4c81; }
.dashMiniMap {
  margin-top: 10px; height: 220px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden;
}
@media (max-width: 1100px) {
  .dashDesk { grid-template-columns: 1fr; }
}
.reportCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
a.reportCard { text-decoration: none; color: inherit; }
.reportCard {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.reportCard:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}
.reportIco {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.reportBody {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.reportBody strong {
  font-size: 16px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.2;
}
.reportBody span {
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  font-weight: 500;
}
.reportGo { color: #cbd5e1; font-size: 14px; flex: 0 0 auto; }
.reportCard.is-amber .reportIco { background: linear-gradient(180deg, #f59e0b, #d97706); }
.reportCard.is-blue .reportIco { background: linear-gradient(180deg, #38bdf8, #0284c7); }
.reportCard.is-green .reportIco { background: linear-gradient(180deg, #34d399, #059669); }
.reportCard.is-violet .reportIco { background: linear-gradient(180deg, #818cf8, #4f46e5); }
.reportCard.is-amber:hover .reportGo { color: #d97706; }
.reportCard.is-blue:hover .reportGo { color: #0284c7; }
.reportCard.is-green:hover .reportGo { color: #059669; }
.reportCard.is-violet:hover .reportGo { color: #4f46e5; }
@media (max-width: 820px) {
  .reportCards { grid-template-columns: 1fr; }
}
.cashPage { display: grid; justify-items: center; padding: 8px 0 24px; }
.cashSheet {
  width: min(1080px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.cashHead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid var(--line);
}
.cashHead h1 { margin: 0; font-size: 16px; color: #b91c1c; font-weight: 700; }
.cashHead h1 i { margin-right: 8px; }
.cashClose { color: #94a3b8; font-size: 18px; text-decoration: none; }
.cashClose:hover { color: #b91c1c; }
.cashForm { padding: 16px 18px 18px; display: grid; gap: 16px; }
.cashCols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cashBanner {
  margin: 0 0 12px; padding: 8px 16px; color: #fff; font-size: 15px; font-weight: 750;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.cashBanner.is-amount { background: #3b82c4; }
.cashBanner.is-pay { background: #7cb342; }
.cashFacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #334155; }
.cashFacts i { color: #3b82c4; margin-right: 6px; }
.cashPayGrid { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; align-items: center; }
.cashPayGrid label { display: contents; font-size: 13px; font-weight: 700; }
.cashPayGrid input, .cashPayGrid select {
  height: 30px; padding: 0 8px; border: 1px solid #94a3b8; border-radius: 4px; width: 160px;
}
.cashPayGrid p { display: contents; font-size: 13px; font-weight: 700; }
.cashTable input.cashApplied { width: 90px; height: 28px; text-align: right; }
.cashThanks {
  margin: 0; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--line);
  text-align: center; color: #475569; font-size: 13px;
}
.cashActions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 820px) {
  .cashCols { grid-template-columns: 1fr; }
}
.invWork {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.invWork.is-pay { grid-template-columns: minmax(0, 1fr) min(560px, 46vw); }
.invWorkGrid { min-width: 0; }
.invTable tr.is-cashFocus td { background: #ecfdf5; }
.cashDock {
  position: sticky;
  top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 14px;
  min-width: 0;
}
.cashDockHead { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cashDockHead h2 { margin: 0; font-size: 16px; }
.cashDockWho { margin: 4px 0 0; font-weight: 700; font-size: 13px; }
.cashDockMeta { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.cashDockNav { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.cashDockClose {
  border: 0; background: transparent; font-size: 22px; line-height: 1; color: #64748b; cursor: pointer; padding: 0 4px;
}
.cashDockClose:hover { color: #0f172a; }
.cashDockForm { display: grid; gap: 10px; margin-top: 10px; }
.cashDockFields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cashDockFields label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.cashDockFields input, .cashDockFields select {
  height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-weight: 500;
}
.cashDockFields #cashRefWrap.is-required label, .cashDockFields label#cashRefWrap.is-required { font-weight: 800; }
.cashDockTotals {
  display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700;
  padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cashDockTotals p { margin: 0; }
.cashUnappliedLine.is-over, #cashUnappliedLine.is-over { color: #b91c1c; }
.cashHint { margin: 0; font-size: 12px; color: #047857; }
.cashDock h3 { margin: 4px 0 0; font-size: 13px; }
.cashDockTableWrap { overflow: auto; max-height: min(42vh, 360px); }
.cashDockTable { font-size: 12px; }
.cashDockTable .js-apply, .cashDockTable .js-use { width: 96px; height: 28px; text-align: right; }
.cashDockTable tr.is-focus td { background: #ecfdf5; }
.cashDockActions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1280px) {
  .invWork.is-pay { grid-template-columns: 1fr; }
  .cashDock { position: static; }
}
.geoHint { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.geoMainActs { margin-top: 12px; }
.geoMainForm select[multiple] { min-height: 160px; }
.geoSubTable { margin-top: 8px; max-height: 32vh; overflow: auto; }
.geoSubPage .dmapRouteLink { margin-top: 10px; display: inline-block; font-size: 13px; font-weight: 700; }
.fixAddrPage { display: flex; flex-direction: column; gap: 10px; }
.fixAddrWork { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 12px; align-items: stretch; min-height: calc(100vh - 250px); }
.fixAddrGrid { min-width: 0; max-height: calc(100vh - 250px); }
.fixAddrMap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fixMapCanvas { flex: 1 1 auto; min-height: 280px; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.fixAddrMap .driverCard { margin-top: 10px; flex: 0 0 auto; }
.fixAddrList { min-width: 0; }
.fixFilter { display: block; margin: 8px 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fixFilter input, .consoleFind { width: 100%; margin-top: 4px; }
.fixAddrRow { display: flex; gap: 8px; align-items: center; }
.fixAddrRow input { flex: 1; }
.fixSide { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; }
.fixSide.is-from { background: #dbeafe; color: #1e40af; }
.fixSide.is-to { background: #dcfce7; color: #166534; }
#fixTable tbody tr.is-current, #emailTable tbody tr.is-current { outline: 2px solid #0e7c72; background: #ecfdf8; }
.consoleSplit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consoleCol h2 { margin: 0 0 4px; font-size: 15px; }
.consoleCol p { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #0e7c72; }
.consoleList { list-style: none; margin: 8px 0 0; padding: 8px; min-height: 280px; max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.consoleList li { padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #f8fafc; }
.consoleList li strong { display: block; }
.consoleList li span { display: block; font-size: 11px; color: var(--muted); }
.consoleList li:hover { border-color: #0e7c72; }
.consoleList li.is-locked { opacity: .75; cursor: default; background: #eef2ff; }
.consolePreview { margin-top: 8px; }
.consolePreviewRow { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.consolePreviewRow span { background: #0e7c72; color: #fff; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 650; }
.logoPreview { display: block; margin-top: 8px; max-width: 220px; max-height: 160px; width: auto; height: auto; object-fit: contain; border: 1px solid var(--line); background: transparent; }
.emailPage { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.3fr); gap: 12px; align-items: start; }
.emailTokens { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.emailToken { border: 1px solid var(--line); background: #e8eef4; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 650; cursor: pointer; }
.emailSplit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.emailSplit.is-off { display: none; }
.emailEdit, .emailPreview { min-height: 220px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; font: 13px/1.4 ui-monospace, Consolas, monospace; }
.emailPreviewFrame { width: 100%; min-height: 220px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.emailLangTabs { display: flex; gap: 6px; margin-top: 8px; }
.emailLangTabs .is-on { background: #0e7c72; color: #fff; }
.editCardHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -10px -12px 12px;
  padding: 6px 10px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
}
.editCardHead h2 {
  margin: 0;
  padding: 2px 0;
  background: none;
  border: 0;
  border-radius: 0;
  flex: 1 1 auto;
}
.lookAddrSide {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a5f;
}
.lookAddrBtn {
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1d4ed8;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.lookAddrBtn:hover { background: #eff6ff; }
.addrBookModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
}
.addrBookModal[hidden] { display: none; }
.addrBookPanel {
  width: min(720px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  padding: 14px 16px 12px;
}
.addrBookHead { display: flex; align-items: center; gap: 8px; }
.addrBookHead h3 { margin: 0; flex: 1; font-size: 16px; }
.addrBookClose {
  width: 32px; height: 32px; border: 0; background: transparent; font-size: 22px; cursor: pointer;
}
.addrBookHint { margin: 6px 0 10px; font-size: 12px; color: var(--muted); }
.addrBookSearch {
  width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.addrBookList { display: grid; gap: 4px; }
.addrBookRow {
  text-align: left;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}
.addrBookRow:hover { background: #eff6ff; border-color: #93c5fd; }
.addrBookEmpty { margin: 12px 0; color: var(--muted); }
.addrBookFoot { display: flex; justify-content: flex-end; margin-top: 10px; }
.addrSuggestWrap { position: relative; min-width: 0; }
.addrSuggestList {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 70;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.addrSuggestList[hidden] { display: none; }
.addrSuggestRow {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
}
.addrSuggestRow:last-child { border-bottom: 0; }
.addrSuggestRow:hover { background: #eff6ff; }
@media (max-width: 980px) {
  .fixAddrWork, .consoleSplit, .emailSplit, .emailPage { grid-template-columns: 1fr; }
  .fixAddrWork { min-height: 0; }
  .fixAddrGrid { max-height: 50vh; }
  .fixMapCanvas { min-height: 240px; height: 280px; }
}

.cdSplit {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.cdCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.cdTop {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(72px, 0.4fr);
  gap: 10px 12px;
}
.cdTop label, .cdFromTo label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}
.cdTop input, .cdTop select, .cdTop textarea,
.cdFromTo input, .cdFromTo select, .cdFromTo textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}
.cdTop .span2, .cdFromTo .span2 { grid-column: 1 / -1; }
.cdCheck { display: flex !important; align-items: center; gap: 8px; font-weight: 650; }
.cdCheck input { width: auto; min-height: 0; }
.cdFromTo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
.cdFromTo h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #2a8f62;
}
.cdWhen {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  margin: 4px 0;
}
.cdWhen legend { font-size: 11px; font-weight: 700; padding: 0 4px; }
.cdRadios { display: flex; gap: 12px; margin-bottom: 8px; }
.cdRadios label { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.cdRadios input { width: auto; min-height: 0; }
.cdSched h2 { margin: 0 0 6px; }
.cdModes { display: flex; gap: 8px; margin: 10px 0 14px; }
.cdMode {
  flex: 1;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}
.cdMode.is-on { background: #0f766e; color: #fff; border-color: #0f766e; }
.cdPanel { display: none; }
.cdPanel.is-on { display: block; }
.cdDayRow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cdDay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 4px;
  background: #f8fafc;
  cursor: pointer;
}
.cdDay input { accent-color: #0f766e; }
.cdDay:has(input:checked) { background: #ecfdf5; border-color: #0f766e; font-weight: 700; }
.cdWeek { width: 100%; border-collapse: collapse; font-size: 12px; }
.cdWeek th, .cdWeek td { border: 1px solid #e2e8f0; padding: 6px; text-align: center; }
.cdWeek th:first-child, .cdWeek td:first-child { text-align: left; white-space: nowrap; }
.cdTick { display: inline-flex; }
.cdMonth {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cdMonthHead { text-align: center; font-size: 11px; font-weight: 700; color: #64748b; }
.cdMonthDay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 2px;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
}
.cdMonthDay:has(input:checked) { background: #ecfdf5; border-color: #0f766e; }
.cdHint { font-size: 11px; color: #64748b; margin: 12px 0 0; }
@media (max-width: 1100px) {
  .cdSplit, .cdFromTo, .cdTop { grid-template-columns: 1fr; }
}
.invHistTabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #93c5fd;
  margin: 0 0 12px;
}
.invHistTabs a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  color: #1e40af;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.invHistTabs a.is-on {
  background: #fff;
  border-color: #93c5fd;
  margin-bottom: -1px;
}
.invHistForm .invHistFrame { max-width: none; width: 100%; padding: 16px 18px 0; }
.invHistGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: end;
}
.invHistGrid > label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  min-width: 0;
}
.invHistGrid > label input:not([type="checkbox"]),
.invHistGrid > label select {
  font: 13px/36px inherit;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}
.invHistSpan2 { grid-column: span 2; }
.invHistChecks {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.invHistChecks legend {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 6px;
  padding: 0;
}
.invHistChkRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-height: 36px;
}
.invHistChecks .chk,
.invHistGrid .invHistTax {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  min-height: 36px;
}
.invHistActions {
  display: flex;
  justify-content: flex-end;
  margin: 18px -18px 0;
  padding: 14px 18px;
  background: #f1f5f9;
  border-radius: 0 0 12px 12px;
}
@media (max-width: 1100px) {
  .invHistGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invHistSpan2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .invHistGrid { grid-template-columns: minmax(0, 1fr); }
  .invHistSpan2 { grid-column: auto; }
}
.qdForm { margin: 0 12px 10px; }
.qdGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.qdForm .acctFrame h2 { margin: 0 0 10px; font-size: 14px; }
.qdForm label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 8px;
}
.qdForm input,
.qdForm select,
.qdForm textarea {
  font: 13px/34px inherit;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}
.qdForm textarea { line-height: 1.35; padding: 8px; min-height: 72px; }
.qdPair, .qdTriple { display: grid; gap: 8px; }
.qdPair { grid-template-columns: 1fr 1fr; }
.qdTriple { grid-template-columns: 1.4fr .8fr .8fr; }
.qdForm .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.qdForm .chk input { width: auto; min-height: 0; }
.qdFormActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.monitorToolbarSelect {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  font: 13px inherit;
}
.monitorTable tbody tr.is-qd td { background: #99d1f1 !important; }
.qdAssignDlg { border: 0; padding: 0; background: transparent; }
.qdAssignDlg::backdrop { background: rgba(15, 23, 42, .35); }
.qdAssignCard {
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.qdAssignCard h2 { margin: 0; font-size: 16px; }
.qdAssignCard label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #334155; }
.qdAssignCard select { height: 36px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 1200px) {
  .qdGrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .qdGrid, .qdPair, .qdTriple { grid-template-columns: 1fr; }
}
.ordSearchForm { margin: 0 12px 8px; }
.ordSearchSplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.ordSearchStack { display: grid; gap: 10px; }
.ordSearchStack > label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.ordSearchStack > label > input,
.ordSearchStack > label > select,
.ordSearchMultiBtn {
  font: 13px/36px inherit;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}
.ordSearchMulti { position: relative; }
.ordSearchMultiBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
  font-weight: 600;
}
.ordSearchMultiBtn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  margin-left: 8px;
  flex: 0 0 auto;
}
.ordSearchMulti.is-open .ordSearchMultiBtn::after { transform: rotate(180deg); }
.ordSearchMultiPanel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  padding: 8px;
  display: none;
  gap: 4px;
}
.ordSearchMulti.is-open .ordSearchMultiPanel { display: grid; }
.ordSearchMultiPanel .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  padding: 4px 6px;
  border-radius: 6px;
}
.ordSearchMultiPanel .chk:hover { background: #f1f5f9; }
.ordSearchMultiAll { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 8px; }
.ordSearchChecks { border: 0; margin: 0; padding: 0; }
.ordSearchChecks legend {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 6px;
  padding: 0;
}
.ordSearchCheckGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.ordSearchCheckGrid .chk,
.ordSearchDates label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.ordSearchDates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ordSearchDates label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.ordSearchDates input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }
.ordSearchActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 12px;
}
.ordSearchResultBar {
  margin: 0 0 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
}
.optPage { padding: 0 4px 24px; }
.optTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 16px;
  padding: 0 0 0;
  border-bottom: 1px solid var(--line);
}
.optTabs a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
}
.optTabs a.is-on {
  background: #fff;
  color: #0e7c72;
  border-color: var(--line);
  box-shadow: 0 -1px 0 #fff;
}
.optForm { background: transparent; border: 0; padding: 0; }
.optCols,
.optCols3,
.optEmail,
.optMandatory,
.optService .optCols3 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}
.optCompanyCols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: start;
}
.optCompanyStack {
  display: grid;
  gap: 14px;
  align-content: start;
}
.optCols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.optEmail, .optMandatory { grid-template-columns: 1fr 1fr; }
.optForm section,
.optFrame {
  display: grid;
  gap: 8px;
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 14px;
}
.optForm h2,
.optForm h3,
.optFrame h2 {
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eef4;
  font-size: 13px;
  font-weight: 800;
  color: #0e7c72;
}
.optForm label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.optForm input:not([type="checkbox"]):not([type="radio"]),
.optForm select,
.optForm textarea {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.optChk {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
}
.optChk input[type="checkbox"],
.optChk input[type="radio"] { width: auto; min-height: 0; }
.optSave { margin: 16px 0 0; text-align: center; grid-column: 1 / -1; }
.optForm.driverCard { background: transparent; border: 0; padding: 0; }
.optSplit { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 16px; }
.optSwatch { display: inline-block; min-width: 64px; padding: 2px 8px; color: #111; }
.optPair { display: flex; gap: 8px; }
.optTax { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.optTaxCards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.optTaxCard {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.optTaxCard.is-new { border-style: dashed; background: #fff; }
.optTaxDelete { margin: 0; }
.optTaxPair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.optTaxApply { margin: 4px 0 0; font-size: 12px; font-weight: 800; color: #475569; }
.optWide { font-size: 12px; }
.optMini label { display: flex; gap: 6px; font-size: 12px; }
.optSpan2 { grid-column: span 2; }
.optChkRow { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.optNotify { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 6px; }
.optInline { display: flex; gap: 10px; align-items: end; padding: 8px 0; }
.optServiceCard {
  width: min(1100px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 14px 16px 10px;
}
.optDlgHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.optDlgHead h2 { margin: 0; border: 0; padding: 0; font-size: 16px; }
.optPage .driverTable tr.is-edit { background: #ecfdf8; }
@media (max-width: 1200px) {
  .optCols, .optCols3, .optTax, .optSplit, .optCompanyCols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .optCols, .optCols3, .optEmail, .optMandatory, .optTax, .optSplit, .optCompanyCols { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .ordSearchSplit, .ordSearchCheckGrid, .ordSearchDates { grid-template-columns: 1fr; }
}
body.is-readonly .btn-danger,
body.is-readonly [data-inv="process"],
body.is-readonly [data-inv="cancel"],
body.is-readonly [data-inv="reminder"],
body.is-readonly [data-inv="resend"] {
  opacity: .45;
  pointer-events: none;
}

.landing.trialLanding {
  place-items: start center;
  background: var(--paper);
  font-weight: 400;
  color: var(--ink);
  padding: 28px 16px 48px;
}
.trialPage {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: left;
}
.trialPageHead {
  text-align: center;
  margin-bottom: 22px;
}
.trialBrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
}
.trialBrandMark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.trialBrand strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0e7c72;
  line-height: 1.1;
}
.trialBrand span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.trialPageHead .trialTitle {
  color: #0f172a;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}
.trialPageHead h1 {
  color: #438eb9;
  font-weight: 300;
  font-size: clamp(22px, 6vw, 32px);
  margin: 8px 0 6px;
}
.trialPageHead .lede {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.trialCompanyLogo {
  display: block;
  margin: 0 auto 16px;
  max-width: min(280px, 70vw);
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.trialPage .landing-logo-img {
  margin: 12px 0 0;
  max-width: 180px;
  max-height: 168px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.trialLogoCard {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  border: 1px dashed #9aa8b8;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px 16px;
}
.trialLogoCard.is-over { border-color: var(--btn); background: #ecfdf8; }
.trialLogoCard input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.trialLogoPreviewWrap {
  flex: 0 0 120px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.trialLogoPreviewWrap img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}
.trialLogoText { display: grid; gap: 4px; text-align: left; }
.trialLogoText strong { font-size: 14px; color: #0f172a; }
.trialLogoText span { font-size: 12px; font-weight: 500; color: #64748b; }
.trialAddrBlock { display: grid; gap: 4px; }
.trialAddrBlock > label { font-size: 12px; font-weight: 700; color: #475569; }
.trialPage .cc-places { width: 100%; }
.trialPage .cc-places-map {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  border-radius: 6px;
}
.ccMapPickActions .btn {
  background: var(--btn);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.trialPage .optForm { display: grid; gap: 14px; }
.trialGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  align-items: end;
}
.trialGrid .span2 { grid-column: 1 / -1; }
.trialPage .optForm label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  align-content: end;
}
.trialPage .optForm label .trialHint {
  font-weight: 500;
  white-space: nowrap;
}
.trialPage .optForm .span2 { grid-column: 1 / -1; }
.trialPage .optForm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.trialPage .optForm select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.trialHintText {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
}
.trialLoginFoot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.trialLoginFoot a { color: #438eb9; }
.trialHint { font-weight: 500; color: #94a3b8; }
.trialAccept {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155;
  line-height: 1.45;
}
.trialAccept input {
  width: 18px !important;
  min-height: 18px !important;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
  accent-color: #0e7c72;
}
.trialAccept a { color: #0e7c72; }
.trialLegal p, .trialLegal li { font-size: 14px; line-height: 1.5; color: #334155; }
.trialLegal ul { margin: 0 0 12px; padding-left: 18px; }
.trialLegal h2 { margin-top: 8px; }
.trialActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.trialActions button,
.trialActions .trialBtn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: var(--btn);
  background-image: linear-gradient(to bottom, #14958a 0%, var(--btn) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.trialActions button:hover,
.trialActions .trialBtn:hover {
  background: var(--btn-hot);
  background-image: linear-gradient(to bottom, var(--btn) 0%, var(--btn-hot) 100%);
  color: #fff;
  text-decoration: none;
}
.trialActions a:not(.trialBtn) { color: #438eb9; font-size: 13px; }
.trialCreds {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}
@media (max-width: 640px) {
  .trialGrid { grid-template-columns: 1fr; }
}

.tourCard {
  background: #fff;
  border: 1px solid #d7e3ea;
  border-radius: 14px;
  padding: 16px 18px 14px;
  margin: 0 0 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.tourKicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0e7c72;
}
.tourCard h2 { margin: 0 0 10px; font-size: 18px; font-weight: 750; }
.tourFacts, .tourSteps { margin: 0 0 12px; padding-left: 18px; color: #334155; font-size: 14px; line-height: 1.45; }
.tourFacts li, .tourSteps li { margin: 0 0 4px; }
.tourActions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tourInline { display: inline; margin: 0; }
.tourSpot {
  outline: 2px solid #0e7c72 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(14, 124, 114, 0.18);
  border-radius: 10px;
}
.tourHelpToggle {
  background: linear-gradient(180deg, #fff8e8 0%, #fdecc8 100%);
  border-color: #e4b34a;
  color: #7a4a08;
}
.tourHelpToggle .sidebarIcon { color: #c2410c; }
.tourHelpToggle:hover {
  background: linear-gradient(180deg, #fff3d4 0%, #fbd98a 100%);
  border-color: #d97706;
  color: #7a4a08;
}
.tourHelpToggle.is-open {
  background: #f59e0b;
  border-color: #d97706;
  color: #1c1917;
}
.tourHelpToggle.is-open .sidebarIcon,
.tourHelpToggle.is-open .sidebarNavChevron { color: #1c1917; }
.tourHelpPanel {
  position: fixed;
  z-index: 80;
  width: min(360px, calc(100vw - 72px));
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 14px 14px 12px;
  border: 1px solid #ead7a2;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.16);
}
.tourHelpKicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
}
.tourHelpLead {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #57534e;
}
.tourHelpList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.tourHelpItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #1c1917;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.tourHelpItem .sidebarIcon { color: #c2410c; }
.tourHelpItem:hover,
.tourHelpItem.is-focus {
  background: #fff;
  border-color: #e4b34a;
  color: #7a4a08;
  text-decoration: none;
}
.tourHelpExplain {
  margin: 10px 0 0;
  padding: 10px 12px;
  min-height: 4.6em;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ead7a2;
  color: #44403c;
  font-size: 12px;
  line-height: 1.45;
}
.tourHelpDone { margin: 10px 0 0; }
.tourHelpDone button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #78716c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  padding: 4px 2px;
}
.tourHelpDone button:hover { color: #c2410c; }
html.nav-collapsed .tourHelpToggle {
  width: 40px;
  min-height: 36px;
  height: 36px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
  background: #fdecc8;
  border-color: #e4b34a;
  color: #7a4a08;
}
html.nav-collapsed .tourHelpToggle .sidebarIcon { color: #c2410c; }
html.nav-collapsed .tourHelpToggle.is-open {
  background: #f59e0b;
  border-color: #d97706;
  color: #1c1917;
}
html.nav-collapsed .tourHelpToggle .sidebarNavLabel { gap: 0; justify-content: center; }

.guestApp {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(900px 420px at 50% -8%, #d7f4ef 0%, transparent 70%),
    linear-gradient(180deg, #f4f8fb 0%, #e8eef5 100%);
  font-family: var(--font);
  color: var(--ink);
}
.guestBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #d5dee8;
  backdrop-filter: blur(8px);
}
.guestBrand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #16324f;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
.guestBrand:hover { color: #0f766e; text-decoration: none; }
.guestBrand img {
  max-height: 44px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.guestBack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  background: #fff;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.guestBack:hover { border-color: #0f766e; color: #0f766e; text-decoration: none; }
.guestMain {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.guestApp.is-register .guestMain,
.guestApp.is-pricing.has-quotes .guestMain,
.guestApp.is-wide .guestMain { width: min(1240px, calc(100% - 32px)); }
.guestHero {
  text-align: center;
  margin: 0 0 22px;
}
.guestHeroIco {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(165deg, #14b8a6 0%, #0f766e 100%);
}
.guestApp.is-tracking .guestHeroIco { background: linear-gradient(165deg, #6366f1 0%, #4338ca 100%); }
.guestApp.is-register .guestHeroIco { background: linear-gradient(165deg, #f59e0b 0%, #c2410c 100%); }
.guestHero h1 {
  margin: 0 0 6px;
  color: #16324f;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 4vw, 36px);
}
.guestHero p { margin: 0; color: #64748b; font-size: 15px; font-weight: 600; }
.guestPanel {
  background: #fff;
  border: 1px solid #d5dee8;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  text-align: left;
}
.guestPanel h2 { margin: 0 0 12px; font-size: 18px; }
.guestBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #14958a 0%, #0e7c72 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.guestBtn:hover { filter: brightness(1.05); color: #fff; text-decoration: none; }
.guestBtnWide { width: 100%; }
.guestLink { color: #0f766e; font-weight: 700; font-size: 13px; }
.guestActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.guestSearch label,
.guestPriceForm label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #334155;
  font-size: 13px;
}
.guestSearchRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.guestSearch input,
.guestPriceForm input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  box-sizing: border-box;
}
.guestPriceForm { display: grid; gap: 14px; }
.guestStack { display: grid; gap: 18px; }
.guestStack.has-quotes {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
}
.guestResults {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.guestResults--register { margin-top: 0; }
.guestHelp {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 18px;
  padding: 24px;
}
.guestHelp h2 { margin: 0 0 10px; color: #fff; font-size: 20px; }
.guestHelp p { margin: 0 0 12px; line-height: 1.5; color: #cbd5e1; }
.guestKicker { margin: 0 0 4px; color: #64748b; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.guestFacts { margin: 0; display: grid; gap: 10px; }
.guestFacts > div { display: grid; gap: 2px; }
.guestFacts dt { color: #64748b; font-size: 12px; font-weight: 700; }
.guestFacts dd { margin: 0; font-weight: 650; }
.guestTimeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guestTimeline li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.guestDot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}
.guestTimeline time { display: block; color: #64748b; font-size: 12px; font-weight: 700; }
.guestTimeline p { margin: 4px 0 0; }
.guestQuotes { display: grid; gap: 12px; }
.guestQuote {
  background: #fff;
  border: 1px solid #d5dee8;
  border-radius: 16px;
  padding: 12px 14px;
}
.guestQuote.is-err { opacity: 0.72; }
.guestQuotePick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.guestQuotePick span { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.guestQuotePick em { font-style: normal; font-weight: 800; color: #0f766e; }
.guestQuoteBody { margin-top: 10px; font-size: 13px; overflow: auto; }
.guestQuoteBody table { width: 100%; border-collapse: collapse; }
.guestQuoteBody td, .guestQuoteBody th { padding: 4px 6px; border-bottom: 1px solid #eef2f7; }
.guestApp.is-wide .guestHero { margin: 0 0 18px; }
.guestApp.is-wide .guestHeroIco { width: 42px; height: 42px; font-size: 16px; margin-bottom: 8px; border-radius: 12px; }
.guestApp.is-wide .guestHero h1 { font-size: clamp(22px, 3vw, 28px); }
.guestApp.is-wide .guestHero p { font-size: 13px; font-weight: 600; }
.guestPrepaid { display: grid; gap: 16px; }
.guestStops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.guestPrepaid .guestPanel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
}
.guestPrepaid .guestPanel h2 {
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
  font-size: 16px;
}
.guestPrepaid .is-from h2 { color: #0f766e; }
.guestPrepaid .is-to h2 { color: #b45309; }
.guestPrepaid label,
.guestPrepaid .guestWhen {
  display: grid;
  gap: 4px;
  font-weight: 700;
  color: #334155;
  font-size: 12px;
  min-width: 0;
}
.guestPrepaid input[type="text"],
.guestPrepaid input[type="email"],
.guestPrepaid input[type="date"],
.guestPrepaid select,
.guestPrepaid textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  box-sizing: border-box;
}
.guestPrepaid textarea { min-height: 64px; resize: vertical; }
.guestPrepaid .cc-places { min-width: 0; }
.guestPrepaid .cc-places-input { min-height: 42px; }
.guestPrepaid .cc-places-map {
  flex: 0 0 42px;
  width: 42px;
  min-height: 42px;
  height: 42px;
  border-radius: 10px;
}
.guestPair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.guestSplit { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.guestWhenRow {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.guestBy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 42px;
  padding: 0 2px 6px;
  font-weight: 600;
}
.guestBy label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: #475569; }
.guestJob .guestJobRow {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(90px, 0.7fr)) minmax(140px, 1fr);
  gap: 10px;
  align-items: end;
}
.guestEstimate {
  background: #fff;
  border: 1px solid #d5dee8;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  overflow: auto;
}
.guestOrderBtns {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.guestOrderBtns .guestBtn { min-width: 160px; }
.guestBtnGhost {
  background: #fff;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.guestPay p { margin: 0 0 10px; }
.guestPayAmt { font-size: 28px; font-weight: 800; color: #0f766e; }
.guestTerms { line-height: 1.6; }
.guestTerms p { margin: 0 0 12px; }
@media (max-width: 980px) {
  .guestStops,
  .guestJob .guestJobRow { grid-template-columns: 1fr 1fr; }
  .guestWhenRow { grid-template-columns: 1fr 1fr; }
  .guestBy { grid-column: 1 / -1; min-height: 0; padding-bottom: 0; }
}
@media (max-width: 820px) {
  .guestBar { padding: 12px 16px; }
  .guestMain { width: calc(100% - 24px); }
  .guestSearchRow,
  .guestStack.has-quotes,
  .guestStops,
  .guestJob .guestJobRow,
  .guestResults { grid-template-columns: 1fr; }
  .guestSplit,
  .guestPair,
  .guestWhenRow { grid-template-columns: 1fr; }
  .guestOrderBtns { justify-content: stretch; }
  .guestOrderBtns .guestBtn { flex: 1; }
}
