/* Dense desktop ledgers share one heading and an optional filter workspace. */
.content:has(> :is(.issue-ledger-workspace, .inspection-ledger-workspace)) { padding-top: 16px; }
.content > .page-head.ledger-page-head {
  display: grid; grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center; gap: 7px 16px; padding-bottom: 10px; margin-bottom: 10px;
}
.content > .ledger-page-head .page-heading-copy { min-width: 0; grid-column: 1; grid-row: 1; }
.content > .ledger-page-head h1 { margin: 0; font-size: 22px; line-height: 1.35; }
.content > .ledger-page-head .page-heading-copy > p { display: none; }
.content > .ledger-page-head .page-head-side { display: contents; }
.content > .page-head.ledger-page-head .head-actions {
  grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding: 0;
}
.content > .ledger-page-head .scope-summary { grid-column: 1 / -1; grid-row: 2; min-height: 18px; }
.content > .ledger-page-head :is(button,summary) { min-height: 34px; padding: 7px 11px; }
.ledger-filter-trigger { display: inline-flex; align-items: center; gap: 7px; }
.ledger-filter-trigger[aria-expanded="true"] { border-color: var(--blue); background: var(--surface-blue); color: var(--blue-dark); }
.ledger-filter-trigger .ledger-filter-count { min-width: 20px; padding: 1px 5px; border-radius: 4px; background: var(--surface-blue, #e8f5f6); color: var(--blue-dark); font-size: .85em; font-weight: 750; }
.ledger-filter-trigger [data-filter-toggle-label] { color: var(--muted); font-size: .85em; }
.issue-ledger-filters[hidden], .inspection-ledger-settings[hidden] { display: none !important; }
.issue-ledger-filters .issue-ledger-filter-head { padding: 2px 0 6px; }
.issue-ledger-filters .issue-ledger-filter-head > div { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.ledger-fullscreen-filter { display: none; }
html[data-ledger-fullscreen="true"] .ledger-fullscreen-filter { display: inline-flex; }
.inspection-ledger-workspace { gap: 8px; }
.inspection-ledger-workspace .inspection-ledger-panel { overflow: visible; }
.inspection-ledger-workspace .inspection-ledger-toolbar { padding: 9px 14px; gap: 12px; }
.inspection-ledger-workspace .inspection-ledger-toolbar { border-radius: 12px 12px 0 0; }
.inspection-ledger-workspace .inspection-pagination { border-radius: 0 0 12px 12px; }
.inspection-ledger-workspace .inspection-type-emblem { width: 36px; height: 36px; min-width: 36px; border-radius: 7px; font-size: 11px; box-shadow: none; }
.inspection-ledger-workspace .inspection-ledger-ident { gap: 10px; }
.inspection-ledger-workspace .inspection-ledger-ident small { margin-top: 3px; }
.inspection-ledger-meta { gap: 8px; }
.inspection-ledger-meta .toolbar-menu-panel { min-width: 235px; }
.inspection-ledger-settings .inspection-filter-panel { padding: 12px 14px; }
.inspection-ledger-settings .filter-panel-head { margin-bottom: 10px; }
.inspection-ledger-settings .filter-panel-head h3 { font-size: 14px; margin-top: 3px; }
.ledger-page-head .inspection-view-controls {
  display: grid; grid-template-columns: 1fr 1fr; width: 320px; padding: 8px;
  border: 0; gap: 10px; align-items: end;
}
.ledger-page-head .inspection-view-controls > div { grid-column: 1 / -1; }
.ledger-page-head .inspection-view-controls label { min-width: 0; }
.ledger-page-head .inspection-view-controls select { width: 100%; }
.ledger-page-head .inspection-view-controls button { white-space: normal; }
.ledger-page-head .toolbar-menu-panel > button { border: 0; }
@media (max-width: 1350px) {
  .content > .page-head.ledger-page-head { grid-template-columns: minmax(125px, 1fr) auto; gap: 6px 10px; }
  .content > .ledger-page-head h1 { font-size: 20px; }
  .content > .ledger-page-head :is(button,summary) { padding-inline: 9px; }
}
@media print {
  .ledger-filter-trigger, .ledger-page-head .head-actions { display: none !important; }
}
