/* Tres Olivos · Logística — escritorio
   Actualización visual únicamente. No cambia formularios, acciones ni reglas. */
@media screen and (min-width: 901px) {
  :root {
    --ui-olive: #849944;
    --ui-olive-dark: #53652c;
    --ui-olive-wash: #eef2df;
    --ui-slate: #343b50;
    --ui-ink: #29364a;
    --ui-muted: #738094;
    --ui-paper: #f3f5f8;
    --ui-line: #e0e5e8;
    --ui-shadow: 0 8px 24px rgba(35, 47, 62, .045);
  }

  body.admin-workspace {
    background: var(--ui-paper);
    color: var(--ui-ink);
  }

  body.admin-workspace .topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    min-height: 82px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--ui-line);
    box-shadow: 0 3px 14px rgba(35,47,62,.035);
    backdrop-filter: blur(10px);
  }

  body.admin-workspace .shell {
    width: calc(100% - 254px);
    max-width: 1580px;
    margin: 0 0 0 238px;
    padding: 28px 30px 48px;
  }

  body.admin-workspace .admin-navigation {
    top: 98px;
    left: 18px;
    bottom: 18px;
    width: 204px;
    padding: 18px 12px;
    color: #fff;
    background: var(--ui-slate);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(30,39,55,.15);
  }

  body.admin-workspace .nav-kicker { color: #bdc5d1; }
  body.admin-workspace .nav-links button {
    min-height: 44px;
    color: #d1d7e0;
    border-radius: 10px;
    transition: background .16s ease, color .16s ease, transform .16s ease;
  }
  body.admin-workspace .nav-links button:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
    transform: translateX(2px);
  }
  body.admin-workspace .nav-links button.active {
    color: #fff;
    background: var(--ui-olive-dark);
    box-shadow: inset 3px 0 #a8ba66;
  }
  body.admin-workspace .nav-foot {
    color: #d4dfac;
    border-color: rgba(255,255,255,.16);
  }
  body.admin-workspace .nav-foot small { color: #c0c7d1; }

  body.admin-workspace .heading-row { margin: 0 0 20px; }
  body.admin-workspace .heading-row h1 {
    color: var(--ui-slate);
    font-size: clamp(27px, 2.2vw, 36px);
    letter-spacing: -.045em;
  }
  body.admin-workspace .heading-row p,
  body.admin-workspace .muted { color: var(--ui-muted); }
  body.admin-workspace .eyebrow { color: var(--ui-olive-dark); }

  body.admin-workspace .date-toolbar,
  body.admin-workspace .panel,
  body.admin-workspace .delivery-map-dashboard {
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ui-shadow);
  }
  body.admin-workspace .date-toolbar { padding: 18px 20px; }
  body.admin-workspace .panel { padding: 20px; }
  body.admin-workspace .panel h2,
  body.admin-workspace .delivery-map-dashboard h2 { color: var(--ui-slate); }

  body.admin-workspace input,
  body.admin-workspace select,
  body.admin-workspace textarea {
    border-color: #d8dfe4;
    border-radius: 10px;
    background-color: #fcfdfd;
    color: var(--ui-ink);
  }
  body.admin-workspace input:focus,
  body.admin-workspace select:focus,
  body.admin-workspace textarea:focus {
    border-color: #98a965;
    outline: 3px solid rgba(132,153,68,.16);
    outline-offset: 1px;
  }
  body.admin-workspace .button { border-radius: 10px; font-weight: 650; }
  body.admin-workspace .button-primary {
    color: #fff;
    background: var(--ui-olive-dark);
    border-color: var(--ui-olive-dark);
  }
  body.admin-workspace .button-primary:hover { background: #435322; }
  body.admin-workspace .button-secondary {
    color: #46562b;
    background: #f1f4e6;
    border-color: #dce4c4;
  }
  body.admin-workspace .button-quiet {
    color: var(--ui-slate);
    background: #fff;
    border-color: var(--ui-line);
  }

  /* Dashboard */
  body.admin-workspace .dash-heading { margin-bottom: 18px; }
  body.admin-workspace .dash-heading h2 { color: var(--ui-slate); font-size: 22px; }
  body.admin-workspace .dash-metrics { gap: 12px; margin-bottom: 22px; }
  body.admin-workspace .dash-metric {
    padding: 18px;
    border: 1px solid var(--ui-line);
    border-radius: 15px;
    box-shadow: var(--ui-shadow);
  }
  body.admin-workspace .dash-metric > strong { color: var(--ui-slate); }
  body.admin-workspace .dash-icon { color: var(--ui-olive-dark); background: var(--ui-olive-wash); }
  body.admin-workspace .dash-route,
  body.admin-workspace .dash-block,
  body.admin-workspace .dash-vehicle {
    border-color: var(--ui-line);
    border-radius: 15px;
    box-shadow: var(--ui-shadow);
  }
  body.admin-workspace .dash-route { padding: 18px; }
  body.admin-workspace .dash-route h3 { color: var(--ui-slate); }
  body.admin-workspace .dash-statistics,
  body.admin-workspace .dash-bottom,
  body.admin-workspace .delivery-map-dashboard {
    border-radius: 15px;
  }
  body.admin-workspace .dash-statistics { margin: 0 0 22px; }
  body.admin-workspace .dash-statistics > summary { min-height: 68px; }
  body.admin-workspace .dash-statistics-toggle { color: var(--ui-olive-dark); }
  body.admin-workspace .delivery-map-dashboard { padding: 18px; }

  /* Rutas: conserva los selectores y acciones actuales; ordena su presentación. */
  body.admin-workspace .route-tool-tabs {
    position: sticky;
    top: 94px;
    z-index: 6;
    padding: 8px;
    margin: 0 0 16px;
    border: 1px solid var(--ui-line);
    border-radius: 13px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--ui-shadow);
  }
  body.admin-workspace .route-tool-tabs button { border-radius: 9px; }
  body.admin-workspace .route-tool-tabs button.active {
    color: #fff;
    background: var(--ui-slate);
    border-color: var(--ui-slate);
  }
  body.admin-workspace .planner-panel,
  body.admin-workspace .route-assignment-panel { margin-bottom: 16px; }
  body.admin-workspace .planner-toolbar,
  body.admin-workspace .route-assignment-panel .extra-form {
    gap: 12px;
    align-items: end;
  }
  body.admin-workspace .planner-stops {
    max-height: 48vh;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #a8b47b #eef1e5;
  }
  body.admin-workspace #expressStopChoices {
    max-height: 42vh;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
  }

  /* Despachos: la lista queda en un panel con desplazamiento propio. */
  body.admin-workspace #dispatchOperations .metrics { gap: 12px; margin: 16px 0; }
  body.admin-workspace #dispatchOperations .metric {
    padding: 16px 18px;
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--ui-shadow);
  }
  body.admin-workspace #dispatchOperations .metric strong { color: var(--ui-slate); }
  body.admin-workspace #dispatchOperations .shift-strip { gap: 10px; }
  body.admin-workspace #dispatchOperations .shift-strip > div {
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background: #fff;
  }
  body.admin-workspace .add-panel,
  body.admin-workspace .list-panel { margin-bottom: 16px; }
  body.admin-workspace .list-panel {
    display: flex;
    flex-direction: column;
    height: clamp(430px, 66vh, 760px);
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }
  body.admin-workspace .list-panel > .list-heading {
    flex: 0 0 auto;
    padding: 18px 20px 14px;
    margin: 0;
    border-bottom: 1px solid #edf0f2;
    background: #fbfcfd;
  }
  body.admin-workspace .list-panel .filters { flex-wrap: wrap; }
  body.admin-workspace #adminList {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 6px 12px 12px;
    scrollbar-color: #a8b47b #f1f3ec;
    scrollbar-width: thin;
  }
  body.admin-workspace #adminList::-webkit-scrollbar,
  body.admin-workspace #historyList::-webkit-scrollbar,
  body.admin-workspace #fleetHistory::-webkit-scrollbar { width: 10px; }
  body.admin-workspace #adminList::-webkit-scrollbar-thumb,
  body.admin-workspace #historyList::-webkit-scrollbar-thumb,
  body.admin-workspace #fleetHistory::-webkit-scrollbar-thumb {
    border: 2px solid #f1f3ec;
    border-radius: 10px;
    background: #a8b47b;
  }
  body.admin-workspace #adminList .dispatch-card,
  body.admin-workspace #historyList .dispatch-card {
    border-color: var(--ui-line);
    border-radius: 12px;
    box-shadow: 0 2px 9px rgba(35,47,62,.035);
  }
  body.admin-workspace #emptyAdmin { flex: 1 1 auto; }

  /* Mapa e Historial */
  body.admin-workspace .delivery-map-page { padding: 20px; }
  body.admin-workspace .delivery-map-filters,
  body.admin-workspace .history-filters { gap: 12px; }
  body.admin-workspace .delivery-map-canvas { border-radius: 14px; }
  body.admin-workspace .delivery-map-side { border-radius: 14px; }
  body.admin-workspace .history-panel { padding: 0 0 18px; overflow: hidden; }
  body.admin-workspace .history-panel > .list-heading {
    padding: 20px 22px;
    border-bottom: 1px solid var(--ui-line);
    background: linear-gradient(120deg,#fff,#f8faf7);
  }
  body.admin-workspace .history-filters { padding: 0 22px; }
  body.admin-workspace #historyOverview { margin: 0 22px 12px; }
  body.admin-workspace #historySummary { margin: 0 22px 12px; }
  body.admin-workspace #historyList {
    max-height: 56vh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 2px 22px 8px;
    scrollbar-color: #a8b47b #f1f3ec;
    scrollbar-width: thin;
  }
  body.admin-workspace .report-toolbar { margin: 14px 22px; border-radius: 12px; }
  body.admin-workspace .history-mileage-panel { margin: 12px 22px 0; }

  /* Vehículos y cuentas */
  body.admin-workspace #fleetAdmin { padding: 20px; }
  body.admin-workspace #fleetAdmin > summary {
    padding: 8px 0 14px;
    color: var(--ui-slate);
    font-size: 20px;
  }
  body.admin-workspace #fleetHistory {
    max-height: 48vh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px 10px 8px 2px;
    border-top: 1px solid var(--ui-line);
    border-bottom: 1px solid var(--ui-line);
    scrollbar-color: #a8b47b #f1f3ec;
    scrollbar-width: thin;
  }
  body.admin-workspace .fleet-card,
  body.admin-workspace .fleet-history-entry,
  body.admin-workspace .user-card {
    border-color: var(--ui-line);
    border-radius: 13px;
    box-shadow: 0 3px 11px rgba(35,47,62,.035);
  }
  body.admin-workspace .fleet-card h3,
  body.admin-workspace .fleet-history-title strong { color: var(--ui-slate); }
  body.admin-workspace .users-panel { padding: 0 0 20px; }
  body.admin-workspace .users-panel > .list-heading {
    padding: 20px 22px;
    border-bottom: 1px solid var(--ui-line);
    background: linear-gradient(120deg,#fff,#f8faf7);
  }
  body.admin-workspace .user-form { padding: 20px 22px; }

  body.admin-workspace :focus-visible { outline-color: var(--ui-olive); }
}

