:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1d343a;background:#f2f5f4;font-size:14px;--green:#166459;--border:#dce5e1}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{padding:10px 16px;border:1px solid var(--border);border-radius:9px;background:white;color:inherit;cursor:pointer;font-weight:600}button:hover{background:#edf5f1}button:disabled{opacity:.45;cursor:default}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#104f46}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cdd9d4;border-radius:8px;background:white;color:#243c40;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #16645915}label{display:block;font-weight:500;margin:0 0 15px}label input,label select{margin-top:6px}small,.muted{color:#71807f;font-size:12px}h1,h2,p{margin-top:0}h1{font-size:29px;letter-spacing:-.8px;margin-bottom:0}h2{font-size:21px}.brand{font-size:25px;letter-spacing:3px;font-weight:800}.brand span{display:block;font-size:10px;letter-spacing:4px;color:#9ab6ac;margin-top:6px}.login-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(120deg,#123f39,#306859)}.login-card{background:#fff;padding:48px;width:min(440px,92vw);border-radius:22px;box-shadow:0 30px 90px #0003}.login-card h1{margin-top:36px;margin-bottom:12px}.login-card p{color:#758581;line-height:1.6}.login-card form{margin:28px 0}.login-card button{width:100%}[hidden]{display:none!important}aside{position:fixed;inset:0 auto 0 0;width:225px;background:#153f38;color:#fff;padding:32px 20px;display:flex;flex-direction:column}aside .brand{padding:0 10px}nav{margin-top:48px;display:grid;gap:8px}nav button{text-align:left;background:none;color:#c4d8d2;border:0;padding:14px}nav button.active,nav button:hover{background:#2e5b50;color:white}.aside-bottom{margin-top:auto;font-size:12px;line-height:1.8}.aside-bottom small{color:#a6beb6}.aside-bottom button{display:block;margin-top:20px;background:none;color:white;border-color:#4d7268}.dot{display:inline-block;border-radius:50%;width:7px;height:7px;background:#d4bf79;margin-right:6px}main{margin-left:225px;padding:35px 38px;max-width:1700px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7a8a86;margin-bottom:8px}.test-banner{background:#e6eee9;border:1px solid #d4e1d8;border-radius:9px;padding:11px 14px;font-size:12px;color:#516b61;margin-bottom:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:25px}.stat{padding:20px;background:white;border:1px solid var(--border);border-radius:12px}.stat strong{display:block;font-size:28px;margin:12px 0 3px}.stat span{font-size:12px;color:#70837c}.toolbar{display:flex;gap:12px;align-items:center;margin:18px 0}.toolbar input{flex:1;min-width:0}.toolbar select{width:180px}.short{max-width:85px}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px;background:white}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:11px;letter-spacing:.2px;background:#edf2ef;color:#667c74;padding:13px 16px;white-space:nowrap}td{padding:15px 16px;border-top:1px solid #edf1ee;font-size:13px;vertical-align:middle}td small{display:block;margin-top:5px;max-width:380px;line-height:1.35}td strong{font-weight:650}td .badge{display:inline-block;margin-top:6px}.center{text-align:center;white-space:nowrap}.badge{font-size:11px;border-radius:5px;padding:4px 6px;background:#edf5f1;color:#39725e}.badge.warn{background:#fff1d9;color:#957025}.panel{background:white;border:1px solid var(--border);border-radius:12px;padding:22px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 20px}.checkbox{display:flex;align-items:center;gap:9px}.checkbox input{width:auto;margin:0}.invoice-footer{display:flex;align-items:center;justify-content:space-between;margin:22px 0}.invoice-footer strong{font-size:22px}#lines input{max-width:115px}dialog{border:0;border-radius:18px;padding:26px;max-width:720px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 25px 90px #0004;color:inherit}dialog::backdrop{background:#102d3266}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dialog-head h2{margin:0}.dialog-head button{border:0}details{margin-top:22px;border-top:1px solid var(--border);padding-top:16px}summary{cursor:pointer;font-weight:600;margin-bottom:14px}#product-summary{padding:15px;background:#edf3ef;border-radius:9px;margin-bottom:22px}#product-history{font-size:12px;line-height:1.8}#toast{position:fixed;bottom:24px;right:24px;max-width:460px;padding:16px 22px;background:#173f37;color:white;box-shadow:0 8px 30px #0002;border-radius:12px;z-index:100}#toast.error{background:#8b3737}video{width:100%;background:#122b29;border-radius:12px;max-height:340px}pre{white-space:pre-wrap;line-height:1.7}a{color:var(--green)}@media(max-width:1000px){aside{width:185px;padding:24px 12px}main{margin-left:185px;padding:25px 20px}.stats{gap:8px}.stat{padding:14px}.toolbar{flex-wrap:wrap}}@media(max-width:700px){aside{position:static;width:auto;padding:16px}.brand{font-size:20px}aside .brand span,.aside-bottom{display:none}nav{margin-top:16px;display:flex;gap:4px;overflow:auto}nav button{white-space:nowrap;padding:9px;font-size:12px}main{margin:0;padding:20px 12px}h1{font-size:24px}.stats{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.toolbar{gap:8px}.toolbar>input{flex-basis:60%}.invoice-footer{align-items:flex-start;gap:20px;flex-direction:column}th,td{padding:12px 10px}header button{font-size:12px}.login-card{padding:30px}}

#products tr[data-product]{cursor:pointer}#products tr[data-product]:hover,#products tr[data-product]:focus-within{background:#f0f7f4}

.dialog-message{padding:12px;background:#fff1d9;color:#713a16;border-radius:8px;margin-top:12px}
@media(max-width:700px){.aside-bottom{display:block;margin-top:8px;font-size:0;line-height:0}.aside-bottom small,.aside-bottom .dot{display:none}.aside-bottom button{font-size:12px;margin:0 0 0 auto;line-height:1.4}}
