/* LCB operating-workspace density, 24 September 2026.
   Space is reclaimed from chrome and repeated copy, independently of text size. */
:root { --row-pad: .6rem; }
body.compact { --row-pad: .28rem; --cell-y: .28rem; }
.shell { grid-template-columns: 12rem minmax(0,1fr); }
.sidebar { padding: .8rem .7rem .7rem; }
.sidebar .brand { height: 3rem; width: 9.2rem; margin: 0 .4rem .5rem; }
.sidebar .workspace-label { padding: .45rem; margin-bottom: .45rem; }
.sidebar .nav-item { min-height: 38px; padding: .45rem .55rem; font-size: .85rem; }
.topbar { height: 3.25rem; padding: 0 1.1rem; gap: .7rem; }
.global-search { min-height: 32px; padding: .3rem .6rem; min-width: 13rem; }
.topbar .icon-btn { width: 36px; height: 36px; }
.sample-indicator { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.page { max-width: 1900px; padding: 1rem 1.1rem 1.4rem; }
.page-heading { margin-bottom: .55rem; gap: .75rem; align-items: center; }
.page-heading h1 { font-size: 1.45rem; letter-spacing: -.035em; line-height: 1.2; }
.page-heading p { margin-top: .2rem; font-size: .8rem; line-height: 1.4; }
.page-heading .actions { gap: .4rem; }
input, select, .btn { min-height: 34px; padding: .34rem .6rem; border-radius: 5px; }
select { padding-right: 1.7rem; }
.btn { font-size: .8125rem; }
.icon-btn { width: 34px; height: 34px; }
.filterbar { gap: .45rem; margin: 0 0 .65rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.filterbar select { min-height: 32px; max-width: 12rem; font-size: .8125rem; padding: .28rem 1.7rem .28rem .5rem; }
.scope-facts { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .35rem; }
.filterbar .last-updated { font-size: .7rem; }
.metrics { gap: 1.25rem; margin: 0 0 .85rem; padding: 0 0 .65rem; border-bottom: 1px solid var(--line); grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric { padding: .1rem 0; background: transparent; }
.metric::after { display: none; }
.metric-label { font-size: .78rem; line-height: 1.25; }
.metric-value { font-size: 1.75rem; line-height: 1.15; margin: .18rem 0; }
.metric-value small { font-size: .78rem; }
.metric-note { font-size: .72rem; line-height: 1.3; }
.grid-main { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 1.35rem; }
.grid-main > div + div { padding-left: 1.15rem; }
.panel + .panel { margin-top: 1.1rem; }
.panel-head { padding: .25rem 0 .4rem; min-height: 34px; gap: .5rem; }
.panel-head h2, .table-toolbar h2, .report-title h2 { font-size: 1rem; }
.panel-head .sub { font-size: .72rem; margin-top: .1rem; }
.panel-body { padding: .6rem 0; }
.panel-footer { padding: .3rem 0; font-size: .72rem; min-height: 34px; }
.panel-footer .text-link { font-size: .75rem; }
.tabs { gap: 1rem; padding: 0; }
.tab { min-height: 34px; padding: .4rem 0; font-size: .8rem; }
.task-row, .compact .task-row { padding: var(--row-pad) 0; gap: .6rem; align-items: center; min-height: 48px; }
.task-icon { width: 1.6rem; height: 1.6rem; border-radius: 50%; }
.task-icon svg { width: .95rem; height: .95rem; }
.task-copy > button { font-size: .85rem; line-height: 1.3; }
.task-copy p { margin-top: .1rem; font-size: .72rem; line-height: 1.3; }
.task-right { gap: .35rem; }
.task-right .avatar { width: 1.65rem; height: 1.65rem; font-size: .65rem; }
.week-strip { padding: .35rem 0; gap: .2rem; }
.week-day { min-height: 42px; padding: .15rem; border-radius: 5px; display: grid; grid-template-columns: 1fr; justify-items: center; position: relative; line-height: 1.2; }
.week-day b { margin: .05rem 0; font-size: .88rem; }
.week-day i { position: absolute; bottom: 3px; right: 6px; width: 3px; height: 3px; }
.arrival-row { min-height: 48px; padding: var(--row-pad) 0; gap: .55rem; }
.arrival-row .stack { gap: .08rem; min-width: 0; }
.arrival-row .text-link { font-size: .82rem; line-height: 1.3; }
.arrival-row p { font-size: .68rem; line-height: 1.3; }
.arrival-row .weight { font-size: .82rem; }
.date-tile { width: 2rem; padding: .1rem; }
.date-tile b { font-size: .95rem; }
.position-bar { margin-bottom: .5rem; }
.position-bar .progress { margin-top: .2rem; }
.legend { gap: .8rem; font-size: .7rem; }
.section-space { margin-top: .7rem; }
.activity-item { padding: .35rem 0; }
.activity-item .text-link { min-height: 24px; padding: 0; font-size: .8rem; }
.activity-item p, .activity-item time { font-size: .7rem; }
.table-toolbar { padding: .2rem 0 .45rem; gap: .5rem; }
.local-search { min-width: 13rem; }
.local-search input { min-height: 32px; padding: .3rem .55rem; font-size: .8125rem; }
th { padding: .32rem .6rem; font-size: .72rem; line-height: 1.25; background: #edf3f0; }
th button { min-height: 28px; }
td, .compact td { padding: var(--row-pad) .6rem; font-size: .8125rem; line-height: 1.3; }
td small { font-size: .7rem; margin-top: .05rem; }
td .record-link { min-height: 24px; }
.table-scroll { border-top: 1px solid var(--line); }
.table-scroll.data-desktop { max-height: calc(100dvh - 235px); min-height: 100px; }
.route-positions .table-scroll.data-desktop, .route-money .table-scroll.data-desktop { max-height: calc(100dvh - 355px); }
.route-positions td .supplier-reference, .route-money td .supplier-reference, .route-documents td .supplier-reference { display: none; }
.table-scroll table tbody tr:nth-child(even) { background: #e5eeea35; }
.table-scroll table tbody tr:hover { background: #dae8e280; }
.progress-label { font-size: .72rem; }
.progress { margin-top: .22rem; }
.badge { font-size: .7rem; padding: .2rem .4rem; }
.position-controls { margin-bottom: .5rem; }
.segmented { padding: 2px; }
.segmented button { min-height: 30px; padding: .25rem .6rem; }
.position-summary { gap: 1rem; margin-bottom: .4rem; }
.month-card { padding: .25rem 0 .45rem; }
.month-card .month-label b { font-size: .9rem; }
.month-card .month-value { font-size: 1.25rem; margin: .15rem 0; }
.month-card .month-data { margin-top: .3rem; font-size: .7rem; }
.month-card .progress { height: 5px; }
.method-note { font-size: .73rem; color: var(--muted); margin-bottom: .4rem; }
.method-note summary { cursor: pointer; padding: .25rem 0; min-height: 28px; }
.method-note p { padding: .3rem 0; max-width: 100ch; }
.notice { padding: .5rem .65rem; margin-bottom: .65rem; font-size: .75rem; }
.calendar-controls { padding: .3rem 0 .5rem; }
.calendar-controls h2 { font-size: 1rem; }
.day-name { padding: .3rem; }
.calendar-day { min-height: 4.4rem; padding: .2rem; }
.calendar-day .day-number { height: 1.25rem; width: 1.25rem; margin-bottom: .1rem; font-size: .72rem; }
.calendar-event { font-size: .67rem; padding: .14rem .25rem; min-height: 23px; margin-bottom: .15rem; }
.more-events { min-height: 24px; padding: .1rem .25rem; font-size: .68rem; }
.agenda-day { padding: .35rem 0; }
.agenda-item { padding: var(--row-pad) 0; }
.doc-icon { width: 1.8rem; height: 1.8rem; }
.report-layout { grid-template-columns: 11rem minmax(0,1fr); gap: 1.25rem; }
.report-choice { padding: .5rem .3rem; gap: .5rem; }
.report-choice strong { font-size: .8rem; }
.report-choice small { font-size: .68rem; }
.report-title { padding: .2rem 0 .45rem; }
.report-title p { font-size: .72rem; }
.report-summary { padding: .5rem 0; gap: .75rem; }
.report-summary b { font-size: 1.35rem; }
.report-summary span { font-size: .72rem; }
.route-reports .table-scroll { max-height: calc(100dvh - 400px); }
.working-chart { margin: .4rem 0 .65rem; }
.working-chart figcaption { font-size: .72rem; color: var(--muted); margin-bottom: .35rem; }
.mini-chart { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; font-size: .72rem; }
.mini-chart .spread { gap: .3rem; flex-wrap: wrap; }
.chart-track { height: 5px; background: #dce8e2; margin-top: .3rem; }
.chart-track i { height: 100%; display: block; background: #4b8371; }
.bars { height: 110px; padding: .5rem 0 0; }
.bar-col .bar { max-height: 65px; }
.chart-caption { padding: .2rem 0; font-size: .7rem; }
.settings-section { padding: .75rem 0; }
.settings-section > p { margin: .3rem 0 .75rem; font-size: .83rem; }
.settings-preview { padding: .65rem; margin: .6rem 0; }
.setting-row { padding: .7rem 0; }
.size-option { padding: .5rem; }
.drawer-header { padding: .7rem 1rem; }
.drawer-header h2 { font-size: 1.2rem; }
.drawer-hero { padding: .7rem 1rem; }
.drawer-body { padding: .8rem 1rem; }
.drawer .tabs { padding: 0 1rem; }
.drawer .detail-section { margin-bottom: 1rem; }
.high-contrast .sample-indicator, .high-contrast .scope-facts { color: var(--muted); }
@media (min-width: 761px) {
  .compact .route-overview .panel-head .sub { display: none; }
  .compact .route-book .page-heading p, .compact .route-shipments .page-heading p, .compact .route-documents .page-heading p, .compact .route-reports .page-heading p { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .shell { grid-template-columns: 11rem minmax(0,1fr); }
  .sample-indicator { display: none; }
  .grid-main { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: .8rem; }
  .grid-main > div + div { padding-left: .75rem; }
  .task-right .avatar { display: none; }
  .filterbar .last-updated { display: none; }
}
/* Match the base stylesheet's report-menu breakpoint: the grid needs a full row. */
@media (max-width: 1000px) and (min-width: 761px) {
  .report-layout { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .report-menu { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .topbar { height: 3.5rem; padding: 0 .7rem; gap: .4rem; }
  .topbar .icon-btn { width: 44px; height: 44px; }
  .sample-indicator { display: none; }
  .page { padding: .75rem .85rem 5.5rem; }
  .page-heading { gap: .45rem; margin-bottom: .45rem; flex-wrap: wrap; }
  .page-heading h1 { font-size: 1.35rem; }
  .page-heading p { font-size: .8rem; margin-top: .15rem; }
  .page-heading .actions { margin-top: .2rem; width: 100%; }
  .page-heading .actions .btn { flex: 1; padding-left: .4rem; padding-right: .4rem; }
  input, select, .btn, .icon-btn, .global-search, .local-search input, .filterbar select, .tab, .segmented button, .more-events, .method-note summary { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .filterbar { gap: .35rem; padding-bottom: .4rem; margin-bottom: .55rem; }
  .filterbar select { width: auto; min-width: 0; flex: 1; max-width: 100%; font-size: .8125rem; }
  .scope-facts { width: 100%; margin: .15rem 0 0; font-size: .72rem; }
  .filterbar .last-updated { display: none; }
  .metrics { gap: .65rem 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: .65rem; padding-bottom: .65rem; }
  .metric { padding: 0; min-height: 78px; }
  .metric-label { font-size: .75rem; }
  .metric-value { font-size: 1.6rem; margin: .15rem 0; }
  .metric-note { font-size: .7rem; }
  .grid-main { display: block; }
  .grid-main > div + div { border: 0; padding: 0; margin-top: 1rem; }
  .panel-head { padding: .3rem 0; }
  .panel-head h2 { font-size: 1rem; }
  .panel-head .sub { display: none; }
  .tabs { gap: .75rem; }
  .task-row, .compact .task-row { padding: .4rem 0; gap: .45rem; }
  .task-copy > button { min-height: 44px; display: flex; align-items: center; }
  .task-copy p { margin-top: 0; font-size: .72rem; }
  .task-icon { display: none; }
  .task-right .avatar { display: none; }
  .task-right .badge { font-size: .67rem; white-space: normal; max-width: 4.5rem; }
  .week-day { min-height: 44px; }
  .arrival-row .text-link { min-height: 44px; display: flex; align-items: center; }
  .record-card, .compact .record-card { padding: .55rem 0; }
  .record-card .record-link { min-height: 44px; display: flex; align-items: center; }
  .record-card .record-meta { margin-top: 0; font-size: .76rem; }
  .record-card .record-numbers { margin-top: .4rem; gap: .5rem; }
  .record-card .record-numbers span, .compact .record-card .record-numbers span { display: block; font-size: .72rem; }
  .record-card .record-foot { margin-top: .3rem; gap: .45rem; }
  .record-foot .text-link, .panel-footer .text-link { min-height: 44px; }
  .record-card .record-numbers b { font-size: .88rem; }
  .table-toolbar { padding: .2rem 0 .4rem; }
  .table-toolbar .local-search { width: 100%; }
  .table-toolbar > .flex { flex: 1; }
  .position-controls { gap: .35rem; }
  .position-controls > span { font-size: .7rem; }
  .position-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem .85rem; }
  .month-card .month-value { font-size: 1.15rem; }
  .month-card .month-value span { font-size: .7rem; }
  .month-card .month-data { gap: .25rem; flex-wrap: wrap; }
  .calendar-controls { gap: .4rem; }
  .calendar-controls > .flex { gap: .3rem; flex-wrap: wrap; }
  .calendar-controls h2 { font-size: 1rem; }
  .calendar-mobile-agenda .text-link { min-height: 44px; }
  .agenda-item { gap: .35rem; }
  .report-layout { display: block; }
  .report-menu { margin-bottom: .55rem; }
  .report-choice { padding: .4rem .55rem; min-height: 44px; }
  .report-title { gap: .5rem; flex-wrap: wrap; }
  .report-summary { gap: .5rem; }
  .report-summary b { font-size: 1.15rem; }
  .mini-chart { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .route-reports .table-scroll { max-height: 60dvh; }
  .settings-section { padding: .6rem 0; }
  .drawer .tabs { padding: 0 .85rem; }
  .drawer-body { padding: .75rem .85rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
/* One working toolbar for book, shipments, money and document registers. */
.sidebar .nav-item { white-space: nowrap; gap: .5rem; }
.sidebar .nav-item svg { width: 1rem; }
.unified .last-updated { display: none; }
.unified .local-search { min-width: 10rem; flex: 1; max-width: 20rem; }
.unified .scope-facts { margin-left: auto; }
.route-book .table-scroll.data-desktop, .route-shipments .table-scroll.data-desktop, .route-documents .table-scroll.data-desktop { max-height: calc(100dvh - 205px); }
@media (max-width: 760px) {
  .unified .local-search { min-width: 0; width: 100%; flex-basis: 100%; max-width: none; order: 3; }
  .unified .scope-facts { order: 5; }
  .unified > .flex, .unified > select[aria-label] { order: 4; }
  .unified > .segmented { order: 4; }
}
.calendar-day-head { display: flex; align-items: center; justify-content: space-between; gap: .15rem; margin-bottom: .15rem; }
.day-total { font-size: .65rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.route-shipments td .supplier-reference { display: none; }
@media (min-width: 761px) {
 .compact .calendar-day { min-height: 4.7rem; }
 .compact .route-calendar .page-heading p { display: none; }
 .compact .calendar-day .calendar-event { min-height: 24px; }
}
@media (max-width: 760px) {
  .topbar .global-search { min-width: 44px; width: 44px; min-height: 44px; padding: 0; margin-left: auto; flex-shrink: 0; }
  .mobile-brand { width: 5.3rem; max-width: calc(100vw - 164px); }
  .task-row .task-right { display: flex; }
  .task-row .task-right .badge { display: inline-flex; }
}
@media (max-width: 760px) {
  .compact .page-heading p { display: none; }
  .page-heading .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-heading .actions .btn { width: 100%; white-space: normal; line-height: 1.2; }
  .page-heading .actions .btn:only-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .page-heading .actions .btn svg { display: none; } }

/* Detail content must fit its own drawer at every viewport/text size. */
.drawer .dialog-body, .shipment-detail, .shipment-detail .spread > *, .shipment-data > div, .detail-grid > div { min-width: 0; }
.shipment-detail { overflow-wrap: anywhere; }
.shipment-detail .spread { flex-wrap: wrap; gap: .4rem .75rem; }
.shipment-detail .spread h3 { flex: 1 1 12ch; overflow-wrap: anywhere; }
.shipment-detail .spread .badge { flex-shrink: 0; }
.shipment-detail .route-line { min-width: 0; }
.shipment-detail .route-line > span:not(.line) { min-width: 0; overflow-wrap: anywhere; }
.shipment-detail .route-line .line { min-width: 12px; }
.shipment-detail .shipment-data { grid-template-columns: repeat(3,minmax(0,1fr)); }
.shipment-data b, .detail-grid dd { overflow-wrap: anywhere; }
.detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 760px) { .shipment-detail .shipment-data { grid-template-columns: repeat(2,minmax(0,1fr)); } }
