@charset "UTF-8";
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172f39;background:#f3f6f7;font-synthesis:none;--nav:#102b36;--green:#087e6a;--mint:#d9f5ed;--line:#dce5e9;--muted:#617680;--shadow:0 6px 24px #102b360a}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:#087e6a;text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:#213d48;border-radius:9px;padding:10px 15px;font-weight:650;min-height:44px;transition:background .15s,box-shadow .15s}button:hover{background:#edf4f3}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#066856}button.danger{color:#b23b3b;border-color:#f1cece}button.quiet{background:none;border-color:transparent;color:var(--muted)}button.small{padding:6px 10px;min-height:36px;font-size:.875rem}button.icon-button{padding:7px;min-width:40px;min-height:40px}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #cbd9df;border-radius:8px;background:#fff;color:#172f39;min-height:44px}input::placeholder,textarea::placeholder{color:#7b8c94}input:focus,select:focus,textarea:focus{border-color:#087e6a;outline:3px solid #087e6a22}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23617680' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:34px}textarea{resize:vertical;min-height:92px}label{display:block;font-weight:600;font-size:.875rem;color:#3a535f;margin-bottom:6px}h1,h2,h3,p{margin-top:0}h1{font-size:1.65rem;line-height:1.2;letter-spacing:-.035em;margin-bottom:6px}h2{font-size:1.15rem;letter-spacing:-.02em;margin-bottom:14px}h3{font-size:1rem;margin-bottom:10px}p{margin-bottom:12px}.muted{color:var(--muted)}.small-text{font-size:.875rem}.mono{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.skip{position:absolute;top:-100px;left:16px;z-index:200;background:white;padding:12px}.skip:focus{top:10px}.initial{display:flex;flex-direction:column;align-items:center;justify-content:center;height:80vh}.brand-mark{background:#43d3b0;color:var(--nav);font-size:24px;font-weight:850;line-height:1;width:40px;height:42px;display:grid;place-items:center;border-radius:12px;position:relative}.brand-mark span{position:absolute;right:7px;bottom:3px}.layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#dce9ec;padding:27px 17px;position:fixed;inset:0 auto 0 0;width:232px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 28px}.brand-name{font-size:1.2rem;font-weight:750;line-height:1.2}.brand-name small{display:block;font-size:.69rem;letter-spacing:.13em;color:#8eabb7;font-weight:500;margin-top:5px}.nav-label{font-size:.72rem;color:#849faa;text-transform:uppercase;letter-spacing:.12em;padding:0 14px;margin:0 0 10px}.navigation{display:grid;gap:5px}.nav-button{border:0;background:transparent;color:#b8cdd5;display:flex;align-items:center;gap:12px;text-align:left;font-size:.925rem;padding:12px 14px;font-weight:550}.nav-button:hover{background:#ffffff0c}.nav-button.active{background:#234b56;color:#fff}.nav-button.active svg{color:#67e0bf}.nav-button svg{width:19px;height:19px;flex-shrink:0}.sidebar-footer{margin-top:auto;padding:20px 12px 0;border-top:1px solid #ffffff17;font-size:.8rem;color:#9ab3bd}.privacy-tag{display:flex;gap:8px;align-items:center;margin-bottom:8px}.privacy-tag svg{width:16px}.content{grid-column:2;padding:0 34px 45px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:27px;min-height:79px}.crumb{font-size:.875rem;color:var(--muted)}.user-pill{display:flex;gap:10px;align-items:center;font-size:.875rem}.avatar{width:34px;height:34px;background:#dfebe9;border-radius:50%;display:grid;place-items:center;color:#087e6a;font-weight:750}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.page-head p{margin-bottom:0;font-size:.9rem;color:var(--muted)}.head-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.button-icon{display:inline-flex;align-items:center;justify-content:center;gap:8px}.button-icon svg{width:18px;height:18px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:19px 21px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:.82rem;margin-bottom:13px}.stat-top svg{width:19px;height:19px;color:#087e6a}.stat-value{font-size:1.7rem;letter-spacing:-.04em;font-weight:750;line-height:1.2}.stat-note{font-size:.8rem;color:var(--muted);margin-top:7px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.panel-body{padding:22px}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 21px;border-bottom:1px solid var(--line);gap:12px}.panel-heading h2{margin:0}.stack{display:grid;gap:20px}.notice{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border-radius:9px;background:#e9f2f4;color:#3e5b68;font-size:.875rem;line-height:1.5;margin-bottom:20px}.notice svg{width:19px;height:19px;flex-shrink:0;margin-top:2px}.notice.warning{background:#fff5df;color:#775724}.notice p{margin:0}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-action{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;padding:17px;border-color:var(--line);font-size:.9rem;font-weight:600}.quick-action svg{width:22px;height:22px;color:#087e6a}.quick-action small{color:var(--muted);font-weight:400;font-size:.8rem;margin-top:-6px}.empty{text-align:center;padding:47px 25px;color:var(--muted)}.empty svg{width:36px;height:36px;color:#95acae;margin-bottom:12px}.empty h3{font-weight:650;color:#2c4753;margin-bottom:6px}.empty p{font-size:.9rem;max-width:410px;margin:0 auto 17px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}th{font-size:.76rem;text-transform:uppercase;letter-spacing:.045em;font-weight:650;color:#70858e;background:#f9fbfc;padding:12px 18px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 18px;border-bottom:1px solid #ecf0f2;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f9fcfb}td strong{display:block;font-weight:600}td .sub{font-size:.8rem;color:var(--muted);margin-top:3px}.numeric{text-align:right;font-variant-numeric:tabular-nums}.table-actions{display:flex;gap:4px;justify-content:flex-end;white-space:nowrap}.badge{display:inline-block;font-size:.76rem;padding:4px 9px;border-radius:5px;background:#edf2f4;color:#566f7c;white-space:nowrap;font-weight:600}.badge.green{background:#def4e9;color:#24724e}.badge.amber{background:#fff0d6;color:#926826}.badge.blue{background:#e5eff9;color:#3b6c96}.badge.red{background:#fce8e5;color:#a64437}.toolbar{display:flex;align-items:center;gap:12px;padding:15px 19px;border-bottom:1px solid var(--line)}.toolbar input{max-width:330px;background:#f9fbfc}.toolbar .result-count{font-size:.85rem;color:var(--muted);margin-left:auto;white-space:nowrap}.progress-list{padding:5px 21px}.job-row{padding:16px 0;border-bottom:1px solid #edf1f3;display:flex;align-items:center;justify-content:space-between;gap:12px}.job-row:last-child{border:0}.job-row h3{margin:0 0 3px;font-weight:600;font-size:.9rem}.job-row p{margin:0;font-size:.8rem;color:var(--muted)}.activity{padding:7px 22px}.activity-row{border-bottom:1px solid #edf1f3;padding:12px 0;font-size:.86rem}.activity-row:last-child{border:0}.activity-row time{display:block;font-size:.76rem;color:var(--muted);margin-top:3px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#102b36 0%,#102b36 42%,#1e4a55 100%)}.login-card{background:white;width:min(440px,100%);padding:36px;border-radius:18px;box-shadow:0 20px 80px #0003}.login-brand{display:flex;gap:12px;align-items:center;margin-bottom:31px}.login-card h1{font-size:1.65rem;margin-bottom:8px}.login-card p{color:var(--muted);font-size:.9rem;margin-bottom:25px}.login-card .field{margin-bottom:18px}.login-card button.primary{width:100%;margin-top:5px}.login-foot{font-size:.78rem;color:var(--muted);border-top:1px solid var(--line);margin:25px 0 0;padding-top:18px;display:flex;gap:8px}.login-foot svg{width:17px;height:17px;flex-shrink:0}.error-message{background:#fff0ef;color:#a33131;border-radius:8px;padding:10px 12px;font-size:.875rem;margin:12px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field.full{grid-column:1/-1}.field small{display:block;color:var(--muted);font-size:.78rem;margin-top:5px}.form-section{padding:22px}.form-section+.form-section{border-top:1px solid var(--line)}.form-section h3{margin-bottom:18px}.form-footer{padding:18px 22px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end;background:#fafcfc}.settings-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:20px}.info-list{margin:0;padding:0;list-style:none}.info-list li{padding:12px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:flex-start;font-size:.875rem}.info-list li:last-child{border:0}.info-list svg{width:19px;flex-shrink:0;color:#087e6a;margin-top:2px}.scanner-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.dropzone{border:2px dashed #b7ceca;border-radius:12px;padding:35px 24px;text-align:center;background:#f7fcfa}.dropzone>svg{width:42px;height:42px;color:#087e6a;margin-bottom:12px}.dropzone h2{margin-bottom:8px}.dropzone p{font-size:.875rem;color:var(--muted)}.dropzone input[type=file]{max-width:100%;font-size:.875rem;margin:16px 0}.ocr-output{white-space:pre-wrap;font-family:inherit;font-size:.875rem;max-height:340px;overflow:auto;background:#f7f9fa;padding:16px;border-radius:8px;min-height:120px}.scan-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.document-top{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}.document-top .field{flex:1;min-width:160px}.line-items{width:100%;border-collapse:collapse}.line-items th{padding:8px}.line-items td{padding:8px}.line-items input,.line-items select{padding:8px;min-width:70px;font-size:.875rem}.line-items .line-description{min-width:220px}.line-items .line-quantity{width:80px}.line-items .line-price{width:100px}.line-items .line-vat{width:85px}.line-items .line-discount{width:80px}.line-items .line-total{min-width:95px}.totals{display:grid;gap:8px;margin:20px 0 0 auto;width:min(310px,100%);font-size:.9rem}.total-row{display:flex;justify-content:space-between;gap:25px}.total-row.grand{font-size:1.15rem;font-weight:750;padding-top:10px;border-top:1px solid var(--line)}.line-controls{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:0 8px}.line-controls button{margin-top:15px}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:21px 24px;border-bottom:1px solid var(--line);gap:15px}.dialog-head h2{margin:0;font-size:1.2rem}.dialog-content{padding:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 24px;background:#f8fafb;border-top:1px solid var(--line);position:sticky;bottom:0}.dialog-actions .delete{margin-right:auto}dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;color:#172f39;box-shadow:0 25px 100px #0003}dialog.wide{width:min(1040px,calc(100vw - 32px))}dialog::backdrop{background:#071b26a6;backdrop-filter:blur(3px)}.dialog-content>.notice:last-child{margin-bottom:0}#toast{position:fixed;right:24px;bottom:25px;z-index:100;background:#153d36;color:white;border-radius:10px;padding:13px 19px;box-shadow:0 6px 30px #0002;max-width:calc(100vw - 40px);font-size:.9rem;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}#toast.visible{opacity:1;transform:translateY(0)}#toast.error{background:#842e35}#print-area{display:none}.upload-status{font-size:.875rem;color:#087e6a;margin:15px 0}.section-caption{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}.section-caption h2{margin:0}.install-hint{margin-top:20px;font-size:.85rem;color:var(--muted)}.mobile-brand{display:none}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-card{background:#f5f8f9;border:1px solid var(--line);padding:16px;border-radius:9px}.detail-card span{display:block;font-size:.8rem;color:var(--muted);margin-bottom:6px}.detail-card strong{font-size:1.2rem}.job-notes{white-space:pre-wrap}.detail-links{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.document-warning{font-size:.82rem;color:#9a6923;margin-top:15px}.button-block{width:100%}button:focus-visible,a:focus-visible{outline:3px solid #35ac93;outline-offset:3px}.inline-link{border:0;padding:0;min-height:24px;background:none;color:#087e6a;font-size:inherit;text-align:left}.inline-link:hover{background:none;text-decoration:underline}
@media(min-width:1500px){.content{padding-left:45px;padding-right:45px;max-width:1800px}.stats{gap:20px}}
@media(max-width:1150px){.layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{width:205px;padding-left:12px;padding-right:12px}.content{padding-left:23px;padding-right:23px}.stats{grid-template-columns:1fr 1fr}.dashboard-grid,.settings-grid{grid-template-columns:1fr}.dashboard-grid>.stack{grid-template-columns:1fr 1fr}.scanner-grid{grid-template-columns:1fr}.page-head{align-items:flex-start}.stat{padding:17px}}
@media(max-width:760px){.layout{display:block}.sidebar{position:fixed;inset:auto 0 0;width:100%;padding:7px 6px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #244651;height:auto}.sidebar>.brand,.nav-label,.sidebar-footer{display:none}.navigation{display:flex;gap:2px;overflow:auto;scrollbar-width:none}.navigation::-webkit-scrollbar{display:none}.nav-button{flex:1;min-width:61px;padding:7px 4px;gap:4px;flex-direction:column;font-size:.65rem;line-height:1.3;border-radius:8px}.nav-button svg{width:20px;height:20px}.nav-button span{white-space:nowrap}.content{padding:0 16px 115px}.topbar{padding:13px 0;margin-bottom:20px;min-height:65px}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:1rem;font-weight:750}.mobile-brand .brand-mark{width:30px;height:32px;font-size:20px;border-radius:8px}.crumb{display:none}.user-pill .user-name{display:none}.user-pill{gap:4px}.user-pill .avatar{display:none}.page-head{gap:12px;flex-wrap:wrap;margin-bottom:18px}.page-head h1{font-size:1.45rem}.page-head p{font-size:.82rem}.head-actions{width:100%}.head-actions>.primary{flex:1}.head-actions button{font-size:.875rem}.stats{gap:10px;margin-bottom:17px}.stat{padding:14px}.stat-top{font-size:.75rem;margin-bottom:9px}.stat-value{font-size:1.4rem}.stat-note{font-size:.72rem}.dashboard-grid{gap:16px}.dashboard-grid>.stack{display:grid;grid-template-columns:1fr}.panel-heading{padding:16px}.panel-body{padding:17px}.panel-heading h2{font-size:1rem}.empty{padding:30px 17px}.empty p{font-size:.82rem}.notice{font-size:.8rem;padding:12px;margin-bottom:16px}.form-grid{gap:15px;grid-template-columns:1fr}.field.full{grid-column:auto}.form-section{padding:18px}.form-footer{padding:15px 18px}.settings-grid{gap:16px}.toolbar{padding:12px}.toolbar input{max-width:none}.toolbar .result-count{display:none}th{padding:10px 12px}td{padding:13px 12px;font-size:.83rem}.table-actions{gap:1px}.table-actions button{font-size:.78rem;padding:6px;min-height:36px}.scanner-grid{gap:16px}.dropzone{padding:24px 15px}dialog{max-height:calc(100dvh - 20px);width:calc(100vw - 20px);border-radius:12px}dialog.wide{width:calc(100vw - 20px)}.dialog-head{padding:17px}.dialog-content{padding:17px}.dialog-actions{padding:14px 17px;flex-wrap:wrap}.dialog-actions button{font-size:.875rem}.document-top{gap:15px}.document-top .field{min-width:calc(50% - 15px)}.line-controls{display:block}.line-controls .totals{margin-top:15px;width:100%}.login-card{padding:28px 24px}.detail-grid{gap:10px}.detail-card{padding:12px}.detail-card strong{font-size:1.05rem}#toast{bottom:calc(90px + env(safe-area-inset-bottom));right:15px}.install-hint{font-size:.8rem}.quick-action{padding:14px}.job-row{font-size:.8rem}}
@media print{@page{margin:15mm}body{background:#fff;color:#111;font-size:11pt}#app,#editor,#toast,.skip,noscript{display:none!important}#print-area{display:block}.print-top{display:flex;justify-content:space-between;gap:30px;border-bottom:3px solid #102b36;padding-bottom:20px;margin-bottom:25px}.print-brand{font-size:22pt;font-weight:750}.print-meta{text-align:right}.print-client{background:#f1f4f5;padding:15px;margin-bottom:25px}.print-table th{background:#edf1f2;color:#333;font-size:9pt}.print-table td{font-size:10pt}.print-table th,.print-table td{padding:10px}.print-notes{white-space:pre-wrap;margin-top:30px;font-size:10pt}.print-warning{padding:12px;border:1px solid #aaa;margin-top:30px;font-size:10pt;font-weight:650}.print-footer{font-size:9pt;color:#555;margin-top:30px}.totals{break-inside:avoid}tr{break-inside:avoid}}
