:root{--ink:#213b37;--muted:#78837e;--green:#1b5c48;--line:#e4e8e1;--cream:#f6f7f2;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--cream);font-size:14px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button{transition:background .15s,box-shadow .15s}button:hover:not(:disabled){filter:brightness(.96)}h1,h2,h3,h4,p{margin:0}a{color:var(--green)}small{color:var(--muted)}.app-shell{display:flex;min-height:100vh}.sidebar{width:244px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:31px 19px;z-index:10}.brand{background:none;border:none;display:flex;align-items:center;gap:11px;text-align:left;padding:0 8px;color:#193a30;font-weight:800;font-size:17px;letter-spacing:1.2px}.brand-mark{height:42px;width:42px;display:grid;place-items:center;background:#1b5c48;color:#fff;border-radius:12px}.brand small{display:block;font-size:9px;letter-spacing:3px;font-weight:500;margin-top:5px}.workspace{border:1px solid var(--line);border-radius:8px;margin-top:38px;display:flex;align-items:center;gap:9px;padding:12px 9px;font-size:11px;font-weight:600}.workspace small{display:block;font-size:10px;font-weight:400;margin-top:5px}.workspace-avatar{display:grid;place-items:center;width:30px;height:30px;background:#f0f2ec;border-radius:6px;font-size:10px}.nav-caption{font-size:9px;color:#99a29b;letter-spacing:1.7px;margin:31px 12px 13px}nav{display:flex;flex-direction:column;gap:7px}nav button{display:flex;align-items:center;gap:12px;padding:13px 12px;background:none;border:none;color:#77827b;border-radius:7px;text-align:left;font-size:12px}nav button.active{background:#eaf2eb;color:#205840;font-weight:600}nav button small{margin-left:auto;display:grid;place-items:center;border:1px solid #cadacd;border-radius:4px;min-width:20px;height:19px;font-size:10px}.sidebar-bottom{margin-top:auto;padding-top:40px}.private-note{display:flex;gap:10px;padding:15px 9px;font-size:11px}.private-note small{display:block;font-size:10px;margin-top:6px}.user{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:20px 9px 0;overflow:hidden;font-size:11px}.user>span{width:32px;height:32px;border-radius:50%;background:#ebe6d8;display:grid;place-items:center;flex-shrink:0}.user>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user small{display:block;font-size:10px;margin-top:5px}.main{margin-left:244px;flex:1;min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 39px;font-size:11px}.topbar>div{display:flex;align-items:center;gap:12px}.breadcrumb{color:#949b95}.topbar b{font-weight:500}.top-status{display:flex;align-items:center;gap:7px;color:#77827b;font-size:10px}.top-status>span,.connection-note>span{width:6px;height:6px;background:#689673;border-radius:50%;display:inline-block}.content{max-width:1530px;margin:auto;padding:39px 40px 28px;min-height:calc(100vh - 126px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:29px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:600;color:#7f9184;display:block;margin-bottom:10px}.page-heading h1{font-size:31px;font-weight:500;letter-spacing:-1px;line-height:1.3}.page-heading p{color:#849086;font-size:12px;line-height:1.7;margin-top:7px}.primary,.secondary{border:1px solid transparent;border-radius:7px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.primary{background:var(--green);color:#fff;box-shadow:0 2px 3px #193a3010}.secondary{background:#fff;border-color:#dce2d8;color:#4f6359}.compact{padding:9px 12px;font-size:11px}.full{width:100%}.actions{display:flex;align-items:center;gap:9px}.text-button{border:0;background:none;color:var(--green);display:inline-flex;align-items:center;gap:7px;font-size:11px;padding:5px 0}.icon-button{display:inline-grid;place-items:center;border:none;background:none;padding:7px;color:#839084;flex-shrink:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:21px 21px 18px}.stat>div{display:flex;justify-content:space-between;color:#809081;font-size:11px}.stat>div svg{color:#859982}.stat h2{font-size:28px;font-weight:500;letter-spacing:-.9px;margin:19px 0 11px;white-space:nowrap}.stat small{font-size:10px;line-height:1.7;display:block}.stat h2>span{font-size:11px;letter-spacing:0;color:#708672;margin-left:9px}.accent-stat{background:#eef3e9;border-color:#dce5d4}.invoice-panel{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}.panel-toolbar{display:flex;align-items:center;justify-content:space-between;padding:18px 24px 0;gap:12px}.filters{display:flex;gap:25px;align-self:stretch}.filters button{border:0;border-bottom:2px solid transparent;background:none;color:#8b958d;font-size:11px;padding:9px 0 19px;white-space:nowrap}.filters button.selected{color:var(--green);border-bottom-color:var(--green);font-weight:600}.list-toolbar{padding:18px 24px;border-top:1px solid var(--line);display:flex;align-items:center;gap:13px}.search{display:flex;gap:9px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:10px 11px;width:350px;color:#8e9a8f;background:#fff}.search input{border:0;background:none;font-size:11px;width:100%;outline:none;color:var(--ink)}.list-toolbar>span{margin-left:auto;font-size:10px;color:#97a096}.table-scroll{overflow:auto}.invoice-table{border-collapse:collapse;width:100%;min-width:740px;text-align:left;font-size:11px}.invoice-table th{background:#fafbf8;font-size:9px;letter-spacing:.3px;color:#8b988e;font-weight:500;padding:15px 24px;border-block:1px solid var(--line);white-space:nowrap}.invoice-table td{padding:17px 24px;border-bottom:1px solid #edf0e9;white-space:nowrap}.invoice-table tbody tr{cursor:pointer}.invoice-table tbody tr:hover{background:#fafcf8}.invoice-table td b{font-weight:500}.invoice-table td small{display:block;margin-top:6px;font-size:9px}.empty{padding:61px 30px 49px;text-align:center;display:flex;flex-direction:column;align-items:center}.empty-icon{height:64px;width:64px;border-radius:16px;background:#edf3e9;display:grid;place-items:center;color:#54755b;position:relative;margin-bottom:20px}.empty-icon>span{position:absolute;bottom:0;right:-3px;background:#fff;border:1px solid #dfe7d9;border-radius:50%;padding:5px;display:flex}.empty h3{font-size:19px;font-weight:500;letter-spacing:-.4px;margin-bottom:10px}.empty p{font-size:11px;color:#8b958a;line-height:1.8;max-width:365px;margin-bottom:21px}.empty-foot{display:flex;align-items:center;gap:7px;margin-top:28px;font-size:9px;color:#92a08f}.empty-foot span{margin:0 4px}.help-strip{display:flex;gap:16px;align-items:center;padding:26px 0 3px}.section-icon{width:40px;height:40px;border:1px solid #dfe6d9;border-radius:9px;background:#f4f7ee;color:#6b8664;display:grid;place-items:center;flex-shrink:0}.help-strip b{font-size:12px;font-weight:500}.help-strip p{font-size:10px;color:#8c9789;margin-top:6px;line-height:1.6}.help-strip>.text-button{margin-left:auto}.app-footer{display:flex;justify-content:space-between;padding:17px 40px;border-top:1px solid var(--line);font-size:9px;color:#95a090}.app-footer span:last-child{display:flex;gap:5px;align-items:center}.back{display:flex;align-items:center;gap:4px;color:#809082;background:none;border:0;padding:0;margin-bottom:19px;font-size:11px}.page-heading h1 .status{vertical-align:middle;margin-left:12px;letter-spacing:0}.status{display:inline-block;border-radius:5px;padding:5px 8px;font-size:9px;font-weight:500;white-space:nowrap}.status.draft{background:#f3efdf;color:#9b874c}.status.paid{background:#e9f4eb;color:#508563}.status.unpaid{background:#fff0df;color:#b27c3a}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.editor-tabs{display:flex;border-bottom:1px solid var(--line);gap:24px;margin-bottom:21px}.editor-tabs button{padding:5px 0 16px;background:none;border:none;border-bottom:2px solid transparent;color:#8b968b;font-size:11px;white-space:nowrap}.editor-tabs button.selected{color:var(--green);border-color:var(--green);font-weight:600}.form-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:25px;margin-bottom:20px}.card-heading{display:flex;align-items:center;gap:12px;margin-bottom:24px}.card-heading h3{font-size:14px;font-weight:600}.card-heading p{font-size:10px;color:#8a9687;margin-top:5px;line-height:1.7}.fields{display:grid;grid-template-columns:1fr 1fr;gap:19px 18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field>span,.lookup-row label>span{font-size:10px;font-weight:600;color:#647464}.field input,.field textarea,.field select{border:1px solid #dfe5da;border-radius:6px;background:#fff;padding:11px 12px;color:#3b4e3f;font-size:12px;width:100%;min-height:40px;line-height:1.4}.field textarea{min-height:95px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #cbdcba;outline-offset:0;border-color:#97b582}.field input:disabled,.field textarea:disabled,.field select:disabled{background:#fafbf8;color:#5d6c60}.field small{font-size:9px;line-height:1.6}.field.wide{grid-column:1/-1}.lookup-row{display:flex;align-items:end;gap:13px}.lookup-row label{display:flex;flex-direction:column;gap:9px;flex:1;max-width:260px}.plate{background:#f7d855;color:#26352a;border:1px solid #ecd05e;text-transform:uppercase;letter-spacing:2px;font-weight:700;border-radius:5px;padding:12px 14px;font-size:19px;width:100%}.small-plate{display:inline-block;font-size:10px;padding:5px 8px;letter-spacing:.6px;width:auto}.connection-note{font-size:9px;color:#909b8a;display:flex;align-items:center;gap:5px;padding:11px 0 22px}.connection-note>span{background:#c9b786}.connection-note.online>span{background:#689673}.summary{background:#fff;border:1px solid var(--line);border-radius:11px;padding:23px;position:sticky;top:22px}.summary-top{display:flex;justify-content:space-between;color:#8d9c84}.summary-top .eyebrow{font-size:9px}.summary-vehicle{margin:20px 0 23px}.summary-vehicle h3{font-size:16px;font-weight:500;margin-top:13px}.summary-vehicle p{font-size:10px;color:#83917f;margin-top:7px}.summary-lines{border-top:1px solid var(--line);padding-top:10px}.summary-lines>div{display:flex;justify-content:space-between;font-size:10px;color:#82917e;padding:8px 0;gap:10px}.summary-lines b{color:#3d5140;font-weight:500;white-space:nowrap}.summary-lines .net-total{border-top:1px solid var(--line);margin-top:8px;padding-top:15px;margin-bottom:5px;color:var(--ink)}.summary-lines .net-total b{font-weight:600}.balance-card{background:#edf3e8;border-radius:8px;padding:18px;margin:15px 0 18px}.balance-card>span{font-size:10px}.balance-card h2{font-size:30px;font-weight:500;letter-spacing:-.9px;margin:8px 0}.balance-card small{font-size:9px}.summary-note{font-size:9px;color:#91a086;line-height:1.7;margin:12px 0 0;display:flex;gap:5px}.summary-note svg{flex-shrink:0;margin-top:2px}.editor-footer{display:flex;align-items:center;justify-content:space-between;padding:3px 0 20px;font-size:10px;color:#8e9987}.minor-heading{font-size:11px;margin:27px 0 13px}.muted-box{background:#f7f9f3;padding:16px;border-radius:6px;font-size:10px;color:#8c9884;line-height:1.7;margin-bottom:16px}.payment-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-top:1px solid var(--line);font-size:11px}.payment-row>div{flex:1}.payment-row small{display:block;font-size:9px;margin-top:5px}.payment-row b{font-weight:500}.block-hint{display:block;margin-top:11px;font-size:9px}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.signature .label-line{display:flex;justify-content:space-between;align-items:center;font-size:10px}.signature canvas,.signature img{display:block;width:100%;height:100px;border:1px dashed #d7dfcf;border-radius:7px;margin:10px 0;background:#fafcf7;object-fit:contain;touch-action:none}.signature small{font-size:9px}.checkbox-row{display:flex;gap:10px;align-items:flex-start;margin-top:19px;font-size:10px;line-height:1.7;color:#778970}.checkbox-row input{accent-color:var(--green);margin-top:3px}.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;align-items:start;max-width:1100px}.connection-card h3{margin:15px 0;font-size:16px}.connection-card p{font-size:11px;color:#84927d;line-height:1.8;margin:16px 0}.connection-card small{display:block;margin-top:13px;font-size:9px}.setup-steps{padding:15px 0;border-top:1px solid var(--line)}.setup-steps b{font-size:11px}.setup-steps p{font-size:10px;margin:9px 0}.small-card{border:1px solid var(--line);border-radius:10px;padding:23px;background:#eef3e8;color:#6c8361}.small-card h4{font-size:12px;margin:13px 0 9px}.small-card p{font-size:10px;line-height:1.8}.info-box{margin-top:22px;display:flex;gap:12px;padding:18px;background:#f2f6ec;border-radius:7px;align-items:flex-start}.info-box>svg{flex-shrink:0}.info-box b{font-size:11px}.info-box p{font-size:10px;color:#7a8c72;line-height:1.8;margin:7px 0 12px}.info-box a{font-size:10px;display:inline-flex;gap:4px;align-items:center}.settings-layout textarea{min-height:270px}.customer-search{margin-bottom:22px}.customer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.customer-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px}.customer-avatar{background:#edf3e6;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#6d875b;font-size:12px;margin-bottom:16px}.customer-card h3{font-size:15px;margin-bottom:13px}.customer-card p{font-size:10px;color:#84927a;line-height:1.8}.customer-card button{margin-top:20px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);z-index:90;border:1px solid #d5e5cf;border-radius:10px;box-shadow:0 5px 40px #243d3320;display:flex;align-items:center;gap:11px;padding:15px 16px;background:#fff;max-width:620px;width:max-content;font-size:12px;line-height:1.6;color:#3c6f4b}.toast>span{display:flex}.toast.error{color:#9a5d41;border-color:#f0ddce}.modal-overlay{position:fixed;inset:0;background:#172d29a6;backdrop-filter:blur(3px);z-index:40;display:flex;justify-content:center;align-items:center;padding:24px;overflow:auto}.modal{position:relative;max-width:490px;width:100%;background:#fff;border-radius:13px;padding:30px;box-shadow:0 15px 80px #12332940}.modal-close{position:absolute;right:15px;top:15px}.modal h2{font-size:23px;font-weight:500;margin:19px 0 12px;letter-spacing:-.5px}.modal p{font-size:12px;color:#85927e;line-height:1.9;margin-bottom:22px}.modal .fields{margin:20px 0 25px}.modal .actions{justify-content:flex-end}.issue-summary{display:grid;grid-template-columns:1fr auto;gap:15px;padding:20px;background:#f2f6ec;border-radius:7px;margin-bottom:20px;font-size:12px}.issue-summary b{font-weight:500}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-overlay{display:block;background:#e7ebe3;padding:95px 20px 40px}.preview-toolbar{position:fixed;top:0;left:0;right:0;height:75px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:15px 30px;border-bottom:1px solid #d5dfce;z-index:2}.preview-toolbar small{display:block;font-size:10px;margin-top:5px}.paper{width:794px;max-width:100%;background:#fff;min-height:1123px;margin:auto;padding:48px 52px;box-shadow:0 6px 30px #1e392918;font-size:12px;color:#27332b;line-height:1.6}.paper-head{display:flex;justify-content:space-between;gap:25px;border-bottom:2px solid #244937;padding-bottom:26px}.paper-head h2{font-size:29px;font-weight:600;letter-spacing:-1px}.paper-head b{font-size:11px}.paper-head p{font-size:11px;margin:4px 0}.invoice-title{text-align:right}.invoice-title h1{font-size:28px;font-weight:400;letter-spacing:3px;color:#748574;margin-bottom:12px}.paper-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin:27px 0}.paper h4{font-size:9px;letter-spacing:1.1px;color:#6e856d;margin:21px 0 9px;font-weight:600}.paper-grid h4{margin-top:0}.paper-grid b{font-size:12px}.paper p{overflow-wrap:anywhere}.paper-table{width:100%;border-collapse:collapse;margin:23px 0}.paper-table th{padding:10px 12px;background:#edf2e8;text-align:left;font-size:10px}.paper-table td{border-bottom:1px solid #e0e6da;padding:10px 12px;font-size:11px}.paper-table th:last-child,.paper-table td:last-child{text-align:right}.print-totals p{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:10px}.print-totals b{white-space:nowrap}.print-totals .grand{font-size:16px;margin-top:15px;padding-top:14px;border-top:2px solid #244937}.bank{font-size:10px;background:#f1f5ec;padding:14px;border-radius:5px}.print-signatures{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin:28px 0}.print-signatures p{font-size:10px;color:#72846a}.print-signatures img{width:100%;height:65px;object-fit:contain}.signature-line{border-bottom:1px solid #89997d;height:65px}.paper footer{font-size:9px;color:#8c9b82;border-top:1px solid #e0e6da;padding-top:16px}.terms-print{page-break-before:always;margin-top:65px;padding-top:25px;border-top:1px solid #dfe6d7}.terms-print .paper-head h2{font-size:22px}.terms-print .paper-head{margin-bottom:22px;padding-bottom:20px}.terms-print .rights{margin-top:25px;background:#f2f6ed;padding:15px;font-size:11px}.muted{color:#809075}@media(min-width:1500px){.content{padding-top:48px}.empty{padding-top:85px;padding-bottom:70px}.stats{gap:21px}.stat{padding:24px}.stat h2{font-size:32px}.empty h3{font-size:22px}}@media(max-width:1250px){.sidebar{width:215px;padding-inline:15px}.main{margin-left:215px}.content{padding:30px 25px}.topbar{padding-inline:25px}.stats{gap:10px}.stat{padding:17px 14px}.stat h2{font-size:24px}.stat h2>span{font-size:9px;display:block;margin:5px 0 0}.editor-layout,.settings-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.form-card{padding:20px}.summary{padding:19px}.help-strip>.text-button{max-width:150px}.invoice-table th,.invoice-table td{padding-inline:17px}.editor-tabs{gap:16px}}@media(max-width:1000px){.sidebar{width:190px;padding:25px 12px}.main{margin-left:190px}.brand{font-size:13px;gap:8px;padding:0 4px}.brand-mark{width:35px;height:35px}.brand small{font-size:8px}.workspace{font-size:10px}.stats{grid-template-columns:1fr 1fr}.stat h2>span{display:inline;margin-left:7px}.editor-layout,.settings-layout{grid-template-columns:1fr}.summary{position:static;max-width:none}.summary-lines{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.summary-lines .net-total{border:0;margin:0;padding:8px 0}.summary-vehicle{margin:10px 0 15px}.summary .balance-card{margin-top:15px}.summary-note{justify-content:center}.settings-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.customer-grid{grid-template-columns:1fr 1fr}.top-status{display:none}.help-strip{align-items:flex-start}.help-strip>.text-button{display:none}.editor-heading .page-heading{align-items:flex-start;flex-direction:column}.editor-heading .page-heading .actions{width:100%;justify-content:flex-end}.page-heading h1{font-size:28px}.filters{gap:18px}.panel-toolbar,.list-toolbar{padding-inline:18px}}@media(max-width:700px){.sidebar{position:sticky;top:0;width:auto;height:auto;padding:13px 15px 0;border-right:none;border-bottom:1px solid var(--line);z-index:15}.brand{font-size:14px;margin-bottom:14px}.brand-mark{width:30px;height:30px;border-radius:7px}.brand small,.workspace,.nav-caption,.sidebar-bottom{display:none}nav{flex-direction:row;gap:5px;justify-content:space-between}nav button{font-size:9px;padding:10px 5px;border-radius:5px 5px 0 0;gap:5px}nav button svg{width:14px;height:14px}nav button small{display:none}.app-shell{display:block}.main{margin-left:0}.topbar{display:none}.content{padding:26px 17px;min-height:calc(100vh - 149px)}.page-heading{gap:12px;align-items:flex-start;margin-bottom:22px}.page-heading h1{font-size:25px;letter-spacing:-.8px}.page-heading p{font-size:10px}.page-heading>.primary{padding:11px 12px;font-size:10px;margin-top:22px}.eyebrow{font-size:8px;letter-spacing:1.1px}.stats{gap:10px;margin-bottom:19px}.stat{padding:16px 13px}.stat>div{font-size:9px}.stat h2{font-size:25px;margin:14px 0 8px}.stat small{font-size:8px}.stat h2>span{font-size:8px;margin:4px 0 0;display:block}.panel-toolbar{padding:12px 12px 0}.filters{gap:14px}.filters button{font-size:9px;padding-bottom:15px}.panel-toolbar .secondary{font-size:0;gap:0;padding:8px}.list-toolbar{padding:12px}.search{width:100%;padding:10px}.list-toolbar>span{display:none}.empty{padding:45px 15px}.empty h3{font-size:18px}.empty p{font-size:10px}.empty-foot{font-size:8px;gap:4px}.help-strip{padding-top:20px;gap:10px}.help-strip b{font-size:10px}.help-strip p{font-size:9px}.help-strip .section-icon{width:32px;height:32px}.app-footer{padding:15px 17px;font-size:8px}.editor-tabs{gap:16px}.editor-tabs button{font-size:10px}.form-card{padding:19px 16px;margin-bottom:15px}.fields{gap:17px 12px}.field input,.field textarea,.field select{font-size:12px;padding:11px 9px}.field>span{font-size:9px}.lookup-row{gap:9px}.lookup-row .primary{font-size:10px;padding:13px 10px}.lookup-row .plate{font-size:17px;padding:10px;letter-spacing:1px}.lookup-row label{max-width:none;min-width:0}.card-heading p{font-size:9px}.card-heading h3{font-size:13px}.card-heading{gap:10px}.summary{padding:20px}.settings-layout>aside{grid-template-columns:1fr}.customer-grid,.signature-grid{grid-template-columns:1fr}.toast{max-width:calc(100vw - 26px);bottom:18px;font-size:11px;width:calc(100vw - 26px)}.modal-overlay{padding:15px}.modal{padding:24px 20px}.modal h2{font-size:21px}.modal p{font-size:11px}.preview-overlay{padding-top:90px}.preview-toolbar{padding:12px 16px;gap:10px}.preview-toolbar b{font-size:12px}.preview-toolbar .primary{font-size:10px;padding:10px}.paper{padding:26px 24px;font-size:10px;min-height:0}.paper-head{gap:15px}.paper-head h2{font-size:22px}.paper-head b,.paper-head p{font-size:9px}.invoice-title h1{font-size:20px;letter-spacing:1px}.paper-grid{gap:19px}.print-totals p{font-size:8px}.print-totals .grand{font-size:12px}.paper-grid b,.paper-table td{font-size:10px}.paper h4{font-size:8px}.paper footer{font-size:8px}.paper .bank{font-size:9px}.terms-print .paper-head h2{font-size:18px}}@media print{@page{size:A4;margin:15mm}body{background:#fff;font-size:11px}.no-print,.app-shell,.toast{display:none!important}.preview-overlay{position:static;background:#fff;display:block;padding:0;overflow:visible;backdrop-filter:none}.paper{width:auto;max-width:none;box-shadow:none;padding:0;margin:0;min-height:0;font-size:11px}.paper-head h2{font-size:27px}.paper-head p,.paper-head b{font-size:10px}.invoice-title h1{font-size:27px}.paper-grid{gap:32px}.paper-grid b,.paper-table td{font-size:11px}.print-totals p{font-size:10px}.print-totals .grand{font-size:15px}.paper h4{font-size:9px}.paper footer{font-size:9px}.terms-print{margin:0;padding:0;border:none;break-before:page}.paper-grid,.print-signatures,.paper-head,.bank,tr{break-inside:avoid}.terms-print section{break-inside:avoid}.paper-table th,.balance-card,.rights,.bank{print-color-adjust:exact;-webkit-print-color-adjust:exact}}.template-button{margin:0 0 20px}.warranty-template-fields{margin-bottom:23px}.check-progress{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px;font-size:11px;color:#809075}.check-progress b{color:var(--green);font-weight:500}.check-section-title{font-size:13px;font-weight:600;margin-bottom:14px}.check-item{border-top:1px solid var(--line);padding:14px 0}.check-item-top{display:flex;justify-content:space-between;gap:15px;align-items:center}.check-item-top label{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.5}.check-item-top input{width:17px;height:17px;accent-color:var(--green);flex-shrink:0}.is-checked .check-item-top span{color:var(--green)}.na-button{padding:5px 8px;border:1px solid #e1e6da;border-radius:5px;background:#fff;font-size:9px;color:#83917b}.na-button.selected{background:#efe9d9;border-color:#d7caa8;color:#8a7340}.check-input{border:0;border-bottom:1px solid #eef1e9;padding:8px 0;margin:5px 0 0 27px;width:calc(100% - 27px);font-size:10px;line-height:1.5;background:transparent;color:#75856b}.check-input:focus{outline:1px solid #b6c9a8}.check-input:disabled{color:#849178}.handover-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.editor-tabs{gap:20px}.editor-tabs button{font-size:10px}.delivery-print{break-before:page;margin-top:55px;border-top:1px solid var(--line);padding-top:24px}.delivery-print .paper-head h2{font-size:23px}.delivery-print-group .paper-table{margin:10px 0 20px}.delivery-print .paper-table td{padding:7px 8px}.delivery-print .paper-table td:last-child{font-size:9px;color:#73856e;width:90px}.print-check{display:inline-block;min-width:23px;color:#215840;font-size:11px}.check-note{display:block;font-size:9px;line-height:1.6;margin:3px 0 0 27px}.delivery-print-group h4{margin-top:17px}.delivery-print .paper-head .status{align-self:flex-start}.terms-print .print-signatures{break-inside:avoid}@media(max-width:700px){.editor-tabs{gap:14px;overflow:auto}.editor-tabs button{font-size:9px}.check-item-top label{font-size:11px}.handover-actions .primary,.handover-actions .secondary{font-size:10px;padding:11px 12px}.delivery-print .paper-head h2{font-size:18px}.delivery-print .paper-table td{font-size:9px}.delivery-print .paper-table td:last-child{font-size:8px}.check-note{font-size:8px}}@media print{.delivery-print{break-before:page;margin:0;border:none;padding:0}.delivery-print-group .paper-table td{font-size:10px}.delivery-print-group{break-inside:avoid}.delivery-print .paper-head h2{font-size:23px}.delivery-print .paper-table td:last-child{font-size:9px}.check-note{font-size:9px}.print-check{font-size:11px}}.remote-audit{font-size:9px;overflow-wrap:anywhere;line-height:1.6}.report-controls{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.report-controls .field{flex:1;min-width:190px}.report-table{min-width:1250px}.report-table td,.report-table th{padding:14px 12px}.report-table td:nth-child(n+7){text-align:right;white-space:nowrap}.report-table tfoot{font-weight:700;background:#edf2e8}.report-table tfoot td{text-align:right}.report-table tfoot td:first-child{text-align:left}@media(max-width:700px){nav{overflow-x:auto;justify-content:flex-start}nav button{flex-shrink:0}.report-controls .primary,.report-controls .secondary{flex:1;justify-content:center}}.original-warranty{font-family:Arial,Helvetica,sans-serif;color:#222;font-size:13px;line-height:1.4;padding-top:20px;border:none}.original-warranty h2{font-size:23px;font-weight:400;text-align:center;margin-bottom:40px}.original-warranty h3{font-size:14px;font-weight:700;margin:30px 0 25px}.original-warranty p{margin-bottom:14px}.original-warranty .warranty-details{margin:25px 0 35px}.warranty-details p{display:flex;gap:5px}.warranty-details span{min-width:200px;border-bottom:1px solid #555}.warranty-cover{font-weight:700;margin-top:28px!important}.original-warranty-second{padding-top:30px}.warranty-original-terms{line-height:1.42}.original-signature{margin:18px 0 40px}.original-signature p{display:flex;align-items:center;gap:8px}.original-signature span{display:inline-block;border-bottom:1px solid #555;min-width:180px}.original-signature img{width:220px;height:50px;object-fit:contain;border-bottom:1px solid #555}.warranty-contact{margin-top:35px!important}@media print{.original-warranty{font-size:11px;line-height:1.4;padding:0;break-before:page}.original-warranty h2{font-size:19px;margin-bottom:32px}.original-warranty h3{font-size:12px;margin:24px 0 20px}.original-warranty p{margin-bottom:12px}.original-warranty .warranty-details{margin:20px 0 30px}.original-warranty-second{padding:0}.warranty-original-terms{font-size:11px;line-height:1.4}.original-signature{margin:16px 0 28px}.warranty-contact{margin-top:28px!important}}.external-warranty-print{margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}.external-warranty-print .paper-head h2{font-size:22px}.external-warranty-print .print-signatures{break-inside:avoid}.brand{flex-direction:column;align-items:flex-start;gap:8px}.brand-logo{display:block;width:140px;height:auto;max-width:100%;border-radius:6px}.brand-caption{font-size:9px;letter-spacing:3px}.document-logo{display:block;width:100px;height:auto;margin-bottom:10px;border-radius:3px}@media(max-width:1000px){.brand-logo{width:120px}}@media(max-width:700px){.brand{flex-direction:row;align-items:center;gap:14px;margin-bottom:8px}.brand-logo{width:76px}.brand-caption{font-size:10px;letter-spacing:2px}.document-logo{width:86px}}@media print{.document-logo{width:26mm;height:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{background:#fff;padding:30px;border:1px solid var(--line);border-radius:14px;max-width:440px;margin:32px auto;color:var(--ink)}.login-card h1,.login-card h2,.login-card p{margin:16px 0}.login-card .field{display:flex;margin:18px 0}.login-card small{display:block;margin-top:20px}.login-card [role=alert]{color:#a02e2e}.account-actions{position:fixed;top:18px;right:22px;z-index:25}.account-actions button{background:#fff}.signing-actions{display:flex;justify-content:space-between;max-width:794px;margin:24px auto;gap:20px}.top-status{margin-right:100px}@media(max-width:700px){.account-actions{top:15px;right:10px}.account-actions button{font-size:10px;padding:6px}.login-card{margin:16px;max-width:none}.signing-actions{padding:0 16px}.signing-actions h1{font-size:20px}}.purchases .form-card{margin-top:20px}.purchases .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.purchase-summary{display:flex;flex-wrap:wrap;gap:25px;margin-top:22px;padding:18px;background:#eef3eb;border-radius:8px}.purchase-table-wrap{overflow:auto}.purchase-table-wrap small{display:block}.purchase-message{padding:16px;background:#eef3eb;border-radius:8px}.purchase-photo{max-width:100%;max-height:600px;object-fit:contain}.purchases input[type=file]{max-width:100%}@media(max-width:700px){.purchases .form-grid{grid-template-columns:1fr}.purchases .page-heading{display:block}.purchases .actions{flex-wrap:wrap}}.company-switcher{display:flex;align-items:center;gap:10px;font-size:12px}.company-switcher select{max-width:210px;padding:9px 12px;background:#fff;color:#173c2f;border:1px solid #c8d5c3;border-radius:8px}.company-logo-crop{display:inline-block;position:relative;overflow:hidden;width:145px;aspect-ratio:365/180;background:#050505;vertical-align:middle;flex-shrink:0}.company-logo-crop img{position:absolute;max-width:none!important;width:350.685%!important;height:auto!important;left:-126.027%;top:-25%;object-fit:initial!important}.brand .company-logo-crop{width:160px;height:auto!important}.original-warranty .company-logo-crop{margin-bottom:15px}@media(max-width:700px){.company-switcher{gap:5px}.company-switcher span{display:none}.company-switcher select{font-size:11px;max-width:165px}.topbar{gap:5px}}@media print{.company-logo-crop.document-logo{display:block;width:34mm;height:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}}@media(max-width:700px){.topbar{display:flex;height:auto;min-height:64px;padding:12px 17px;justify-content:flex-start}.topbar>div{display:none}.topbar .company-switcher{width:100%;gap:10px;font-size:12px}.topbar .company-switcher span{display:inline}.topbar .company-switcher select{flex:1;width:100%;max-width:280px;min-height:44px;font-size:16px;padding:10px 12px}}.delete-invoice{color:#b42318;border-color:#e5aaa4;background:#fff5f4}.delete-invoice:hover{background:#ffe5e2}.deleted-invoices-link{margin-bottom:16px}.deleted-invoice-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.deleted-invoice-row p{margin:8px 0}.deleted-invoice-row small{color:#607466}@media(max-width:700px){.editor-heading .actions{flex-wrap:wrap}.editor-heading .actions .delete-invoice{min-height:44px;font-size:13px}.deleted-invoice-row{align-items:flex-start;flex-direction:column}.deleted-invoice-row button{min-height:44px}}@media(max-width:700px){.editor-heading .actions .edit-invoice{min-height:44px;font-size:13px}.editor-heading .actions{gap:8px}}
/* Keep every workspace destination reachable, including short laptop screens. */
@media screen and (min-width:701px){
.sidebar{width:216px;height:100vh;height:100dvh;padding:14px 12px;overflow:hidden}
.main{margin-left:216px}
.sidebar .brand{flex-shrink:0;gap:6px;padding:0 8px;align-items:flex-start}
.sidebar .brand-logo{width:150px;max-height:68px;object-fit:contain;object-position:left center}
.sidebar .brand-caption{font-size:9px;letter-spacing:2px}
.sidebar .workspace{margin-top:14px;padding:10px 9px;min-height:54px;flex-shrink:0}
.sidebar .nav-caption{margin:14px 10px 8px;font-size:10px}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:3px;padding-right:3px}
.sidebar nav button{min-height:39px;flex-shrink:0;padding:9px 10px;font-size:13px;line-height:1.25;color:#465c54;border-left:3px solid transparent}
.sidebar nav button.active{border-left-color:#1b5c48;background:#e5f1e9;color:#174e3b}
.sidebar nav button svg{flex-shrink:0;width:18px;height:18px}
.sidebar-bottom{margin-top:8px;padding-top:0;flex-shrink:0}
.sidebar-bottom .private-note{display:none}
.sidebar-bottom .user{padding:9px 4px 0;font-size:10px}
.topbar{padding-right:125px}.company-switcher{min-width:0}.company-switcher select{max-width:210px}
}
.report-navigation{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.report-navigation button{min-height:42px}
.purchases .actions{flex-wrap:wrap}.purchases .purchase-message{margin-bottom:16px}
@media screen and (max-width:700px){
.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding-bottom:8px;overflow:visible}
.sidebar nav button{font-size:11px;line-height:1.3;min-height:44px;padding:7px 4px;justify-content:center;white-space:normal;text-align:center}
.sidebar nav button svg{display:none}.sidebar .brand-logo{max-height:42px;object-fit:contain}
.sidebar nav button.active{box-shadow:inset 0 -3px #1b5c48}
.report-navigation button{flex:1}.purchases .page-heading{flex-wrap:wrap}
}

.checklist-only .delivery-print{break-before:auto;page-break-before:auto;margin-top:0;padding-top:0;border-top:0}.danger-button{color:#a33;border-color:#e4b7b7}
