.module-page{padding-bottom:12px}.module-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:2px 0 23px}.module-heading h1{font-family:var(--display);font-size:26px;letter-spacing:-.9px;margin:0;color:#17262c}.module-heading .eyebrow{margin-bottom:7px}.module-heading .subheading{font-size:11px}.module-heading .new-button{flex:0 0 auto}.module-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:12px}.module-search{height:34px;display:flex;align-items:center;gap:7px;flex:1;max-width:370px;border:1px solid #e8e8ef;background:var(--surface);border-radius:7px;padding:0 10px;color:#85899a}.module-search span{font-size:17px}.module-search input{border:0;outline:0;width:100%;font-size:10px;color:#54586c;background:transparent}.module-search input::placeholder{color:#b0b2bd}.filter-button{height:32px;padding:0 10px;border:1px solid #e8e8ef;background:var(--surface);border-radius:7px;color:#777b8e;font-size:9px}.filter-button span{margin-left:6px;color:#9a9cab}.record-count{margin-left:auto;color:#a2a4b0;font-size:9px}.module-table-panel{padding:3px 17px 12px;min-height:300px}.module-table{min-width:650px}.module-table tbody td{padding-top:12px;padding-bottom:12px}.module-table .empty-table{text-align:center;padding:45px 10px;color:#a4a6b3}.local-note{display:block;color:#aaacb8;font-size:9px;margin:12px 2px}.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.report-card{padding:16px;min-height:165px}.report-icon{width:31px;height:31px;border-radius:9px;background:#f3f9fa;color:#00758f;display:grid;place-items:center;font-size:16px}.report-card h2{font-family:var(--display);font-size:12px;margin:12px 0 5px}.report-card p{font-size:9px;line-height:1.5;color:#999baa;min-height:28px;margin:0 0 9px}.report-result{font-family:var(--display);font-size:16px;font-weight:700;color:#45495e;margin-bottom:9px}.report-summary{padding:17px 19px}.summary-bars{max-width:680px;display:grid;gap:14px;margin:22px 0 9px}.summary-bars>div{display:grid;grid-template-columns:86px 1fr 100px;align-items:center;gap:12px;font-size:9px;color:#8e91a0}.summary-bars strong{text-align:right;color:#53576c;font-size:9px}.summary-bars i{height:7px;border-radius:7px;background:#f3f9fa;overflow:hidden}.summary-bars i b{height:100%;display:block;border-radius:7px;background:linear-gradient(90deg,#8ccbd6,#00758f)}.summary-bars>div:nth-child(2) i b{background:#80c7aa}.summary-bars>div:nth-child(3) i b{background:#eabd7a}.app-launch-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,.8fr);gap:13px}.app-launch-card{min-height:300px;padding:32px;display:flex;align-items:center;gap:26px;position:relative;overflow:hidden}.app-launch-icon{position:relative;z-index:1;width:62px;height:62px;display:grid;place-items:center;border-radius:17px;background:#f3f9fa;color:#00758f;font-size:28px;flex:0 0 62px}.app-launch-copy{position:relative;z-index:1;max-width:420px}.app-launch-copy h2{font-family:var(--display);font-size:20px;letter-spacing:-.6px;margin:12px 0 7px}.app-launch-copy p{font-size:10px;line-height:1.6;color:#9295a4;margin:0 0 18px}.app-launch-copy .primary-button{display:inline-flex;align-items:center;gap:9px}.app-watermark{position:absolute;right:18px;bottom:-60px;font-size:230px;line-height:1;color:#f3f9fa}.app-side-card{padding:21px;align-self:start}.app-side-card h3{font-family:var(--display);font-size:12px;margin:0 0 8px}.app-side-card p{font-size:10px;line-height:1.65;color:#989aa8;margin:0}.app-side-rule{border-top:1px solid #eeeef4;margin:17px 0 12px}.settings-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:13px;align-items:start}.settings-nav{padding:8px}.settings-tab{display:block;width:100%;padding:10px 11px;border:0;border-radius:6px;background:transparent;color:#777b8e;text-align:left;font-size:10px}.settings-tab:hover{background:#f3f9fa}.settings-tab.active{background:#f3f9fa;color:#006b82;font-weight:700}.settings-form{padding:20px 22px}.settings-section-title{padding-bottom:17px;margin-bottom:17px;border-bottom:1px solid #efeff4}.settings-section-title h2{font-family:var(--display);font-size:14px;margin:0 0 5px}.settings-section-title p{font-size:9px;color:#989aa8;margin:0}.settings-form .form-grid{gap:14px 13px}.settings-form .form-field input,.settings-form .form-field select{height:36px}.settings-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #efeff4;padding-top:14px;margin-top:18px}.settings-actions span{font-size:9px;color:#a0a2af}.settings-callout{display:flex;align-items:flex-start;gap:9px;margin:14px 0 0;padding:12px 14px;border:1px solid #f3f9fa;border-radius:8px;background:#f3f9fa;color:#777b8f}.settings-callout>span{width:16px;height:16px;border-radius:50%;background:#f3f9fa;color:#00758f;display:grid;place-items:center;font-size:10px;font-weight:700;flex:0 0 16px}.settings-callout p{margin:0;font-size:9px;line-height:1.6}.settings-callout strong{color:#65697c}.mobile-menu{border-radius:6px;padding:4px 7px}.mobile-menu:hover{background:#f3f9fa}
@media(max-width:1180px){.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:930px){.settings-layout{grid-template-columns:1fr}.settings-nav{display:flex;overflow:auto}.settings-tab{white-space:nowrap;width:auto}.app-launch-layout{grid-template-columns:1fr}.app-side-card{display:none}.app-launch-card{min-height:260px;padding:23px;align-items:flex-start;flex-direction:column;gap:17px}}
@media(max-width:600px){.module-heading{gap:12px;align-items:flex-start}.module-heading h1{font-size:23px}.module-heading .new-button{padding:0 8px;font-size:9px}.module-heading .new-button span{margin-right:2px}.module-heading .subheading{max-width:300px}.module-toolbar{flex-wrap:wrap}.module-search{max-width:none;flex-basis:100%}.record-count{margin-left:0}.module-table-panel{padding:3px 12px 10px}.report-grid{grid-template-columns:1fr 1fr;gap:8px}.report-card{padding:11px;min-height:155px}.report-result{font-size:14px}.summary-bars>div{grid-template-columns:66px 1fr 88px;gap:8px}.settings-form{padding:16px}.app-launch-card{padding:19px}.page-footer{gap:4px}.toast-region{right:12px;bottom:12px;left:12px}.toast{justify-content:center}}
.app-workspace{max-width:1440px;margin:0 auto}.app-empty{padding:40px;text-align:center;max-width:620px;margin:36px auto}.app-empty h2,.pdf-record h2{margin:12px 0 6px}.app-empty p,.pdf-record p{color:var(--muted);line-height:1.6}.app-empty-icon{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#f3f9fa;color:#00758f;font-size:24px}.app-upload-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:22px;margin-bottom:20px}.app-upload-panel .field:nth-child(3){grid-column:1/2}.app-upload-panel .local-note{grid-column:1/-1;margin:0}.pdf-record-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.pdf-record{padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}.pdf-preview{margin-top:20px;padding:20px}.pdf-preview iframe{display:block;width:100%;height:min(78vh,900px);border:1px solid var(--line);border-radius:10px}.working-paper-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.working-paper-columns>.panel{padding:22px}.working-paper-columns .record-form{padding:0;display:grid;gap:14px}.wp-list{padding:20px;margin-bottom:16px}.wp-row{display:flex;align-items:center;gap:16px;padding:15px 4px;border-top:1px solid var(--line)}.wp-row>div{flex:1;min-width:0}.wp-row strong,.wp-row small{display:block}.wp-row small{color:var(--muted);margin-top:5px}.sheets-workspace .module-heading{align-items:center}.sheet-toolbar{display:flex;align-items:end;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0}.sheet-toolbar label{display:grid;gap:5px;color:var(--muted);font-size:12px}.sheet-toolbar input,.sheet-toolbar select{height:38px;border:1px solid var(--line);border-radius:7px;padding:0 10px;color:var(--ink);min-width:140px}.sheet-toolbar label:nth-child(3){flex:1}.sheet-toolbar label:nth-child(3) input{width:100%}.sheet-grid-wrap{overflow:auto;max-height:65vh;border:1px solid var(--line);background:var(--surface)}.sheet-grid{border-collapse:collapse;min-width:100%;table-layout:fixed}.sheet-grid th,.sheet-grid td{height:34px;border:1px solid #e9eaf0;min-width:110px;padding:0}.sheet-grid th{background:#f5f6fa;color:#687086;font-weight:600;font-size:12px;text-align:center;min-width:44px}.sheet-grid td input{border:0;border-radius:0;width:100%;height:33px;padding:0 8px;background:transparent;color:var(--ink);font:inherit}.sheet-grid td input:focus{outline:2px solid #00758f;outline-offset:-2px;background:var(--surface)}.sheets-workspace>.local-note{margin-top:12px}@media(max-width:760px){.working-paper-columns{grid-template-columns:1fr}.app-upload-panel{grid-template-columns:1fr}.app-upload-panel .field:nth-child(3){grid-column:auto}.sheet-toolbar{align-items:stretch;flex-direction:column}.sheet-toolbar label:nth-child(3){flex:initial}.wp-row{flex-wrap:wrap}.wp-row>div{flex-basis:100%}}
.sheet-book-picker{display:grid;gap:5px;align-content:end;color:var(--muted);font-size:12px}.sheet-book-picker select{height:38px;max-width:180px;border:1px solid var(--line);border-radius:7px;padding:0 10px;color:var(--ink);background:white}
.invoice-workspace-actions .invoice-payment-button{border-color:#e6f2f5;background:var(--brand-tint);color:#006b82;font-weight:700}.invoice-workspace-actions .invoice-payment-button:hover{border-color:#e6f2f5;background:#f3f9fa}.invoice-workspace-actions .invoice-email-button{border-color:#dce8f3;color:#356f9a}.invoice-workspace-actions .invoice-email-button:hover{border-color:#b8d9ee;background:#f2f9fd}.invoice-workspace-actions button:disabled{cursor:not-allowed;opacity:.52}.popover.modal.invoice-quick-create .invoice-payment-summary,.popover.modal.invoice-quick-create .invoice-email-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border:1px solid #e6f2f5;border-radius:11px;background:linear-gradient(120deg,var(--brand-tint),var(--surface) 75%)}.invoice-payment-summary>div{display:grid;gap:5px}.invoice-payment-summary>div span{color:#817f94;font-size:9px}.invoice-payment-summary>div strong{color:#17262c;font:700 20px var(--display)}.invoice-payment-summary>small{max-width:220px;color:#8d8a9c;font-size:8px;line-height:1.5;text-align:right}.invoice-email-summary{align-items:flex-start!important;flex-direction:column;gap:4px!important;background:linear-gradient(120deg,#f1f8fd,var(--surface) 75%)!important;border-color:#dceaf3!important}.invoice-email-summary strong{color:#244a68;font:700 12px var(--display)}.invoice-email-summary span,.invoice-email-note{color:#78899a;font-size:9px;line-height:1.55}.popover.modal.invoice-quick-create .invoice-quick-form .invoice-email-note{margin:-3px 0 0;padding:10px 12px;border-left:3px solid #76b8db;border-radius:0 7px 7px 0;background:#f5fafe}.invoice-detail-totals .invoice-payment-progress{height:6px;overflow:hidden;border-radius:9px;background:#f3f9fa}.invoice-detail-totals .invoice-payment-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8ccbd6,#45ad89);transition:width .18s ease}.invoice-detail-totals .invoice-payment-progress-label{margin-top:-5px;color:#858196;font-size:8px}
@media(max-width:560px){.invoice-workspace-actions>*{flex:1 1 140px}.invoice-payment-summary{align-items:flex-start!important;flex-direction:column}.invoice-payment-summary>small{text-align:left!important}}
.production-job-list{display:grid;gap:14px}.production-job{padding:20px}.production-job-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.production-job h2{margin:3px 0 4px;font:700 18px var(--display);color:var(--ink)}.production-job p{margin:5px 0;color:var(--muted)}.production-progress{display:flex;gap:6px;margin:20px 0}.production-progress span{flex:1;border-top:3px solid #e9eaf0;padding-top:7px;font-size:11px;color:var(--muted)}.production-progress span.done{border-color:#00758f;color:#006b82}.production-job-controls{display:flex;align-items:end;gap:15px;flex-wrap:wrap}.production-job-controls label{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.production-job-controls input{width:90px;height:36px;padding:0 8px;border:1px solid var(--line);border-radius:7px}.quality-check-list{display:grid;gap:10px;margin-top:18px;padding:15px;background:#f3f9fa;border-radius:9px}.quality-check-list>strong{font-size:12px}.quality-check-list label{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--ink)}.production-summary{padding:20px}.production-count{display:flex;justify-content:space-between;padding:13px 2px;border-top:1px solid var(--line);font-size:13px}.production-count strong{color:var(--ink)}@media(max-width:700px){.production-progress span{font-size:9px}.production-job-heading{flex-direction:column}}
.pdf-studio-app{max-width:none!important;margin:-4px -8px 0!important;color:var(--ink)}
.pdf-studio-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 4px 18px}
.pdf-studio-heading h1{margin:0;font:700 25px var(--display);letter-spacing:-.5px}
.pdf-studio-heading .subheading{margin:5px 0 0}
.pdf-heading-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px}
.pdf-secure-pill{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.pdf-secure-pill i,.pdf-status-dot{width:7px;height:7px;border-radius:50%;background:#3ca879;display:inline-block}
.pdf-studio-layout{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr) minmax(265px,310px);height:min(76vh,940px);min-height:640px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 5px 18px #17262c0b}
.pdf-library-rail,.pdf-inspector{display:flex;min-width:0;min-height:0;flex-direction:column;background:var(--surface)}
.pdf-library-rail{border-right:1px solid var(--line)}
.pdf-inspector{border-left:1px solid var(--line)}
.pdf-pane-heading{min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid var(--line)}
.pdf-pane-heading>div{display:grid;gap:4px}
.pdf-pane-heading strong{font-size:12px}
.pdf-pane-heading small{color:var(--muted);font-size:9px}
.pdf-library-search{min-height:36px;display:flex;align-items:center;gap:8px;margin:10px 11px 0;padding:0 9px;border:1px solid var(--line);border-radius:7px;color:var(--muted)}
.pdf-library-search input,.pdf-library-search select{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:11px var(--body)}
.pdf-library-search select{height:34px;cursor:pointer}
.pdf-library-search input:focus-visible,.pdf-library-search select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.pdf-library-list{flex:1;min-height:0;overflow:auto;padding-top:8px}
.pdf-library-item{width:100%;display:flex;align-items:center;gap:10px;padding:11px;border:0;border-left:3px solid transparent;background:var(--surface);text-align:left;cursor:pointer}
.pdf-library-item:hover{background:var(--brand-tint)}
.pdf-library-item.active{border-left-color:var(--brand);background:var(--brand-tint)}
.pdf-library-item[hidden]{display:none}
.pdf-library-icon{width:36px;height:43px;display:grid;place-items:center;flex:0 0 36px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--brand);font-size:9px;font-weight:700}
.pdf-library-copy{min-width:0;display:grid;gap:4px}
.pdf-library-copy strong,.pdf-library-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdf-library-copy strong{color:var(--ink);font-size:10px}
.pdf-library-copy small{color:var(--muted);font-size:9px}
.pdf-library-empty{display:grid;justify-items:center;gap:9px;padding:45px 17px;text-align:center}
.pdf-library-empty>span{font-size:25px;color:var(--brand)}
.pdf-library-empty strong{font-size:11px}
.pdf-library-empty p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.pdf-library-footer{min-height:40px;display:flex;align-items:center;gap:8px;padding:0 14px;border-top:1px solid var(--line);color:var(--muted);font-size:9px}
.pdf-library-footer span:first-child{color:var(--brand)}
.pdf-document-stage{position:relative;display:flex;min-width:0;min-height:0;flex-direction:column;background:var(--surface-soft,var(--surface))}
.pdf-stage-toolbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;background:var(--surface);border-bottom:1px solid var(--line)}
.pdf-stage-document{display:grid;min-width:0;gap:4px}
.pdf-stage-toolbar strong,.pdf-stage-toolbar small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdf-stage-toolbar strong{font-size:11px}
.pdf-stage-toolbar small{color:var(--muted);font-size:9px}
.pdf-page-controls{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.pdf-preview-stage{display:flex;flex:1;min-height:0;padding:12px;background:var(--surface-soft,var(--surface))}
.pdf-preview-frame{flex:1;min-width:0;min-height:0;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--surface)}
.pdf-preview-frame iframe{display:block;width:100%;height:100%;min-height:420px;border:0;background:var(--surface)}
.pdf-stage-footer{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;background:var(--surface);color:var(--muted);font-size:9px}
.pdf-stage-empty{display:flex;min-height:100%;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}
.pdf-empty-art{position:relative;width:76px;height:86px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--brand);font-size:39px;box-shadow:0 8px 24px #005e7312}
.pdf-empty-art i{position:absolute;right:-11px;bottom:-9px;width:28px;height:28px;display:grid;place-items:center;border:3px solid var(--surface);border-radius:50%;background:var(--brand);color:#fff;font-style:normal;font-size:17px}
.pdf-stage-empty h2{margin:22px 0 7px;font:700 17px var(--display)}
.pdf-stage-empty p{max-width:365px;margin:0 0 18px;color:var(--muted);font-size:11px;line-height:1.6}
.pdf-inspector-tabs{min-height:48px;display:flex;border-bottom:1px solid var(--line)}
.pdf-tool-tab{position:relative;flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 5px;border:0;background:var(--surface);color:var(--muted);cursor:pointer;font-size:10px}
.pdf-tool-tab span{color:var(--brand);font-size:13px}
.pdf-tool-tab.active{color:var(--ink);font-weight:700}
.pdf-tool-tab.active:after{position:absolute;right:8px;bottom:0;left:8px;height:2px;background:var(--brand);content:''}
.pdf-inspector-content{flex:1;min-height:0;overflow:auto;padding:16px 14px}
.pdf-inspector-kicker{margin:0 0 15px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.6px}
.pdf-properties-form{display:grid;gap:12px}
.pdf-properties-form>label{display:grid;gap:6px;color:var(--ink);font-size:10px;font-weight:600}
.pdf-properties-form input,.pdf-properties-form select,.pdf-note-form textarea{width:100%;min-height:36px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:11px var(--body)}
.pdf-property-block{display:grid;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}
.pdf-property-block small{color:var(--muted);font-size:9px}
.pdf-property-block strong{color:var(--ink);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.pdf-capability-note{margin:14px 0 0;padding:10px;border-radius:7px;background:var(--brand-tint);color:var(--muted);font-size:9px;line-height:1.55}
.pdf-note-form{display:grid;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.pdf-note-form label{font-size:10px;font-weight:600}
.pdf-note-form textarea{min-height:84px;resize:vertical}
.pdf-note-form .primary-button{justify-self:end;padding:0 12px;min-height:32px;font-size:10px}
.pdf-note-list{display:grid;gap:0}
.pdf-note{display:grid;grid-template-columns:27px minmax(0,1fr);gap:9px;padding:13px 0;border-bottom:1px solid var(--line)}
.pdf-note-avatar{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--brand-tint);color:var(--brand);font-size:10px;font-weight:700}
.pdf-note>div:nth-child(2){min-width:0}
.pdf-note strong,.pdf-note small{display:block}
.pdf-note strong{font-size:10px}
.pdf-note small{margin-top:3px;color:var(--muted);font-size:8px}
.pdf-note p{margin:8px 0 0;color:var(--ink);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.pdf-inspector-empty{color:var(--muted);font-size:10px;line-height:1.6}
.pdf-hidden-upload{display:none}
.pdf-studio-app .primary-button,.pdf-studio-app .secondary-button{min-height:34px}
.pdf-studio-app button:disabled{cursor:not-allowed;opacity:.58}
.pdf-studio-app button:focus-visible,.pdf-studio-app input:focus-visible,.pdf-studio-app select:focus-visible,.pdf-studio-app textarea:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:1050px){.pdf-studio-layout{grid-template-columns:minmax(190px,230px) minmax(0,1fr);height:auto;min-height:760px}.pdf-inspector{grid-column:1/-1;min-height:280px;border-top:1px solid var(--line);border-left:0}.pdf-inspector-content{max-height:360px}.pdf-document-stage{min-height:620px}}
@media(max-width:650px){.pdf-studio-app{margin:0!important}.pdf-studio-heading{align-items:flex-start;flex-direction:column}.pdf-heading-actions{gap:8px}.pdf-studio-layout{display:flex;height:auto;min-height:0;flex-direction:column}.pdf-library-rail{max-height:360px;border-right:0;border-bottom:1px solid var(--line)}.pdf-library-list{max-height:135px}.pdf-document-stage{min-height:70vh}.pdf-preview-stage{min-height:62vh;padding:6px}.pdf-preview-frame iframe{min-height:60vh}.pdf-stage-toolbar{align-items:flex-start;flex-direction:column}.pdf-page-controls{width:100%;justify-content:flex-end}.pdf-stage-footer{font-size:8px}.pdf-inspector{min-height:300px;border-left:0}.pdf-inspector-content{max-height:400px}}

/* Shared module layouts: keep metric cards in a horizontal, responsive grid. */
.crm-overview-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 16px}
.crm-overview-card{display:flex;align-items:center;gap:11px;min-width:0;min-height:82px;padding:13px 14px;border-color:var(--line);background:var(--surface)}
.crm-overview-card>div{display:grid;gap:4px;min-width:0}
.crm-overview-card small{color:var(--muted);font-size:10px}
.crm-overview-card strong{color:var(--ink);font:700 18px var(--display);line-height:1.15}
.crm-overview-card>div>span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.business-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));align-items:stretch;gap:12px;margin:0 0 15px}
.business-metric{display:flex;align-items:center;gap:12px;min-width:0;min-height:82px;padding:14px;text-align:left}
.business-metric-icon{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:50%;background:var(--brand-tint);color:var(--brand)}
.business-metric-icon svg{width:18px;height:18px}
.business-metric>div{display:grid;gap:4px;min-width:0}
.business-metric small{color:var(--muted);font-size:10px}
.business-metric strong{color:var(--ink);font:700 17px var(--display);line-height:1.15}
.business-metric em{overflow:hidden;color:var(--muted);font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.dashboard-system{max-width:none}
.dashboard-system>.module-heading{margin-bottom:17px}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.15fr) minmax(230px,.8fr);align-items:start;gap:12px;margin:12px 0}
.dashboard-main-grid>*{min-width:0}
.dashboard-main-grid>.jobs-dashboard-summary,.team-dashboard-layout>.jobs-dashboard-summary{grid-column:1/-1}
.dashboard-panel{min-width:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.dashboard-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.dashboard-panel-heading h2{margin:0;color:var(--ink);font:650 13px var(--display)}
.dashboard-panel-heading p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
.calendar-month-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.calendar-month-controls{display:flex;align-items:center;gap:7px}
.calendar-month-controls strong{min-width:150px;color:var(--ink);font:650 13px var(--display);text-align:center}
.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;min-width:0}
.calendar-weekday{display:grid;min-height:28px;place-items:center;border:1px solid transparent;color:var(--muted);font-size:9px;font-weight:650}
.calendar-day-cell{display:flex;min-width:0;min-height:76px;flex-direction:column;gap:5px;padding:6px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.calendar-day-cell.outside-month{background:var(--canvas);color:var(--muted)}
.calendar-day-number{color:var(--ink-soft);font-size:9px;font-weight:650}
.calendar-day-events{display:grid;align-content:start;gap:3px;min-width:0}
.calendar-event-chip{overflow:hidden;width:100%;padding:4px 5px;border:1px solid var(--line);border-radius:4px;background:var(--brand-tint);color:var(--brand-dark);font-size:8px;text-align:left;text-overflow:ellipsis;white-space:nowrap}
.calendar-event-chip.selected{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
@media(max-width:1180px){.crm-overview-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main-grid>:last-child{grid-column:1/-1}.calendar-day-cell{min-height:64px;padding:5px}}
@media(max-width:760px){.crm-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.business-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main-grid{grid-template-columns:minmax(0,1fr)}.dashboard-main-grid>:last-child{grid-column:auto}}
@media(max-width:560px){.crm-overview-cards,.business-metric-grid{grid-template-columns:minmax(0,1fr)}.crm-overview-card{min-height:72px}.calendar-month-grid{gap:2px}.calendar-weekday{min-height:24px;font-size:8px}.calendar-day-cell{min-height:52px;padding:3px;border-radius:4px}.calendar-event-chip{padding:3px 2px;font-size:7px}.calendar-month-controls strong{min-width:125px;font-size:11px}}
.crm-tabs{display:flex;align-items:center;gap:4px;overflow:auto;border-bottom:1px solid var(--line)}
.crm-tab{flex:0 0 auto;padding:10px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:10px;font-weight:600;white-space:nowrap}
.crm-tab:hover,.crm-tab.active{border-bottom-color:var(--brand);color:var(--brand-dark)}
.crm-tab.active{background:var(--brand-tint)}
.crm-record-panel{padding:14px}
.crm-empty-state{height:150px;text-align:center;vertical-align:middle;color:var(--muted)}
.work-workspace-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr);align-items:start;gap:12px}
.work-list-column{min-width:0}
.work-record-list{display:grid;align-content:start;gap:8px}
.work-record-card{display:flex;align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.work-record-card.selected{border-color:var(--brand);box-shadow:0 0 0 1px color-mix(in srgb,var(--brand) 18%,transparent)}
.work-record-card.is-complete{opacity:.78}
.work-record-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left}
.work-card-icon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:9px;background:var(--brand-tint);color:var(--brand);font-weight:700}
.work-card-icon.projects,.work-card-icon.tasks,.work-card-icon.calendar,.work-card-icon.documents{background:var(--brand-tint);color:var(--brand-dark)}
.work-card-copy{display:grid;gap:3px;min-width:0}
.work-card-kicker{color:var(--muted);font-size:8px;font-weight:700;letter-spacing:.06em}
.work-card-copy strong{overflow:hidden;color:var(--ink);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.work-card-copy small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.work-card-meta{display:grid;justify-items:end;gap:4px;flex:0 0 auto}
.work-inspector{position:sticky;top:12px;min-width:0;max-height:calc(100vh - 98px);overflow:auto;padding:0}
.work-inspector-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px;border-bottom:1px solid var(--line)}
.work-inspector-heading h2{margin:4px 0 7px;color:var(--ink);font:650 14px var(--display)}
.work-inspector-body{display:grid;gap:13px;padding:14px}
.work-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.work-detail-fields>div{display:grid;gap:4px;min-width:0;padding:9px;border-radius:7px;background:var(--canvas)}
.work-detail-fields small{color:var(--muted);font-size:8px}.work-detail-fields strong{overflow:hidden;color:var(--ink);font-size:9px;text-overflow:ellipsis}
.invoice-grand-total strong{color:var(--brand)}
.work-task-toggle{display:grid;place-items:center;flex:0 0 18px}
.work-task-toggle input{position:absolute;opacity:0}
.work-task-toggle span{width:16px;height:16px;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface)}
.work-task-toggle input:checked+span{border-color:var(--brand);background:var(--brand);box-shadow:inset 0 0 0 3px var(--surface)}
.projects-workspace .work-workspace-layout{grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr)}
.project-detail-tab.active:after{background:var(--brand)}
.knowledge-dashboard-layout{display:grid;grid-template-columns:minmax(170px,.58fr) minmax(380px,1.5fr) minmax(275px,.95fr);gap:12px}
.sla-dashboard-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.support-workspace.dashboard-system .support-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr);gap:12px}
.support-workspace.dashboard-system .business-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.work-scopebar{display:flex;align-items:center;gap:5px;overflow:auto;margin:0 0 10px;padding-bottom:3px}
.work-scope-button{flex:0 0 auto;padding:7px 10px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--muted);font-size:9px;font-weight:600;white-space:nowrap}
.work-scope-button.active{border-color:var(--brand);background:var(--brand-tint);color:var(--brand-dark)}
.work-data-table{width:100%;min-width:720px;border-collapse:collapse}
.work-data-table tbody tr{cursor:pointer}
.work-data-table tbody tr:hover,.work-data-table tbody tr.selected{background:var(--brand-tint)}
.work-data-table .work-table-title{min-width:185px}
.work-table-record-link{padding:0;border:0;background:transparent;color:var(--brand-dark);font:600 10px var(--display);text-align:left}
.work-table-record-link:hover{text-decoration:underline}
.dashboard-main-grid,.sla-dashboard-layout,.knowledge-dashboard-layout{gap:12px}
@media(max-width:900px){.work-workspace-layout{grid-template-columns:minmax(0,1fr)}.projects-workspace .work-workspace-layout{grid-template-columns:minmax(0,1fr)}.work-inspector{position:static;max-height:none}.dashboard-main-grid,.sla-dashboard-layout,.knowledge-dashboard-layout{grid-template-columns:minmax(0,1fr)}.support-workspace.dashboard-system .support-layout{grid-template-columns:minmax(0,1fr)}.support-workspace.dashboard-system .business-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.projects-workspace .work-workspace-layout{grid-template-columns:minmax(0,1fr)}.dashboard-system .business-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-system .business-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.dashboard-system .business-workspace-heading{align-items:flex-start;flex-direction:column}.crm-record-panel{padding:9px}.work-record-card{padding:8px}.work-card-meta{font-size:8px}.work-detail-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.dashboard-system .business-workspace-heading{gap:10px}}

