.finance-workspace { max-width: 1260px; margin-inline: auto; font-variant-numeric: tabular-nums; }
.finance-tabs { display: flex; gap: clamp(12px, 3vw, 34px); border-bottom: 1px solid var(--edge); margin-bottom: 25px; }
.finance-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; min-height: 44px; padding: 5px 0; white-space: nowrap; color: var(--muted); font-weight: 620; }
.finance-tabs button[aria-pressed=true] { border-color: var(--green); color: var(--ink); font-weight: 740; }
.finance-content { display: grid; gap: 20px; }
.finance-box { border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--paper), white 38%); }
.finance-panel-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 18px clamp(14px, 2.2vw, 26px); border-bottom: 1px solid var(--edge); }
.finance-panel-heading h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.finance-panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.finance-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.finance-tabs button:hover, .finance-row summary:hover { background: var(--green-wash); }
.finance-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 630; }
.finance-control input, .finance-control select, .finance-form select { min-height: 40px; min-width: 0; max-width: 100%; border: 1px solid var(--edge-dark); border-radius: 4px; padding: 7px 9px; color: var(--ink); background: transparent; font: inherit; }
.finance-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden; background: var(--edge); }
.finance-box .finance-metrics { border: 0; border-radius: 0; }
.finance-metric { display: flex; flex-direction: column; gap: 5px; padding: 19px clamp(12px, 2vw, 22px); min-width: 0; background: color-mix(in srgb, var(--paper), white 38%); }
.finance-metric:first-child { background: var(--green-wash); }
.finance-metric dt { color: var(--ink); font-weight: 650; font-size: 13px; }
.finance-metric dd { margin: 0; color: var(--ink); font-size: clamp(18px, 2.45vw, 34px); font-weight: 680; line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; }
.finance-metric small { color: var(--muted); font-size: 12px; }
.finance-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finance-row { border-bottom: 1px solid var(--edge); }
.finance-row:last-child { border-bottom: 0; }
.finance-row-grid, .finance-items li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(52px, .65fr) 16px; align-items: center; gap: 11px; padding: 13px clamp(14px, 2.2vw, 26px); list-style: none; }
.finance-row summary { cursor: pointer; }
.finance-row summary::-webkit-details-marker { display: none; }
.finance-row[open] summary > i { transform: rotate(180deg); }
.finance-row summary > span, .finance-items li > span { min-width: 0; overflow-wrap: anywhere; }
.finance-row summary strong, .finance-items li strong { font-size: 14px; font-weight: 700; }
.finance-row summary small, .finance-items li small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.finance-status { justify-self: start; width: fit-content; padding: 4px 7px; border-radius: 4px; background: #f0e7d8; color: #64452b; font-size: 12px; font-weight: 680; }
.finance-status[data-paid=true] { background: var(--green-wash); color: var(--green-dark); }
.finance-amount { font-size: 14px; font-weight: 680; }
.finance-amount small { margin: 0 0 2px !important; font-weight: 520; }
.finance-row-body { padding: 13px clamp(14px, 2.2vw, 26px) 17px; background: color-mix(in srgb, var(--green-wash), var(--paper) 65%); }
.finance-row-body p, .finance-footnote { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.finance-row-body p { margin: 0 0 12px; }
.finance-row-body p:last-child { margin-bottom: 0; }
.finance-items, .finance-payments, .finance-insights { margin: 0; padding: 0; list-style: none; }
.finance-items li { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(54px, .7fr) auto; border-top: 1px solid var(--edge); }
.finance-items li:first-child { border-top: 0; }
.finance-payments li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(64px, auto); align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; border-top: 1px solid var(--edge); }
.finance-pagination { display: flex; gap: 12px; justify-content: end; align-items: center; padding: 9px 18px; font-size: 13px; }
.finance-notice, .finance-footnote, .finance-empty, .finance-insights li { margin: 0; padding: 14px clamp(14px, 2.2vw, 26px); }
.finance-notice { border-bottom: 1px solid var(--edge); background: #f2ead8; color: #553e28; font-size: 13px; }
.finance-empty { color: var(--muted); }
.finance-insights li + li { border-top: 1px solid var(--edge); }
.finance-insights li strong { font-size: 12px; color: var(--muted); margin-left: 8px; }
.finance-insights p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.finance-components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.finance-components dd { margin: 2px 0 0; font-weight: 680; }
.finance-components dt { color: var(--muted); font-size: 12px; }
.finance-form { display: grid; gap: 12px; }
.finance-form .button { justify-self: start; }
.finance-form p { margin: 0; }
.finance-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.finance-form .field { min-width: 0; }
.finance-form .field input { min-width: 0; }
.finance-sale-total { display: flex; justify-content: space-between; border-block: 1px solid var(--edge); padding: 9px 0; }
@media (max-width: 660px) {
  .finance-workspace .operator-heading { margin-bottom: 7px; }
  .finance-tabs { overflow-x: auto; }
  .finance-tabs button { font-size: 13px; }
  .finance-panel-heading { flex-wrap: wrap; }
  .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finance-row-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) 14px; gap: 8px; }
  .finance-row-grid > span:first-child { grid-column: 1 / 4; }
  .finance-row-grid > i { grid-row: 1; grid-column: 4; }
  .finance-items li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .finance-items li > span:first-child { grid-column: 1 / -1; }
  .finance-components { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
