.dispatch-overview{min-width:0}
.dispatch-stats{margin-bottom:16px}
.dispatch-search{padding:0 15px 10px}
.dispatch-search input{width:min(100%,34rem);min-height:41px;padding:8px 11px;border:1px solid #d5dfec;border-radius:8px;background:#fff;color:var(--ink);font:inherit}
.dispatch-criteria{margin:0 15px 10px;border:1px solid var(--line);border-radius:8px;background:#f9fbfe}
.dispatch-criteria summary,.dispatch-exception-more summary{display:flex;align-items:center;gap:6px;padding:9px 11px;font-size:.875rem;font-weight:700;color:#31548a;cursor:pointer;list-style:none}
.dispatch-criteria summary::-webkit-details-marker,.dispatch-exception-more summary::-webkit-details-marker{display:none}
.dispatch-criteria summary::after,.dispatch-exception-more summary::after{content:'＋';margin-inline-start:auto;font-size:1rem;line-height:1.1}
.dispatch-criteria[open] summary::after,.dispatch-exception-more[open] summary::after{content:'−'}
.dispatch-criteria summary:focus-visible,.dispatch-exception-more summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.dispatch-criteria-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 11px 10px}
.dispatch-criteria-grid .field{margin:0}
.dispatch-status-filters{padding-bottom:10px}
.dispatch-trip-head,.dispatch-trip-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.25fr) minmax(0,.95fr) minmax(0,1.15fr) minmax(5.5rem,auto);gap:12px;align-items:start;padding:10px 15px}
.dispatch-trip-head{background:#f3f6fa;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#4d627b;font-size:.8rem;font-weight:700}
.dispatch-trip-list,.dispatch-exception-list{list-style:none;padding:0;margin:0}
.dispatch-trip-row+.dispatch-trip-row{border-top:1px solid var(--line)}
.dispatch-trip-row>div{min-width:0;overflow-wrap:anywhere}
.dispatch-trip-row strong{color:var(--ink);font-size:.875rem;font-weight:700}
.dispatch-trip-row .code-link{font-size:.875rem;text-align:left;white-space:normal;overflow-wrap:anywhere}
.dispatch-trip-row .cell-muted,.dispatch-exception .cell-muted{display:block;font-size:.8125rem;line-height:1.38}
.dispatch-trip-row .label-set{display:flex;flex-wrap:wrap;gap:4px}
.dispatch-trip-asset .chip{margin-top:5px}
.dispatch-trip-actions{justify-content:flex-end}
.dispatch-gps{display:flex;flex-wrap:wrap;gap:2px 7px;align-items:baseline;margin-top:5px;font-size:.8125rem}
.dispatch-gps small{color:var(--muted);font-size:inherit}
.dispatch-exception{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 15px;border-top:1px solid var(--line)}
.dispatch-exception-main{min-width:0;overflow-wrap:anywhere}
.dispatch-exception-main .label-set{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px}
.dispatch-exception-main p{margin:3px 0 0;color:#314761;font-size:.875rem}
.dispatch-exception-action{display:flex;flex-shrink:0;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:5px 10px}
.dispatch-exception-more summary{border-top:1px solid var(--line);padding-inline:15px}
.dispatch-fleet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dispatch-fleet .fleet-line{padding:8px 10px;border:1px solid var(--line);border-radius:8px}

@media(max-width:1000px){
  .dispatch-trip-head{display:none}
  .dispatch-trip-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr);gap:8px 12px;border-top:1px solid var(--line)}
  .dispatch-trip-progress{grid-column:1/3}
  .dispatch-trip-actions{grid-column:3}
}
@media(max-width:760px){
  .dispatch-search{padding-inline:10px}
  .dispatch-criteria{margin-inline:10px}
  .dispatch-criteria-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dispatch-search input,.dispatch-criteria-grid select,.dispatch-criteria summary,.dispatch-status-filters .tabs button{min-height:44px}
  .dispatch-trip-row,.dispatch-exception{padding-inline:10px}
  .dispatch-trip-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 11px}
  .dispatch-trip-route{grid-row:2}
  .dispatch-trip-asset{grid-column:2;grid-row:1 / span 2}
  .dispatch-trip-progress{grid-column:1 / -1}
  .dispatch-trip-actions{grid-column:1 / -1;justify-content:flex-start}
  .dispatch-trip-actions .btn,.dispatch-exception-action .btn{min-height:40px}
  .dispatch-exception{align-items:start}
  .dispatch-exception-action{display:grid;text-align:right;justify-items:end;max-width:43%}
  .dispatch-fleet{grid-template-columns:minmax(0,1fr);gap:5px}
}
