.pnl-statement[hidden] { display: none; }
.pnl-statement { margin: 0 0 13px; }
.pnl-table-wrap { margin: 0; }
.pnl-table { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.pnl-table thead th:nth-child(1) { width: 36%; } .pnl-table thead th:nth-child(2) { width: 15%; } .pnl-table thead th:nth-child(3) { width: 9%; } .pnl-table thead th:nth-child(5) { width: 13%; }
.pnl-table th, .pnl-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pnl-table thead th { font-size: 9px; font-weight: 850; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pnl-table tbody th { font-weight: 700; font-size: 11px; color: var(--ink); text-transform: none; letter-spacing: normal; background: transparent; white-space: normal; overflow-wrap: anywhere; }
.pnl-table tbody th small, .pnl-num small { display: block; margin-top: 3px; font-size: 9px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.pnl-table tbody + tbody { border-top: 2px solid var(--line); }
.pnl-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pnl-num small { white-space: normal; }
.pnl-source { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.pnl-table .badge { white-space: normal; text-align: center; }
.pnl-table .badge.neutral { background: #f2ece8; color: var(--muted); }
.pnl-subtotal th, .pnl-subtotal td { background: #fbf6f1; }
.pnl-subtotal th, .pnl-subtotal .pnl-num b { font-weight: 850; }
.pnl-row[data-pnl-line="ebitda"] th, .pnl-row[data-pnl-line="ebitda"] .pnl-num b { font-size: 13px; }
.pnl-missing { color: var(--red-dark); }
.pnl-muted { color: var(--muted); font-weight: 650; }
.pnl-off { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pnl-off > div { display: grid; gap: 5px; align-content: start; padding: 13px; border: 1px dashed var(--line); border-radius: 11px; min-width: 0; }
.pnl-off span { font-size: 10px; font-weight: 800; color: var(--muted); }
.pnl-off em { font-style: normal; font-weight: 650; margin-left: 4px; }
.pnl-off b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pnl-off small { font-size: 9px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.pnl-notes { margin: 12px 0 0; padding-left: 18px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.pnl-note { font-size: 12px; color: var(--muted); }
.pnl-recurring { margin-top: 14px; padding: 12px 14px; border: 1px solid #ffd0c5; background: var(--red-soft); border-radius: 11px; font-size: 11px; }
.pnl-recurring ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.pnl-recurring li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.pnl-recurring li span:last-child, .pnl-recurring small { color: var(--muted); font-size: 10px; }
.pnl-categories { margin-top: 12px; }
.pnl-categories summary { cursor: pointer; font-size: 12px; font-weight: 800; padding: 8px 0; }
.pnl-category-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 11px; }
.pnl-category-table th, .pnl-category-table td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; }
.pnl-category-table tbody th { font-weight: 700; text-transform: none; letter-spacing: normal; color: var(--ink); font-size: 11px; background: transparent; }
@media (max-width: 720px) {
  .pnl-off { grid-template-columns: 1fr; }
  .pnl-table { min-width: 0; table-layout: auto; }
  .pnl-table thead { display: none; }
  .pnl-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
  .pnl-table tbody th, .pnl-table td { display: block; padding: 0; border: 0; }
  .pnl-table tbody th, .pnl-table .pnl-source { grid-column: 1 / -1; }
  .pnl-table .pnl-num { text-align: left !important; }
  .pnl-table .pnl-source { order: 5; }
}
.expense-pnl-group.cogs { background: #fde8e2; color: #9b2c16; }
.expense-pnl-group.capex { background: #e8eef7; color: #2f4f7f; }
