/* WAHL design template, 14.10.2026: shared application shell and planning components. */
:root{--ink:#191919;--paper:#e2e4e7;--white:#fff;--line:#dedee1;--muted:#666;--accent:#191919;--green:#22613b;--red:#ad2720;--yellow:#825a08;--plan-rhythm:#792f91;--plan-period:#c8d53a;--focus:#762793;--sidebar-width:246px}
body{--sidebar-width:246px;font:14px/1.5 Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}
button,input,select,textarea{font:inherit}button{min-height:42px;border-radius:6px;padding:10px 15px}button:hover{filter:none;background:#333;color:#fff}.secondary:hover{background:#f2f2f4;color:var(--ink)}.link:hover{background:transparent;color:var(--plan-rhythm);text-decoration:underline}button:disabled{opacity:.5;cursor:not-allowed}button:disabled:hover{filter:none}input,select,textarea{border:1px solid #d7d7db;border-radius:6px;min-height:42px;padding:10px 12px;color:var(--ink);background:#fff}textarea{font:inherit;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible,summary:focus-visible,a:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}label{font-size:13px;font-weight:600;color:#555}h1{font-size:32px;letter-spacing:-.035em}h2{font-size:24px}h3{font-size:19px;letter-spacing:-.02em;margin:0 0 8px}.hint,.muted,.pagehead p,.sectionhead p{font-size:13px;color:var(--muted)}.eyebrow{font-size:11px;color:#666;letter-spacing:.14em}.link{font-size:13px;min-height:32px}.skip-link{position:fixed;left:16px;top:-70px;z-index:100;background:#fff;color:#191919;padding:12px;border:2px solid var(--focus);border-radius:6px}.skip-link:focus{top:12px}
body>header{height:90px;padding:12px 28px;box-shadow:0 1px 0 #00000003}.brand{display:flex;min-width:0;gap:24px}.brand-logo{width:154px;max-height:66px;object-fit:contain}.brand-label{border-left:1px solid var(--line);padding-left:24px}.brand-label b{font-size:19px;font-weight:700;letter-spacing:.14em}.brand-label small{font-size:12px;color:#666}#identity{font-size:13px;gap:18px}#identity .link{font-weight:600}#navToggle{display:none}main{padding:24px 32px 48px}main:has(#workspace:not([hidden])){padding:24px 32px 48px calc(var(--sidebar-width) + 32px)}
#sidebar{top:90px;width:var(--sidebar-width);padding:16px 12px 22px;background:#fff;display:flex;flex-direction:column;gap:24px;scrollbar-width:thin}#sidebar nav{flex:1}.nav-section{border-bottom:1px solid #efeff1;padding:6px 0 12px;margin-bottom:5px}.nav-section:last-of-type{border-bottom:0}#sidebar summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;color:#777;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:12px 11px;min-height:40px}#sidebar summary::-webkit-details-marker{display:none}#sidebar summary span{font-size:15px;transition:transform .15s}#sidebar details:not([open]) summary span{transform:rotate(-90deg)}#sidebar nav button{font-size:13px;font-weight:500;line-height:1.35;min-height:40px;padding:11px 12px;border:1px solid transparent;border-radius:6px;margin:2px 0;color:#373737;background:transparent}#sidebar nav button:hover{background:#f3f3f5;color:#191919}#sidebar nav button.active{color:white;background:#191919;font-weight:700}#sidebar nav button.active:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#c8d53a;margin-right:9px;vertical-align:2px}.nav-footer{color:#888;font-size:11px;padding:12px 11px}.nav-footer b,.nav-footer span{display:block}.nav-footer b{letter-spacing:.1em;font-size:10px;margin-bottom:4px}.workspace-context{display:flex;justify-content:space-between;gap:15px;margin:0 0 24px;padding:0 0 14px;border-bottom:1px solid var(--line);color:#777;font-size:12px}.workspace-context p{margin:0}.workspace-context>span{font-size:11px;letter-spacing:.08em;color:#999}#workspaceLocation:focus{outline:none}#navScrim{display:none}.pagehead{margin-bottom:28px;align-items:flex-end}.pagehead h1{margin-top:8px}.pagehead .actions{justify-content:flex-end}.pagehead select{min-width:250px}.sectionhead{margin-bottom:24px;gap:20px}.sectionhead h2,.tab>.sectionhead h2{font-size:28px;letter-spacing:-.03em;margin:4px 0 7px}.sectionhead p{margin:0}.sectionhead .actions{justify-content:flex-end}.tab>h2{font-size:28px;margin-bottom:8px}
.kpis{gap:16px;margin:22px 0 26px;grid-template-columns:repeat(3,minmax(0,1fr))}.kpi{border-radius:9px;padding:20px 22px;border-color:var(--line);min-width:0}.kpi small,#billing .kpi small{font-size:11px;letter-spacing:.06em;line-height:1.6}.kpi strong,#billing .kpi strong{font-size:27px;font-weight:700;margin:10px 0 8px;line-height:1.15;letter-spacing:-.035em;overflow-wrap:anywhere}.kpi em{font-size:12px;line-height:1.5;display:block}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:24px;margin:20px 0}.panel{padding:0;overflow:hidden}.panelhead{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.panelhead h3{margin:0 0 4px}.panelhead p{font-size:12px;color:#666;margin:0}.panelhint{padding:0 24px 18px;font-size:12px;color:#666;margin:12px 0 0}.notice{border:1px solid #e6d7b5;border-left:3px solid #b56823;background:#fff9ec;border-radius:7px;font-size:13px;line-height:1.6;white-space:normal;margin:20px 0;padding:16px 20px}.notice p{margin:4px 0 0}.notice.neutral{background:#fff;border:1px solid var(--line);border-left:3px solid #999}.notice.error{background:#fff0ef;border-color:#e6bbb8;border-left-color:#ad2720}.notice ul{padding-left:20px}.billing-missing{display:flex;justify-content:space-between;align-items:center;gap:18px}.empty-cell{padding:38px!important;text-align:center!important;color:#666;white-space:normal!important}
.tablewrap{border-radius:7px;scrollbar-width:auto;scrollbar-color:#bbb #f1f1f1;scroll-padding-top:64px}table{font-size:14px;font-variant-numeric:tabular-nums}th{font-size:11px;background:#efeff1;color:#626262;line-height:1.4;padding:14px 16px;letter-spacing:.035em}td{padding:17px 16px;font-size:14px;border-color:#ededf0;line-height:1.5}td small{font-size:12px;line-height:1.5;margin-top:5px}.tablewrap thead th,#projects thead th:first-child{background:#efeff1;box-shadow:0 1px 0 #dedee1}tbody tr:nth-child(even){background:#fafafa}tbody tr:hover{background:#f5f3f6}#projects tbody tr:hover,#projects tbody tr:hover td:first-child{background:#f5f3f6}.tablewrap td:first-child{min-width:230px}#projects th,#projects th button{font-size:11px}#projects td,#projects td .link{font-size:14px}#projects th:first-child,#projects td:first-child{width:310px;min-width:310px;max-width:310px}.signal{font-size:12px;padding:4px 9px}#projects .signal{font-size:12px}.roles th,.roles td{font-size:13px}.finance-section .tablewrap{max-height:64dvh}.invoice-summary{border-radius:9px;font-size:14px;padding:22px 24px}.invoice-table th{font-size:11px}.invoice-table td{padding:18px 16px}
.billing-controls{background:#fff;border:1px solid var(--line);border-radius:9px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.billing-controls .actions{gap:18px}.billing-controls select{min-width:158px}.billing-datastamp{display:flex;gap:24px;font-size:12px;color:#777;text-align:right}.billing-datastamp span{display:flex;flex-direction:column;gap:4px}.billing-datastamp b{font-weight:600;color:#333}.billing-footnote{display:flex;justify-content:space-between;gap:20px;margin-top:22px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;color:#777}.billing-footnote p{max-width:800px;margin:0}.billing-footnote button{align-self:flex-start}.billing-chart{background:#fff;border:0;border-top:1px solid #eee;border-radius:0;padding:18px 16px 4px;scrollbar-width:thin}.billing-chart svg{height:310px;width:100%}.chart-legend{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;padding:12px 24px 20px;color:#666;font-size:12px}.chart-legend>span{display:inline-flex;align-items:center;gap:7px}.swatch{display:inline-block;width:11px;height:11px;border-radius:2px;flex-shrink:0}.swatch.rhythm{background:var(--plan-rhythm)}.swatch.period{background:var(--plan-period)}.line-key{width:22px;border-top:2px solid;display:inline-block;flex-shrink:0}.line-key.average{color:#176aa6}.line-key.rolling{color:#1e1e24;border-top-style:dashed}.line-key.target{color:#b56823;border-top-style:dashed}.plan-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);background:#fcfcfc}.plan-metrics>div{padding:18px 24px;border-right:1px solid var(--line)}.plan-metrics>div:last-child{border:0}.plan-metrics small{display:block;min-height:36px;font-size:11px;color:#777}.plan-metrics b{font-size:23px;display:block;font-variant-numeric:tabular-nums;letter-spacing:-.025em}.plan-metrics button{display:block;margin:3px 0 0;padding:3px 0;min-height:28px;font-size:12px}.plan-values summary{padding:20px 24px;font-weight:600;cursor:pointer}.plan-values .tablewrap{border-radius:0;border:0;border-top:1px solid var(--line);max-height:440px}.plan-values td:first-child small{display:inline;margin-left:8px}.quality-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 24px 8px}.quality-filter{display:flex;align-items:center;gap:12px;text-align:left;min-width:0;white-space:normal;border:1px solid transparent;background:#fff;font-weight:400;padding:17px;border-radius:7px;min-height:94px}.quality-filter>span:nth-child(2){flex:1}.quality-filter b{display:block;font-size:13px}.quality-filter small{display:block;font-size:11px;margin-top:4px;line-height:1.4}.quality-count{font-size:29px;font-weight:700;line-height:1}.quality-filter.quality-red,.quality-badge.quality-red{background:#fff0ef;border-color:#f0cecb;color:#ad2720}.quality-filter.quality-yellow,.quality-badge.quality-yellow{background:#fff8df;border-color:#ecdfaf;color:#825a08}.quality-filter.quality-green,.quality-badge.quality-green{background:#edf7f0;border-color:#cce3d3;color:#22613b}.quality-filter:hover{filter:brightness(.97);color:inherit;box-shadow:0 0 0 1px currentColor}.quality-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;font-weight:600;padding:5px 8px;border-radius:5px;border:1px solid #ddd;background:#f4f4f4;color:#666;white-space:normal}.quality-badge i{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.plan-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;padding:0 24px 20px}.plan-filters label{min-width:150px}.plan-search{flex:1;max-width:420px}.plan-search input{width:100%}.plan-filters .link{margin-bottom:4px}.billing-projects{min-width:1630px}.billing-projects td:first-child,.billing-projects th:first-child{width:285px;min-width:285px;max-width:285px;position:sticky;left:0;z-index:2;background:#fff;text-align:left;box-shadow:1px 0 0 var(--line)}.billing-projects thead th:first-child{z-index:5;background:#efeff1}.billing-projects td:nth-child(2){min-width:190px;max-width:220px;white-space:normal;text-align:left}.billing-projects td:nth-child(9){min-width:250px;max-width:285px;white-space:normal;text-align:left}.billing-projects td:nth-child(8){min-width:122px}.billing-projects td:last-child{min-width:160px;text-align:left}.billing-projects td:nth-child(7){white-space:nowrap;max-width:none}.billing-projects td .link{display:block;margin-top:5px}.orders-scroll{border-left:0;border-right:0;border-radius:0;max-height:570px;max-height:58dvh}.missing-value{color:#9b6717;font-size:12px}.billing-history th:nth-child(2),.billing-history td:nth-child(2),.billing-history th:nth-child(3),.billing-history td:nth-child(3){text-align:left}.import-log{display:flex;gap:24px;justify-content:space-between;padding:16px 24px;border-top:1px solid #eee;font-size:13px}.import-log small{display:block;font-size:12px;color:#777;margin-top:3px}.import-log>span{color:#777;white-space:nowrap}
.matrix-panel .chart-legend{padding-top:0}.matrix-top-scroll{height:19px;overflow-x:auto;overflow-y:hidden;margin:0 0 1px;scrollbar-gutter:stable}.matrix-top-scroll>div{height:1px}.matrix-scroll{max-height:600px;max-height:60dvh;min-height:260px;border-left:0;border-right:0;border-radius:0;scrollbar-gutter:stable}.planning-matrix{width:max-content;min-width:100%;table-layout:fixed}.planning-matrix th,.planning-matrix td{min-width:145px;width:145px;max-width:145px;white-space:nowrap;padding:16px;text-align:right}.planning-matrix thead th{height:68px;text-transform:none;letter-spacing:0;font-size:12px}.planning-matrix thead small{display:block;color:#777;font-size:11px;font-weight:400;margin-top:3px}.planning-matrix th:first-child{width:285px;min-width:285px;max-width:285px;position:sticky;left:0;text-align:left;white-space:normal;box-shadow:1px 0 0 #d7d7db;z-index:3}.planning-matrix tbody th{top:auto;color:#191919;background:#fff;text-transform:none;letter-spacing:0;font-size:13px;font-weight:500;height:98px;border-top:1px solid #ededf0;vertical-align:middle}.planning-matrix tbody th .link{white-space:normal;text-align:left;min-height:0;padding:0;font-weight:600;font-size:13px;display:block;line-height:1.4}.planning-matrix tbody th small{display:block;color:#777;font-size:11px;font-weight:400;margin:5px 0}.planning-matrix thead th:first-child{z-index:7;background:#efeff1}.plan-pill{display:inline-block;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:500;line-height:1.3}.plan-pill.rhythm{background:#f3ebf6;color:#792f91}.plan-pill.period{background:#f1f4d5;color:#54610c}.planning-matrix td.cell-rhythm{background:#f8f3fa;color:#68247e}.planning-matrix td.cell-period{background:#f5f7e3;color:#434b19}.planning-matrix tfoot th,.planning-matrix tfoot td{position:sticky;bottom:0;z-index:4;background:#ededf0;border-top:2px solid #333;color:#191919;font-weight:700;font-size:13px;height:56px}.planning-matrix tfoot th:first-child{z-index:6}.editor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:20px;background:#f7f7f8;border:1px solid var(--line);border-radius:7px;margin:22px 0}.editor-summary small{display:block;font-size:11px;color:#666;margin-bottom:6px}.editor-summary b{font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.plan-editor>h3{font-size:21px}.plan-editor form{gap:20px}.plan-editor h3{margin-top:20px}.plan-editor .formgrid{margin-bottom:20px}.plan-editor .hint{line-height:1.6;margin-top:8px}.plan-editor input,.plan-editor select,.plan-editor textarea{width:100%}.plan-editor fieldset{margin:0}.plan-editor textarea{min-height:96px}.plan-editor .checkline{color:#333;margin-top:20px}.plan-editor .checkline input{width:auto;min-height:0}.editor-actions{display:flex;gap:12px;justify-content:flex-end;padding-top:18px;border-top:1px solid var(--line)}.editor-source{padding-top:20px;color:#666;font-size:12px}.editor-source summary{cursor:pointer;font-weight:600}.editor-source p{margin:10px 0}.editor-source li{margin:6px 0}.dialoghead{position:sticky;top:-24px;background:white;z-index:10;padding-top:12px}.dialoghead h2{font-size:23px;line-height:1.3;max-width:85%}.dialoghead button{flex-shrink:0}.login{max-width:430px}.login h1{font-size:44px}.member{border:1px solid var(--line);border-bottom:0}.member:last-child{border-bottom:1px solid var(--line)}footer{font-size:11px}
@media(min-width:1700px){main:has(#workspace:not([hidden])){padding-left:calc(var(--sidebar-width) + 40px);padding-right:40px}.kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.kpi{padding:22px}.kpi strong,#billing .kpi strong{font-size:29px}}
@media(max-width:1200px){.sectionhead{flex-direction:column;align-items:flex-start}.sectionhead .actions{justify-content:flex-start}.quality-filters{grid-template-columns:1fr}.quality-filter{min-height:76px}.plan-metrics>div{padding:16px}.kpi strong,#billing .kpi strong{font-size:25px}.brand-label small{display:none}}
@media(max-width:1000px){body{--sidebar-width:218px}main:has(#workspace:not([hidden])){padding:20px 24px 40px calc(var(--sidebar-width) + 24px)}.brand-label{display:none}#sidebar{padding:12px 8px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-controls{align-items:flex-start;flex-direction:column}.billing-datastamp{text-align:left}.plan-metrics{grid-template-columns:1fr}.plan-metrics>div{border-right:0;border-bottom:1px solid var(--line);padding:16px 24px}.plan-metrics small{min-height:0;margin-bottom:6px}.plan-metrics b{font-size:22px}.plan-filters .plan-search{max-width:none;flex-basis:100%}.workspace-context>span{display:none}.pagehead .actions{justify-content:flex-start}}
@media(max-width:760px){body>header{height:76px;padding:10px 16px;gap:14px}.brand-logo{width:112px;max-height:54px}#navToggle:not([hidden]){display:block;min-width:42px;padding:7px 10px;font-size:18px;order:-1}#navToggle span{display:none}.brand{gap:0}#identity{gap:9px;font-size:11px;flex-direction:row}#identity .link{font-size:11px;min-height:32px}#identity small{font-size:10px}#identity>span{max-width:100px}main:has(#workspace:not([hidden])){padding:18px 16px 36px}#sidebar{display:none;position:fixed;top:76px;bottom:0;left:0;width:270px;max-width:86vw;margin:0;border-radius:0;border-left:0;border-top:0;max-height:none;padding:14px 12px;z-index:40}#sidebar nav{display:block}#sidebar nav button{width:100%;font-size:14px;padding:12px}#sidebar .nav-section{margin-bottom:8px}body.navigation-open #sidebar{display:flex}body.navigation-open #navScrim{display:block;position:fixed;inset:76px 0 0;border:0;border-radius:0;background:#0006;z-index:35;width:100%;height:calc(100dvh - 76px)}body.navigation-open{overflow:hidden}body:has(#workspace:not([hidden]))>footer{margin:0 16px}.workspace-context{margin-bottom:20px}.sectionhead h2,.tab>.sectionhead h2,.tab>h2{font-size:26px}.sectionhead .actions{width:100%;gap:8px}.sectionhead .actions button{flex:1}.sectionhead .actions button:last-child{flex-basis:100%}.billing-controls{padding:15px}.billing-controls .actions{width:100%;gap:12px}.billing-controls label{flex:1;min-width:120px}.billing-controls select{min-width:0;width:100%}.billing-datastamp{gap:20px;font-size:11px}.kpis{gap:10px}.kpi{padding:16px 14px}.kpi strong,#billing .kpi strong{font-size:22px}.kpi small,#billing .kpi small{font-size:10px}.kpi em{font-size:11px}.panelhead{padding:18px;flex-direction:column;align-items:flex-start;gap:10px}.panelhead h3{font-size:18px}.quality-filters{padding:0 18px 8px}.panelhint{padding:0 18px 18px}.plan-filters{padding:0 18px 18px;gap:12px}.plan-filters label{min-width:0;flex:1}.plan-filters .plan-search{flex-basis:100%}.plan-filters .link{width:100%;text-align:left}.chart-legend{padding-left:18px;padding-right:18px;gap:9px 16px}.billing-missing{flex-direction:column;align-items:flex-start;gap:12px}.billing-footnote{flex-direction:column;gap:8px}.billing-chart svg{height:280px}.editor-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:16px}.editor-summary b{font-size:17px}.formgrid,.settingsgrid{grid-template-columns:1fr}.plan-editor .formgrid{gap:15px}.planning-matrix th:first-child{width:200px;min-width:200px;max-width:200px}.planning-matrix td,.planning-matrix th{min-width:130px;width:130px;max-width:130px}.matrix-scroll{max-height:65dvh}.billing-projects td:first-child,.billing-projects th:first-child{width:210px;min-width:210px;max-width:210px}.billing-heading .actions button{white-space:normal}input,select,textarea{font-size:16px}.import-log{padding:16px 18px}.import-log b{overflow-wrap:anywhere}.import-log>span{font-size:12px}.dialoghead h2{font-size:21px}.pagehead select{min-width:0;width:100%}.pagehead .actions{width:100%}.pagehead .actions select{flex-basis:100%}.pagehead .actions button{flex:1}}
@media(max-width:400px){body>header{gap:9px;padding:10px 12px}.brand-logo{width:90px}#identity{gap:7px}#identity>span{max-width:75px}.kpi strong,#billing .kpi strong{font-size:19px}}
@media print{@page{size:A4 landscape;margin:7mm}.skip-link,#navToggle,#navScrim,#sidebar,.workspace-context,.billing-controls,.billing-footnote,.plan-filters,.matrix-top-scroll,.quality-filter,.editor-actions{display:none!important}body{font-size:10px;background:#fff;color:#000}main,main:has(#workspace:not([hidden])){padding:0!important}.sectionhead h2,.tab>.sectionhead h2{font-size:20px}.panel,.card{break-inside:auto;margin:10px 0;padding:0;overflow:visible}.panelhead{padding:12px}.panelhead h3{font-size:15px}.billing-chart{overflow:visible;padding:10px}.billing-chart svg{min-width:0!important;width:100%;height:auto}.chart-legend{padding:10px;font-size:9px}.swatch,.plan-pill,.quality-badge,.planning-matrix td{-webkit-print-color-adjust:exact;print-color-adjust:exact}.billing-kpis{grid-template-columns:repeat(3,1fr)}.kpi strong,#billing .kpi strong{font-size:18px}.kpi{padding:10px}.kpi small,.kpi em{font-size:9px}.plan-metrics{grid-template-columns:repeat(3,1fr)}.plan-metrics>div{padding:10px}.plan-metrics b{font-size:16px}.plan-metrics small{font-size:9px}.tablewrap,.matrix-scroll,.orders-scroll{height:auto;max-height:none!important;min-height:0;overflow:visible!important;isolation:auto}.tablewrap th,.tablewrap td{position:static!important;box-shadow:none!important;min-width:0!important;max-width:none!important;padding:4px!important;font-size:8px!important;white-space:normal!important;overflow-wrap:anywhere}.tablewrap td small,.quality-badge{font-size:7px}.tablewrap table{min-width:0!important;width:100%!important;table-layout:fixed}.billing-projects th:first-child,.billing-projects td:first-child{width:18%!important}.billing-projects th:nth-child(9),.billing-projects td:nth-child(9){width:16%!important}.billing-projects th:last-child,.billing-projects td:last-child{display:none}.planning-matrix th:first-child{width:18%!important}.planning-matrix tbody th{height:auto;font-size:8px!important}.planning-matrix tbody th .link,.planning-matrix tbody th small,.planning-matrix .plan-pill{font-size:7px!important}.planning-matrix tfoot td,.planning-matrix tfoot th{height:auto}.plan-values{display:block}.plan-values>summary{font-size:13px;padding:10px}.notice{padding:10px;font-size:10px}.quality-filters{display:none}.panelhint{font-size:9px;padding:10px}thead{display:table-header-group}tfoot{display:table-row-group}tr{break-inside:avoid}}

input[type="checkbox"],input[type="radio"]{min-height:0;width:auto;accent-color:var(--focus)}
.matrix-print{display:none}
@media print{#billing .matrix-scroll{display:none!important}.matrix-print{display:block}.matrix-print section{break-after:page}.matrix-print section:last-child{break-after:auto}.matrix-print table{table-layout:fixed;width:100%;font-size:9px;border-collapse:collapse}.matrix-print th,.matrix-print td{position:static;min-width:0;max-width:none;width:auto;white-space:normal;padding:5px 4px;font-size:9px;overflow-wrap:anywhere}.matrix-print th:first-child,.matrix-print td:first-child{width:23%;text-align:left}.matrix-print td small,.matrix-print th small{display:block;font-size:8px}.matrix-print h3{font-size:14px;margin:12px 0}.matrix-print tfoot td,.matrix-print tfoot th{font-weight:bold;border-top:2px solid #333}.matrix-print thead{display:table-header-group}.matrix-print tfoot{display:table-row-group}}

/* Screenshot reference: compact, consistent financial workspace across every module. */
body{--sidebar-width:216px;font-size:14px;background:var(--paper)}body>header{height:78px;padding:10px 28px}.brand{gap:25px}.brand-logo{width:138px;max-height:58px}.brand-label{padding-left:24px}.brand-label b{font-size:19px}.brand-label small{font-size:11px}#identity{font-size:12px}#sidebar{top:78px;padding:18px 8px 12px;border-color:#d4d4d8;gap:12px}#sidebar nav button{display:flex;align-items:center;gap:12px;font-weight:600;font-size:12px;padding:11px 12px;min-height:42px;border-radius:4px}#sidebar nav button.active:before{content:none}#sidebar nav button svg{width:15px;height:15px;flex:0 0 15px}#sidebar nav button span{flex:1}#sidebar summary{font-size:10px;letter-spacing:.08em;padding:12px 6px;color:#73737b}#sidebar summary>span{font-size:12px;color:#aaa}.nav-section{border:0;padding:4px 0 15px;margin:0}.nav-footer{font-size:10px;padding:14px 4px;border-top:1px solid #eee}.nav-footer b{font-size:10px;letter-spacing:0;text-transform:none}.workspace-context{display:none}main:has(#workspace:not([hidden])){padding:30px 32px 48px calc(var(--sidebar-width) + 32px)}.eyebrow{font-size:10px;letter-spacing:.14em;color:#262626;font-weight:700}.sectionhead,.pagehead{margin-bottom:24px;align-items:center}.sectionhead h2,.tab>.sectionhead h2,.pagehead h1,.tab>h2{font-size:28px;line-height:1.2;margin:7px 0 9px;letter-spacing:-.025em}.sectionhead p,.pagehead p{font-size:12px;color:#6b6b70}.sectionhead .actions{gap:8px}.sectionhead button,.sectionhead select,.pagehead button,.pagehead select{font-size:12px;min-height:38px;padding:9px 12px}button{font-size:13px;border-radius:5px;min-height:38px}.secondary{border-color:#e1e1e5}label{font-size:12px}input,select,textarea{border-color:#dedee4;min-height:38px;font-size:13px;border-radius:5px}input[type="checkbox"],input[type="radio"]{min-height:0}.kpis{gap:14px;margin:18px 0 22px;grid-template-columns:repeat(4,minmax(0,1fr))}.kpi{padding:20px;border-radius:7px;min-height:132px;border:1px solid #e0e0e5;box-shadow:none}.kpi small,#billing .kpi small{display:flex;justify-content:space-between;gap:12px;align-items:center;letter-spacing:0;text-transform:none;font-size:12px;line-height:1.5;color:#68686d}.kpi small>span{font-size:15px;color:#96939f;font-weight:400}.kpi strong,#billing .kpi strong{font-size:27px;letter-spacing:-.025em;margin:17px 0 13px}.kpi em{font-size:11px;color:#77777c}.kpi.accent-card{border-top:2px solid #792f91;padding-top:19px}.kpi.warning-card{border-top:2px solid #b56823;padding-top:19px}.kpi.warning-card strong{font-size:24px!important}#overview .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.card,.panel,.invoice-summary{border:1px solid #dfdfe5;border-radius:7px;box-shadow:none}.card{padding:22px}.panel{margin:20px 0}.panelhead{padding:22px 22px 18px}.panelhead h3{font-size:18px;font-weight:700;line-height:1.3}.panelhead p{font-size:12px;color:#6b6b70;margin-top:7px}.panelhint{font-size:11px;line-height:1.6;padding:0 22px 18px}.notice{border-radius:5px;border:1px solid #f0deb2;background:#fff9e9;color:#805d1b;padding:12px 16px;font-size:12px;margin:18px 0;line-height:1.6}.notice.neutral{background:#fff;border:1px solid #e3e3e8;color:#6a6a70}.notice.error{border-color:#f0c7c4;background:#fff0ef;color:#ad2720}.notice.mandate-warning{font-size:12px;padding:12px 16px;margin:0 0 18px}.billing-missing{background:#fff9e9}.billing-missing p{font-size:11px;margin-top:3px}.billing-missing b{font-weight:600}.billing-missing button{font-size:12px;padding:7px 10px;min-height:32px}.billing-heading .print-action{display:none}.horizon-panel .panelhead{padding:19px 22px}.horizon-panel .actions{margin-left:auto}.horizon-panel select,.horizon-panel button{font-size:12px;min-height:36px;padding:8px 12px}.target-pill{font-size:11px;color:#777;background:#f1f1f3;border-radius:3px;padding:5px 8px;white-space:nowrap}.reference-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.billing-chart{padding:16px 20px 0;border-top:0}.billing-chart svg{height:310px}.actual-chart svg{height:320px}.chart-legend{font-size:11px;padding:14px 22px 18px;gap:10px 24px}.chart-legend>span{gap:6px}.chart-legend .legend-note{margin-left:auto;font-size:10px;color:#888}.swatch{height:8px;width:8px}.line-key{width:18px}.chart-data{outline:none}.chart-data:focus rect,.chart-data:hover rect{opacity:.82;stroke:#191919;stroke-width:.8}.billing-footnote{font-size:10px;color:#888;margin-top:22px}.billing-footnote .link{font-size:11px}.quality-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 22px 10px}.quality-filter{min-height:78px;padding:13px;gap:9px;border-radius:5px}.quality-filter b{font-size:12px}.quality-filter small{font-size:10px}.quality-count{font-size:24px}.quality-badge{font-size:11px;border:0;border-radius:4px;padding:5px 7px}.quality-badge i{height:7px;width:7px}.plan-filters{padding:14px 20px 16px;gap:12px}.plan-filters label{font-size:11px}.plan-filters input,.plan-filters select{font-size:12px;min-height:36px}.plan-filters button{font-size:11px;min-height:30px}.tablewrap{border-color:#e0e0e5;border-radius:6px}.tablewrap thead th,#projects thead th:first-child{background:#f0f0f3;box-shadow:0 1px 0 #cccdd3}th,#projects th,#projects th button{font-size:10px;letter-spacing:.04em;color:#36363b;padding:13px 15px}td,#projects td,#projects td .link{font-size:13px;line-height:1.5;padding:16px 15px}td small,#projects td small{font-size:11px;color:#77777c;line-height:1.45;margin-top:5px}td small b{font-weight:500}tbody tr:nth-child(even),#projects tbody tr:nth-child(even),#projects tbody tr:nth-child(even) td:first-child{background:white}tbody tr:hover,#projects tbody tr:hover,#projects tbody tr:hover td:first-child{background:#faf9fb}.panel>.tablewrap{border-left:0;border-right:0;border-bottom:0;border-radius:0}.billing-projects td:first-child b{font-size:13px}.billing-projects td:first-child small{max-width:270px}.billing-projects td:nth-child(6) small{margin-top:7px}.amount-track{display:block;height:3px;background:#ebebf1;width:120px;max-width:100%;margin:7px 0 0 auto;border-radius:2px;overflow:hidden}.amount-track>i{height:100%;display:block;background:#9e74ae}.billing-projects td:last-child button{font-size:12px}.billing-projects .secondary{background:transparent;color:#191919;border-color:transparent;padding:5px 0;min-height:26px;font-weight:600}.billing-projects .secondary:hover{color:#792f91;text-decoration:underline}.reach-table{min-width:1200px}.reach-table td:first-child{width:260px;max-width:285px}.reach-table td:nth-child(2){text-align:left;white-space:normal;min-width:230px;max-width:330px}.reach-table td:nth-child(3),.reach-table td:nth-child(4){text-align:left;white-space:normal;min-width:175px;max-width:250px}.reach-table td:nth-child(4)>b{display:block;font-size:12px}.reach-table th:nth-child(2),.reach-table th:nth-child(3),.reach-table th:nth-child(4){text-align:left}.reach-table td .link{font-size:12px;font-weight:600}.reach-scroll{max-height:445px;max-height:55dvh}.reach-scroll td{padding-top:18px;padding-bottom:18px}.import-history th:nth-child(2),.import-history td:nth-child(2){text-align:left}.tab .finance-section{max-width:none}.finance-section .sectionhead{margin-bottom:25px}.finance-section label{font-size:12px}.finance-section textarea{font-size:13px;padding:12px}.finance-section .notice{font-size:12px}.invoice-summary{padding:20px 22px;gap:36px}.invoice-summary strong{font-size:28px}.invoice-summary span,.invoice-summary b{font-size:13px}.invoice-status{font-size:11px;padding:4px 8px;border-radius:4px}.invoice-table{font-size:13px}.invoice-table th{font-size:10px}.invoice-table td{padding:17px 15px}.invoice-filters{background:white;border:1px solid #e0e0e5;border-radius:7px;padding:15px 18px}.invoice-form .card{padding:20px;border-radius:7px}.invoice-form input,.invoice-form select,.invoice-form textarea{font-size:13px}.invoice-form summary,.invoice-detail summary{font-size:15px}.invoice-findings{font-size:13px}.invoice-detail h3,.finance-section h3{font-size:17px}.mail-preview{font-size:14px;background:#fafafa;border:1px solid #eee;border-radius:5px}.member{padding:17px 20px;gap:14px;font-size:13px}.member small{font-size:11px}.member button{font-size:12px}.settingsgrid{grid-template-columns:repeat(3,minmax(180px,1fr));max-width:1000px}.deduction-row{padding:18px;border-radius:6px}.bankgrid{gap:18px}.dialoghead{padding-bottom:16px}.dialoghead h2{font-size:22px}dialog{border-radius:9px;box-shadow:0 15px 65px #0003}.dialoghead button{min-height:32px}.dialoghead{top:-24px}.formgrid{gap:18px}.editor-summary{border-radius:6px;padding:18px}.editor-summary b{font-size:18px}.editor-summary small{font-size:11px}.plan-editor h3{font-size:18px}.plan-editor .checkline,.plan-editor .hint{font-size:12px}.plan-editor textarea{font-size:13px}.plan-values summary{font-size:13px;padding:16px 22px}.roles th,.roles td{font-size:12px}.login{margin:65px auto;background:white;border:1px solid #e0e0e5;border-radius:9px;padding:34px;max-width:460px}.login h1{font-size:37px}.login form{margin-top:24px}.login p{font-size:13px}.login input{font-size:14px}.login .eyebrow{font-size:10px}body:has(#workspace:not([hidden]))>footer{margin-left:calc(var(--sidebar-width) + 32px)}
@media(min-width:1700px){main:has(#workspace:not([hidden])){padding:32px 34px 48px calc(var(--sidebar-width) + 34px)}.kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi{padding:21px}.kpi strong,#billing .kpi strong{font-size:29px}.billing-chart svg{height:335px}.actual-chart svg{height:350px}}
@media(max-width:1200px){.reference-kpis,.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#overview .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.quality-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.quality-filter{flex-wrap:wrap}.quality-filter>span:last-child{display:none}.kpi strong,#billing .kpi strong{font-size:24px}.sectionhead{align-items:flex-start}.horizon-panel .panelhead{align-items:flex-start}.horizon-panel .actions{margin-left:0}}
@media(max-width:1000px){body{--sidebar-width:200px}#sidebar nav button{font-size:12px;gap:10px;padding:10px}main:has(#workspace:not([hidden])){padding:24px 22px 40px calc(var(--sidebar-width) + 22px)}.quality-filters{grid-template-columns:1fr}.quality-filter{flex-wrap:nowrap}.quality-filter>span:last-child{display:block}#overview .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.settingsgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.sectionhead .actions{justify-content:flex-start}.chart-legend .legend-note{margin-left:0;width:100%}}
@media(max-width:760px){body>header{height:72px;padding:9px 14px;gap:12px}.brand-logo{width:106px;max-height:50px}#identity{font-size:11px;gap:8px}#identity .link{font-size:11px}#sidebar{top:72px;width:264px;padding:16px 10px;z-index:40}body.navigation-open #navScrim{inset:72px 0 0;height:calc(100dvh - 72px)}main:has(#workspace:not([hidden])){padding:24px 16px 36px}.sectionhead h2,.tab>.sectionhead h2,.pagehead h1,.tab>h2{font-size:26px}.sectionhead .actions button{flex:1;white-space:normal}.sectionhead .actions select{flex-basis:100%}.sectionhead .actions button:last-child{flex-basis:auto}.billing-heading .actions #billingImport{flex-basis:100%}.kpi{padding:16px 14px;min-height:128px}.kpi strong,#billing .kpi strong{font-size:22px;margin:15px 0 10px}.kpi small,#billing .kpi small{font-size:11px}.kpi small>span{display:none}.kpi em{font-size:10px}.kpi.warning-card strong{font-size:20px!important}.panelhead{padding:18px;gap:12px}.panelhead h3{font-size:17px}.panelhead p{font-size:11px}.reference-kpis,.kpis{gap:10px}.chart-legend{padding-left:18px;padding-right:18px;font-size:10px}.billing-chart{padding:12px 8px 0}.billing-chart svg{height:285px}.actual-chart svg{height:285px}.panelhint{padding-left:18px;padding-right:18px}.target-pill{white-space:normal}.settingsgrid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}input,select,textarea,.invoice-form input,.invoice-form select,.invoice-form textarea{font-size:16px}.finance-section textarea{font-size:16px}.notice{font-size:12px}.login{padding:26px;margin:30px auto}.login input{font-size:16px}body:has(#workspace:not([hidden]))>footer{margin:0 16px}.horizon-panel .actions{width:100%}.horizon-panel select{flex:1}.horizon-panel button{flex:1}.dialoghead h2{font-size:20px}.editor-summary b{font-size:17px}.reach-table{min-width:1100px}}
@media(max-width:400px){.brand-logo{width:88px}#identity{gap:6px}.kpi strong,#billing .kpi strong{font-size:19px}.kpi{padding:14px 12px}.quality-filters{padding-left:14px;padding-right:14px}}
@media print{.print-action{display:none!important}.reference-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}#overview .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi{padding:10px;min-height:0}.kpi strong,#billing .kpi strong{font-size:17px;margin:8px 0}.kpi small,#billing .kpi small,.kpi em{font-size:9px}.kpi small>span{display:none}.sectionhead h2,.tab>.sectionhead h2{font-size:20px}.billing-chart svg,.actual-chart svg{height:auto!important}.reach-table{min-width:0!important}.target-pill{font-size:9px}.notice{font-size:10px}.billing-heading .actions{display:none!important}.login{display:none!important}.chart-legend{font-size:9px}.panelhead{padding:10px}.panelhead h3{font-size:14px}}

.billing-projects .project-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.45}#sidebar nav button:focus-visible{outline-color:#762793}.panel .actions button{white-space:nowrap}@media print{.billing-projects .project-name{display:block;-webkit-line-clamp:unset;overflow:visible}}

/* Fluid SVG coordinates match the available container, with a shared values tooltip. */
.billing-chart.interactive-chart{position:relative;width:100%;min-width:0;max-width:none;overflow:visible;padding:12px 18px 0;touch-action:pan-y;isolation:isolate}
.billing-chart.interactive-chart .interactive-chart-svg{display:block;width:100%!important;min-width:0!important;max-width:none!important;height:clamp(290px,25vw,370px)!important;overflow:visible;outline-offset:-2px}
.interactive-chart-svg .chart-axis{font:11px Arial,Helvetica,sans-serif;fill:#777}
.interactive-chart-svg [hidden]{display:none!important}
.chart-tooltip{position:absolute;z-index:12;pointer-events:none;min-width:252px;max-width:min(340px,calc(100% - 16px));padding:14px 16px;background:#fff;border:1px solid #dedee5;border-radius:7px;box-shadow:0 5px 24px #00000015;color:#191919;font:12px/1.5 Arial,Helvetica,sans-serif;text-align:left}
.chart-tooltip>strong{display:block;font-size:12px;font-weight:600;padding-bottom:9px;margin-bottom:3px;border-bottom:1px solid #efeff3}
.chart-tooltip-row{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding-top:6px}
.chart-tooltip-row>span{display:inline-flex;align-items:center;gap:6px;color:#68686e;font-size:11px}
.chart-tooltip-row i{display:inline-block;height:7px;width:7px;border-radius:2px;flex-shrink:0}
.chart-tooltip-row b{white-space:nowrap;font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}
.chart-tooltip>small{display:block;padding-top:9px;color:#8a651d;font-size:10px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;clip-path:inset(50%)!important;padding:0!important;border:0!important}
@media(max-width:760px){.billing-chart.interactive-chart{padding:8px 8px 0}.billing-chart.interactive-chart .interactive-chart-svg{height:300px!important}.chart-tooltip{min-width:0;width:278px;padding:12px;font-size:12px}.chart-tooltip-row{gap:12px}.chart-tooltip-row>span{font-size:10px}.chart-tooltip-row b{font-size:11px}.interactive-chart-svg .chart-axis{font-size:10px}}
@media print{.chart-tooltip{display:none!important}.billing-chart.interactive-chart{overflow:visible;padding:0}.billing-chart.interactive-chart .interactive-chart-svg{height:auto!important;min-width:0!important;width:100%!important;max-width:100%!important}.interactive-chart-svg [data-chart-cursor],.interactive-chart-svg [data-chart-highlight]{display:none!important}}

/* Minimal branding, aligned with the exact sidebar boundary. */
body>header{padding:0;display:block;position:sticky}
body>header::after{content:"";position:absolute;top:0;bottom:0;left:calc(var(--sidebar-width) - 1px);width:1px;background:#d4d4d8;pointer-events:none}
body>header .brand{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);gap:0;align-items:center;height:100%;width:100%}
body>header .brand-logo{margin-left:28px;width:138px;max-height:58px}
body>header .brand-label{display:flex;align-items:center;min-width:0;height:100%;border:0;padding:0 32px;order:1}
body>header .brand-label b{font-size:19px;font-weight:700;letter-spacing:.12em;white-space:nowrap}
#sidebar{overflow:hidden;gap:0}
#sidebarNavigation{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;padding-bottom:10px}
#identity.sidebar-account{flex:0 0 auto;order:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;width:100%;gap:8px 18px;margin:0;padding:16px 12px 4px;border-top:1px solid #e4e4e8;font-size:12px}
#identity.sidebar-account>span{width:100%;max-width:none;font-weight:600;overflow-wrap:anywhere}
#identity.sidebar-account small{font-size:11px;font-weight:400;margin-top:3px}
#identity.sidebar-account .link{font-size:12px;padding:4px 0;min-height:28px}
@media(max-width:1000px){body>header .brand-label{padding-left:22px}}
@media(max-width:760px){body>header{display:flex;align-items:center;padding:8px 14px;gap:12px}body>header::after{display:none}body>header .brand{display:flex;flex:1;width:auto;gap:14px;min-width:0}body>header .brand-logo{margin:0;width:96px;max-height:50px}body>header .brand-label{display:flex;padding:0;height:auto}body>header .brand-label b{font-size:14px;letter-spacing:.08em}#identity.sidebar-account{font-size:12px;padding:14px 12px 6px}#identity.sidebar-account .link{font-size:12px}}
@media(max-width:400px){body>header{gap:9px;padding:8px 12px}body>header .brand{gap:10px}body>header .brand-logo{width:80px}body>header .brand-label b{font-size:12px}}
@media print{body>header::after{display:none}#identity.sidebar-account{display:none!important}}

/* Restore the previous header wording and subtitle only. */
body>header .brand-label{flex-direction:column;align-items:flex-start;justify-content:center}
body>header .brand-label b{letter-spacing:.14em}
body>header .brand-label small{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:#666;margin-top:4px;line-height:1.5}
@media(max-width:1200px){body>header .brand-label small{display:none}}
/* Compact project view. Kept separate from the existing editing dialogs. */
dialog#modal.project-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(820px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #dedee4;border-radius:0;padding:0 28px 28px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;box-shadow:-12px 0 60px #0002;color:#171719;background:#fff}
dialog#modal.project-drawer::backdrop{background:#14101966}
.project-drawer .dialoghead{position:sticky;top:0;z-index:4;background:#fff;border-bottom:1px solid #ddd;padding:20px 0;margin:0 0 24px;gap:15px}
.project-drawer .dialoghead h2{font-size:17px;letter-spacing:0;margin:0}
.project-card{font-family:Arial,sans-serif;font-size:14px;line-height:1.55}
.project-intro{display:flex;align-items:flex-start;gap:20px;justify-content:space-between}
.project-intro h3{font-size:24px;line-height:1.25;margin:8px 0;overflow-wrap:anywhere}
.project-intro p{margin:0 0 10px}.project-intro .signal{flex:none;margin-top:5px}
.project-stamp{background:#f3f2f5;border-left:3px solid #792f91;padding:12px 14px;font-size:13px;margin:15px 0 20px}
.project-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-metric{border:1px solid #e4e2e7;border-radius:7px;padding:15px;min-width:0;background:#fff}
.project-metric small{font-size:12px;font-weight:600;color:#52505a;display:block}.project-metric strong{display:block;font-size:23px;line-height:1.2;letter-spacing:-.6px;margin:11px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.project-metric span{font-size:11px;line-height:1.4;color:#67636e;display:block}.project-metric.negative strong{color:#a02b31}
.project-card .project-note{font-size:12px;color:#625e6a;line-height:1.55;margin:12px 0}.project-block{padding:20px 0;border-top:1px solid #e6e4e9;margin:20px 0 0}.project-block h4{font-size:15px;margin:0 0 16px}.project-block summary{font-size:15px;font-weight:700;cursor:pointer;min-height:30px}.project-block[open]>summary{margin-bottom:16px}
.project-progress{margin:14px 0}.project-progress>div:first-child{display:flex;gap:15px;justify-content:space-between;font-size:13px}.project-track{height:8px;background:#efedf1;border-radius:5px;overflow:hidden;margin-top:8px}.project-track i{display:block;height:100%;background:#792f91}.project-track i.costs{background:#abbc26}
.project-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;margin:20px 0 0}.project-facts dt{font-size:12px;color:#625e6a}.project-facts dd{font-size:14px;font-weight:600;margin:4px 0 0;overflow-wrap:anywhere}.project-changes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.project-changes strong{font-size:19px}.project-attention{background:#f8f7fa;padding:18px;border:1px solid #e8e4ed;border-radius:6px}.project-attention ul{margin:0;padding-left:20px}.project-attention li{margin:7px 0}.project-amendment{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #eee;font-size:13px}.project-amendment small{display:block;font-size:12px;color:#625e6a;margin-top:4px}.project-amendment>b{flex-shrink:0}.project-card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.project-card button{font-size:13px;min-height:40px}
.week-picker{display:grid;grid-template-columns:130px minmax(160px,1fr);gap:16px;margin:18px 0 8px}.week-range{font-size:16px;font-weight:700;padding:14px;background:#f3f2f5;border-radius:5px}.week-admin-row{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #e1dfe5}.week-admin-row small{display:block;margin-top:5px;color:#615d67}.week-admin-row form{width:100%}.week-admin-list{margin-bottom:20px}.week-admin-row button{flex-shrink:0}.week-admin-row form button{margin:10px 10px 0 0}
@media(max-width:600px){dialog#modal.project-drawer{width:100%;padding:0 18px 22px}.project-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.project-changes{grid-template-columns:1fr}.project-changes .project-metric{display:grid;grid-template-columns:1fr 1fr;align-items:center}.project-changes strong{margin:0;font-size:20px}.project-changes span{grid-column:1/-1}.project-intro h3{font-size:21px}.project-metric strong{font-size:20px}.week-admin-row{align-items:flex-start;flex-direction:column}.project-facts{gap:14px}.week-picker{grid-template-columns:110px 1fr}}
@media print{body:has(#modal.project-drawer[open])>header,body:has(#modal.project-drawer[open])>main,body:has(#modal.project-drawer[open])>footer{display:none!important}dialog#modal.project-drawer[open]{position:static!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;box-shadow:none;border:0;padding:0}.project-drawer .dialoghead{position:static}.project-card-actions,.project-drawer #closeModal{display:none!important}.project-block,.project-metric{break-inside:avoid}}

/* Readability audit: preserve the approved header, chart width and brand. */
@media screen{
 body{font-size:15px;line-height:1.55;--muted:#595962}
 #sidebar nav button{font-size:14px;min-height:42px;line-height:1.35;white-space:normal}
 #sidebar summary{font-size:12px;letter-spacing:.035em;line-height:1.5}
 label,.invoice-form label,.finance-section label{font-size:14px;line-height:1.5}
 input,select,textarea,.invoice-form input,.invoice-form select,.invoice-form textarea,.plan-editor textarea{font-size:15px;font-weight:400;line-height:1.5}
 .hint,.plan-editor .hint,.panelhint,.pagehead p,.sectionhead p,.muted,.member small{font-size:13px;line-height:1.55;color:var(--muted)}
 .notice,.invoice-findings,.finance-section,.invoice-detail{font-size:14px;line-height:1.6}
 .kpi small,#billing .kpi small{font-size:13px}.kpi em,#billing .kpi em{font-size:12px;line-height:1.45}
 th,.invoice-table th,.invoice-lines th{font-size:12px;line-height:1.4}td{font-size:14px;font-variant-numeric:tabular-nums}
 .formgrid>*{min-width:0}.formgrid input,.formgrid select,.formgrid textarea{max-width:100%;width:100%}
 .invoice-form details:not([open]){padding-top:16px;padding-bottom:16px}.invoice-form details:not([open])>summary,.invoice-detail details:not([open])>summary{margin-bottom:0}
 .invoice-form summary,.invoice-detail summary{font-size:16px;line-height:1.5}
 .invoice-tax-info{border-left:3px solid #666;background:#f7f7f8;padding:12px 16px;margin:16px 0;font-size:14px}.invoice-tax-info p{margin:4px 0 0}
 button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #762793;outline-offset:3px}
}
@media screen and (min-width:761px) and (max-width:1100px){.invoice-form .formgrid,.finance-section .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen and (max-width:760px){input,select,textarea,.invoice-form input,.invoice-form select,.invoice-form textarea{font-size:16px}.invoice-form .formgrid,.finance-section .formgrid{grid-template-columns:minmax(0,1fr)}.invoice-filters input{min-width:0;width:100%}}

/* Keep exported/printed documents on white paper. */
@media print{body{background:#fff}}

#billingImportPreview .billing-issue-count,#billingImportPreview .billing-issue-link{background:transparent;color:#972d21;border:0;box-shadow:none;cursor:pointer;font:inherit}
#billingImportPreview .billing-issue-count{text-align:left;padding:0}
.billing-issue-count span{display:block;text-decoration:underline;font-size:12px}
#billingImportPreview .billing-issue-link{padding:4px 0;text-decoration:underline;text-align:inherit}
.billing-issue-link:focus-visible,.billing-issue-count:focus-visible,.billing-issue-details:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.billing-issue-details{padding:14px 16px;border:1px solid #d8b4ae;border-radius:6px;margin:0 0 16px}
.billing-issue-details article+article{border-top:1px solid #ddd;margin-top:12px}
.billing-issue-details h4{margin:12px 0 8px}.billing-issue-details ul{padding-left:20px}
.billing-issue-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.billing-issue-heading h3{margin:0}
.billing-issue-details table{width:100%;min-width:0;table-layout:fixed}
.billing-issue-details :is(td,th){white-space:normal;overflow-wrap:anywhere;text-align:left;padding:8px}

.billing-resolution-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.billing-row-fix .formgrid{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))}

/* All cards participate in the same label, amount and footnote tracks. */
#billingContent:has(.billing-dashboard-kpis){container:billing-dashboard / inline-size}
#billing .billing-dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:12px}
#billing .billing-dashboard-kpis>.kpi{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:12px;align-content:start;min-width:0;padding-block-start:clamp(14px,2cqi,20px);border-top-width:2px}
#billing .billing-dashboard-kpis small{align-self:start;align-items:baseline;min-block-size:3em;line-height:1.5}
#billing .billing-dashboard-kpis strong{position:relative;margin:0;align-self:start;white-space:nowrap;font-variant-numeric:tabular-nums}
#billing .billing-dashboard-kpis em{align-self:start}
.billing-trend-arrow{
 position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);
 width:.92em;height:1.15em;background-color:currentColor;
 clip-path:polygon(50% 0,100% 44%,67% 44%,67% 100%,33% 100%,33% 44%,0 44%);
}
.billing-dashboard-kpis .billing-trend-arrow.increase{color:#00a33c}
.billing-dashboard-kpis .billing-trend-arrow.decrease{color:#ef263c;transform:translateY(-50%) rotate(180deg)}
@media (forced-colors:active){.billing-trend-arrow{background-color:CanvasText}}
.billing-average-change{display:block;margin-bottom:4px;font-style:normal;font-variant-numeric:tabular-nums}
.billing-average-change b{white-space:nowrap}
.billing-dashboard-kpis .increase{color:#166534}.billing-dashboard-kpis .decrease{color:#b42318}
@container billing-dashboard (max-width:1000px){#billing .billing-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container billing-dashboard (max-width:510px){#billing .billing-dashboard-kpis{grid-template-columns:minmax(0,1fr)}#billing .billing-dashboard-kpis>.kpi{row-gap:8px;min-height:0}}

/* Identical column tracks in every weekly manager table, including totals. */
#weekly .weekly-scroll{scrollbar-gutter:stable}
#weekly .weekly-table{width:100%;min-width:1000px;table-layout:fixed}
#weekly .weekly-col-project{width:44%}
#weekly .weekly-col-costs,#weekly .weekly-col-revenue{width:16%}
#weekly .weekly-col-gap{width:9%}
#weekly .weekly-col-signal{width:15%}
#weekly .weekly-table th,#weekly .weekly-table td{min-width:0;max-width:none;padding-left:15px;padding-right:15px}
#weekly .weekly-table th:first-child,#weekly .weekly-table td:first-child{white-space:normal;overflow-wrap:anywhere}
#weekly .weekly-table th:last-child,#weekly .weekly-table td:last-child{white-space:normal;overflow-wrap:anywhere}
#weekly .weekly-table th:nth-child(2),#weekly .weekly-table td:nth-child(2),#weekly .weekly-table th:nth-child(3),#weekly .weekly-table td:nth-child(3),#weekly .weekly-table th:nth-child(4),#weekly .weekly-table td:nth-child(4){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#weekly .weekly-project{display:block;width:100%;min-height:44px;padding:3px 0;text-align:left;font-size:14px;line-height:1.5;font-weight:600;white-space:normal;overflow-wrap:anywhere}
#weekly .weekly-project small{display:block;color:var(--muted);font-weight:400;margin-top:3px}
#weekly .weekly-project:hover{text-decoration:underline;text-underline-offset:3px}
@media print{#weekly .weekly-scroll{scrollbar-gutter:auto}#weekly .weekly-table{min-width:0}#weekly .weekly-project{display:block!important;min-height:0;font-size:inherit;color:inherit}#weekly .weekly-table th,#weekly .weekly-table td{padding:6px;white-space:normal!important}#weekly .weekly-table tfoot th,#weekly .weekly-table tfoot td{font-size:inherit}}

/* Explicit columns for orders: number and name remain separate. */
#billing .billing-projects{min-width:2300px}
#billing .billing-projects th,#billing .billing-projects td{min-width:110px;max-width:none;width:auto;white-space:nowrap}
#billing .billing-projects th:first-child,#billing .billing-projects td:first-child{min-width:145px;max-width:145px;width:145px;text-align:left}
#billing .billing-projects td:nth-child(2){min-width:300px;max-width:360px;white-space:normal;text-align:left}
#billing .billing-projects td:nth-child(3),#billing .billing-projects td:nth-child(4),#billing .billing-projects td:nth-child(12),#billing .billing-projects td:nth-child(13){text-align:left;white-space:normal;min-width:170px;max-width:270px}
#billing .billing-projects th button{font:inherit;color:inherit;background:transparent;border:0;padding:0;text-align:inherit;white-space:normal}
#billing .billing-projects td .project-name{display:block;text-align:left;overflow:visible;-webkit-line-clamp:unset}
@media print{#billing .billing-projects{min-width:0}#billing .billing-projects th,#billing .billing-projects td{min-width:0!important;width:auto!important;white-space:normal;font-size:8px;padding:4px}}

.orders-scroll-tools{padding:0 20px 10px}.orders-scroll-tools small{display:block;color:#62626c;margin-bottom:8px;font-size:12px}.orders-top-scroll{overflow-x:scroll;overflow-y:hidden;height:24px;scrollbar-width:auto;scrollbar-color:#777 #e9e9ed;border-radius:5px;background:#f2f2f5}.orders-top-scroll>div{height:1px}.orders-top-scroll::-webkit-scrollbar{height:18px}.orders-top-scroll::-webkit-scrollbar-thumb{background:#777;border:3px solid #e9e9ed;border-radius:9px}.orders-top-scroll::-webkit-scrollbar-track{background:#e9e9ed}.orders-scroll{cursor:grab}.orders-scroll.is-dragging{cursor:grabbing;user-select:none}.orders-scroll button{cursor:pointer}
#billing .billing-projects th{text-align:left;vertical-align:middle}#billing .billing-projects th:nth-child(n+5):nth-child(-n+9),#billing .billing-projects td:nth-child(n+5):nth-child(-n+9){text-align:right}#billing .billing-projects th button{display:inline-block;min-height:36px;line-height:1.5}#billing .billing-projects th:last-child,#billing .billing-projects td:last-child{position:sticky;right:0;background:#fff;box-shadow:-1px 0 0 #dedee4;z-index:3;min-width:150px;width:150px;white-space:normal}#billing .billing-projects th:last-child{z-index:6;background:#efeff1}#billing .billing-projects td:last-child button{white-space:normal;text-align:left}#billing .billing-projects td{vertical-align:middle}#billing .billing-projects tbody tr:hover td:last-child{background:#f5f3f6}
@media print{.orders-scroll-tools{display:none}#billing .billing-projects td:first-child,#billing .billing-projects th:first-child{position:static}}
