/* Readable P&L: start with the key columns and retain product identity while scrolling. */
.pnl-heading { gap: 18px; }
.pnl-heading h2 { font-size: 21px; }
.table-helper { margin: 6px 0 0; color: #8a95ad; font-size: 12px; }
.pnl-actions { justify-content: flex-end; flex-wrap: wrap; }
.pnl-actions input { width: 245px; min-height: 38px; }
.outline-button { min-height: 38px; border-radius: 10px; }
.table-view-switch { display: flex; padding: 3px; border-radius: 10px; background: #eef1f8; }
.table-view-switch button { min-height: 30px; padding: 0 9px; border-radius: 7px; background: transparent; color: #78839d; font-size: 11px; font-weight: 750; }
.table-view-switch button.is-active { background: #fff; color: #5830d2; box-shadow: 0 2px 7px #17275518; }
.report-table-wrap { max-height: 650px; }
.report-table { min-width: 1760px; font-size: 12px; }
.report-table th { z-index: 4; min-width: 118px; padding: 13px 14px; background: #f5f7fc; color: #687593; font-size: 10px; line-height: 1.25; white-space: normal; }
.report-table td { padding: 13px 14px; color: #3f4f70; font-size: 12px; line-height: 1.3; }
.report-table tbody tr:hover td { background: #eaf2ff; }
.report-table th:nth-child(1), .report-table td:nth-child(1) { position: sticky; left: 0; z-index: 3; min-width: 124px; width: 124px; }
.report-table th:nth-child(2), .report-table td:nth-child(2) { position: sticky; left: 124px; z-index: 3; min-width: 230px; width: 230px; }
.report-table th:nth-child(3), .report-table td:nth-child(3) { position: sticky; left: 354px; z-index: 3; min-width: 118px; width: 118px; }
.report-table th:nth-child(-n+3) { z-index: 5; background: #eef3fc; box-shadow: 7px 0 12px #24395b0d; }
.report-table tbody tr:nth-child(odd) td:nth-child(-n+3) { background: #fbfcff; }
.report-table tbody tr:nth-child(even) td:nth-child(-n+3) { background: #f4f7fd; }
.report-table tbody tr:hover td:nth-child(-n+3) { background: #eaf2ff; }
.report-table tfoot td:nth-child(-n+3) { background: #eee9ff; }
.column-resizer { width: 7px; }

/* Supplies and expenses use the same client-facing dashboard shell. */
.manual-page .dashboard-header { margin-bottom: 22px; }
.manual-overview { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 22px 24px; border: 1px solid #e5eaf5; border-radius: 17px; background: linear-gradient(120deg, #fff 15%, #f1f7ff); box-shadow: 0 8px 24px #40547d0a; }
.manual-overview h2 { margin: 2px 0 5px; color: var(--ink); font-size: 24px; letter-spacing: -.045em; }
.manual-overview p:last-child { margin: 0; color: #7885a1; font-size: 13px; }
.manual-page .entry-layout { gap: 14px; }
.manual-page .card { border: 1px solid #e5eaf5; border-radius: 17px; box-shadow: 0 8px 24px #40547d0a; }
.manual-page .entry-card { padding: 20px; }
.manual-page .entry-table-card { padding: 20px 0 0; }
.manual-page .entry-table-card > .section-heading { padding: 0 20px; }
.manual-page .entry-table th { background: #f5f7fc; color: #697593; }
.manual-page .entry-table td { border-bottom: 4px solid #fff; background: #fbfcff; }
.manual-page .entry-table tbody tr:nth-child(even) td { background: #f4f7fd; }
.manual-page .entry-table input { border-color: #e2e8f3; background: #fff; }
.manual-page .sheet-controls { margin: 0 20px 18px; border-color: #e2e8f3; background: #f7f9ff; }
.manual-page .excel-view { margin: 0; }
.manual-page .quick-list { max-height: 215px; overflow: auto; }
.manual-page .quick-row { padding: 10px 4px; }
.manual-page .manual-intro { display: none; }

@media (max-width: 760px) {
  .manual-overview { align-items: stretch; flex-direction: column; padding: 19px; }
  .manual-page .entry-table-card > .section-heading { padding: 0 16px; }
  .manual-page .sheet-controls { margin: 0 16px 16px; }
  .table-view-switch { width: 100%; }
  .table-view-switch button { flex: 1; }
}

.report-table.is-all-columns { min-width: 6200px; table-layout: auto; }
.report-table.is-all-columns th { min-width: 120px; white-space: normal; word-break: normal; }

.report-table thead th { background: var(--table-header-color, #dcecff); color: #315975; border-bottom: 2px solid #a9cde9; }
.report-table tfoot { display: table-header-group; }
.report-table tfoot td { background: #e9f3ff; color: #1f4c6b; border-bottom: 2px solid #a9cde9; }
.report-table tbody tr { cursor: grab; }
.report-table tbody tr.is-dragging { opacity: .45; cursor: grabbing; }
.report-table tbody tr.is-drop-target td { box-shadow: inset 0 3px 0 #5d22f5; }
.header-color-control { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 10px; border: 1px solid #e5eaf5; border-radius: 10px; color: #53607c; }
.header-color-control input { width: 44px; min-height: 32px; padding: 2px; border: 0; border-radius: 7px; }
.header-palette { display: flex; gap: 9px; margin: -7px 0 17px; }.header-palette button { width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 9px; background: var(--palette); box-shadow: 0 0 0 1px #dbe2ef; }
.setting-row [data-column-color] { width: 28px; min-width: 28px; height: 28px; padding: 1px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }.column-color-hint { margin: -6px 0 12px!important; color: #8a95ad!important; font-size: 11px!important; }
.change-positive { color: #0a9b6f!important; }.change-negative { color: #df4758!important; }
[data-trend-key][hidden] { display: none!important; }
.trend-chart [data-trend-key].is-hidden, .trend-legend [data-trend-key].is-hidden { display: none!important; }
.insight-list > [data-expense-key].is-hidden { display: none!important; }
.insight-table-head button[data-insight-sort] { appearance: none; border: 0; padding: 0 14px 0 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-align: right; cursor: pointer; position: relative; }
.insight-table-head button[data-insight-sort]::after { content: "↓"; position: absolute; right: 0; color: #7862ef; }
.insight-table-head button[data-insight-sort].is-ascending::after { content: "↑"; }
