:root{color:#192a38;font-synthesis:none;background:#f5f7fa;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app{min-height:100vh}.topbar{background:#fff;border-bottom:1px solid #e3e8ee;justify-content:space-between;align-items:center;height:74px;padding:0 30px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand strong{letter-spacing:-.02em;font-size:17px;display:block}.brand small{color:#8594a1;letter-spacing:.08em;text-transform:uppercase;font-size:11px;display:block}.brand-mark,.sheet-brand{color:#fff;letter-spacing:-.04em;background:#104d55;border-radius:10px;place-items:center;width:39px;height:39px;font-weight:800;display:grid}.top-actions{align-items:center;gap:14px;display:flex}.badge,.status{color:#176e68;background:#ecf5f3;border-radius:99px;padding:5px 10px;font-size:11px;font-weight:700;display:inline-block}.badge.local{color:#9e5b0a;background:#fff4e5}.account{color:#61717f;font-size:12px}.layout{grid-template-columns:220px minmax(0,1fr);max-width:1600px;margin:auto;display:grid}.sidebar{background:#fff;border-right:1px solid #e3e8ee;min-height:calc(100vh - 74px);padding:30px 14px}.sidebar-title,.eyebrow{color:#8b9ba8;letter-spacing:.13em;font-size:10px;font-weight:800}.sidebar-title{margin:0 15px 16px}.nav{gap:4px;display:grid}.nav-button{text-align:left;color:#5f7280;background:0 0;border:0;border-radius:8px;width:100%;padding:12px 15px;font-weight:600}.nav-button:hover,.nav-button.active{color:#0e5f63;background:#e9f3f2}.sidebar-note{color:#97a6b1;margin:34px 15px;font-size:11px;line-height:1.6}main{min-width:0;padding:34px 38px 50px}.page-head{justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px;display:flex}.page-head h1{letter-spacing:-.05em;margin:4px 0 3px;font-size:31px}.page-head p,.section-head p,.sequence-card p{color:#81909c;margin:0;font-size:13px}.button{color:#28404b;white-space:nowrap;background:#fff;border:1px solid #dce4e8;border-radius:8px;padding:9px 13px;font-size:12px;font-weight:700}.button:hover{background:#eef4f5}.button.primary{color:#fff;background:#115b63;border-color:#115b63}.button.primary:hover{background:#0c444a}.button.ghost{border:0}.card{background:#fff;border:1px solid #e3e9ed;border-radius:13px;padding:20px;box-shadow:0 4px 20px #112c3a06}.invoice-layout{grid-template-columns:250px minmax(0,1fr);gap:20px;display:grid}.section-head{justify-content:space-between;align-items:start;gap:12px;margin-bottom:17px;display:flex}.section-head h2,.card h2{letter-spacing:-.025em;margin:0;font-size:16px}.section-head h3{margin:0 0 4px;font-size:15px}.count{color:#82939c;font-size:11px}.search{margin-bottom:12px}.invoice-list,.client-list{gap:7px;display:grid}.list-button{text-align:left;background:#fff;border:1px solid #0000;border-radius:9px;width:100%;padding:11px}.list-button:hover,.list-button.selected{background:#eff6f5;border-color:#d3e9e6}.list-button strong{font-size:12px;display:block}.list-button small{color:#83939e;margin-top:4px;display:block}.list-button .list-total{color:#165b62;margin-top:5px;font-size:12px;font-weight:700;display:block}.empty{color:#98a7b1;padding:20px 6px;font-size:12px;line-height:1.5}.editor-heading{align-items:center}.editor-heading h2{margin:3px 0 7px}.editor-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.message{color:#246d49;background:#eaf5ef;border-radius:8px;margin-bottom:15px;padding:10px 13px;font-size:12px}.message.error{color:#a63827;background:#fff0ee}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px;display:grid}.card label,.auth-card label{color:#637783;font-size:11px;font-weight:700;line-height:1.4;display:block}.card input,.card textarea,.card select,.auth-card input{color:#1b313d;background:#fff;border:1px solid #dce4e9;border-radius:7px;outline:none;width:100%;margin-top:6px;padding:9px 10px;font-size:12px;display:block}.card input:focus,.card textarea:focus,.card select:focus,.auth-card input:focus{border-color:#27949a;box-shadow:0 0 0 3px #e1f3f1}.card input[readonly]{color:#728490;background:#f6f8fa}.card textarea{resize:vertical}.divider{background:#edf0f2;height:1px;margin:23px 0}.items-editor{gap:10px;display:grid}.item-row{background:#fcfdfd;border:1px solid #e6ecef;border-radius:10px;padding:13px}.item-main{grid-template-columns:minmax(0,1.4fr) minmax(0,1.4fr) 105px 85px 100px 28px;align-items:end;gap:9px;display:grid}.item-row .mini-remove{color:#a1adb6;background:0 0;border:0;padding-bottom:8px;font-size:20px}.item-row .mini-remove:hover{color:#af3728}.item-sub{color:#8c9aa4;margin-top:9px;font-size:11px}.total-bar{border-top:2px solid #1d3b46;justify-content:space-between;align-items:center;margin-top:22px;padding-top:15px;font-size:13px;display:flex}.total-bar strong{color:#0e5b61;letter-spacing:-.03em;font-size:21px}.preview-head{margin:36px 0 15px}.preview-head h2{margin:3px 0;font-size:20px}.client-layout{grid-template-columns:260px minmax(0,680px);gap:20px;display:grid}.client-form,.settings-form{gap:17px;display:grid}.settings-form{max-width:900px}.settings-form h2{margin:0}.field-help{color:#8fa0aa;margin:0;font-size:11px;line-height:1.5}.sequence-card{max-width:900px;margin-top:20px}.sequence-card h2{margin-bottom:7px}.sequence-controls{align-items:end;gap:12px;margin:17px 0;display:flex}.sequence-controls label{width:180px}.sequence-controls button{height:35px}.print-sheet{background:#fff;border:1px solid #e1e8eb;border-radius:12px;max-width:900px;min-height:1120px;margin:0 auto 50px;padding:55px 62px;display:none;box-shadow:0 8px 35px #18333f0d}.app:has(#invoicesView:not(.hidden)) .print-sheet{display:block}.sheet-head{border-bottom:2px solid #174e56;justify-content:space-between;padding-bottom:25px;display:flex}.sheet-brand{border-radius:7px;width:32px;height:32px;margin-bottom:16px;font-size:12px}.sheet-head h1{color:#14353d;letter-spacing:-.04em;margin:0;font-size:27px}.sheet-head h1 span{color:#82949e;font-weight:400}.sheet-head p{color:#778b95;margin:6px 0 0;font-size:12px}.sheet-meta{text-align:right;color:#72838e;align-content:end;gap:5px;font-size:11px;display:grid}.sheet-meta strong{color:#193a43;font-size:15px}.sheet-parties{grid-template-columns:1fr 1fr;gap:35px;min-height:160px;margin-top:35px;display:grid}.sheet-parties h2,.sheet-bottom h2{letter-spacing:.1em;color:#8a9ba5;margin:0 0 10px;font-size:10px}.sheet-parties strong{color:#233f48;font-size:14px}.sheet-parties p,.sheet-bottom p{color:#627783;white-space:pre-line;margin:3px 0;font-size:11px;line-height:1.6}.sheet-table{border-collapse:collapse;width:100%;margin-top:30px;font-size:11px}.sheet-table th{color:#57727b;text-transform:uppercase;letter-spacing:.04em;text-align:left;background:#eff4f4;padding:11px 10px;font-size:9px}.sheet-table td{vertical-align:top;border-bottom:1px solid #e5eced;padding:12px 10px}.sheet-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.sheet-table td small{color:#8497a0;margin-top:4px;display:block}.sheet-total{color:#234650;border-top:2px solid #1c4f57;justify-content:space-between;align-items:center;width:280px;margin:28px 0 0 auto;padding-top:14px;font-size:12px;font-weight:700;display:flex}.sheet-total strong{font-size:20px}.sheet-bottom{grid-template-columns:1fr 1fr;gap:35px;margin-top:70px;display:grid}.print-sheet footer{color:#9aabb4;text-align:center;border-top:1px solid #e6ecef;margin-top:100px;padding-top:14px;font-size:9px}.auth-screen{background:#eff5f5;place-items:center;min-height:100vh;display:grid}.auth-card{background:#fff;border-radius:16px;gap:16px;width:min(420px,100vw - 32px);padding:34px;display:grid;box-shadow:0 15px 50px #12373c14}.auth-card h1{letter-spacing:-.04em;margin:0;font-size:26px}.auth-card p{color:#81929a;margin:0;font-size:13px}.auth-card .brand-mark{width:48px;height:48px}.auth-card .error{color:#ac382d}.auth-card button{width:100%}@media (width<=1180px){.invoice-layout{grid-template-columns:1fr}.history{max-height:270px;overflow:auto}.item-main{grid-template-columns:repeat(2,1fr)}.item-row .mini-remove{justify-self:end}.client-layout{grid-template-columns:1fr}}@media (width<=760px){.layout{grid-template-columns:1fr}.sidebar{border-bottom:1px solid #e3e8ee;border-right:0;min-height:0;padding:8px 12px}.sidebar-title,.sidebar-note{display:none}.nav{display:flex}.nav-button{width:auto;padding:8px 10px;font-size:12px}.topbar{padding:0 16px}.account{display:none}main{padding:22px 14px}.page-head{align-items:start}.page-head h1{font-size:26px}.form-grid{grid-template-columns:1fr}.editor-heading{display:block}.editor-actions{justify-content:start;margin-top:14px}.item-main{grid-template-columns:repeat(2,minmax(0,1fr))}.sequence-controls{grid-template-columns:1fr 1fr;display:grid}.sequence-controls label{width:auto}.print-sheet{min-height:0;margin:0 14px 40px;padding:30px 20px}.sheet-parties,.sheet-bottom{gap:14px}.sheet-head h1{font-size:21px}}@media print{body{background:#fff}.no-print,.auth-screen{display:none!important}.app{display:block!important}.print-sheet{width:100%;max-width:none;min-height:0;box-shadow:none;border:0;border-radius:0;margin:0;padding:0;display:block!important}.app:has(#invoicesView:not(.hidden)) .print-sheet{width:100%;max-width:none;min-height:0;box-shadow:none;border:0;border-radius:0;margin:0;padding:0;display:block!important}.sheet-bottom,.sheet-table tr{break-inside:avoid}.print-sheet footer{margin-top:45px}}@page{size:A4 portrait;margin:10mm}@media print{html,body{width:100%;margin:0;padding:0}.app{min-height:0}.print-sheet{width:100%;max-width:176mm;margin:0 auto;overflow:visible}.app:has(#invoicesView:not(.hidden)) .print-sheet{width:100%;max-width:176mm;margin:0 auto;overflow:visible}.sheet-head{padding-bottom:18px}.sheet-parties{min-height:0;margin-top:25px}.sheet-parties>div,.sheet-bottom>div{overflow-wrap:anywhere;min-width:0}.sheet-table{table-layout:fixed;margin-top:22px}.sheet-table th:first-child{width:55%}.sheet-table td{overflow-wrap:anywhere}.sheet-total{max-width:100%}.sheet-bottom{margin-top:30px}.print-sheet footer{margin-top:35px}.sheet-brand{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.button.danger{color:#a83c35;border-color:#efd3d0}.button.danger:hover{background:#fff0ee}.rectification-notice{color:#315d73;background:#edf4f8;border-radius:8px;margin-bottom:15px;padding:10px 13px;font-size:12px}.status.rectified{color:#a14039;background:#f8ebe9}.status.corrective{color:#355d91;background:#eaf0f9}.sheet-head .sheet-correction{color:#a14039;margin-top:8px;font-size:10px;font-weight:700}
