:root{--ink:#172c2b;--muted:#6c7977;--green:#146855;--line:#e0e7e3;--paper:#f5f7f4;--orange:#ad6322}*{box-sizing:border-box}body{margin:0;font:14px/1.55 'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--paper)}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border:1px solid var(--green);border-radius:7px;background:var(--green);color:white;cursor:pointer;font-weight:600;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#0c5142;text-decoration:none}.secondary{background:white;color:var(--ink);border-color:var(--line)}.secondary:hover{background:#eef3ef}.small{padding:6px 11px;font-size:12px}.text-button{background:none;border:0;color:var(--green);padding:0}.text-button:hover{background:none}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:31px 20px;display:flex;flex-direction:column}.brand{font-size:25px;font-weight:750;letter-spacing:-1px;color:var(--ink);display:flex;align-items:center;gap:9px}.brand-icon{background:var(--green);color:#fff;width:32px;height:37px;border-radius:5px 5px 0 0;display:grid;place-items:center;font-size:20px}.brand-dot{color:#d08a47;margin-left:-8px}.nav-label{font-size:10px;letter-spacing:2px;color:#8c9792;margin:44px 13px 16px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{padding:10px 13px;color:#60716b;border-radius:6px;display:flex;gap:14px}.sidebar nav a:hover,.sidebar nav .active{background:#edf5ef;color:var(--green);text-decoration:none}.sidebar-bottom{margin-top:auto;font-size:11px;color:#5f716b}.sidebar-bottom small{display:block;margin:8px 0;color:#9aa49f}.status-dot{display:inline-block;width:6px;height:6px;background:#419476;border-radius:50%;margin-right:6px}.shell{margin-left:236px;min-height:100vh}.anonymous{margin:0}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px;font-size:11px;color:#75827b;letter-spacing:.5px}.divider{padding:0 15px;color:#bdc7c0}.user-menu{display:flex;gap:20px;align-items:center;letter-spacing:0}.user-menu form{margin:0}main{padding:28px 36px 45px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 25px}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;margin:0 0 8px;font-weight:650}h2{font-size:17px;margin:0 0 18px;font-weight:650}h3{font-size:15px;margin:12px 0}.muted,p.subtitle{color:var(--muted);margin:0}small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;color:var(--green);letter-spacing:2px;margin-bottom:10px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:22px 0}.card,.panel{background:white;border:1px solid var(--line);border-radius:10px}.card{padding:22px}.card .label{color:var(--muted);font-size:12px}.card .value{font-size:27px;letter-spacing:-1px;font-weight:650;margin:9px 0}.card .foot{font-size:11px;color:var(--muted)}.card.accent{background:var(--green);color:#fff;border-color:var(--green)}.card.accent .label,.card.accent .foot{color:#c6e1d5}.panel{padding:24px;margin-bottom:20px}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel-header h2{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:#77867e;font-weight:500;font-size:11px;letter-spacing:.4px;background:#f7f9f6}th,td{padding:14px 12px;border-bottom:1px solid #edf0ec;vertical-align:middle}td.numeric,th.numeric{text-align:right;font-variant-numeric:tabular-nums}.badge{display:inline-block;padding:4px 9px;border-radius:4px;background:#edf4ef;color:#306d54;font-size:11px;white-space:nowrap}.badge.amber{background:#fcf2df;color:#976323}.badge.gray{background:#f0f2f0;color:#758078}.empty{text-align:center;color:var(--muted);padding:38px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-grid .full{grid-column:1/-1}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#506158}input,select,textarea{width:100%;border:1px solid #d6dfd8;border-radius:6px;background:white;padding:10px 11px;color:var(--ink);outline:none;min-width:0}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #14685512}input[type=checkbox]{width:auto;accent-color:var(--green)}.check{flex-direction:row;align-items:center;font-weight:400}.form-actions{margin-top:20px;display:flex;gap:12px}.alert{padding:12px 16px;margin-bottom:18px;border-radius:6px}.error,.validation-summary-errors{background:#fff0ed;color:#a43b2b;padding:12px 16px}.success{background:#e5f3e9;color:#216242}.demo{font-size:10px;font-weight:700;letter-spacing:1px;margin-bottom:20px;color:#986521;display:flex;gap:14px}.demo span{font-weight:400;letter-spacing:0;font-size:12px;color:#7c8074}.filters{display:flex;gap:10px;margin-bottom:18px}.filters input{max-width:330px}.filters select{max-width:200px}footer{padding:20px 36px;font-size:11px;color:#8b9790;border-top:1px solid var(--line)}footer span{float:right}.note{padding:14px 16px;background:#f2f6f1;border-radius:6px;color:#657969;font-size:12px;margin:16px 0}.login{max-width:430px;margin:7vh auto}.login .brand{margin-bottom:35px}.login button{width:100%}.login label{margin:18px 0}.login h1{font-size:26px}.totals{margin:20px 0 0 auto;max-width:350px}.totals div{display:flex;justify-content:space-between;padding:8px 0}.totals .grand{font-size:20px;border-top:1px solid var(--line);font-weight:650;padding-top:14px}.order-line input{min-width:70px}.order-line select{min-width:160px}.permission-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}details summary{cursor:pointer;font-weight:600;padding:9px 0}.invoice{max-width:950px;margin:auto;background:#fff;padding:35px}.invoice-head{display:flex;justify-content:space-between;margin-bottom:30px}.invoice-head h1{font-size:28px}.money{font-variant-numeric:tabular-nums}.wide{grid-column:1/-1}.danger{color:#b04c34}.progress-track{display:flex;gap:8px;margin:20px 0}.progress-step{flex:1;background:#edf2ec;padding:14px;border-radius:7px}.progress-step b{font-size:22px;display:block}.progress-step span{font-size:11px;color:var(--muted)}
@media(max-width:1050px){.sidebar{width:196px;padding:25px 12px}.shell{margin-left:196px}.anonymous{margin:0}main{padding:24px}.cards{grid-template-columns:repeat(2,1fr)}.grid-2,.grid-3{grid-template-columns:1fr}.permission-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.sidebar{position:static;width:100%;padding:15px}.sidebar nav{flex-direction:row;overflow:auto;margin-top:15px}.sidebar nav a{white-space:nowrap}.sidebar-bottom,.nav-label{display:none}.shell{margin:0}.topbar{height:auto;padding:12px;gap:10px;flex-wrap:wrap}.topbar>span{display:none}main{padding:18px}.page-head{align-items:flex-start;flex-direction:column}.cards{gap:9px}.card{padding:16px}.card .value{font-size:22px}.form-grid{grid-template-columns:1fr}.panel{padding:16px}.permission-list{grid-template-columns:1fr}.demo{display:block}.demo span{display:block}.progress-track{flex-wrap:wrap}.progress-step{min-width:90px}}
@media print{.no-print,aside,header,footer,.demo,.actions{display:none!important}.shell{margin:0}main{padding:0}body{background:#fff}.invoice{padding:0;max-width:none}.panel{border:0;padding:0}thead{display:table-header-group}tr{break-inside:avoid}a{color:inherit}th,td{padding:8px}.cards{grid-template-columns:repeat(4,1fr)}@page{size:A4;margin:15mm}}
.print-only{display:none}.print-brand{display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px;min-height:96px}.print-brand img{width:88px;height:74px;object-fit:contain}.print-brand strong{font-size:27px;color:var(--green)}.print-brand div div{font-size:12px;color:var(--muted)}.sidebar nav{overflow-y:auto;min-height:0;flex:1}.sidebar-bottom{padding-top:14px;flex-shrink:0}.nav-label{margin-top:25px}.loss-card{background:#fff0ed;border-color:#edc5bd}.loss-card .value{color:#a43b2b}.filters{align-items:flex-end;flex-wrap:wrap}.filters label{min-width:150px}
@media print{.print-only{display:block}.print-only .print-brand{position:fixed;top:-30mm;left:0;right:0;height:25mm;margin:0;padding:0 0 3mm;min-height:0}.print-brand img{width:22mm;height:19mm}.print-brand strong{font-size:22pt}.document-brand{display:none}.alert{display:none}.page-head{margin-top:0}details.panel{display:none}@page{size:A4;margin:40mm 15mm 15mm}}
