:root{--bg:#f5f6f1;--paper:#fff;--ink:#233a33;--muted:#7a8780;--green:#146b58;--green-dark:#104f43;--pale:#edf4ed;--line:#e5e9e2;--amber:#976720;--red:#a94537;--shadow:0 18px 70px #183b2c12;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #91b99a;outline-offset:3px}button{border:0}a{color:var(--green);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.2px;font-weight:600;margin-bottom:10px}h2{font-size:17px;letter-spacing:-.35px;font-weight:600;margin-bottom:12px}h3{font-size:14px;font-weight:600}p{line-height:1.65}small,.small{font-size:12px;line-height:1.6}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#6f8378;margin-bottom:12px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:22px;font-weight:650;letter-spacing:-1px}.brand-icon{background:var(--green);width:36px;height:36px;color:white;border-radius:11px;font-family:Georgia,serif;font-size:29px;line-height:31px;text-align:center}.sidebar{position:fixed;left:0;top:0;bottom:0;width:226px;background:#fafbf7;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.space-switch{display:flex;background:#eaf0e7;padding:4px;border-radius:9px;margin-top:39px}.space-switch button{background:transparent;color:#77897e;padding:9px 10px;border-radius:6px;flex:1;font-size:12px;font-weight:600}.space-switch .active{background:#fff;color:var(--green);box-shadow:0 2px 5px #234a2810}.nav-label{font-size:9px;letter-spacing:1.7px;color:#94a097;font-weight:700;margin:31px 10px 13px}nav{display:flex;flex-direction:column;gap:5px}nav button{display:flex;gap:13px;align-items:center;text-align:left;background:transparent;color:#75847b;padding:12px 13px;border-radius:8px;font-size:13px;font-weight:500}nav button span{font-size:20px;width:20px;text-align:center;line-height:20px}nav button.active{color:var(--green);background:#e8f0e6;font-weight:650}nav button:hover{background:#edf1e9}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:22px 9px 0}.private-note{font-size:10px;color:#7c8e81;display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;background:#6c9a72;border-radius:50%}.company-name{margin-top:13px;margin-bottom:5px;font-size:12px;font-weight:600}.sidebar-bottom .text-button{font-size:11px;color:var(--muted)}main{margin-left:226px}.topbar{height:79px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 39px;font-size:11px;background:#fafbf7}.breadcrumb{color:#8d988f;display:flex;gap:13px;align-items:center}.breadcrumb strong{font-weight:500;color:#425c4d}.topbar-right{display:flex;gap:17px;align-items:center}.avatar{display:grid;place-items:center;width:31px;height:31px;border:1px solid #dbe3d9;border-radius:50%;font-size:10px;color:#47614c;background:#edf1e6}.main-content{max-width:1600px;margin:auto;padding:36px 38px 18px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:31px}.page-heading p:last-child{margin-bottom:0;font-size:12px}.heading-actions{display:flex;gap:9px;flex-wrap:wrap}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 15px;border-radius:7px;font-size:12px;font-weight:550;white-space:nowrap;min-height:39px}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover{background:var(--green-dark)}.secondary{background:#fff;border:1px solid #dfe5db;color:#435d4f}.secondary:hover{background:#f2f6ed}.compact{padding:8px 13px;min-height:34px}.wide{width:100%}.text-button{background:none;color:var(--green);padding:6px 0;text-align:left;font-weight:550}.text-button:hover{text-decoration:underline}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:27px}.metric{background:white;border:1px solid var(--line);border-radius:11px;padding:21px 22px 19px;min-height:142px}.metric-label{display:flex;justify-content:space-between;align-items:center;color:#6d7f73;font-size:11px;font-weight:500}.mini-icon{background:#f3f6ef;width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:15px;color:#7e9483}.metric-value{font-size:29px;letter-spacing:-1px;font-weight:550;margin:15px 0 10px;font-variant-numeric:tabular-nums;white-space:nowrap}.metric-foot{font-size:10px;color:#94a093}.metric.accent{background:#e8f0df;border-color:#e0e9d8}.metric.accent .mini-icon{background:#dbe8cf;color:var(--green)}.metric.accent .metric-value{color:#325b36}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:23px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:11px;padding:23px}.ledger-panel{padding:0;overflow:hidden}.panel-title{padding:22px 22px 17px;display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-title h2{display:inline-block;margin:0 8px 0 0}.filters{padding:0 22px 19px;display:flex;gap:8px;flex-wrap:wrap}.filters input,.filters select{font-size:11px;min-height:34px;background:#fafbf8;border-color:#e6ebe2}.search-label{position:relative;flex:1;min-width:190px;margin:0}.search-label span{position:absolute;left:11px;top:7px;font-size:18px;color:#8a9a8d}.search-label input{width:100%;padding-left:32px}.filters select{width:auto;max-width:170px;padding:6px 26px 6px 9px}.table-scroll{overflow:auto}.ledger-table{width:100%;border-collapse:collapse;font-size:11px;min-width:650px}.ledger-table th{background:#fafbf7;padding:13px 10px;text-align:left;color:#8b978c;font-size:10px;font-weight:500;border-top:1px solid #edf0e8;border-bottom:1px solid #edf0e8;white-space:nowrap}.ledger-table td{padding:17px 10px;border-bottom:1px solid #edf0e8;vertical-align:middle}.ledger-table tr:hover td{background:#fafcf8}.ledger-table th:first-child,.ledger-table td:first-child{padding-left:22px;width:35px}.ledger-table td:last-child{padding-right:20px}.ledger-table .align-right{text-align:right}.ledger-table .partner{font-weight:600;color:#354e3e;margin-bottom:5px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledger-table .invoice-no{font-size:10px;color:#8c998e}.ledger-table .amount{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.ledger-table .status-stack{display:flex;gap:4px;flex-wrap:wrap;max-width:165px}.badge{display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:550;line-height:1.3;padding:5px 7px;border-radius:5px;white-space:nowrap}.badge.green{background:#edf4e8;color:#5c8151}.badge.amber{background:#fbf2df;color:#a48039}.badge.gray{background:#f0f2ed;color:#899281}.badge.red{background:#f9eae7;color:#a55b50}.table-footer{font-size:9px;color:#8c998c;display:flex;justify-content:space-between;gap:10px;padding:15px 22px}.edit-button{font-size:18px;background:transparent;color:#8d9b8c;padding:7px;border-radius:5px}.edit-button:hover{background:#e7eee1;color:#355b37}.batch{padding:12px 22px;display:flex;gap:10px;flex-wrap:wrap;background:#eaf2e4;align-items:center;font-size:11px}.batch button{background:white;border:1px solid #d8e4d0;padding:6px 8px;border-radius:5px;color:#476141;font-size:10px}.insights{display:grid;gap:19px}.insights .panel{padding:22px}.insights h2{font-size:14px;line-height:1.5}.insights .eyebrow{font-size:9px;letter-spacing:1.2px}.category-item{margin:21px 0}.category-label{display:flex;justify-content:space-between;font-size:10px;gap:8px;margin-bottom:8px}.category-label span:first-child{color:#73836e}.category-track{height:5px;border-radius:3px;background:#f0f3eb;overflow:hidden}.category-track div{height:100%;background:#779b69;border-radius:3px}.category-item:nth-child(2) .category-track div{background:#a4b58b}.category-item:nth-child(3) .category-track div{background:#bdc9a5}.insights .small{font-size:10px;margin-top:23px;margin-bottom:0}.tip-panel{background:#f0f3e9}.tip-icon{display:grid;place-items:center;border:1px solid #cfdbc5;border-radius:9px;width:30px;height:30px;color:#688059;margin-bottom:17px}.tip-panel p{font-size:11px;color:#85917c}.tip-panel h3{font-size:13px;line-height:1.5}.tip-panel button{font-size:11px;width:100%;display:flex;justify-content:space-between}.page-footer{display:flex;justify-content:space-between;font-size:9px;color:#9aa391;margin-top:36px;padding:18px 0;border-top:1px solid #e7eade}.empty{text-align:center;padding:48px 25px 50px}.empty-icon{display:grid;place-items:center;background:#edf3e7;border-radius:15px;width:52px;height:58px;margin:0 auto 18px;font-size:29px;color:#819875}.empty h3{font-size:16px;font-weight:500}.empty p{font-size:12px;color:#8b9786}.empty .primary{margin-top:10px}.vat-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.vat-toolbar label{margin:0;max-width:260px;flex:1}.notice{font-size:12px;line-height:1.65;background:#f4f4e7;border:1px solid #e6e6cc;color:#827840;border-radius:8px;padding:14px 16px;margin-bottom:20px}.notice ul{padding-left:18px;margin:0}.vat-cards{grid-template-columns:repeat(3,1fr)}.completeness-grid{display:flex;flex-wrap:wrap;gap:20px;margin:20px 0}.completeness-item{background:#f5f8f0;padding:17px;border-radius:8px;min-width:140px}.completeness-item strong{font-size:24px;display:block;margin-bottom:7px}.completeness-item span{font-size:11px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid .panel{padding:28px}.settings-grid .panel>p{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:25px 0}label{display:block;font-size:11px;font-weight:500;color:#607363;margin-bottom:16px}input,select,textarea{display:block;width:100%;border:1px solid #dae2d5;border-radius:6px;background:#fff;padding:10px 11px;color:var(--ink);margin-top:6px;min-height:38px}select{padding-right:24px}input[type=checkbox]{width:15px;height:15px;min-height:15px;accent-color:var(--green);margin:0;display:inline-block;flex-shrink:0}input[type=search]{margin:0}textarea{resize:vertical}.checkbox-label{display:flex;align-items:center;gap:10px;font-size:12px;margin:0}.error{color:var(--red);font-size:12px;padding:0 25px;line-height:1.6}.error:empty{display:none}dialog{border:1px solid #dce4d5;border-radius:15px;padding:0;width:min(1040px,calc(100% - 40px));max-height:92vh;color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:#17382566;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 27px;border-bottom:1px solid var(--line);background:#fff}.dialog-header h2{margin:0;font-size:22px;font-weight:550}.dialog-header .eyebrow{margin-bottom:7px}.icon-button{background:#f3f6ee;color:#7a8c72;border-radius:50%;width:30px;height:30px;font-size:23px;display:grid;place-items:center;flex-shrink:0}.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 270px}.editor-fields{padding:25px 27px}.editor-aside{padding:25px 22px;background:#f8faf4;border-left:1px solid var(--line)}.field-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.field-help{font-size:10px;color:#8c9983;line-height:1.6;margin:0 0 19px}.section-label{display:flex;justify-content:space-between;align-items:center;margin:27px 0 15px}.section-label h3{margin:0}.section-label button{font-size:11px}.line-item{background:#f8faf5;border:1px solid #e5ecde;border-radius:8px;padding:13px;margin:12px 0}.line-item .line-top{display:flex;gap:10px;align-items:center}.line-item .line-top input{margin:0;flex:1;font-size:12px}.line-item .line-top button{font-size:17px}.line-amounts{display:grid;grid-template-columns:1fr 1fr .7fr .7fr;gap:10px;margin-top:12px}.line-amounts label{font-size:9px;margin-bottom:0}.line-amounts input{padding:8px;min-width:0;font-size:12px}.form-total{display:flex;justify-content:space-between;align-items:center;background:#edf4e7;padding:16px;border-radius:6px;font-size:12px;margin:16px 0 12px}.form-total strong{font-size:23px;letter-spacing:-.6px}.payment-box{padding:15px;border:1px solid var(--line);border-radius:8px;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.payment-box label{margin:0}.dialog-footer{position:sticky;bottom:0;display:flex;gap:10px;align-items:center;padding:18px 27px;background:#fff;border-top:1px solid var(--line)}.footer-spacer{flex:1}.danger{color:var(--red)}.attachment{display:flex;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.attachment a{overflow-wrap:anywhere;flex:1}.attachment button{font-size:13px}.attachment-upload{border:1px dashed #ccd9c2;border-radius:7px;padding:17px;text-align:center;color:#6e875e;cursor:pointer;margin-top:15px}.status-block{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.status-block h3{font-size:12px}.status-block button{display:block;width:100%;margin-bottom:7px;font-size:10px}details{margin-top:22px;font-size:11px;line-height:1.6;color:#7d8b75}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.6;max-height:250px;overflow:auto}.history-item{font-size:10px;color:#8e9985;padding:8px 0;border-bottom:1px solid #e6ecdf}.history-item strong{font-weight:500;color:#607454;display:block}.small-dialog{max-width:520px}.dialog-content{padding:23px 27px}.dialog-content>p{font-size:12px}.export-options{display:grid;gap:10px}.export-options button{background:#f9fbf5;border:1px solid #dfe8d6;border-radius:8px;text-align:left;padding:17px;color:var(--ink)}.export-options button:hover{background:#edf4e5}.export-options strong{display:block;font-size:13px;margin-bottom:7px}.export-options span{font-size:11px;color:var(--muted)}.import-result{padding:12px 0;border-bottom:1px solid var(--line);font-size:11px;overflow-wrap:anywhere}.import-result strong{display:block;margin-bottom:5px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);background:#244e3d;color:white;border-radius:9px;box-shadow:0 8px 35px #213e2730;padding:14px 22px;z-index:1000;font-size:12px;line-height:1.5}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-card{max-width:440px;width:100%;margin:auto;padding:45px}.login-card .brand{margin-bottom:65px}.login-card h1{font-size:49px;line-height:1.13;margin-bottom:22px}.login-card form{margin-top:30px}.login-card .wide{justify-content:space-between;padding:13px 17px}.login-card small{display:block;margin-top:25px;color:#95a08f;font-size:10px}.login-card .error{padding:0}.login-art{background:#dce7d3;display:grid;place-items:center;overflow:hidden}.paper{width:300px;height:360px;background:#fbfcf5;box-shadow:20px 35px 50px #2d4e2620;transform:rotate(-8deg);border-radius:8px;padding:55px 35px;position:relative}.paper-line{background:#e3e9db;height:13px;margin-bottom:15px;border-radius:4px}.paper-line.short{width:65%}.paper-total{font:30px/1.4 Georgia,serif;margin-top:50px;color:#58754a}.paper-check{background:#146b58;width:75px;height:75px;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:40px;position:absolute;right:-25px;bottom:40px;transform:rotate(8deg)}[hidden]{display:none!important}
@media(min-width:1600px){.main-content{padding-top:45px}.workspace-grid{grid-template-columns:minmax(0,1fr) 280px}.metric{min-height:158px}.metric-value{font-size:34px}}
@media(max-width:1250px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.insights{grid-template-columns:1fr 1fr}.main-content{padding:28px}.topbar{padding:0 28px}.heading-actions #camera span{display:none}.metric{padding:17px}.metric-value{font-size:25px}.cards{gap:12px}.page-heading{align-items:flex-start}h1{font-size:30px}.sidebar{width:210px;padding:30px 16px}main{margin-left:210px}.brand{font-size:21px}}
@media(max-width:850px){.sidebar{width:175px;padding:25px 12px}.brand{font-size:18px;gap:7px}.brand-icon{width:29px;height:29px;font-size:25px;line-height:25px}main{margin-left:175px}.sidebar nav button{font-size:11px;padding:11px 9px;gap:7px}.main-content{padding:24px 20px}.topbar{padding:0 20px;height:65px}.page-heading{flex-direction:column;gap:18px}.heading-actions{width:100%}.cards{grid-template-columns:1fr 1fr}.metric{min-height:132px}.metric-value{font-size:27px}.insights{grid-template-columns:1fr 1fr}.editor-body{grid-template-columns:1fr}.editor-aside{border-left:0;border-top:1px solid var(--line)}.settings-grid{grid-template-columns:1fr}.vat-cards{grid-template-columns:1fr}.vat-cards .metric{min-height:125px}.page-footer span:last-child{display:none}.login-card{padding:35px}.login-card h1{font-size:40px}.paper{width:220px;height:300px}}
@media(max-width:600px){.sidebar{position:relative;width:100%;padding:17px 18px 0;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:17px}.sidebar .brand{font-size:21px}.space-switch{margin:0;min-width:150px}.space-switch button{padding:8px;font-size:11px}.nav-label,.sidebar-bottom{display:none}nav{grid-column:1/-1;flex-direction:row;gap:3px;overflow-x:auto;padding-bottom:10px}nav button{flex:0 0 auto;flex-direction:column;gap:4px!important;padding:8px 11px!important;font-size:9px!important}nav button span{font-size:19px}main{margin-left:0}.topbar{display:none}.main-content{padding:24px 15px}.page-heading{margin-bottom:23px}.page-heading .eyebrow{font-size:9px;letter-spacing:1.4px}.page-heading h1{font-size:29px}.heading-actions .primary{margin-left:auto}.heading-actions button{padding:10px 12px;font-size:11px}.cards{gap:10px;margin-bottom:20px}.metric{padding:16px 14px;min-height:130px}.metric-value{font-size:25px;margin:13px 0 11px}.metric-foot{font-size:9px}.metric-label{font-size:10px}.workspace-grid{gap:17px}.panel-title{padding:18px 16px}.filters{padding:0 15px 15px;gap:7px}.search-label{min-width:100%;flex-basis:100%}.filters select{flex:1;max-width:100%;font-size:10px}.ledger-table td{padding-top:15px;padding-bottom:15px}.table-footer{padding:13px 15px;font-size:9px}.table-footer span:last-child{display:none}.insights{grid-template-columns:1fr}.insights .panel{padding:22px}.category-item{margin:15px 0}.category-label{font-size:11px}.page-footer{margin-top:20px}dialog{width:100%;max-height:100dvh;height:100dvh;border-radius:0;border:0;margin:0}.dialog-header{padding:20px}.dialog-header h2{font-size:21px}.editor-fields{padding:20px}.field-grid{column-gap:12px}.field-grid label{font-size:10px}.field-grid input,.field-grid select{font-size:13px;min-width:0}.line-amounts{grid-template-columns:1fr 1fr}.payment-box{grid-template-columns:1fr;gap:15px}.dialog-footer{padding:15px 20px;flex-wrap:wrap}.dialog-footer button{font-size:11px}.small-dialog{max-width:none}.dialog-content{padding:23px 20px}.notice{font-size:11px}.toast{bottom:15px;width:calc(100% - 30px)}.login-screen{grid-template-columns:1fr}.login-art{display:none}.login-card{padding:35px;max-width:430px}.login-card .brand{margin-bottom:60px}.login-card h1{font-size:48px}.settings-grid .panel{padding:22px}.completeness-grid{gap:10px}.completeness-item{min-width:120px;flex:1}input,select,textarea{font-size:16px}}

@font-face{font-family:ReportFont;src:url('/vendor/DejaVuSans.ttf') format('truetype');font-display:swap}.attachment-download{flex:1;overflow-wrap:anywhere;font-size:11px;min-width:0}#storage-bar{height:100%;background:#146b58;border-radius:3px}
