:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 11px 16px; background: #1457d9; color: white; font-weight: 700; }
button:hover { filter: brightness(.96); }
button.secondary { background: #eef3fb; color: #26364f; }
.hidden { display: none !important; }
.error { color: #b42318; min-height: 1.2em; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); background: white; padding: 36px; border-radius: 20px; box-shadow: 0 18px 45px rgba(32,46,76,.12); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #1457d9; color: white; font-weight: 900; font-size: 24px; }
h1, h2, p { margin-top: 0; }
.auth-card form, .scan-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #42526a; }
input { width: 100%; padding: 12px 13px; border: 1px solid #ccd6e5; border-radius: 10px; background: white; outline: none; }
input:focus { border-color: #1457d9; box-shadow: 0 0 0 3px rgba(20,87,217,.1); }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 24px; background: white; border-bottom: 1px solid #e4eaf2; position: sticky; top: 0; z-index: 500; }
.topbar strong { font-size: 20px; }
.topbar #org-name { color: #697991; }
.topbar-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.brand-line { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 11px; background: #f3f6fa; }
.nav-button { padding: 8px 13px; border-radius: 8px; background: transparent; color: #52647d; font-size: 13px; }
.nav-button:hover { background: #e9eef6; filter: none; }
.nav-button.active { background: white; color: #1457d9; box-shadow: 0 1px 4px rgba(33,49,80,.12); }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: #e8f0ff; color: #1457d9; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.pill.warning { background: #fff3d6; color: #8a5700; }
.layout { max-width: 1450px; margin: 0 auto; padding: 22px; display: grid; grid-template-columns: 390px 1fr; gap: 18px; }
.panel { background: white; border: 1px solid #e1e8f2; border-radius: 16px; padding: 18px; box-shadow: 0 7px 18px rgba(33,49,80,.04); }
.panel-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.panel h2 { margin-bottom: 5px; font-size: 18px; }
.panel p { color: #6b7b92; font-size: 13px; }
.coord-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result { margin-top: 16px; min-height: 142px; border-radius: 14px; padding: 18px; display: grid; align-content: center; text-align: center; border: 1px solid #dde5ef; background: #f8fafc; }
.result small { color: #728097; }
#result-main { font-size: 34px; font-weight: 900; margin: 3px 0; }
#result-detail { font-size: 13px; color: #5f6f86; white-space: pre-line; line-height: 1.45; }
.result.matched { background: #eaf8ef; border-color: #a7ddb9; }
.result.outside { background: #fff6e8; border-color: #f0c477; }
.result.ambiguous, .result.error { background: #fff0ef; border-color: #efaaa5; }
.map-panel { min-height: 560px; }
#map { height: 485px; border-radius: 12px; overflow: hidden; background: #e8eef5; }
.stats-panel { grid-column: 1 / 2; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stats-grid > div { padding: 12px; border-radius: 12px; background: #f6f8fc; display: grid; }
.stats-grid strong { font-size: 23px; }
.stats-grid span { font-size: 11px; color: #6f7d92; }
.muted { margin: 12px 0 0; }
.history-panel { grid-column: 2 / 3; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #edf1f6; text-align: left; }
th { color: #68778d; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.status { font-weight: 800; font-size: 11px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .stats-panel, .history-panel { grid-column: auto; }
  .userbox #user-email { display: none; }
  .topbar { padding: 10px 14px; align-items: flex-start; }
  .topbar-left { flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand-line { white-space: normal; }
  .main-nav { width: 100%; }
}

.pill.success { background: #e7f7ed; color: #15743b; }
.pill.danger { background: #ffefed; color: #b42318; }
.connector-info { margin: 8px 0 16px; padding: 10px 12px; border-radius: 10px; background: #f6f8fc; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.connector-info span { color: #718096; }
.connector-info strong { text-align: right; }
.demo-hint { margin: 10px 0 0 !important; line-height: 1.45; }
.demo-hint code { padding: 2px 5px; border-radius: 5px; background: #f0f4fa; color: #31435e; }
#tracking { font-size: 20px; font-weight: 800; letter-spacing: .02em; padding: 15px; }
#scan-button[disabled] { opacity: .65; cursor: wait; }
.result.loading { background: #eef5ff; border-color: #aec8f6; }
.history-panel td:nth-child(2) { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.batch-page { max-width: 1450px; margin: 0 auto; padding: 22px; }
.batch-panel { width: 100%; }
.batch-upload-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-top: 8px; }
.batch-upload-row input[type="file"] { padding: 9px; font-size: 13px; }
.batch-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.batch-workspace { margin-top: 18px; border-top: 1px solid #e7edf5; padding-top: 18px; }
.batch-headline { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.batch-headline > div:first-child { display: grid; gap: 2px; }
.batch-headline #batch-id { font-size: 11px; }
.batch-progress-wrap { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 16px 0 12px; }
.batch-progress { height: 12px; background: #edf2f8; border-radius: 999px; overflow: hidden; }
.batch-progress span { display: block; width: 0; height: 100%; background: #1457d9; transition: width .2s ease; }
.batch-progress-wrap strong { min-width: 84px; text-align: right; font-size: 13px; }
.batch-stats-grid { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 8px; }
.batch-stats-grid > div { background: #f6f8fc; padding: 10px 11px; border-radius: 10px; display: grid; }
.batch-stats-grid strong { font-size: 20px; }
.batch-stats-grid span { font-size: 10px; color: #6f7d92; text-transform: uppercase; letter-spacing: .03em; }
.batch-table-wrap { margin-top: 12px; max-height: 360px; overflow: auto; border: 1px solid #edf1f6; border-radius: 10px; }
.batch-table-wrap thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.batch-table-wrap td:nth-child(2) { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-table-wrap td:nth-child(6) { max-width: 280px; color: #b42318; }
.batch-history { margin-top: 20px; border-top: 1px solid #e7edf5; padding-top: 16px; }
.panel-title.compact h3 { margin: 0 0 4px; font-size: 15px; }
.batch-list { display: grid; gap: 8px; }
.batch-list-item { width: 100%; display: grid; grid-template-columns: minmax(180px, 1.4fr) 110px 1fr auto; align-items: center; gap: 12px; text-align: left; background: #f8fafc; color: #26364f; border: 1px solid #e4eaf2; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.batch-list-item:hover { background: #f1f5fb; filter: none; }
.batch-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-list-item small { color: #718096; }
.batch-list-item .mini-progress { height: 7px; background: #e5ebf3; border-radius: 999px; overflow: hidden; }
.batch-list-item .mini-progress span { display: block; height: 100%; background: #1457d9; }
.batch-status { font-size: 10px; font-weight: 800; }
#batch-start[disabled], #batch-pause[disabled], #batch-retry[disabled], #create-batch[disabled] { opacity: .55; cursor: not-allowed; }

@media (max-width: 1100px) {
  .batch-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .batch-list-item { grid-template-columns: 1fr 100px; }
  .batch-list-item .mini-progress { grid-column: 1 / 3; }
}
@media (max-width: 900px) {
  .batch-upload-row { grid-template-columns: 1fr; }
  .batch-headline { align-items: flex-start; flex-direction: column; }
  .batch-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.batch-table-wrap td small.muted { display: block; margin: 3px 0 0; color: #738096; font-size: 10px; white-space: normal; }

.map-status {
  height: 100%;
  min-height: 485px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: #5f6f86;
  background: #f6f8fc;
  font-size: 13px;
  line-height: 1.5;
}

/* V4.3 · historial operativo */
select { width: 100%; padding: 12px 13px; border: 1px solid #ccd6e5; border-radius: 10px; background: white; outline: none; font: inherit; color: #172033; }
select:focus { border-color: #1457d9; box-shadow: 0 0 0 3px rgba(20,87,217,.1); }
.history-panel { grid-column: 1 / 3; }
.history-filters { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(190px,1fr) minmax(190px,1fr) minmax(180px,1fr); gap: 10px; align-items: end; margin: 14px 0; padding: 14px; border-radius: 12px; background: #f7f9fc; }
.history-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.history-summary { display: grid; grid-template-columns: repeat(5, minmax(100px,1fr)); gap: 8px; margin-bottom: 12px; }
.history-summary > div { padding: 10px 12px; border-radius: 10px; background: #f6f8fc; display: grid; }
.history-summary strong { font-size: 20px; }
.history-summary span { color: #6f7d92; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.history-panel td:nth-child(2) { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-panel td:nth-child(7) { max-width: 280px; color: #5f6f86; }

.history-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-weight: 700; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.history-chip-node { background: #eef2f7; color: #334155; border-color: #dbe3ee; }
.history-chip-route { background: #e8f0ff; color: #1646a3; border-color: #bfd2ff; }
.history-chip-stop { min-width: 34px; background: #fff2cc; color: #7a4d00; border-color: #f2d675; font-size: 15px; }

.history-pagination { min-height: 38px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; padding-top: 14px; }
.history-pagination button { min-width: 36px; padding: 7px 10px; border-radius: 8px; background: #eef3fb; color: #26364f; }
.history-pagination button.active { background: #1457d9; color: white; }
.history-pagination button[disabled] { opacity: .45; cursor: default; }
.history-pagination span { padding: 0 3px; color: #718096; }
@media (max-width: 1050px) {
  .history-panel { grid-column: auto; }
  .history-filters { grid-template-columns: 1fr 1fr; }
  .history-summary { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 650px) {
  .history-filters { grid-template-columns: 1fr; }
  .history-summary { grid-template-columns: repeat(2,1fr); }
}

/* V4.4 · navegación por rol, consulta, cola rápida y administración */
.single-page { max-width: 1450px; margin: 0 auto; padding: 22px; }
.narrow-page { max-width: 720px; }
.stack-form { display: grid; gap: 14px; margin-top: 16px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #f3f6fa; border-radius: 11px; padding: 4px; margin: 14px 0 10px; }
.mode-button { background: transparent; color: #52647d; border-radius: 8px; }
.mode-button:hover { background: #e9eef6; filter: none; }
.mode-button.active { background: white; color: #1457d9; box-shadow: 0 1px 4px rgba(33,49,80,.12); }
.quick-scan-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 18px 0 8px; }
.quick-scan-form input { font-size: 22px; font-weight: 800; letter-spacing: .02em; padding: 16px; }
.queue-summary { display: grid; grid-template-columns: repeat(5,minmax(110px,1fr)); gap: 9px; margin: 16px 0; }
.queue-summary > div { display: grid; padding: 12px; border-radius: 12px; background: #f6f8fc; }
.queue-summary strong { font-size: 22px; }
.queue-summary span { color: #6f7d92; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.temporary-card { margin: 16px 0; padding: 15px; border: 1px solid #b9d0f5; background: #f1f6ff; border-radius: 12px; display: grid; gap: 7px; }
.temporary-card code { font-size: 20px; font-weight: 800; padding: 10px; border-radius: 8px; background: white; }
.temporary-card small { color: #63738c; }
.billing-current { margin: 16px 0; padding: 16px; border-radius: 14px; background: #f6f8fc; display: grid; gap: 3px; }
.billing-current strong { font-size: 30px; }
.billing-current small { color: #6f7d92; }
.billing-detail { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e7edf5; }
.billing-explanation { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.billing-explanation span { background: #f6f8fc; padding: 7px 10px; border-radius: 8px; font-size: 12px; }
.connection-card { margin-top: 18px; padding: 18px; border-radius: 14px; background: #f6f8fc; display: grid; gap: 8px; }
.connection-card strong { font-size: 18px; }
.connection-card small { color: #6f7d92; }
#password-gate-view .panel { margin-top: 50px; }
.platform-only-select { max-width: 300px; }
@media (max-width: 1100px) {
  .topbar { align-items: flex-start; }
  .topbar-left { flex-direction: column; align-items: flex-start; }
  .main-nav { flex-wrap: wrap; }
  .queue-summary { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 650px) {
  .quick-scan-form { grid-template-columns: 1fr; }
  .queue-summary { grid-template-columns: repeat(2,1fr); }
}

/* V4.4 · badges de estado reutilizables */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge-success { background: #e7f7ed; border-color: #b9e5c8; color: #15743b; }
.status-badge-info { background: #eaf2ff; border-color: #bfd3f7; color: #1457d9; }
.status-badge-neutral { background: #f0f3f7; border-color: #dce3ec; color: #5a687b; }
.status-badge-warning { background: #fff3d6; border-color: #efd79d; color: #8a5700; }
.status-badge-danger { background: #ffefed; border-color: #f2c2bc; color: #b42318; }

/* V5 · resolución manual, ruteo y facturación auditable */
.nav-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff3d6; color: #8a5700; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
.manual-filters { display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)) auto; gap: 10px; align-items: end; margin: 14px 0; padding: 14px; background: #f7f9fc; border-radius: 12px; }
.manual-workspace { display: grid; grid-template-columns: minmax(430px,.85fr) minmax(520px,1.15fr); gap: 16px; }
.manual-list .table-wrap { max-height: 620px; overflow: auto; }
.manual-list tr { cursor: pointer; }
.manual-list tr:hover, .manual-list tr.selected { background: #f0f5ff; }
.manual-map { min-height: 430px; border-radius: 14px; overflow: hidden; background: #f6f8fc; }
.manual-detail { margin-top: 12px; padding: 14px; border: 1px solid #e4eaf2; border-radius: 12px; background: #fff; }
.manual-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.manual-zone-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.manual-zone-buttons button { padding: 8px 10px; }
.manual-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 10px 0; }
.routing-controls { display: grid; grid-template-columns: 180px minmax(220px,1fr) 130px auto; gap: 10px; align-items: end; margin: 14px 0; }
.routing-warning { padding: 14px 16px; border: 1px solid #efc2bd; border-radius: 12px; background: #fff0ee; color: #9d251b; margin: 12px 0; font-weight: 650; }
.routes-list { display: grid; gap: 9px; margin-top: 14px; }
.route-card { padding: 12px 14px; border: 1px solid #e4eaf2; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8fafc; }
.resolver-drawer { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 1fr minmax(520px,42vw); }
.resolver-drawer.hidden { display: none; }
.resolver-backdrop { background: rgba(12,25,46,.34); backdrop-filter: blur(1px); }
.resolver-panel { background: #fff; padding: 20px; overflow: auto; box-shadow: -18px 0 45px rgba(29,43,71,.18); }
.resolver-map { min-height: 360px; border-radius: 14px; overflow: hidden; background: #f6f8fc; margin: 12px 0; }
.billing-filter-grid { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 8px; margin: 14px 0; padding: 12px; background: #f7f9fc; border-radius: 12px; }
.billing-detail-actions { display:flex;flex-wrap:wrap;gap:8px;align-items:center; }
@media (max-width: 1000px) { .manual-workspace { grid-template-columns: 1fr; } .manual-filters,.routing-controls,.billing-filter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .manual-filters,.routing-controls,.billing-filter-grid { grid-template-columns: 1fr; } .resolver-drawer { grid-template-columns: 1fr; } .resolver-backdrop { display:none; } }
.button-link { display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:9px;background:#1457d9;color:#fff;text-decoration:none;font-size:12px;font-weight:750; }
.button-link:hover { filter:brightness(.96); }

.route-monitor-dialog{width:min(980px,94vw);max-height:92vh;border:0;border-radius:16px;padding:0;background:var(--panel,#fff)}
.route-monitor-dialog::backdrop{background:rgba(15,23,42,.55)}
.route-monitor-shell{padding:18px;display:grid;gap:14px}
.route-monitor-map{height:340px;border-radius:14px;overflow:hidden;background:#eef2f7}
.route-monitor-stops{max-height:280px;overflow:auto;border:1px solid #e5e7eb;border-radius:12px}
.route-monitor-stop{display:grid;grid-template-columns:minmax(180px,1fr) minmax(130px,.7fr) minmax(240px,1.6fr);gap:10px;padding:10px 12px;border-bottom:1px solid #eef2f7;align-items:center}
.route-monitor-stop:last-child{border-bottom:0}
.route-monitor-stop small{color:#667085}
@media(max-width:720px){.route-monitor-map{height:280px}.route-monitor-stop{grid-template-columns:1fr}.route-monitor-dialog{width:96vw}}

/* V5.3 · UX de rutas, modales y autocomplete */
.app-dialog{border:0;border-radius:18px;width:min(520px,calc(100% - 28px));padding:0;box-shadow:0 24px 70px rgba(15,23,42,.28)}
.app-dialog::backdrop{background:rgba(15,23,42,.48)}
.app-dialog-shell{padding:20px;display:grid;gap:14px}
.app-dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.app-dialog-head h3{margin:0 0 4px}.app-dialog-head p{margin:0}.danger-button{background:#b42318!important}
.app-toast{position:fixed;right:22px;bottom:22px;z-index:2500;max-width:min(420px,calc(100vw - 44px));padding:12px 15px;border-radius:12px;background:#e7f7ed;color:#15743b;border:1px solid #b9e5c8;box-shadow:0 14px 35px rgba(15,23,42,.14);font-weight:750}
.app-toast.error{background:#ffefed;color:#b42318;border-color:#f2c2bc}.app-toast.warning{background:#fff3d6;color:#8a5700;border-color:#efd79d}
.button-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;display:inline-block;margin-left:7px;vertical-align:-2px;animation:futunet-spin .8s linear infinite}
@keyframes futunet-spin{to{transform:rotate(360deg)}}
button.loading{cursor:wait;opacity:.85}
.manual-autocomplete-host{margin:8px 0 6px;min-height:44px}.manual-autocomplete-host gmp-place-autocomplete{width:100%}
.feedback-success{color:#15743b!important}.feedback-error{color:#b42318!important;font-weight:700}
.routing-controls{grid-template-columns:160px 140px minmax(220px,1fr) 130px auto}
.route-card.improved{padding:16px;align-items:flex-start}.route-card-main{display:grid;gap:8px;min-width:0;flex:1}.route-card-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.route-metrics{display:flex;flex-wrap:wrap;gap:8px}.route-metrics span{padding:6px 9px;border-radius:9px;background:#fff;border:1px solid #e4eaf2;font-size:12px}.route-metrics strong{margin-right:3px}
.empty-state{padding:22px;border:1px dashed #d7deea;border-radius:12px;background:#fafbfd;text-align:center;color:#65758b}
.route-monitor-stop .status-badge{justify-self:start}.route-monitor-stop button{justify-self:start}
@media(max-width:1000px){.routing-controls{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.routing-controls{grid-template-columns:1fr}.app-toast{left:14px;right:14px;bottom:14px;max-width:none}.route-card.improved{display:grid}}
.routing-warehouse-actions{margin-top:0;align-self:end}

/* V5.3.3 · Enrutar: distribución compacta y resumen de pendientes */
#routing-form.routing-controls{
  grid-template-columns:150px 120px minmax(150px,.72fr) minmax(300px,1.45fr) 100px auto;
}
.routing-warehouse-actions{grid-column:4 / span 2;display:flex;gap:8px;align-items:center;justify-content:flex-start;margin-top:-2px}
.routing-warehouse-actions button{padding:8px 10px;white-space:nowrap}
.routing-pending-overview{display:block;margin:12px 0 8px;padding:12px 14px;border:1px solid #e4eaf2;border-radius:14px;background:#f8fafc}
.routing-pending-overview:empty{display:none}
.routing-pending-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.routing-pending-head>div{display:flex;flex-direction:column;gap:2px}
.routing-pending-overview .pending-total{font-weight:780}
.routing-pending-subtitle{font-size:11px;color:#6d7b90}
.routing-configure-button{white-space:nowrap;padding:7px 11px}
.routing-node-chips{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.routing-node-chip{border:1px solid #d7e0eb;background:#fff;color:#25354d;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer}
.routing-node-chip:hover{background:#eef4ff;border-color:#b9cdf2}
.routing-node-chip.active{background:#eaf2ff;border-color:#9cbcf3;color:#1457d9}
.routing-node-chip.zero{opacity:.58}
.routing-node-chip.unconfigured{border-style:dashed;color:#69778b}
.routing-node-eligibility{margin:6px 2px 10px}
.dialog-checkbox-field{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-weight:650}
.dialog-checkbox-field input[type=checkbox]{width:18px;height:18px;margin:0;flex:0 0 auto}
@media(max-width:1100px){#routing-form.routing-controls{grid-template-columns:1fr 1fr 1fr}.routing-warehouse-actions{grid-column:auto}}
@media(max-width:650px){#routing-form.routing-controls{grid-template-columns:1fr}.routing-warehouse-actions{grid-column:auto;flex-wrap:wrap}}

.sort-resolve-action{margin-top:10px}


/* V5.3.5 route map states */
.route-map-progress{font-weight:800}.route-map-legend{display:flex;gap:12px;flex-wrap:wrap;align-items:center;color:#667085;font-size:11px;font-weight:800}.route-map-legend span{display:inline-flex;align-items:center;gap:5px}.route-legend-dot{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;font-style:normal;font-size:10px;font-weight:1000;border:2px solid #fff;box-shadow:0 0 0 1px #d0d5dd;background:#667085;color:#fff}.route-legend-delivered{background:#16a34a}.route-legend-failed{background:#dc2626}.route-legend-retry{background:#d97706}.route-legend-next{background:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.18)}

.route-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.route-map-toolbar .route-map-progress{min-width:0;flex:1}.route-map-toolbar button{white-space:nowrap}
