:root{--ink:#172f32;--muted:#6d7e80;--green:#176957;--green-light:#e5f2ec;--line:#e2e9e6;--bg:#f4f6f4;--white:#fff;--red:#b64842}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.55}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;padding:11px 18px;background:var(--green);color:white;font-weight:650;cursor:pointer;line-height:1.35}button:hover{background:#0d5143}button:disabled{opacity:.5;cursor:wait}.secondary{background:white;border-color:var(--line);color:var(--ink)}.secondary:hover{background:#edf3ef;text-decoration:none}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cfdad5;border-radius:8px;background:white;color:var(--ink);min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid #7cb5a2;outline-offset:1px}textarea{min-height:88px;resize:vertical}label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px}label input,label textarea,label select{font-weight:400}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.2;font-weight:650;letter-spacing:-1px;margin-bottom:12px}h2{font-size:19px;letter-spacing:-.3px;margin-bottom:20px}h3{font-size:17px}p{margin-bottom:18px}.muted,.hint{color:var(--muted)}.hint{font-size:12px;line-height:1.7;font-weight:400}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--green);margin-bottom:10px}.brand{display:flex;align-items:center;gap:11px;font-weight:750;font-size:18px;letter-spacing:-.5px;color:var(--ink)}.brand:hover{text-decoration:none}.logo{display:inline-flex;align-items:center;justify-content:center;height:34px;width:34px;background:var(--green);color:white;border-radius:10px;font-size:21px}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:#fcfdfb;border-right:1px solid var(--line);padding:30px 22px;display:flex;flex-direction:column}.sidebar .brand{margin-bottom:46px}.side-label{font-size:9px;color:#91a19a;margin-left:12px}nav{display:flex;flex-direction:column;gap:7px}nav a{color:#566965;padding:12px 14px;border-radius:8px;font-weight:550}nav a.active{background:var(--green-light);color:var(--green);font-weight:700}nav a:hover{background:#edf3ef;text-decoration:none}.side-bottom{margin-top:auto;color:#667d73;font-size:12px}.side-bottom small{display:block;color:#94a299;margin-top:5px;font-size:11px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#358b68;margin-right:5px}.workspace{margin-left:236px}.topbar{min-height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 36px;font-size:13px}.user{display:flex;align-items:center;gap:17px}.inline{display:flex;align-items:center;gap:10px;margin:0}.link-button{background:none;color:var(--green);padding:0;font-size:12px}.link-button:hover{background:none;text-decoration:underline}.content{padding:38px 36px 20px;max-width:1500px;margin:auto}.heading{margin-bottom:27px}.heading p{margin-bottom:0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:23px}.stat span{display:block;color:var(--muted);font-size:12px;margin-bottom:10px}.stat strong{display:block;font-size:26px;font-weight:650;letter-spacing:-.6px}.stat:first-child{background:var(--green);border-color:var(--green);color:white}.stat:first-child span{color:#bdd9cf}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:24px;box-shadow:0 2px 3px #133e2010}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px;flex-wrap:wrap}.section-head h2{margin:0}.section-head input[type=search]{max-width:300px;font-size:12px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}th{font-size:10px;text-transform:uppercase;letter-spacing:.8px;font-weight:650;color:#85938d;background:#f8faf8;padding:13px 14px;border-bottom:1px solid var(--line)}td{padding:16px 14px;border-bottom:1px solid #edf1ed;vertical-align:top}tr:last-child td{border-bottom:0}td strong{font-weight:600}td small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.number{font-variant-numeric:tabular-nums;font-weight:600}.badge{display:inline-block;border-radius:5px;background:#f0f2ef;color:#718077;padding:4px 8px;font-size:11px;font-weight:600}.badge.green{background:var(--green-light);color:var(--green)}.positive{color:#25805f}.negative{color:var(--red)}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.full{grid-column:1/-1}.form-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-top:4px;flex-wrap:wrap}.form-card{max-width:950px}.archive-form{margin:20px 0}.empty{text-align:center;padding:32px;color:var(--muted)}.empty h3{color:var(--ink)}.alert{padding:14px 18px;border-radius:8px;border:1px solid;margin-bottom:24px}.error{background:#fff0ed;color:#993b32;border-color:#f1d2cb}.success{background:#e9f6ee;color:#215f43;border-color:#c4e5cf}.note{white-space:pre-wrap;min-width:180px;max-width:380px;overflow-wrap:anywhere}.order-line{display:grid;grid-template-columns:minmax(220px,2fr) 1fr 1fr auto;gap:13px;align-items:end;margin:18px 0}.totals{display:flex;gap:26px;flex-wrap:wrap;margin:22px 0 12px;padding:18px;background:#f5f8f5;border-radius:8px}.totals strong{margin-left:5px}.status-form{max-width:420px;display:flex;flex-direction:column;gap:15px;margin:24px 0}.filter-form{display:flex;gap:14px;align-items:end;margin-bottom:24px}.filter-form label{min-width:280px}.pagination{display:flex;justify-content:space-between;gap:20px;margin-top:18px;font-size:12px;color:var(--muted)}footer{font-size:11px;color:#98a49d;text-align:center;padding:12px}.auth{max-width:470px;margin:8vh auto;padding:0 20px}.auth>.brand{justify-content:center;margin-bottom:32px}.auth .card{padding:32px}.auth h1{font-size:29px}.auth form{display:flex;flex-direction:column;gap:18px;margin-top:24px}.auth form button{margin-top:5px}.auth .hint{margin-top:24px;margin-bottom:0}.auth-foot{text-align:center;font-size:11px;color:var(--muted)}
@media(max-width:1150px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:205px;padding:25px 17px}.workspace{margin-left:205px}.content{padding:28px 24px}.topbar{padding:20px 24px}.order-line{grid-template-columns:2fr 1fr}.order-line .remove-line{justify-self:start}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:18px 16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin-bottom:15px}.side-label,.side-bottom{display:none}nav{flex-direction:row;overflow-x:auto;gap:3px}nav a{white-space:nowrap;padding:9px 12px;font-size:12px}.workspace{margin-left:0}.topbar{min-height:56px;padding:14px 18px;font-size:11px}.user{gap:10px}.content{padding:24px 16px}.card{padding:19px}.stats{gap:10px}.stat{padding:17px}.stat strong{font-size:23px}.grid-form{grid-template-columns:1fr}.full,.form-actions{grid-column:auto}h1{font-size:28px}.filter-form{flex-wrap:wrap}.filter-form label{min-width:0;width:100%}.section-head .inline{flex-wrap:wrap}.order-line{grid-template-columns:1fr 1fr}.order-line label:first-child{grid-column:1/-1}.auth{margin-top:5vh}.auth .card{padding:25px}.pagination{flex-wrap:wrap}}
.tags{color:#337d69}.check{flex-direction:row;align-items:center;font-weight:400}.check input{width:17px;min-height:17px}.void-row{opacity:.65;background:#fafafa}.void-form{min-width:210px;display:flex;flex-direction:column;gap:9px}.void-form button{font-size:12px;padding:8px 11px}.count-input{min-width:115px;max-width:160px}.print-only{display:none}.signatures{margin-top:35px;line-height:2}
@media print{@page{size:A4 landscape;margin:12mm}body{background:white;color:#111;font-size:10pt}.sidebar,.topbar,.screen-only,footer,.alert{display:none!important}.workspace{margin:0}.content{padding:0;max-width:none}.card{box-shadow:none;border:0;padding:0;margin:0}.print-only{display:block}.count-document h2{font-size:17pt}.count-document .hint{color:#555}.table-wrap{overflow:visible}table{font-size:9pt;white-space:normal}thead{display:table-header-group}tr{break-inside:avoid}th,td{padding:6px 5px;border-bottom:1px solid #aaa}th{color:#333;background:white;font-size:8pt}.totals{background:white;border-top:1px solid #888;break-inside:avoid}.section-head{display:block}.badge{background:white;border:1px solid #888;color:#111}.note{max-width:none}a{color:#111}}
.order-line-expanded{grid-template-columns:minmax(220px,2fr) minmax(180px,2fr) repeat(2,minmax(110px,1fr));padding:18px 0;border-bottom:1px solid var(--line)}.order-line-expanded label{min-width:0}.order-line-expanded .remove-line{justify-self:start}.pending{background:#fff3d6;color:#88600e}.danger{color:#a63832;border-color:#e7c9c5}.table-wrap+.totals{margin-top:20px}@media(max-width:1050px){.order-line-expanded{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.order-line-expanded{grid-template-columns:1fr}.order-line-expanded label:first-child{grid-column:auto}}
.edit-movement-link{display:inline-block;margin-bottom:10px;font-weight:600}.tags:empty{display:none}.count-document .note{max-width:none}.form-card .full.hint{margin-bottom:0}
.xml-line{padding:22px 0;border-top:1px solid var(--line);margin-top:22px}.xml-line h3{overflow-wrap:anywhere}.xml-line .grid-form{margin:16px 0}.xml-new{min-width:0;border:1px solid var(--line);border-radius:8px;padding:14px;margin:18px 0}.xml-new legend{font-size:12px;color:var(--muted);padding:0 6px}.xml-new[hidden],.xml-receive-fields[hidden]{display:none!important}.xml-date{max-width:280px}.xml-conversion-preview{padding:12px;background:#f4f8f4;border-radius:8px}.xml-line .check{align-items:flex-start}.xml-line .check input{flex:0 0 17px}.xml-line .check{font-weight:400}
.invoice-party,.invoice-line{min-width:0;margin:16px 0;padding:16px;border:1px solid var(--line,#ddd);border-radius:12px}
.invoice-party label{display:block;margin:12px 0}.invoice-xml{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:12px}
.shop-fields{min-width:0;border:1px solid var(--line,#ddd);border-radius:12px;padding:18px}.shop-fields legend{font-weight:700;padding:0 8px}.shop-photo{display:block;max-width:100%;width:auto;height:auto;max-height:320px;object-fit:contain;margin:12px 0}.shop-category-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:8px}.shop-category-choices label{overflow-wrap:anywhere}
