/* Trailer Tracker · Vehicles · v0.9.2 */
/* Hist panes + shared tbx-split gutters */
.hist-split{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:.45rem;
  flex:1 1 auto;
  min-height:0;
  height:100%;
  overflow:hidden;
}
.hist-split.tbx-split{
  gap:0;
  grid-template-columns:var(--tbx-split-left,55%) var(--tbx-split-gutter,6px) minmax(0,1fr);
  align-items:stretch;
}
.hist-left,.hist-right{display:flex;flex-direction:column;min-height:0;overflow:hidden;min-width:0}
.hist-left .list-scroll,.hist-right{overflow:auto}
.row-outline td{outline:1px solid #0f172a;outline-offset:-1px}
@media (max-width:900px){
  .hist-split.tbx-split{grid-template-columns:1fr}
  .hist-split.tbx-split > .tbx-split-gutter{display:none}
}
@media (max-width:1100px){
  .hist-split:not(.tbx-split){grid-template-columns:1fr}
}
.card-detail .pad-fill .hist-split{flex:1}

/* Tight Yard column / FK control */
.col-yard{max-width:11rem;width:11rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sel.w-yard-fk{width:8.5rem;max-width:8.5rem}

/* Identity Color swatch picker (no hex labels) */
.color-pick{position:relative;width:8.5rem;z-index:25}
.color-pick-face{
  display:flex;align-items:center;gap:.32rem;
  width:100%;height:1.75rem;
  border:1px solid #cbd5e1;border-radius:.3rem;
  padding:.1rem .32rem .1rem .28rem;
  font-size:.74rem;background:#fff;color:var(--ink);
  font-family:inherit;cursor:pointer;text-align:left;
}
.color-pick-face:hover{border-color:#94a3b8}
.color-pick-face.open{border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.15)}
.color-swatch{
  width:.85rem;height:.85rem;border-radius:2px;flex-shrink:0;
  border:1px solid #cbd5e1;background:#fff;box-sizing:border-box;
}
.color-swatch.none{background:repeating-linear-gradient(45deg,#f8fafc,#f8fafc 2px,#e2e8f0 2px,#e2e8f0 4px)}
.color-pick-face .color-name{
  flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.74rem;color:#0f172a;
}
.color-pick-face .chev{color:#94a3b8;font-size:.62rem;flex-shrink:0;line-height:1}
.color-pick-menu{
  display:none;position:absolute;top:calc(100% + 2px);left:0;min-width:100%;
  z-index:40;background:#fff;border:1px solid #cbd5e1;border-radius:.35rem;
  box-shadow:0 10px 24px rgba(15,23,42,.14);padding:.18rem;max-height:12rem;overflow:auto;
}
.color-pick-menu.open{display:block}
.color-pick-opt{
  display:flex;align-items:center;gap:.38rem;
  padding:.28rem .36rem;font-size:.72rem;border-radius:.25rem;
  color:#334155;cursor:pointer;white-space:nowrap;
}
.color-pick-opt:hover,.color-pick-opt.on{background:#ecfdf5;color:#115e59}
.color-pick-opt .nm{font-weight:650}

/* Charge schedule flag radios (billing tab) — air gap Armed / Active / Pro Rate */
.charge-flag-row{
  gap:.38rem 1.55rem; /* wider column gap so groups do not run together */
}
.charge-flag-row > .field{
  padding-right:.15rem;
}
.field-pro-rate.is-disabled{
  opacity:.48;
  filter:grayscale(.25);
}
.field-pro-rate.is-disabled > label{
  color:#94a3b8;
}
.field-pro-rate.is-disabled .radio-row label{
  color:#94a3b8;
  cursor:not-allowed;
}
.field-pro-rate.is-disabled .radio-row input{
  cursor:not-allowed;
}


/* Load History — dense grid + column-aligned subtotals (v0.9.6) */
.lh-wrap{display:flex;flex-direction:column;gap:.35rem;min-height:0;flex:1}
.lh-filter{display:flex;flex-wrap:wrap;gap:.35rem;align-items:flex-end;justify-content:space-between}
.lh-filter .lh-left{display:flex;flex-wrap:wrap;gap:.32rem;align-items:flex-end}
.lh-filter .field{margin:0}
.lh-filter .field label{font-size:.58rem;font-weight:700;color:#64748b;display:block;margin-bottom:.12rem}
.lh-filter .inp{width:9.2rem}
.lh-filter .dqp-select{width:10.5rem;min-width:10.5rem}
.lh-count{font-size:.72rem;color:#64748b;font-weight:650;white-space:nowrap;padding-bottom:.2rem}
.lh-grid-wrap{overflow:auto;min-height:0;flex:1;border:1px solid var(--line);border-radius:.35rem;background:#fff}
.lh-grid{width:100%;border-collapse:collapse;font-size:.68rem}
.lh-grid thead th{
  position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid var(--line);
  text-align:left;padding:.22rem .28rem;font-size:.58rem;font-weight:750;color:#64748b;white-space:nowrap;
}
.lh-grid thead tr.lh-subtotal-row th{
  top:0;z-index:3;background:#f0f9ff;border-bottom:1px solid #bae6fd;
  padding:.32rem .28rem;vertical-align:bottom;color:#0f172a;
}
.lh-grid thead tr.lh-subtotal-row + tr th{top:2.6rem;z-index:2}
.lh-grid thead th a{color:inherit;text-decoration:none}
.lh-sub{font-size:1.16rem;line-height:1.15}
.lh-sub .lab{
  display:block;font-size:1.16rem;font-weight:800;letter-spacing:.02em;color:#0369a1;
  text-transform:uppercase;margin-bottom:.08rem;
}
.lh-sub .v{display:block;font-size:1.36rem;font-variant-numeric:tabular-nums;font-weight:800;color:#0f172a}
.lh-sub.num,.lh-sub.num .lab,.lh-sub.num .v{text-align:right}
.lh-sub-loads .lab,.lh-sub-loads .v{text-align:left}
.lh-sub-spacer{background:#f0f9ff !important;border-bottom:1px solid #bae6fd}
.lh-grid tbody td{
  padding:.18rem .28rem;border-bottom:1px solid #f1f5f9;white-space:nowrap;
  font-variant-numeric:tabular-nums;color:#0f172a;vertical-align:middle;
}
.lh-grid tbody tr:nth-child(even){background:#f8fafc}
.lh-grid tbody tr:hover{background:#ecfdf5}
.lh-grid .num{text-align:right}
.lh-grid .money{text-align:right;font-weight:650}
.lh-grid .margin-pos{color:#065f46;font-weight:750}
.lh-grid .margin-neg{color:#991b1b;font-weight:750}
.lh-bol{display:inline-flex;align-items:center;gap:.2rem;color:#0e7490;font-weight:700;text-decoration:none;font-size:.62rem}
.lh-bol:hover{text-decoration:underline}
.lh-bol .ico{font-size:.72rem}


/* Weekday multi-select chips (billing charge schedules) */
.weekday-row{display:inline-flex;flex-wrap:wrap;gap:.22rem;align-items:center;vertical-align:middle}
.weekday-chip{display:inline-flex;align-items:center;gap:.18rem;padding:.12rem .38rem;border:1px solid #cbd5e1;border-radius:.3rem;background:#f8fafc;font-size:.68rem;font-weight:650;color:#334155;cursor:pointer;user-select:none;margin:0;text-transform:none;letter-spacing:0}
.weekday-chip:has(input:checked){background:#ecfdf5;border-color:#99f6e4;color:#115e59}
.weekday-chip input{margin:0;accent-color:#0f766e}
.field-weekdays .weekday-row{display:flex;margin-top:.12rem}
.field-month-days{display:block}

/* Main vehicle grid billing schedule state */
.col-billing{white-space:nowrap}
.stat-pill.stat-muted{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}
.vehicle-billing-empty{color:#94a3b8}

/* Robin 2026-09-23: Location column ~30% wider on all vehicle/trailer grids */
.col-location{max-width:11rem;width:11rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* Assigned-out + Billing not Armed — subtle yellow whole row */
tr.veh-billing-unarmed td{background:#fffbeb}
tr.veh-billing-unarmed:hover td{background:#fef3c7}
tr.veh-billing-unarmed.tr-sel td{background:#fde68a}
.col-supplier{max-width:8rem;white-space:normal;overflow-wrap:anywhere}
