:root{color-scheme:light;--paper:#f5f4ee;--panel:#fffef9;--ink:#1d3127;--muted:#59665c;--line:#dedfd5;--green:#244838;--tint:#e7eddf;--gold:#f3e8cb;--danger:#922c2c;font:16px/1.5 "Aptos","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,textarea,select{font:inherit;color:inherit}button,a,select,input::file-selector-button{-webkit-tap-highlight-color:transparent}button,select,input::file-selector-button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,.metric strong{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.035em}h1{font-size:clamp(2.5rem,6vw,4.4rem);line-height:1.01;margin:.18em 0 .2em}h2{font-size:1.85rem;line-height:1.15}h3{font-size:1rem}.muted,.page-head p{color:var(--muted)}.eyebrow{font-size:.77rem;text-transform:uppercase;letter-spacing:.15em;font-weight:700;color:var(--muted)}[hidden]{display:none!important}.sr,.skip:not(:focus){position:absolute;clip:rect(0,0,0,0);white-space:nowrap;overflow:hidden;width:1px;height:1px}.skip:focus{position:fixed;z-index:10;left:.5rem;top:.5rem;padding:.6rem;background:white}*:focus-visible{outline:2px solid #6b8650;outline-offset:3px}
.top{background:var(--panel);border-bottom:1px solid var(--line)}.top-inner,main{width:min(1170px,calc(100% - 64px));margin:auto}.top-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{display:flex;align-items:center;gap:10px;font-size:1.03rem;font-weight:700;text-decoration:none;white-space:nowrap}nav{display:flex;gap:1.65rem;align-self:stretch;align-items:stretch}nav a{display:grid;place-items:center;border-bottom:3px solid transparent;padding:4px 1px 0;text-decoration:none;color:var(--muted);font-size:.93rem;font-weight:600}nav a[aria-current]{border-color:var(--green);color:var(--ink)}nav a:hover{color:var(--green)}
main{padding-top:54px}.page-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:27px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.period{padding-bottom:3px;flex-shrink:0}.button,select,input::file-selector-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;padding:9px 14px;min-height:43px;background:var(--panel);border:1px solid #cbd2c6;text-decoration:none;font-size:.9rem;font-weight:650}.button:hover{background:var(--tint)}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:#315b46}.secondary{background:var(--panel)}.soft{background:var(--tint);border-color:#d8e1d0}.danger{color:var(--danger)}.small{padding:6px 10px;min-height:36px}.plus{font-size:1.05rem;line-height:1}
.hero{background:var(--green);color:#fcfcf5;padding:24px clamp(18px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:12px;margin-bottom:18px}.hero h2{font-size:1.85rem}.hero p{margin-top:5px;color:#d8e4d9}.hero .primary{background:#e1ebd8;border-color:#e1ebd8;color:#1c392a}.hero .primary:hover{background:#f2f7ec}.hero .secondary{background:transparent;color:white;border-color:#789483}.hero .secondary:hover{background:#385e4b}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.metric{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:16px 18px 15px;min-height:132px}.metric h3{font-size:.87rem;color:var(--muted);font-weight:650}.metric strong{display:block;font-size:clamp(1.5rem,2.8vw,2.35rem);line-height:1.25;margin:8px 0 4px;overflow-wrap:anywhere}.metric small{font-size:.8rem;color:var(--muted)}
.grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:14px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:11px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 19px 15px}.panel-head h2{font-size:1.6rem}.subhead{color:var(--muted);font-size:.9rem;margin-top:4px}.empty{padding:23px 20px 31px;color:var(--muted);border-top:1px solid var(--line);min-height:94px}.table-wrap{overflow:auto}.table-wrap:focus-visible{outline-offset:-3px}table{width:100%;border-collapse:collapse;text-align:left;font-size:.91rem}th,td{padding:12px 15px;border-top:1px solid var(--line);vertical-align:middle}th{font-size:.79rem;color:var(--muted);white-space:nowrap;background:#f9f9f2}td:first-child,th:first-child{padding-left:19px}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.badge{display:inline-block;padding:3px 8px;border-radius:4px;background:var(--tint);color:#244838;font-size:.77rem;font-weight:650;white-space:nowrap}.badge.draft{background:var(--gold);color:#624a1e}.quiet{padding:4px 0;background:none;border:0;text-decoration:underline;text-underline-offset:3px;font-size:.89rem;font-weight:650;color:var(--green)}.bar-list{list-style:none;margin:0;padding:0 19px 19px}.bar-list li{margin:10px 0 17px}.bar-label{display:flex;justify-content:space-between;gap:12px;font-size:.85rem;margin-bottom:5px}.track{background:#edf0e9;height:6px;border-radius:9px;overflow:hidden}.track span{display:block;height:100%;background:#6e8e72;border-radius:9px}.page-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px;flex-wrap:wrap}.page-tools label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.9rem}.notice{padding:11px 14px;margin:0 0 15px;border:1px solid #cbd9c5;background:#ebf1e7;border-radius:7px}.notice.error{background:#f8e7e4;border-color:#eac5bf;color:#722326}.vat-text{font-size:.9rem;color:var(--muted);padding:14px 19px;border-top:1px solid var(--line)}.vat-text a{text-underline-offset:3px}footer{display:flex;gap:12px;justify-content:space-between;border-top:1px solid var(--line);margin:34px 0 0;padding:16px 0;color:var(--muted);font-size:.85rem}
dialog{position:fixed;max-width:min(820px,calc(100% - 28px));width:100%;max-height:calc(100% - 24px);padding:0;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:var(--panel);box-shadow:0 15px 70px #17362642}dialog::backdrop{background:#172f25a0}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.iconbtn{background:none;border:1px solid var(--line);border-radius:6px;line-height:1;font-size:1.55rem;width:42px;height:42px}.iconbtn:hover{background:var(--tint)}form{padding:19px 22px 22px}form label{font-size:.91rem;font-weight:650;display:grid;gap:5px;min-width:0}input:not([type=file]),textarea,form select{width:100%;padding:8px 10px;min-height:43px;border:1px solid #cbd2c6;background:white;border-radius:6px}input[type=file]{width:100%;font-size:.87rem}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{grid-column:1/-1}.receipt-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px}.receipt-source{display:flex;flex-direction:column;gap:9px;padding:13px;border:1px solid var(--line);border-radius:8px;background:#f8f8f1;min-width:0}.receipt-source p,.form-hint{font-size:.85rem;color:var(--muted);font-weight:400}.receipt-source img{width:100%;max-height:300px;object-fit:contain;border-radius:5px;background:#eee}.form-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:15px;margin-top:15px;border-top:1px solid var(--line)}.scan-text{font-size:.88rem;overflow-wrap:anywhere}.scan-text pre{white-space:pre-wrap;max-height:150px;overflow:auto;margin:6px 0}.locrow{display:flex;align-items:center;gap:8px}.locrow input{flex:1;min-width:0}.form-message{margin:0 0 12px}
@media(max-width:850px){.top-inner,main{width:calc(100% - 38px)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:1fr}main{padding-top:34px}}
@media(max-width:580px){.top-inner,main{width:calc(100% - 28px)}.top-inner{display:block}.brand{padding:11px 0 5px}.brand img{width:31px;height:31px}nav{justify-content:space-between;gap:8px;min-height:43px}nav a{font-size:.88rem}.page-head{align-items:start;flex-direction:column;gap:12px;margin-bottom:15px}main{padding-top:24px}.hero{align-items:start;flex-direction:column}.metric{min-height:112px;padding:13px}.metrics{gap:9px}.panel-head{padding:14px}.panel-head h2{font-size:1.35rem}.receipt-grid{grid-template-columns:1fr}.receipt-source{order:-1}.dialog-head,form{padding:13px}.form-footer .actions{gap:7px}.form-footer .button{font-size:.85rem;padding:8px 9px}footer{font-size:.75rem}}
@media print{.top,.period,.page-tools,.notice,footer{display:none!important}main{width:100%;padding:0}.panel,.metric{break-inside:avoid}}

.login{padding:clamp(18px,5vw,50px);max-width:710px}.login h1{font-size:clamp(2.25rem,6vw,3.6rem)}
.login p{margin:.7rem 0 1.1rem;color:var(--muted)}.vault-hint{margin:-4px 0 14px}.vault-hint .vat-text{border:0}
@media(max-width:580px){.top-inner{position:relative}.top-inner #signout{position:absolute;top:9px;right:0;min-height:34px}}
