/* Final 2026-08-23 video parity refinements. Loaded after parity.css. */
/* Shared mobile containment: wide inner tables scroll inside their route instead of widening the page. */
.invoice-route,.companies-route,.team-route,.res-route,.audit-route,.settings-route,.fin-route,.tasks-route{min-width:0}.invoice-tablewrap,.companies-tablewrap,.team-tablewrap,.res-tablewrap,.audit-tablewrap,.fin-tablewrap{min-width:0;max-width:100%}
/* Frozen production removes descriptive page-copy from working route headers; Dashboard keeps its own composition. */
.invoice-head>div>p,.payments-head>div>p,.fin-head>div>p,.tasks-head>div>p,.companies-head>div>p,.team-head>div>p,.audit-head>div>p,.settings-head>div>p,.res-head>div>p,.leads-head>div>p,.chat-head>div>p{display:none!important}
/* Dashboard: two balanced operational lists, compact attention strip below. */
.dash-ops{grid-template-columns:1fr 1fr!important}.dash-ops>.dash-attention{grid-column:1/-1}.dash-line-chart{position:relative;overflow:hidden;padding:4px 0 0}.dash-svg{display:block;width:100%;max-width:100%;min-width:0!important;height:auto;max-height:286px}.dash-gridline{stroke:color-mix(in srgb,var(--line) 90%,transparent);stroke-width:1}.dash-axis,.dash-month{fill:var(--muted);font:700 9px system-ui}.dash-value{fill:#d51d3d;font:850 9px system-ui}.dash-value.driver{fill:#245fc9}.dash-line{fill:none;stroke:#df2444;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 5px 8px rgba(223,36,68,.16))}.dash-line.driver{stroke:#2867dc;filter:drop-shadow(0 5px 8px rgba(40,103,220,.16))}.dash-area{fill:url(#dashEarnArea);opacity:.9}.dash-area.driver{fill:url(#dashDriverArea)}.dash-depth{fill:none;stroke:#9f1730;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:.14}.dash-depth.driver{stroke:#123e96}.dash-point{fill:#fff;stroke:#df2444;stroke-width:3}.dash-point.driver{stroke:#2867dc}.dash-chart-card{min-height:330px}.dash-chart-head .tabs button{font-size:9px;font-weight:800}.dash-favorites{padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--parity-shadow)}.dash-favorites>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.dash-favorites>header b{font-size:10px}.dash-favorites>header small{color:var(--muted);font-size:8px}.dash-favorites-grid{display:flex;gap:6px;overflow:auto}.dash-favorite{flex:0 0 min(180px,42vw);display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:7px;min-height:43px;padding:6px 8px;border:1px solid var(--line);border-radius:9px;background:var(--surface2);text-align:left;cursor:pointer}.dash-favorite i{font-style:normal;color:#d5a500;text-align:center}.dash-favorite b,.dash-favorite small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dash-favorite b{font-size:9px}.dash-favorite small{font-size:7px;color:var(--muted)}
/* Invoice page mirrors the current four-state Billing overview. */
.invoice-route{gap:9px}.invoice-head{min-height:62px;align-items:center}.invoice-head h1{font-size:25px;margin:2px 0}.invoice-head-create-legacy{display:none!important}.invoice-overview{padding:11px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--parity-shadow)}.invoice-overview>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.invoice-overview header small{display:block;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.05em}.invoice-overview h2{margin:2px 0 0;font-size:16px}.invoice-overview-actions{display:flex;gap:6px}.invoice-overview-actions button{min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:10px;font-weight:800;cursor:pointer}.invoice-overview-actions button:first-child{background:linear-gradient(145deg,#e42b4a,#bd1231);border-color:#cf1f3d;color:#fff}.invoice-overview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.invoice-overview-metric{position:relative;min-height:62px;padding:8px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:linear-gradient(145deg,var(--surface),var(--surface2))!important;text-align:left!important}.invoice-overview-metric span,.invoice-overview-metric b,.invoice-overview-metric strong{display:block}.invoice-overview-metric span{color:var(--muted);font-size:9px}.invoice-overview-metric b{margin-top:2px;font-size:19px}.invoice-overview-metric strong{position:absolute;right:8px;bottom:8px;font-size:8px}.invoice-overview-metric i{position:absolute;right:8px;top:8px;width:7px;height:7px;border-radius:50%;background:#cbd2dc}.invoice-overview-metric.hot i{background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent)}.invoice-overview-metric.ok i{background:var(--green)}.invoice-modes{padding:4px 0;border-bottom:1px solid var(--line)}.invoice-modes button{min-height:30px;padding:0 8px!important;border-color:transparent!important;background:transparent!important;font-size:9px}.invoice-modes button.active{background:var(--accentSoft)!important;border-color:color-mix(in srgb,var(--accent) 35%,var(--line))!important}.invoice-toolbar{justify-content:flex-end}.invoice-search{width:min(390px,100%)}.invoice-tablewrap{border-radius:10px}.invoice-table{min-width:820px}.invoice-table th,.invoice-table td{height:40px;padding:7px 9px;font-size:10px}.invoice-table th{font-size:8px}.invoice-table td small{font-size:8px}.inv-pill{font-size:7px;min-height:20px;align-items:center;padding:0 6px}.inv-open{padding:5px 7px!important;font-size:8px}
/* Finance final hierarchy: 3 x 2 cards. Canonical finance.js owns the net-profit black outline. */
.fin-route{gap:9px}.fin-head h1{font-size:25px!important}.fin-tools{gap:5px!important}.fin-tools input,.fin-tools .btn{min-height:34px!important;font-size:9px}.fin-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.fin-kpi{min-height:88px;padding:12px!important;border-radius:12px!important;text-align:center;display:flex;flex-direction:column;justify-content:center}.fin-kpi small{font-size:8px!important}.fin-kpi b{font-size:20px!important;letter-spacing:-.02em}.fin-kpi span{font-size:8px!important}.fin-panel{border-radius:13px!important;box-shadow:var(--parity-shadow)}.fin-panel>header{min-height:42px;padding:8px 12px!important}.fin-panel h2{font-size:14px!important}.fin-grid{gap:7px!important;padding:10px!important}.fin-mini{padding:9px!important;text-align:center}.fin-mini small{font-size:8px!important}.fin-mini b{font-size:11px}.fin-table th,.fin-table td{padding:8px 9px!important;font-size:9px!important}.fin-table th{font-size:8px!important}
/* Settings/table pages use the same compact density as frozen production. */
.tasks-head h1,.companies-head h1,.team-head h1,.audit-head h1,.settings-head h1{font-size:24px!important}.tasks-card{padding:9px!important}.tasks-card small{font-size:9px!important}.tasks-card b{font-size:17px!important}.tasks-row,.companies-table th,.companies-table td,.team-table th,.team-table td,.audit-row{font-size:9px!important}.tasks-row{padding:8px 10px!important;min-height:39px}.companies-table th,.companies-table td,.team-table th,.team-table td{padding:8px 10px!important}.settings-panel{border-radius:12px!important}.integration-card{font-size:10px}.settings-tabs{position:sticky;top:76px;align-self:start}
@media(max-width:980px){.invoice-overview-grid{display:flex;overflow:auto}.invoice-overview-metric{flex:0 0 120px}.fin-kpis{grid-template-columns:1fr 1fr!important}}
@media(max-width:620px){.invoice-overview>header{display:block}.invoice-overview-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:8px}.invoice-overview-actions button{width:100%;min-width:0}.dash-flow,.invoice-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:visible}.dash-flow button,.invoice-overview-metric{min-width:0;width:auto;flex:auto}.invoice-table th,.invoice-table td{font-size:9px}.fin-kpis{grid-template-columns:1fr 1fr!important}.dash-chart-card{min-height:280px}}