/* Team and support workspaces use the full available canvas, with columns that collapse only on smaller screens. */
.dashboard-system{width:100%;max-width:none}
.dashboard-system>.business-workspace-heading,.dashboard-system>.dashboard-toolbar,.dashboard-system>.business-metric-grid,.dashboard-system>.team-chat-layout,.dashboard-system>.knowledge-dashboard-layout{width:100%;max-width:none}
.team-dashboard-layout{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;align-items:stretch}
.team-dashboard-layout>.dashboard-panel{min-width:0}
.premium-workspace-panel{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm)}
.team-chat-layout{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(0,1.8fr) minmax(220px,.72fr);align-items:stretch;gap:12px;min-height:min(68vh,720px)}
.team-chat-sidebar,.team-chat-conversation-panel,.team-chat-info-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.team-chat-conversation-list,.team-chat-people-list,.team-chat-message-stream{min-height:0;overflow:auto}
.team-chat-conversation-list,.team-chat-people-list{flex:1}
.team-chat-message-stream{flex:1;padding:14px}
.team-chat-conversation-option,.team-chat-person-option{width:100%;min-width:0}
.team-chat-conversation-copy,.team-chat-person-copy{min-width:0;overflow:hidden}
.team-chat-bubble,.team-message-content{max-width:min(78%,720px);overflow-wrap:anywhere}
.team-message-content p{font-size:12px;line-height:1.55}
.team-register-table,.payroll-activity-table{width:100%;min-width:720px;border-collapse:collapse}
.team-roles-layout,.team-record-layout,.team-detail-grid{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.6fr);gap:12px;min-width:0}
.team-role-option.active,.team-channel-option.active{border-color:var(--brand);background:var(--brand-tint);color:var(--brand-dark)}
.payroll-tabs{display:flex;align-items:stretch;gap:4px;overflow:auto;border-bottom:1px solid var(--line)}
.dashboard-system .payroll-tab{flex:0 0 auto;padding:10px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;font-weight:600;white-space:nowrap}
.dashboard-system .payroll-tab.active{border-bottom-color:var(--brand);background:var(--brand-tint);color:var(--brand-dark)}
.payroll-empty-state{display:flex;min-height:150px;align-items:center;justify-content:center;padding:20px;color:var(--muted);text-align:center}
.report-metric-grid{width:100%;max-width:none;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.team-chat-layout{grid-template-columns:minmax(210px,.72fr) minmax(0,1.5fr)}.team-chat-layout>.team-chat-info-panel{grid-column:1/-1}.team-dashboard-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.report-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.team-chat-layout{grid-template-columns:minmax(190px,.7fr) minmax(0,1.3fr)}.team-roles-layout,.team-record-layout,.team-detail-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.team-chat-layout,.team-dashboard-layout,.report-metric-grid{grid-template-columns:minmax(0,1fr)}.team-chat-layout>.team-chat-info-panel,.team-chat-layout>.team-channel-panel{grid-column:auto}.team-chat-sidebar,.team-channel-panel{max-height:280px}.team-chat-conversation-panel{min-height:65vh}.team-register-table,.payroll-activity-table{min-width:640px}}

