/* Desktop Operational Clarity for Reports. Keep every rule page-scoped. */
@media (min-width: 901px) {
  body.fh-console-nav.fh-clarity #reportsPage {
    --reports-ink: #172633;
    --reports-muted: #536572;
    --reports-line: #dce3eb;
    --reports-cyan: #087f9c;
    color: var(--reports-ink) !important;
    color-scheme: light;
    font-size: 13px;
    letter-spacing: 0;
  }
  body.fh-console-nav.fh-clarity #reportsPage.page-section.active {
    display: flex !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 0 !important;
    gap: 14px !important;
    background: #f5f7fa !important;
  }
  body.fh-console-nav.fh-clarity #reportsPage .reports-console-head h1 { margin: 0 0 4px; color: #172633; font-size: 22px; line-height: 1.2; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-console-head p { margin: 0; color: #536572; font-size: 13px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-console-layout {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(270px, 0.29fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
  }
  body.fh-console-nav.fh-clarity #reportsPage .reports-console-sidebar { min-height: 0; grid-template-rows: auto auto; gap: 12px; width: 100%; }
  body.fh-console-nav.fh-clarity #reportsPage .ws-report-options { border-color: #dce3eb !important; }
  body.fh-console-nav.fh-clarity #reportsPage .ws-report-options summary { color: #536572 !important; font-size: 12px; padding: 10px 0; }
  body.fh-console-nav.fh-clarity #reportsPage button { font-size: 13px !important; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-switch-row > input:checked + .reports-switch::after { background: #fff; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-panel, .reports-workspace, .reports-preview, .reports-rail-panel) {
    border: 1px solid #dce3eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #172633 !important;
    box-shadow: 0 1px 3px #1726330d !important;
  }
  body.fh-console-nav.fh-clarity #reportsPage .reports-panel { min-width: 0; padding: 16px; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-panel-heading h2, .reports-workspace-head h2, .reports-rail-panel h3, .reports-preview-head h3) { color: #172633 !important; font-size: 15px; line-height: 1.35; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-panel-heading p, .reports-workspace-head p, .reports-preview-head p, .reports-table-note, .reports-empty-small) { color: #536572 !important; font-size: 12px; line-height: 1.5; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-field, .reports-weekdays label, .reports-switch-row) { color: #172633 !important; font-size: 12px; font-weight: 600; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-field { grid-template-columns: minmax(94px, 0.78fr) minmax(0, 1.22fr); gap: 9px; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-field input, .reports-field select, .reports-cost-format-label select) {
    min-height: 36px; border: 1px solid #cbd5df !important; border-radius: 6px !important;
    background: #fff !important; color: #172633 !important; color-scheme: light; font-size: 13px;
  }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-field input, .reports-field select, button):focus-visible { outline: 3px solid #087f9c55; outline-offset: 2px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-select-actions button,
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-actions button,
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview-head button,
  body.fh-console-nav.fh-clarity #reportsPage .reports-rail-panel button,
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview-empty button,
  body.fh-console-nav.fh-clarity #reportsPage .reports-table-note button,
  body.fh-console-nav.fh-clarity #reportsPage .reports-export-menu button {
    min-height: 36px; padding: 8px 12px; border: 1px solid #cbd5df !important;
    border-radius: 6px; background: #fff !important; color: #172633 !important;
    box-shadow: none !important; font-size: 12px; line-height: 1.2; font-weight: 600;
  }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-select-actions button, .reports-workspace-actions button, .reports-preview-head button, .reports-rail-panel button, .reports-table-note button):hover { border-color: #087f9c !important; background: #f1fafb !important; color: #075c71 !important; transform: none; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-actions .reports-primary-action {
    border: 1px solid #087f9c !important; background: #087f9c !important; color: #fff !important; font-weight: 700;
  }
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-actions .reports-primary-action:hover { border-color: #06677f !important; background: #06677f !important; color: #fff !important; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-device-row, .reports-switch-row, .reports-weekdays label) { min-height: 30px; font-size: 12px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-device-row { grid-template-columns: 18px 18px minmax(0, 1fr); }
  body.fh-console-nav.fh-clarity #reportsPage .reports-device-list { max-height: 240px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-switch-row { color: #172633 !important; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-switch { border-color: #8797a4; background: #e8edf1; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-switch::after { background: #536572; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-switch-row > input:checked + .reports-switch { border-color: #087f9c; background: #087f9c; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-switch-row > input:focus-visible + .reports-switch { outline: 3px solid #087f9c55; outline-offset: 2px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-info { border-color: #83939f; color: #536572; font-size: 10px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-head { flex-wrap: wrap; min-height: 72px; gap: 12px; border-bottom: 1px solid #dce3eb; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-actions { flex-wrap: wrap; gap: 8px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-export-menu { border-color: #dce3eb; background: #fff; box-shadow: 0 8px 24px #1726331c; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-export-menu button { width: 100%; justify-content: flex-start; border: 0 !important; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-tabs, #reportQuickTabs) { flex-wrap: wrap; min-height: 42px; padding: 4px 14px 0; border-bottom: 1px solid #dce3eb; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-tabs button { min-height: 36px; padding: 7px 10px; color: #536572; font-size: 12px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-tabs button:hover { color: #172633; background: #f5f8fa; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-tabs button.active { color: #075c71; background: #eaf6f8; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-tabs button.active::after { background: #087f9c; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-body { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr); gap: 12px; padding: 14px; overflow: visible; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview { min-height: 360px; overflow: hidden; background: #fff !important; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview-head { min-height: 62px; border-bottom: 1px solid #dce3eb; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview-empty { min-height: 260px; padding: 28px; color: #536572; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview-empty > .fh-icon { border-color: #dce3eb; background: #f5f8fa; color: #71818e; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview-empty h3 { color: #172633; font-size: 16px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview-empty p { color: #536572; font-size: 13px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-table-stage { max-height: min(68vh, 760px); overflow: auto; overscroll-behavior: contain; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-data-table { min-width: max-content; width: 100%; color: #172633; font-size: 12px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-data-table :is(th, td) { padding: 9px 11px; border-bottom: 1px solid #dce3eb; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-data-table th { background: #f3f6f8; color: #344653; font-size: 12px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-data-table tbody tr:hover { background: #f2fafb; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-rail-panel { min-height: 0; padding: 14px; overflow: visible; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-summary-row b { color: #172633; font-size: 12px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-summary-row span { color: #536572; font-size: 12px; line-height: 1.45; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-summary-icon { color: #087f9c; background: #eaf6f8; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-rail-link { color: #087f9c !important; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-recent-list { max-height: 260px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-recent-item b { color: #172633; font-size: 12px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-recent-item span { color: #536572; font-size: 11px; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-table-note, .reports-workspace-foot) { border-color: #dce3eb; background: #f8fafb; color: #536572; font-size: 12px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-table-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border: 1px solid #dce3eb; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-table-note p { flex: 1 1 420px; margin: 0; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-foot { min-height: 34px; padding: 8px 14px; }
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview:fullscreen,
  body.fh-console-nav.fh-clarity #reportsPage .reports-preview.report-preview-fullscreen { background: #fff !important; }
  body.fh-console-nav.fh-clarity #reportsPage :is(.reports-preview, .reports-workspace, .reports-rail-panel, .reports-panel) :is(p, span, small) { text-shadow: none; }
  /* The saved archive and schedule form are identified by their actual Report-only hooks. */
  body.fh-console-nav.fh-clarity #floatingModalOverlay:has(#reportScheduleForm) { align-items: center !important; padding: 24px !important; }
  body.fh-console-nav.fh-clarity dialog.fh-report-library,
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) .fh-data-modal-card {
    border-color: #dce3eb !important; background: #fff !important; color: #172633 !important; color-scheme: light;
  }
  body.fh-console-nav.fh-clarity dialog.fh-report-library :is(h2, p, label, button),
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) .fh-data-modal-card :is(h2, p, label) { color: #172633; }
  body.fh-console-nav.fh-clarity dialog.fh-report-library :is(input, select),
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) .fh-data-modal-card :is(input, select) { border-color: #cbd5df; background: #fff; color: #172633; }
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) .fh-data-modal-card button:not(.reports-primary-action) { border: 1px solid #cbd5df; background: #fff; color: #172633; }
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) .fh-data-form label,
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) .reports-empty-small { font-size: 12px !important; line-height: 1.5; color: #536572 !important; }
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) :is(input,select,button) { font-size: 13px !important; }
  body.fh-console-nav.fh-clarity #floatingModalPanel:has(#reportScheduleForm) .reports-primary-action { background: #087f9c !important; border-color: #087f9c !important; color: #fff !important; }
  @media (min-width: 901px) and (max-width: 1200px) {
    body.fh-console-nav.fh-clarity #reportsPage.page-section.active { padding: 0 !important; }
    body.fh-console-nav.fh-clarity #reportsPage .reports-console-layout { grid-template-columns: minmax(250px, 0.32fr) minmax(0, 1fr); gap: 10px; }
    body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-body { grid-template-columns: minmax(0, 1fr) minmax(190px, 0.33fr); gap: 9px; padding: 10px; }
    body.fh-console-nav.fh-clarity #reportsPage .reports-workspace-actions { gap: 5px; }
    body.fh-console-nav.fh-clarity #reportsPage :is(.reports-workspace-actions button, .reports-export-wrap button) { padding-inline: 9px; }
  }
}
