/* The page heading is shared. Expose the estimate only on the dispatch board. */
.dispatch-header-revenue { display: none; }
.workspace:has(> #dispatchView.active) .dispatch-header-revenue:not([hidden]) { display: flex; flex-wrap: wrap; }
@media screen {
  .dispatch-heading { min-width: 0; }
  .workspace:has(> #dispatchView.active) .dispatch-heading-line {
    display: flex; align-items: center; gap: 16px; margin-block-start: 4px;
  }
  .workspace:has(> #dispatchView.active) .dispatch-heading-line h1 {
    flex: 0 0 auto; margin: 0; white-space: nowrap;
  }
  .dispatch-header-revenue {
    min-width: 0; padding-inline-start: 14px; border-inline-start: 2px solid #9bcbbf;
    align-items: baseline;
    gap: 2px 8px; color: #135347;
  }
  .dispatch-estimate-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
  .dispatch-header-revenue strong { font-size: 20px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
  [data-estimate-coverage] { flex: 0 0 100%; min-width: 0; color: #425e56; font-size: 12px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
  @media (max-width: 600px) {
    .workspace:has(> #dispatchView.active) .dispatch-heading-line { gap: 10px; }
    .dispatch-header-revenue { padding-inline-start: 9px; column-gap: 6px; }
    .dispatch-header-revenue strong { font-size: 17px; }
    .dispatch-estimate-label, [data-estimate-coverage] { font-size: 11px; }
  }
  body[data-appearance].density-comfortable .schedule-grid { font-size:13px; min-width:1280px; }
  body[data-appearance].density-comfortable .schedule-grid th { font-size:12px; height:38px; }
  body[data-appearance].density-comfortable .schedule-grid td { padding:7px 6px; line-height:1.4; }
  body[data-appearance].density-comfortable .schedule-grid .site-meta span { font-size:11px; }
  body[data-appearance].density-comfortable .schedule-grid .site-address { font-size:14px; }
  body[data-appearance].density-comfortable .schedule-grid :is(.job-contact,.job-content-trigger,.worker-select,.entry-time-input,.row-action) { font-size:13px; }
  body[data-appearance].density-comfortable .schedule-grid :is(.job-waste-label,.job-waste-type,.worker-team-badge) { font-size:11px; }
  body[data-appearance].density-comfortable .schedule-grid .job-waste-amount { font-size:13px; }
  body[data-appearance] .schedule-grid .job-content-full { display:none; }
  body[data-appearance].density-comfortable .schedule-grid .job-content-compact { display:none; }
  body[data-appearance].density-comfortable .schedule-grid .job-content-full { display:inline; }
  body[data-appearance].density-comfortable .schedule-grid :is(.worker-select,.entry-time-input,.row-action,.address-copy) { min-height:34px; }
  body[data-appearance].density-comfortable .schedule-grid .site-summary { grid-template-columns:minmax(0,1fr); gap:4px; }
  body[data-appearance].density-comfortable .schedule-grid .site-meta { max-width:none; }
  body[data-appearance].density-comfortable .schedule-grid .job-detail { grid-template-columns:minmax(0,1fr); gap:5px; }
  body[data-appearance].density-comfortable .schedule-grid :is(.site-address,.job-contact,.job-content-trigger) { white-space:pre-wrap; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; word-break:normal; }
  body[data-appearance].density-comfortable .schedule-grid .job-content-trigger { max-height:180px; overflow:auto; text-align:left; line-height:1.5; }
  body[data-appearance].density-comfortable .schedule-grid .job-detail-inline { grid-template-columns:minmax(0,1fr); }
  body[data-appearance].density-comfortable .schedule-grid .site-meta { flex-wrap:wrap; }
  .dispatch-view-mode { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:8px 12px; font-size:12px; color:#425571; }
  .dispatch-view-mode button { min-height:36px; font:inherit; padding:6px 12px; border:1px solid #b8c9df; border-radius:7px; color:#173d69; background:#fff; cursor:pointer; }
  .dispatch-view-mode button[aria-pressed=true] { background:#eaf2ff; border-color:#2b66b5; }
  .dispatch-view-mode button:focus-visible { outline:3px solid #6ba0e5; outline-offset:2px; }
  .dispatch-context-bar { display:flex; flex-wrap:wrap; align-items:center; gap:7px 16px; padding:9px 16px; margin:0 0 12px; border:1px solid #d5e1ef; border-radius:8px; color:#45607e; background:#f7faff; font-size:12px; line-height:1.5; }
  .dispatch-context-bar [data-context=service] { font-weight:800; color:#163e6b; }
  .dispatch-context-bar[hidden] { display:none; }
  .dispatch-context-bar [data-context=release] { margin-left:auto; }
  .dispatch-context-bar[data-data-state=error] [data-context=data], .dispatch-context-bar[data-release-state=pending] [data-context=release] { color:#8b490b; font-weight:700; }
  @media(max-width:760px) {
    .dispatch-context-bar { gap:5px 10px; padding:9px 10px; font-size:12px; }
    .dispatch-context-bar [data-context=release] { margin-left:0; }
  }
}