/* Business records, invoices and accounting share a responsive workspace grid. */
.business-list-detail{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:14px;align-items:start}
.business-list-column,.business-inspector{min-width:0}
.business-filterbar{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(2,minmax(130px,.65fr));gap:9px;margin-bottom:11px}
.business-filterbar>label{display:flex;align-items:center;gap:8px;min-width:0;min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.business-filterbar input,.business-filterbar select{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:11px var(--body)}
.business-filterbar>label input{border:0;outline:0}
.business-table-panel{min-width:0;padding:14px}
.business-table-title,.business-inspector-header,.business-inspector-actions,.business-inspector-header>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:10px}
.business-table-title{margin-bottom:10px}
.business-table-title h2,.business-inspector-header h2{margin:0;color:var(--ink);font:700 14px var(--display)}
.business-table-title p{margin:3px 0 0;color:var(--muted);font-size:10px}
.business-selected-caption{color:var(--muted);font-size:9px}
.business-inspector{position:sticky;top:12px;max-height:calc(100vh - 108px);overflow:auto;padding:0}
.business-inspector-header{align-items:flex-start;padding:15px;border-bottom:1px solid var(--line)}
.business-inspector-header>div:first-child{display:grid;gap:7px;min-width:0}
.business-inspector-header>div:last-child{justify-content:flex-start;flex-wrap:wrap;color:var(--muted);font-size:10px}
.business-inspector-actions button{display:grid;width:30px;height:30px;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted)}
.business-inspector-body{display:grid;gap:12px;padding:14px}
.business-inspector-empty{display:grid;min-height:250px;align-content:center;justify-items:center;gap:8px;padding:20px;text-align:center}
.business-inspector-empty>span{color:var(--brand);font-size:24px}
.business-inspector-empty h2{margin:0;color:var(--ink);font:700 14px var(--display)}
.business-inspector-empty p{max-width:260px;margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.business-detail-tabs{display:flex;gap:5px;overflow:auto;padding:8px 12px;border-bottom:1px solid var(--line)}
.business-detail-tab{flex:0 0 auto;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:9px}
.business-detail-tab.active{background:var(--brand-tint);color:var(--brand-dark);font-weight:700}
.business-detail-tab.active:after{background:var(--purple)}
.invoice-editor-heading{align-items:center;gap:14px;margin-bottom:16px}
.invoice-editor-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);align-items:start;gap:16px}
.invoice-editor-main,.invoice-preview-column{display:grid;min-width:0;gap:13px}
.invoice-editor-card,.invoice-live-preview{min-width:0;padding:18px}
.invoice-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.invoice-section-heading>div:first-child{display:flex;align-items:center;gap:10px}
.invoice-section-step{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:var(--brand-tint);color:var(--brand-dark);font-size:10px;font-weight:700}
.invoice-section-heading h2{margin:0 0 3px;color:var(--ink);font:700 13px var(--display)}
.invoice-section-heading p,.invoice-secure-note,.invoice-preview-hint{margin:0;color:var(--muted);font-size:9px;line-height:1.5}
.invoice-meta-grid,.invoice-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.invoice-customer-field,.invoice-catalog-field{position:relative;min-width:0}
.invoice-picker-row,.invoice-catalog-actions{display:flex;align-items:center;gap:7px;min-width:0}
.invoice-picker-row input,.invoice-catalog-actions>*{min-width:0;flex:1}
.invoice-customer-results{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:250px;overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:var(--shadow-md,var(--shadow-sm))}
.invoice-customer-option{display:grid;width:100%;gap:3px;padding:10px 12px;border:0;border-bottom:1px solid var(--line-subtle);background:var(--surface);text-align:left}
.invoice-customer-option strong{color:var(--ink);font-size:10px}.invoice-customer-option small,.invoice-customer-no-results{color:var(--muted);font-size:9px}
.invoice-customer-no-results{padding:12px}
.invoice-item-table-wrap{min-width:0;overflow:auto}
.invoice-item-table{width:100%;min-width:670px;border-collapse:collapse}
.invoice-item-table th,.invoice-item-table td{padding:8px 6px;border-bottom:1px solid var(--line-subtle);text-align:left;vertical-align:middle}
.invoice-item-table th{color:var(--muted);font-size:8px;letter-spacing:.04em}
.invoice-item-table input,.invoice-item-table select{width:100%;min-width:58px;min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:10px var(--body)}
.invoice-preview-top,.invoice-preview-brand,.invoice-preview-title,.invoice-preview-grand,.invoice-footer-total,.invoice-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.invoice-preview-document{display:grid;gap:15px;max-width:760px;margin:12px auto 0;padding:clamp(17px,2vw,28px);border:1px solid var(--line);border-radius:7px;background:var(--surface);box-shadow:var(--shadow-sm);color:var(--ink)}
.invoice-preview-brand{justify-content:flex-start}.invoice-preview-brand>div{display:grid;gap:3px}.invoice-preview-brand strong{font-size:10px}.invoice-preview-brand small,.invoice-preview-parties span,.invoice-preview-dates small{color:var(--muted);font-size:8px}
.invoice-preview-title{padding:12px 0;border-bottom:1px solid var(--line)}.invoice-preview-title span,.invoice-preview-parties small{color:var(--brand);font-size:8px;font-weight:750;letter-spacing:.08em}
.invoice-preview-parties,.invoice-preview-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.invoice-preview-parties>div,.invoice-preview-dates>div{display:grid;gap:5px;min-width:0}
.invoice-preview-items{min-width:0}.invoice-preview-table-head,.invoice-preview-line{display:grid;grid-template-columns:minmax(0,1fr) 48px 95px;gap:8px;padding:8px 0;border-bottom:1px solid var(--line-subtle);font-size:8px}
.invoice-preview-table-head{color:var(--muted);font-weight:700}.invoice-preview-line>*:last-child{text-align:right}
.invoice-preview-totals{display:grid;gap:7px;margin-left:auto;width:min(100%,260px);font-size:9px}.invoice-preview-totals>div{display:flex;justify-content:space-between;gap:12px}.invoice-preview-grand{padding:8px 0;border-top:1px solid var(--line);color:var(--brand-dark);font-weight:700}
.invoice-preview-terms,.invoice-preview-note{margin:0;color:var(--muted);font-size:8px;line-height:1.5;overflow-wrap:anywhere}
.invoice-editor-footer{position:sticky;bottom:0;z-index:5;margin-top:14px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:var(--shadow-sm);backdrop-filter:blur(10px)}
.invoice-footer-total{justify-content:flex-start;color:var(--muted);font-size:10px}.invoice-footer-total strong{color:var(--ink);font:750 15px var(--display)}
.invoice-footer-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.invoice-footer-actions button{min-height:36px}
.popover.modal.invoice-quick-create{width:min(720px,calc(100vw - 28px));max-width:720px}
.invoice-quick-form{display:grid;gap:12px}.invoice-quick-footer{display:flex;justify-content:flex-end;gap:8px}
.invoice-payment-button{display:inline-flex;align-items:center;gap:7px}.invoice-payment-progress{height:7px;overflow:hidden;border-radius:999px;background:var(--canvas-deep)}.invoice-payment-progress>span{display:block;height:100%;border-radius:inherit;background:var(--success)}
.invoice-email-summary{display:flex;justify-content:space-between;gap:12px;padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--surface-sunken);font-size:10px}
.finance-workspace-tabs{display:flex;gap:4px;overflow-x:auto;margin:0 0 14px;border-bottom:1px solid var(--line);scrollbar-width:thin}
.finance-workspace-tab{flex:0 0 auto;padding:10px 13px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:10px;font-weight:650;white-space:nowrap}
.finance-workspace-tab.active{border-bottom-color:var(--brand);background:var(--brand-tint);color:var(--brand-dark)}
.finance-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.finance-metric{display:flex;align-items:center;gap:10px;min-width:0;padding:13px}.finance-metric>div{display:grid;gap:3px;min-width:0}.finance-metric small,.finance-metric>div>span{color:var(--muted);font-size:8px}.finance-metric strong{color:var(--ink);font:750 15px var(--display)}
.finance-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vat201-workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.75fr);align-items:start;gap:14px;margin:14px 0}
.vat201-panel,.vat-return-sidecard{min-width:0;padding:16px}
.vat-draft-badge{flex:0 0 auto;padding:6px 9px;border:1px solid var(--warning-soft);border-radius:999px;background:var(--warning-soft);color:var(--warning-ink);font-size:9px;font-weight:700}
.vat201-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}.vat201-form label{display:grid;gap:5px;color:var(--muted);font-size:9px}
.vat201-form input{min-height:36px;border:1px solid var(--line);border-radius:7px;padding:0 9px}.vat-draft-result{min-width:0;overflow:auto}
.vat-return-sidecard{display:grid;gap:12px}.vat-return-sidecard-heading{display:flex;align-items:center;gap:10px}.vat-return-sidecard-heading>span{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:var(--brand-tint);color:var(--brand)}
.vat-return-sidecard-heading h2,.vat-return-sidecard h3{margin:0;color:var(--ink);font:700 13px var(--display)}.vat-return-period,.vat-return-sidecard li,.vat-return-note p{color:var(--muted);font-size:9px;line-height:1.5}
.vat-return-status{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-block:1px solid var(--line-subtle);font-size:9px}.vat-return-status strong{color:var(--brand-dark)}
.vat-return-note{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-sunken)}.vat-return-note strong{color:var(--ink);font-size:10px}.vat-return-note p{margin:5px 0 0}
.vat201-export-actions{display:flex;flex-wrap:wrap;gap:8px}.vat201-box-panel,.vat201-reconciliation{min-width:0;padding:14px}.vat201-box-table{min-width:560px}
.business-print-document{display:none}
@media print{.business-print-document{display:block!important;max-width:190mm;margin:0 auto;padding:12mm;color:var(--ink);font:11pt var(--body)}body>*:not(.business-print-document){display:none!important}body>.business-print-document{display:block!important}.business-print-brand,.business-print-title,.business-print-fields{display:flex;justify-content:space-between;gap:12px}.business-print-brand{padding-bottom:12px;border-bottom:2px solid var(--brand)}.business-print-title{margin:20px 0}.business-print-title h1{margin:4px 0}.business-print-fields{flex-wrap:wrap;margin:18px 0}.business-print-fields>div{display:grid;gap:4px;min-width:30%}.business-print-document table{width:100%;border-collapse:collapse}.business-print-document th,.business-print-document td{padding:8px;border-bottom:1px solid var(--line);text-align:left}.business-print-total{display:flex;justify-content:space-between;margin:16px 0;font-size:14pt}.business-print-notes{margin-top:20px}.business-print-document footer{margin-top:30px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:9pt}}
@media(max-width:850px){.business-list-detail{grid-template-columns:1fr}.invoice-editor-layout{grid-template-columns:minmax(0,1fr)}.invoice-preview-column{order:2}.business-inspector{position:static;max-height:none}}
@media(max-width:760px){.finance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-unified-heading{align-items:flex-start;flex-direction:column}.finance-heading-actions{justify-content:flex-start}}
@media(max-width:760px){.finance-unified-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.finance-workspace-tabs{margin-inline:-4px;padding-inline:4px}.finance-summary-grid{grid-template-columns:minmax(0,1fr)}.vat201-workspace{grid-template-columns:minmax(0,1fr)}.vat201-form{align-items:stretch;flex-direction:column}.vat201-form label,.vat201-form input{width:100%}}
@media(max-width:560px){.business-workspace-heading{align-items:flex-start;flex-direction:column}.business-filterbar{grid-template-columns:minmax(0,1fr)}.business-inspector-body{padding:10px}.invoice-editor-heading{align-items:flex-start;flex-direction:column}.invoice-editor-card,.invoice-live-preview{padding:12px}.invoice-meta-grid,.invoice-summary-grid,.invoice-preview-parties,.invoice-preview-dates{grid-template-columns:minmax(0,1fr)}.invoice-section-heading{align-items:flex-start;flex-direction:column}.invoice-editor-footer{align-items:stretch;flex-direction:column}.invoice-footer-actions{justify-content:stretch}.invoice-footer-actions button{flex:1 1 auto}.invoice-preview-document{padding:13px}.invoice-email-summary{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.invoice-editor-heading{align-items:flex-start;flex-direction:column}}