/* Rediseño fiel a las referencias aprobadas · v2 escritorio */
@media screen and (min-width: 901px) {
  :root {
    --brand-navy: #30384d;
    --brand-olive: #81963d;
    --brand-olive-dark: #53652c;
    --brand-bg: #f1f3f7;
    --brand-border: #dfe3e9;
    --brand-text: #29344a;
  }
  body.admin-workspace { background:var(--brand-bg); color:var(--brand-text); }
  body.admin-workspace .topbar {
    min-height:76px; height:76px; padding:0 28px 0 24px;
    background:#fff; border-bottom:1px solid var(--brand-border);
    box-shadow:0 2px 12px rgba(35,45,65,.05); z-index:20;
  }
  .brand-logo { width:190px; max-height:54px; object-fit:contain; object-position:left center; }
  .top-actions { gap:12px; }
  .connection { padding:8px 12px; border-radius:999px; background:#f3f5e9; color:#52612f; }
  .admin-navigation {
    top:76px; left:0; bottom:0; width:228px; border:0; border-radius:0;
    padding:24px 13px 18px; background:var(--brand-navy); color:#f8f9fc;
    box-shadow:5px 0 22px rgba(35,45,65,.12); z-index:10;
  }
  .nav-kicker { color:#b9c0d0; padding-left:13px; }
  .nav-links { gap:7px; }
  .nav-links button { min-height:47px; color:#d3d7e1; border-radius:10px; padding:12px 13px; }
  .nav-links button:hover { color:#fff; background:#414a62; }
  .nav-links button.active { color:#fff; background:var(--brand-olive-dark); box-shadow:inset 3px 0 #a6bd52; }
  .nav-foot { color:#d8dfbb; border-color:#525a6d; }
  .nav-foot small { color:#b9c0d0; }
  body.admin-workspace .shell {
    width:calc(100% - 228px); max-width:none; margin:0 0 0 228px;
    padding:30px clamp(24px,2.3vw,42px) 48px;
  }
  .heading-row { align-items:center; margin-bottom:22px; }
  .heading-row h1 { color:var(--brand-navy); font-size:35px; letter-spacing:-.045em; }
  .heading-row .eyebrow { color:var(--brand-olive-dark); }
  .panel, .dash-metric, .dash-route, .dash-block, .dash-vehicles article {
    border-color:var(--brand-border); border-radius:14px;
    box-shadow:0 5px 18px rgba(35,45,65,.045);
  }
  .button-primary { background:var(--brand-olive-dark); }
  .button-primary:hover { background:#435324; }
  .button-secondary { color:var(--brand-olive-dark); background:#f0f3e4; border-color:#dce3c6; }
  .button-quiet { border-color:#d9dee7; }
  .date-toolbar { padding:17px 20px; border:1px solid var(--brand-border); }

  /* Dashboard: cinco indicadores, recorridos en filas y estadísticas plegables. */
  .dash-heading { align-items:center; margin:0 0 18px; }
  .dash-heading h2 { color:var(--brand-navy); font-size:22px; }
  .dash-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
  .dash-metric { min-height:142px; padding:18px 19px; }
  .dash-metric>div>span:first-child { color:#66728a; font-size:12px; }
  .dash-metric>strong { color:var(--brand-navy); font-size:36px; }
  .dash-icon { background:#f0f3e4; color:var(--brand-olive-dark); border-radius:11px; }
  .dash-layout { grid-template-columns:minmax(0,1.7fr) minmax(270px,.8fr); gap:20px; }
  .dash-routes { grid-template-columns:minmax(0,1fr); gap:10px; }
  .dash-route { display:grid; grid-template-columns:minmax(135px,1fr) minmax(175px,1.15fr) minmax(190px,1.55fr) minmax(150px,.8fr); align-items:center; gap:14px; padding:16px 18px; }
  .dash-route-head { align-items:center; margin:0; }
  .dash-route-head h3 { margin:3px 0 0; color:var(--brand-navy); font-size:18px; }
  .dash-route-person { margin:0; }
  .dash-progress-label { margin:0 0 6px; }
  .dash-progress { margin:0; }
  .dash-route-footer { justify-content:flex-end; gap:10px; }
  .dash-route-footer>span { display:none; }
  .dash-statistics { margin-top:20px; }
  .dash-statistics>summary { border:1px solid var(--brand-border); border-radius:13px; padding:17px 19px; background:#fff; }

  /* Despachos: conserva los filtros y acciones actuales; la lista tiene scroll propio. */
  #dispatchOperations { min-width:0; }
  .list-panel { display:flex; flex-direction:column; max-height:min(660px,calc(100vh - 330px)); min-height:390px; }
  .list-heading { position:sticky; top:0; z-index:2; flex:0 0 auto; background:#fff; border-bottom:1px solid var(--brand-border); }
  .dispatch-list { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
  .dispatch-card { grid-template-columns:minmax(230px,1.6fr) minmax(130px,.8fr) minmax(175px,.85fr) auto; gap:16px; padding:17px 20px; }
  .dispatch-card:hover { background:#f9fafc; }
  .dispatch-name { color:var(--brand-navy); }
  .status-pill { padding:7px 12px; font-size:11px; }
  .planner-panel, .route-assignment-panel { padding:22px; }
  .planner-toolbar { border-radius:12px; background:#f5f7f4; padding:14px; }
  .planner-hint { border-left:3px solid #dfb149; border-radius:0 9px 9px 0; background:#fffaf0; padding:11px 14px; }

  /* Historial: resumen real, filtros compactos y recorridos dentro de un panel scrolleable. */
  #historyView { display:flex; flex-direction:column; max-height:calc(100vh - 150px); min-height:650px; overflow:hidden; }
  #historyView>.list-heading { order:0; flex:0 0 auto; }
  #historyOverview { order:1; flex:0 0 auto; }
  .history-filters { order:2; flex:0 0 auto; grid-template-columns:repeat(5,minmax(120px,1fr)) auto; gap:9px; margin:12px 22px; }
  #historySummary { order:3; flex:0 0 auto; margin:0 22px 9px; font-size:11px; }
  .report-toolbar { order:5; flex:0 0 auto; }
  #historyList { order:4; flex:1 1 auto; min-height:180px; max-height:none; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:0 2px 4px; }
  #historyLoadMore, #emptyHistory { order:6; flex:0 0 auto; }
  .history-mileage-panel { order:7; flex:0 0 auto; }
  .history-overview-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 22px; }
  .history-overview-card { min-height:76px; padding:13px 15px; border:1px solid var(--brand-border); border-radius:12px; background:#fbfcfa; }
  .history-overview-card span { color:#65718a; font-size:11px; }
  .history-overview-card strong { color:var(--brand-navy); font-size:24px; }
  .history-overview-routes { margin:10px 22px 0; border:1px solid var(--brand-border); border-radius:10px; }
  .history-overview-routes>summary { padding:10px 13px; }
  .history-overview-routes table { width:100%; }
  .history-panel>.list-heading h2 { color:var(--brand-navy); font-size:23px; }
  .history-group { border:1px solid var(--brand-border); border-radius:11px; margin:5px 8px; overflow:hidden; }
  .history-group>summary { position:sticky; top:0; background:#f7f9f6; padding:13px 15px; }
  .history-group[open]>summary { background:#eef2df; }
  .history-card { background:white; border-top:1px solid #edf0f3; }
  .report-toolbar { grid-template-columns:minmax(220px,1fr) minmax(145px,.45fr) minmax(190px,.55fr) auto; margin-top:12px; }

  /* Vehículos, mapa y usuarios comparten jerarquía visual y paneles consistentes. */
  #fleetAdmin { padding:22px; }
  #fleetAdmin>summary { padding:0 0 15px; color:var(--brand-navy); font-size:22px; }
  .fleet-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .fleet-card { border-color:var(--brand-border); border-radius:13px; background:#fff; padding:18px; }
  .fleet-filters { grid-template-columns:minmax(180px,.6fr) minmax(180px,.6fr) auto; padding:13px; border-radius:12px; background:#f5f7f4; }
  #fleetHistory { max-height:390px; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding-right:5px; }
  .fleet-history-entry { border:1px solid var(--brand-border); border-radius:11px; padding:13px 15px; margin:7px 0; }
  .delivery-map-layout { min-height:600px; }
  .delivery-map-canvas { min-height:600px; border-radius:14px; }
  .delivery-map-side { max-height:600px; overflow-y:auto; }
  .users-panel>.list-heading { background:#fff; }
  .user-form { gap:14px; padding:20px 24px; background:#f8f9f7; }
  .user-card { border-radius:12px; }
}

@media screen and (min-width:901px) and (max-width:1250px) {
  .dash-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .dash-route { grid-template-columns:1fr 1fr; }
  .history-filters { grid-template-columns:repeat(3,minmax(120px,1fr)); }
}

/* Despachos con la estructura de la referencia aprobada. */
@media screen and (min-width:901px) {
  body.admin-workspace:has(#dispatchOperations:not(.hidden)) .date-toolbar { display:none; }
  #dispatchOperations { display:flex; flex-direction:column; }
  #dispatchOperations>.metrics { order:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:0 0 14px; }
  #dispatchOperations>.metrics .metric { min-height:112px; display:flex; flex-direction:column; justify-content:center; padding:18px 22px; }
  #dispatchOperations>.metrics .metric span { color:#4e5b72; font-size:13px; order:2; }
  #dispatchOperations>.metrics .metric strong { color:#29344a; font-size:34px; line-height:1.15; margin:0 0 5px; order:1; }
  #dispatchOperations>.metrics .metric small { display:none; }
  #dispatchOperations .dispatch-review-note { order:4; color:#7b6b42; font-size:11px; margin:8px 4px; }
  #dispatchOperations .shift-strip { display:none; }
  #dispatchOperations .add-panel { order:3; margin:12px 0 0; }
  #dispatchOperations .list-panel { order:2; max-height:calc(100vh - 265px); min-height:440px; margin:0; overflow:hidden; }
  #dispatchOperations .list-panel>.list-heading { padding:15px 18px 8px; border:0; }
  #dispatchOperations .list-panel>.list-heading h2 { font-size:17px; margin:0 0 3px; }
  #dispatchOperations .list-panel>.list-heading p { color:#69768a; }
  #dispatchOperations .dispatch-filterbar { display:grid; grid-template-columns:minmax(140px,.85fr) minmax(120px,.6fr) minmax(130px,.65fr) minmax(145px,.7fr) minmax(210px,1.45fr); gap:10px; align-items:end; margin:0 18px 12px; padding:13px; background:#f9fafc; border:1px solid #e4e8ee; border-radius:12px; }
  #dispatchOperations .dispatch-filterbar label { display:flex; flex-direction:column; gap:5px; min-width:0; font-size:11px; font-weight:700; color:#526078; }
  #dispatchOperations .dispatch-filterbar input, #dispatchOperations .dispatch-filterbar select { width:100%; height:40px; min-width:0; padding:0 11px; border:1px solid #d5dce6; border-radius:9px; background:#fff; color:#29344a; font-size:12px; }
  #dispatchOperations .dispatch-filterbar input:focus-visible, #dispatchOperations .dispatch-filterbar select:focus-visible { outline:2px solid #829642; outline-offset:1px; }
  #dispatchOperations .dispatch-table-head { display:grid; grid-template-columns:minmax(185px,1.25fr) minmax(95px,.65fr) minmax(130px,.85fr) minmax(200px,1.3fr) minmax(120px,.7fr) minmax(220px,1.2fr); gap:10px; align-items:center; flex:0 0 auto; min-width:1040px; margin:0 18px; padding:13px 14px; border-radius:9px; background:#edf0f5; color:#29344a; font-size:11px; font-weight:700; }
  #dispatchOperations .dispatch-table-count { display:block; margin:8px 22px 5px; color:#6b7689; font-size:11px; }
  #dispatchOperations #adminDesktopList { display:block; flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; margin:0 18px 15px; }
  #dispatchOperations #adminList { display:none; }
  .dispatch-table-entry { min-width:1040px; border-bottom:1px solid #e5e9ee; }
  .dispatch-table-entry:last-child { border-bottom:0; }
  .dispatch-table-row { display:grid; grid-template-columns:minmax(185px,1.25fr) minmax(95px,.65fr) minmax(130px,.85fr) minmax(200px,1.3fr) minmax(120px,.7fr) minmax(220px,1.2fr); gap:10px; align-items:center; padding:15px 14px; min-height:80px; }
  .dispatch-table-row:hover { background:#f8faf7; }
  .dispatch-table-client strong, .dispatch-table-route strong, .dispatch-table-emission strong { display:block; color:#29344a; font-size:12px; line-height:1.45; }
  .dispatch-table-client span, .dispatch-table-route span, .dispatch-table-emission span { display:block; margin-top:3px; color:#647189; font-size:11px; line-height:1.4; }
  .dispatch-table-address { color:#37455b; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
  .dispatch-table-state .status-pill { white-space:nowrap; }
  .dispatch-table-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:6px; }
  .dispatch-table-actions .button { padding:8px 9px; font-size:10px; white-space:nowrap; }
  .dispatch-table-detail { background:#f8fafc; padding:10px 14px 16px; }
  .dispatch-table-detail .dispatch-card { border:1px solid #dfe5ed; border-radius:10px; background:#fff; }
  #dispatchOperations #emptyAdmin.visible { margin:auto; }
}
@media screen and (max-width:900px) {
  #dispatchOperations .dispatch-table-head, #dispatchOperations .dispatch-table-count, #dispatchOperations #adminDesktopList { display:none; }
  #dispatchOperations .dispatch-filterbar { display:flex; gap:8px; padding:12px; flex-wrap:wrap; }
  #dispatchOperations .dispatch-filterbar label:nth-child(-n+3) { display:none; }
  #dispatchOperations .dispatch-filterbar label { flex:1 1 140px; font-size:11px; }
  #dispatchOperations .dispatch-filterbar input, #dispatchOperations .dispatch-filterbar select { width:100%; min-height:39px; border:1px solid #d8e1db; border-radius:8px; padding:8px; }
  #dispatchOperations .dispatch-review-note { margin:0 0 12px; font-size:11px; }
}
