/* Report navigation must not stretch a single filtered result over the sidebar. */
#page-reports-v2 .reports-v2-groups,
#page-reports-v2 .reports-v2-group,
#page-reports-v2 .reports-v2-links {
  align-content: start;
  grid-auto-rows: max-content;
}
#page-reports-v2 .reports-v2-links > * { align-self: start; }
#page-reports-v2 .reports-v2-party-picker { display: grid; gap: 6px; align-content: start; }
#page-reports-v2 .reports-v2-party-picker .input { width: 100%; min-width: 0; }
#page-reports-v2 .reports-v2-combobox { position: relative; min-width: 0; }
#page-reports-v2 .reports-v2-combobox input[role="combobox"] { padding-right: 34px; }
#page-reports-v2 .reports-v2-combobox-toggle {
  position: absolute; right: 3px; top: 3px; width: 30px; height: 32px;
  padding: 0; border: 0; background: transparent; color: inherit; box-shadow: none;
}
#page-reports-v2 .reports-v2-combobox-list {
  position: absolute; top: calc(100% + 4px); left: 0; width: max-content;
  min-width: 100%; max-width: min(430px, 80vw); max-height: 260px;
  overflow: auto; z-index: 30; border: 1px solid var(--border, #dbe3f4);
  border-radius: 10px; padding: 4px; background: var(--surface, #fff);
  box-shadow: 0 8px 24px rgba(20, 35, 65, .14);
}
#page-reports-v2 .reports-v2-combobox-list[hidden] { display: none; }
#page-reports-v2 .reports-v2-combobox-list button {
  display: block; width: 100%; text-align: left; white-space: normal;
  border: 0; border-radius: 6px; background: transparent; color: inherit;
  box-shadow: none; padding: 9px 10px; font-weight: 400;
}
#page-reports-v2 .reports-v2-combobox-list button:hover,
#page-reports-v2 .reports-v2-combobox-list button[aria-selected="true"] { background: #f1edff; }
#page-reports-v2 .reports-v2-data-table td.reports-v2-column-money,
#page-reports-v2 .reports-v2-data-table th.reports-v2-column-money {
  min-width: 100px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Workbook supplier reports: compact sequence, readable names, proportional numeric columns. */
#page-reports-v2 .reports-v2-supplier-table th,
#page-reports-v2 .reports-v2-supplier-table td { min-width:0!important; }
#page-reports-v2 .reports-v2-supplier-table .reports-v2-column-text { overflow-wrap:anywhere; }

