.report-canvas { min-width: 0; overflow: auto; padding: 18px 24px 34px; background: #edf1ed; }
.report-filter-bar { position: sticky; z-index: 2; top: -18px; display: flex; max-width: 1056px; align-items: flex-end; gap: 10px; margin: 0 auto 14px; padding: 11px 12px; border: 1px solid #dce4df; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(25,56,52,.06); backdrop-filter: blur(10px); }
.report-filter-bar > div { display: flex; min-width: 190px; flex-direction: column; gap: 3px; }
.report-filter-bar label { color: #677572; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-filter-bar select { min-height: 38px; padding: 0 30px 0 10px; color: var(--ink); border: 1px solid #d7dfdb; border-radius: 7px; background: #fff; font-size: 13px; }
.report-filter-bar > span { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 9px 11px; color: #477062; border-radius: 7px; background: #e8f3ed; font-size: 11px; font-weight: 700; white-space: nowrap; }
.report-paper { width: min(1056px,100%); aspect-ratio: 4 / 3; min-height: 620px; margin: 0 auto; overflow: hidden; color: #17332f; border: 1px solid #d6dbd8; background: #fff; box-shadow: 0 18px 42px rgba(33,53,49,.13); }
.paper-header { display: flex; height: 112px; align-items: center; justify-content: space-between; padding: 26px 34px; color: #fff; background: linear-gradient(110deg,#123d38,#1a6258); }
.paper-header > div:first-child { display: flex; flex-direction: column; }
.paper-header span { color: #b5d6cf; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.paper-header strong { margin-top: 5px; font: 700 24px "Manrope",sans-serif; }
.paper-header small { margin-top: 4px; color: #d0e0dd; font-size: 11px; }
.paper-period { display: flex; align-items: flex-end; flex-direction: column; }
.paper-period strong { margin: 0; font-size: 24px; }
.paper-content { display: flex; min-height: calc(100% - 112px); padding: 32px 34px 22px; flex-direction: column; }
.paper-hero > p { margin: 0 0 7px; color: #627673; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.paper-hero h3 { max-width: 820px; margin: 0; color: #17332f; font: 700 28px/1.2 "Manrope",sans-serif; letter-spacing: -.03em; }
.paper-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }
.paper-metrics > div { padding: 14px 15px; border: 1px solid #e1e7e3; border-radius: 8px; background: #f8faf8; }
.paper-metrics span,.paper-metrics small { display: block; color: #71817e; font-size: 10px; line-height: 1.35; }
.paper-metrics strong { display: block; margin: 4px 0; color: #17332f; font: 700 26px "Manrope",sans-serif; }
.market-chart { flex: 1; margin-top: 20px; padding: 16px 18px 10px; border: 1px solid #e1e7e3; border-radius: 10px; }
.chart-title-row { display: flex; align-items: flex-start; justify-content: space-between; }
.chart-title-row > div:first-child { display: flex; flex-direction: column; }
.chart-title-row strong { font-size: 14px; }
.chart-title-row small { margin-top: 3px; color: #74827f; font-size: 10px; }
.chart-legend { display: flex; gap: 13px; color: #667673; font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 4px; }
.chart-legend i { display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.chart-legend span:last-child i { background: #c9d8d3; }
.bar-chart { display: flex; height: 178px; align-items: flex-end; justify-content: space-around; gap: 16px; padding: 18px 12px 0; border-bottom: 1px solid #dfe6e2; background: repeating-linear-gradient(to top,transparent 0,transparent 42px,#edf1ee 43px); }
.bar-group { display: flex; width: 9%; height: 100%; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { display: block; width: 40%; border-radius: 3px 3px 0 0; background: #c9d8d3; transition: height .3s ease; }
.bar.current { background: var(--brand); }
.bar-labels { display: flex; justify-content: space-around; padding: 8px 10px 0; color: #74827f; font-size: 10px; }
.paper-content footer { display: flex; justify-content: space-between; margin-top: 16px; color: #74827f; font-size: 9px; }
.print-rail { display: flex; min-height: 0; padding: 26px 20px 20px; overflow-y: auto; border-left: 1px solid var(--line); background: #fff; flex-direction: column; }
.print-rail h3 { margin: 5px 0 7px; font-size: 18px; }
.print-rail > div:first-child p { color: #6f7e7b; font-size: 12px; line-height: 1.5; }
.print-choice { display: grid; grid-template-columns: 36px 1fr 18px; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.print-choice > i:first-child { display: grid; width: 35px; height: 35px; place-items: center; color: var(--brand); border-radius: 8px; background: var(--brand-light); }
.print-choice > div { display: flex; flex-direction: column; }
.print-choice strong { font-size: 12px; }
.print-choice small { margin-top: 3px; color: #75827f; font-size: 10px; }
.print-choice > i:last-child { color: var(--brand); }
.page-checks { display: grid; gap: 2px; margin: 14px 0; }
.page-checks label { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 9px 4px; color: #4f5e5b; border-bottom: 1px solid #edf0ed; font-size: 11px; }
.page-checks input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--brand); }
.print-summary { display: flex; margin-bottom: 13px; flex-direction: column; }
.print-summary span { color: var(--ink); font-size: 12px; }
.print-summary small { margin-top: 4px; color: #75827f; font-size: 10px; line-height: 1.4; }
.roadmap-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px; color: #6d5b28; border-radius: 8px; background: #fff6d9; }
.roadmap-note > span { display: flex; flex-direction: column; }
.roadmap-note strong { font-size: 11px; }
.roadmap-note small { margin-top: 3px; font-size: 10px; line-height: 1.45; }
.print-rail .btn { min-height: 44px; font-size: 13px; }

@media (max-width: 1199.98px) {
  .management-section { margin-top: 34px; }
  .chartmaster-report-layout { grid-template-columns: 190px minmax(620px,1fr); }
  .print-rail { display: none; }
}

@media (max-width: 767.98px) {
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .playbook-grid { grid-template-columns: 1fr; }
  .report-filter-bar { align-items: stretch; flex-direction: column; }
  .report-filter-bar > div { min-width: 0; }
  .report-filter-bar > span { margin-left: 0; }
  .chartmaster-report-layout { display: block; }
  .report-canvas { height: calc(100dvh - 72px); padding: 12px; }
  .report-paper { min-width: 700px; min-height: 525px; }
}

[data-theme="dark"] .management-table th,
[data-theme="dark"] .management-table tbody tr:hover,
[data-theme="dark"] .role-option,
[data-theme="dark"] .entitlement-row:hover,
[data-theme="dark"] .print-rail { background: #111c1a; }
[data-theme="dark"] .report-filter-bar { border-color: #2a3936; background: rgba(17,28,26,.96); }
[data-theme="dark"] .report-filter-bar select { color: #e7eeec; border-color: #344642; background: #172421; }
[data-theme="dark"] .status-pill.active { color: #81c49d; background: #17382b; }