/* Focus Register: inherit the application's current theme; screen-only geometry. */
@media screen {
  :is(#page-reports-v2,#page-reports,#page-manufacturing-reports,#page-liability-reports).report-focus-page { height:var(--report-focus-height);min-height:0;overflow:hidden;padding:0;gap:0; }
  #page-reports-v2.report-focus-page .reports-v2-shell { height:100%;min-height:0; }
  #page-reports-v2.report-focus-page .reports-v2-workspace { display:flex;flex-direction:column;height:100%;min-height:0; }
  #page-reports-v2.report-focus-page .reports-v2-sidebar { height:100%;min-height:0;position:relative;top:auto; }
  #page-reports-v2.report-focus-page .reports-v2-main { flex:1;display:flex;flex-direction:column;min-height:0;gap:8px;padding:10px 12px;overflow:hidden; }
  #page-reports-v2.report-focus-page .vc-report-detail { padding:10px 12px;flex:none;overflow:visible; }
  #page-reports-v2.report-focus-page .reports-v2-card-head { gap:8px;align-items:center;margin:0 0 8px; }
  #page-reports-v2.report-focus-page .reports-v2-card-head h2 { font-size:18px!important;margin:0; }
  #page-reports-v2.report-focus-page .reports-v2-card-head .eyebrow { display:none; }
  #page-reports-v2.report-focus-page .reports-v2-card-head p { margin:3px 0 0;line-height:1.3; }
  #page-reports-v2.report-focus-page .reports-v2-toolbar { grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px; }
  #page-reports-v2.report-focus-page .reports-v2-toolbar :is(.input,.primary,.secondary) { min-height:32px;height:auto;padding:6px 8px; }
  #page-reports-v2.report-focus-page .reports-v2-toolbar label { gap:3px; }
  #page-reports-v2.report-focus-page .report-limitations { margin:6px 0 0;padding:0;background:transparent;border:0; }
  #page-reports-v2.report-focus-page .report-limitations p { margin:3px 0;font-size:var(--vc-type-note,12px);line-height:1.3; }
  #page-reports-v2.report-focus-page .reports-v2-metrics { display:flex;flex-wrap:wrap;gap:8px 22px;flex:none;margin:0;padding:5px 10px;border-bottom:1px solid var(--line); }
  #page-reports-v2.report-focus-page .reports-v2-metrics .metric-card { display:flex;align-items:baseline;gap:8px;padding:0;min-height:0;background:transparent;border:0;border-radius:0;box-shadow:none; }
  #page-reports-v2.report-focus-page .reports-v2-metrics .metric-card :is(small,strong) { margin:0;font-size:var(--vc-type-control,13px); }
  #page-reports-v2.report-focus-page .reports-v2-table-card { flex:1;min-height:100px;display:flex;flex-direction:column;padding:0;margin:0;overflow:hidden; }
  #page-reports-v2.report-focus-page .reports-v2-table-card > .report-focus-scroll { flex:1;min-height:0;max-height:none;height:auto;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable; }
  #page-reports-v2.report-focus-page .report-pagination { flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;margin:0;border-top:1px solid var(--line); }
  #page-reports-v2.report-focus-page .report-pagination button { padding:6px 10px;min-height:30px; }
  :is(#page-reports-v2,#page-reports,#page-manufacturing-reports,#page-liability-reports,.report-focus-embedded) .report-focus-table thead :is(th,td) { position:sticky;top:var(--report-head-top,0px);z-index:4;background:var(--soft);color:var(--muted); }
  :is(#page-reports-v2,#page-reports,#page-manufacturing-reports,#page-liability-reports,.report-focus-embedded) .report-focus-table tfoot :is(th,td) { position:sticky;bottom:var(--report-foot-bottom,0px);z-index:5;background:var(--violet-soft);color:var(--ink);border-top:2px solid var(--line); }
  :is(#page-reports-v2,#page-reports,#page-manufacturing-reports,#page-liability-reports,.report-focus-embedded) .report-focus-table .report-focus-pin { position:sticky;left:var(--report-pin-left);z-index:2;background:var(--panel);box-shadow:1px 0 0 var(--line); }
  :is(#page-reports-v2,#page-reports,#page-manufacturing-reports,#page-liability-reports,.report-focus-embedded) .report-focus-table thead .report-focus-pin { z-index:8;background:var(--soft); }
  :is(#page-reports-v2,#page-reports,#page-manufacturing-reports,#page-liability-reports,.report-focus-embedded) .report-focus-table tfoot .report-focus-pin { z-index:9;background:var(--violet-soft); }
  #page-reports-v2.report-focus-page .report-focus-multiple { display:block;overflow:auto;overscroll-behavior:contain; }
  #page-reports-v2.report-focus-page .report-focus-multiple .report-focus-scroll { height:auto;min-height:0;max-height:none;overflow:visible; }
  #page-reports-v2.report-focus-mode .reports-v2-shell { grid-template-columns:minmax(0,1fr); }
  #page-reports-v2.report-focus-mode .reports-v2-sidebar { display:none; }
  #page-reports.active.report-focus-page { display:flex;flex-direction:column; }
  #page-reports.report-focus-page > .vc-reports-head { flex:none;padding:8px 12px; }
  #page-reports.report-focus-page .vc-reports-shell { flex:1;min-height:0; }
  #page-reports.report-focus-page .vc-reports-sidebar { min-height:0;height:100%;position:relative; }
  #page-reports.report-focus-page #activeReportPanel { display:flex;flex-direction:column;gap:8px;min-height:0;overflow:hidden;padding:10px 12px; }
  #page-reports.report-focus-page .vc-report-card { flex:1;display:flex;flex-direction:column;min-height:0;padding:10px;overflow:hidden; }
  #page-reports.report-focus-page .report-focus-scroll { flex:1;overflow:auto;max-height:none;min-height:80px; }
  #page-reports.report-focus-page .vc-report-metrics { display:flex;gap:8px 20px;flex-wrap:wrap;flex:none; }
  #page-reports.report-focus-page .vc-report-metric { min-height:0;padding:3px 0;border:0;background:transparent;box-shadow:none; }
  #page-reports.report-focus-page .vc-report-metric-icon { display:none; }
  #page-reports.report-focus-page .vc-report-metric div { display:grid;grid-template-columns:auto auto;gap:2px 8px;align-items:baseline; }
  #page-reports.report-focus-page .vc-report-metric em { display:block;grid-column:1/-1;font-size:var(--vc-type-note,12px);font-style:normal; }
  #page-reports.report-focus-page .vc-report-metric :is(small,b) { font-size:var(--vc-type-control,13px);margin:0; }
  #page-reports.report-focus-page .vc-report-filters { gap:8px;margin:6px 0;padding:0; }
  #page-reports.report-focus-page .report-focus-multiple { display:block;overflow:auto; }
  #page-reports.report-focus-page .report-focus-multiple .report-focus-scroll { min-height:0;max-height:none;height:auto;overflow:visible; }
  #page-reports.report-focus-mode .vc-reports-shell { grid-template-columns:minmax(0,1fr); }
  #page-reports.report-focus-mode .vc-reports-sidebar { display:none; }
}
@media screen and (max-width:700px),screen and (max-height:580px) {
  :is(#page-reports-v2,#page-reports,#page-manufacturing-reports,#page-liability-reports).report-focus-page { height:auto;overflow:visible; }
  #page-reports-v2.report-focus-page .reports-v2-shell { min-height:0;height:auto; }
  #page-reports-v2.report-focus-page .reports-v2-main { overflow:visible; }
  #page-reports-v2.report-focus-page .reports-v2-table-card > .report-focus-scroll { flex:auto;max-height:60dvh;min-height:180px; }
  #page-reports-v2.report-focus-page .report-focus-multiple { max-height:65dvh; }
  #page-reports-v2.report-focus-page .report-pagination { flex-wrap:wrap; }
  #page-reports.report-focus-page #activeReportPanel { overflow:visible; }
  #page-reports.report-focus-page .report-focus-scroll { flex:auto;max-height:60dvh;min-height:180px; }
}
@media screen {
  #workspaceView:has(.report-focus-page.active.report-focus-mode) #primaryTopNav { display:none; }
  :is(#page-manufacturing-reports,#page-liability-reports).active.report-focus-page { display:flex;flex-direction:column;gap:8px;padding:10px 12px; }
  :is(#page-manufacturing-reports,#page-liability-reports).report-focus-page > .page-head { flex:none;margin:0;padding:8px 10px; }
  :is(#page-manufacturing-reports,#page-liability-reports).report-focus-page > .page-head h1 { font-size:18px;margin:0; }
  :is(#page-manufacturing-reports,#page-liability-reports).report-focus-page > .page-head p { margin:3px 0 0;font-size:var(--vc-type-note,12px); }
  #page-manufacturing-reports.report-focus-page .manufacturing-report-filter { flex:none;padding:8px 10px; }
  #page-manufacturing-reports.report-focus-page .manufacturing-report-stack { flex:1;min-height:0;overflow:auto;overscroll-behavior:contain; }
  #page-manufacturing-reports.report-focus-page .manufacturing-report-stack > .panel { min-width:0;padding:10px;margin-bottom:8px; }
  #page-manufacturing-reports.report-focus-page .manufacturing-report-stack .table-wrap { min-height:0;max-height:none;overflow:visible; }
  #page-manufacturing-reports.report-focus-page .panel-title { margin-bottom:5px; }
  #page-liability-reports.report-focus-page .liability-toolbar { flex:none;gap:8px;padding:8px 10px;margin:0; }
  #page-liability-reports.report-focus-page .liability-notice { flex:none;margin:0;font-size:var(--vc-type-note,12px); }
  #page-liability-reports.report-focus-page .liability-metrics { display:flex;flex-wrap:wrap;gap:8px 20px;flex:none; }
  #page-liability-reports.report-focus-page .liability-metrics article { display:grid;grid-template-columns:auto auto;align-items:baseline;gap:2px 8px;padding:3px 0;min-height:0;background:transparent;border:0; }
  #page-liability-reports.report-focus-page .liability-metrics article span { display:block;grid-column:1/-1;font-size:var(--vc-type-note,12px);color:var(--muted); }
  #page-liability-reports.report-focus-page .liability-metrics :is(small,strong) { font-size:var(--vc-type-control,13px);margin:0; }
  #page-liability-reports.report-focus-page .liability-report-panel { flex:1;display:flex;flex-direction:column;min-height:100px;overflow:hidden;padding:10px; }
  #page-liability-reports.report-focus-page .liability-report-panel .panel-title { flex:none;margin-bottom:4px; }
  #page-liability-reports.report-focus-page .liability-report-panel p { flex:none;margin:4px 0;font-size:var(--vc-type-note,12px); }
  #page-liability-reports.report-focus-page .liability-report-panel .table-wrap { flex:1;min-height:0;max-height:none;overflow:auto;margin:4px 0; }
  #page-liability-reports.report-focus-page .report-focus-table :is(th,td) { padding:7px 8px!important; }
  #page-liability-reports.report-focus-page .report-focus-table thead th { background:var(--soft)!important;color:var(--muted)!important; }
  #page-liability-reports.report-focus-page .report-focus-table tfoot :is(th,td) { background:var(--violet-soft)!important;color:var(--ink)!important; }
  #employeeLedgerPanel.report-focus-embedded .report-focus-scroll { max-height:55dvh;overflow:auto; }
  #employeeLedgerPanel.report-focus-embedded #employeeLedgerTotals { position:sticky;bottom:0;background:var(--panel);z-index:5; }
  dialog.rate-list-report-dialog[open].report-focus-embedded { display:flex;flex-direction:column;max-height:calc(100dvh - 40px);background:var(--panel);color:var(--ink); }
  dialog.rate-list-report-dialog[open].report-focus-embedded .report-focus-scroll { flex:1;min-height:120px;max-height:none;overflow:auto; }
  @media(max-width:700px),(max-height:580px) {
    #page-manufacturing-reports.report-focus-page .manufacturing-report-stack { flex:auto;max-height:65dvh; }
    #page-liability-reports.report-focus-page .liability-report-panel .table-wrap { flex:auto;max-height:60dvh;min-height:160px; }
  }
}
@media print {
  .report-focus-button { display:none!important; }
  .report-focus-table :is(th,td) { position:static!important;box-shadow:none!important; }
}

/* Report explanations are available on hover, keyboard focus and touch. */
@media screen {
  .report-details-source,.report-details-empty { display:none !important; }
  .report-details-button { display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:22px;height:22px;min-width:22px;min-height:22px;padding:0;margin-inline-start:4px;border:1px solid var(--line);border-radius:50%;background:var(--soft);color:var(--muted);font-size:13px;font-style:normal;line-height:1;font-weight:700;box-shadow:none;cursor:help; }
  .report-details-button:hover,.report-details-button:focus-visible { color:var(--ink);background:var(--violet-soft);outline:2px solid var(--line);outline-offset:2px; }
  .report-details-tooltip { position:fixed;z-index:10000;box-sizing:border-box;max-width:min(460px,calc(100vw - 16px));max-height: min(420px,calc(100vh - 24px));overflow:auto;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel,#fff);color:var(--ink);box-shadow:0 6px 22px #0002;font-size:var(--vc-type-note,13px);line-height:1.5; }
  .report-details-tooltip p { margin:0 0 8px; }.report-details-tooltip p:last-child { margin-bottom:0; }
}
@media print { .report-details-button,.report-details-tooltip { display:none !important; } }

/* Reports landing: useful allowed destinations, compact folders and one content viewport. */
@media screen {
 #page-reports-v2 .reports-v2-groups {align-content:start;grid-auto-rows:max-content;gap:2px;}
 #page-reports-v2 .reports-v2-group {margin:0;padding:0;border:0;min-height:0;}
 #page-reports-v2 .vc-report-group-toggle {min-height:34px;padding:7px 8px;font-weight:600;}
 #page-reports-v2 .reports-v2-sidebar-head {min-height:48px;padding:8px 12px;}
 #page-reports-v2 .reports-v2-sidebar-head .icon-btn {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--panel,#fff);color:var(--ink);}
 #page-reports-v2 .reports-v2-sidebar-search {margin:8px 12px;}
 #page-reports-v2 .reports-v2-sidebar-search input {min-width:0;width:100%;min-height:34px;padding:7px 9px;}
 #page-reports-v2.report-focus-page .reports-v2-main:has(.reports-v2-welcome) {overflow:auto;}
 #page-reports-v2 .reports-v2-welcome {min-height:0;padding:16px;flex:none;}
 #page-reports-v2 .reports-v2-welcome h2 {margin:0 0 6px;}
 #page-reports-v2 .reports-v2-welcome p {margin:0 0 14px;}
 #page-reports-v2 .reports-v2-start-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:start;gap:12px;}
 #page-reports-v2 .reports-v2-start-group {border:1px solid var(--line);border-radius:8px;padding:10px;min-width:0;}
 #page-reports-v2 .reports-v2-start-group h3 {font-size:14px;font-weight:600;display:flex;justify-content:space-between;margin:0 0 6px;color:var(--ink);}
 #page-reports-v2 .reports-v2-start-group h3 small {font-weight:400;color:var(--muted);}
 #page-reports-v2 .reports-v2-start-link {display:block;text-align:left;width:100%;padding:6px 7px;min-height:30px;border:0;border-radius:5px;background:transparent;color:var(--ink);font-size:var(--vc-type-control,13px);font-weight:400;white-space:normal;}
 #page-reports-v2 .reports-v2-start-link:hover,#page-reports-v2 .reports-v2-start-link:focus-visible {background:var(--violet-soft);color:var(--violet);}
}

/* Year matrices share report theme, concise filters and printable annual totals. */
.yearly-years-control{min-width:min(100%,320px);grid-column:span 2}.yearly-years-control small{font-weight:400;color:var(--muted,#69758b)}
@media(max-width:600px){.yearly-years-control{grid-column:1/-1;min-width:0}}

/* Balanced report columns: semantic widths, readable figures and word-boundary headings. */
#page-reports-v2 .reports-v2-balanced-table{table-layout:fixed;width:100%}
#page-reports-v2 .reports-v2-balanced-table th,
#page-reports-v2 .reports-v2-balanced-table td{min-width:0!important;padding:8px;font-size:var(--vc-type-body,12px);line-height:1.4}
#page-reports-v2 .reports-v2-table-card .reports-v2-balanced-table thead th{font-weight:600;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none;vertical-align:bottom}
#page-reports-v2 .reports-v2-balanced-table tbody td{font-weight:400;white-space:normal;overflow-wrap:break-word;vertical-align:top}
#page-reports-v2 .reports-v2-balanced-table tbody :is(.reports-v2-column-money,.reports-v2-column-number,.reports-v2-column-date,.reports-v2-column-quantity,.reports-v2-column-decimal){white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
#page-reports-v2 .reports-v2-balanced-table tfoot th{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#page-reports-v2 #reportsV2ProductList p{padding:6px 8px;margin:0;font-size:12px}

#page-reports-v2 .reports-v2-table-card .reports-v2-data-table.reports-v2-balanced-table :is(th,td){font-size:var(--vc-type-body,12px);padding:8px}
