:root{font-family:'Golos Text',Arial,sans-serif;color:#202e2a;background:#f4f6f5;font-synthesis:none;font-size:16px;--green:#204d40;--accent:#d9f071;--muted:#75817b;--border:#e4e9e6;--orange:#b55c27}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{border:1px solid var(--border);border-radius:8px;background:white;color:inherit;padding:10px 15px;font-size:.875rem;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}button:hover:not(:disabled){background:#f1f5f2;border-color:#bbc9bf}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#163c30}button.danger{color:#aa4038;border-color:#efd3ce}button.ghost{background:transparent;border-color:transparent}button.iconbtn{padding:9px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:1.85rem;letter-spacing:-.7px;font-weight:650}h2{font-size:1.2rem;letter-spacing:-.3px;font-weight:600}h3{font-size:1rem;font-weight:600}small,.small{font-size:.875rem;color:var(--muted)}.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:#183c34;color:#c5d5cf;padding:32px 18px 22px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:244px;z-index:20}.logo{display:flex;gap:11px;align-items:center;padding:0 12px;color:#fff}.logo svg{width:35px;height:35px;color:#d9f071;stroke-width:2}.logo b{font-size:1.3rem;letter-spacing:-.6px}.logo small{display:block;color:#a6c0b5;font-size:.75rem;letter-spacing:1.7px;text-transform:uppercase;margin-top:3px}.nav-label{font-size:.75rem;letter-spacing:1.4px;color:#8ca99d;margin:42px 14px 14px}.nav{display:grid;gap:7px}.nav button{background:transparent;border:0;color:#c5d5cf;justify-content:flex-start;padding:13px 15px;font-weight:450;font-size:.9375rem}.nav button:hover{background:#254b40}.nav button.active{background:#d9f071;color:#203b2e;font-weight:600}.nav .count{margin-left:auto;background:#ffffff14;font-size:.75rem;padding:2px 6px;border-radius:4px}.nav button.active .count{background:#24402b15}.side-bottom{margin-top:auto;padding-top:40px}.side-info{margin:0 10px 20px;padding:17px 0;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20;font-size:.875rem;line-height:1.7}.side-info strong{display:block;color:#e0eae4;font-weight:500}.side-user{display:flex;gap:10px;padding:0 8px;align-items:center;font-size:.875rem}.avatar{width:36px;height:36px;background:#dce7de;color:#2d5141;display:grid;place-items:center;border-radius:50%;font-weight:600;font-size:.875rem;flex-shrink:0}.side-user small{font-size:.75rem;color:#97b1a6}.main{grid-column:2;min-width:0}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px}.crumb{font-size:.875rem;color:#7a857f;display:flex;gap:13px;align-items:center}.crumb span:last-child{color:#304337}.top-actions{display:flex;align-items:center;gap:14px}.demo-tag{background:#f5f0e2;color:#8b6423;border-radius:5px;font-size:.75rem;font-weight:600;padding:6px 9px}.role-select{border:0;background:#f3f6f4;border-radius:6px;padding:9px 28px 9px 12px;max-width:230px;font-size:.875rem}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2375817b' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}.content{max-width:1600px;margin:auto;padding:32px 36px 36px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head p{margin-top:9px;color:#77827c;font-size:.9375rem;line-height:1.6}.eyebrow{font-size:.75rem;letter-spacing:1.8px;text-transform:uppercase;font-weight:600;color:#75877b;margin-bottom:10px}.head-actions{display:flex;align-items:center;gap:10px}.notice{font-size:.875rem;display:flex;align-items:center;gap:10px;background:#eaf0eb;border:1px solid #dfe7df;border-radius:8px;padding:12px 16px;margin-bottom:25px;color:#586e5e;line-height:1.5}.notice svg{width:18px;height:18px}.notice a{color:inherit}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.metric{border:1px solid var(--border);background:white;border-radius:10px;padding:20px 21px;text-align:left;display:block;font-weight:400;white-space:normal}.metric .label{display:flex;align-items:center;justify-content:space-between;color:#6b786f;font-size:.875rem;gap:10px}.metric .label svg{color:#8e9c92}.metric .value{font-size:2rem;font-weight:600;letter-spacing:-.9px;margin:12px 0 8px}.metric .foot{font-size:.8125rem;color:#899289}.metric .foot strong{font-weight:500;color:#416a4b}.metric.accent{background:#edf3df;border-color:#e0e8cf}.metric.accent .value{color:#3f5b25}.metric.warning .value{color:#aa602c}.panel{background:#fff;border:1px solid var(--border);border-radius:11px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;gap:14px}.panel-heading p{font-size:.875rem;color:var(--muted);margin-top:6px}.filters{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px 18px;flex-wrap:wrap}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tab{border-color:transparent;color:#7b847e;font-weight:450;padding:8px 12px;background:transparent}.tab.selected{color:#295342;background:#edf3eb;font-weight:550}.tab .num{font-size:.75rem;background:#e8ede7;color:#55715c;padding:1px 5px;border-radius:4px}.search{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:7px;padding:9px 12px;background:white;min-width:240px;color:#8a958c}.search input{padding:0;border:0;outline:none;width:100%;font-size:.875rem;background:transparent}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:.875rem;text-align:left}th{background:#fafbf9;color:#829086;font-size:.75rem;font-weight:500;padding:14px 22px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}td{padding:18px 22px;border-bottom:1px solid #edf0ed;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr.clickable{cursor:pointer}tbody tr.clickable:hover{background:#f8faf6}.link{color:#28543e;font-weight:600;background:none;border:0;padding:0}.cell-main{font-weight:500;color:#344238}.cell-sub{font-size:.75rem;color:#8a948c;margin-top:5px;line-height:1.4}.cell-code{font-variant-numeric:tabular-nums}.badge{display:inline-flex;align-items:center;border-radius:5px;padding:5px 8px;font-size:.75rem;font-weight:500;line-height:1.3;background:#edf0ee;color:#66776a;white-space:nowrap}.badge.green{background:#e9f2df;color:#597333}.badge.amber{background:#fcf1dc;color:#9e7528}.badge.blue{background:#eaf0f8;color:#557493}.badge.red{background:#f9eae5;color:#a65a42}.badge.purple{background:#f0ebf7;color:#7c629a}.type{display:inline-flex;align-items:center;gap:5px;color:#7f8a81;font-size:.75rem}.type svg{width:13px;height:13px}.priority{display:inline-flex;align-items:center;gap:5px;color:#b66536;font-size:.75rem}.priority svg{width:13px;height:13px}.progress{display:flex;align-items:center;gap:10px;font-size:.75rem;color:#728170;min-width:110px}.track{height:5px;background:#edf0e9;border-radius:9px;width:65px;overflow:hidden}.track i{display:block;background:#819c58;height:100%;border-radius:9px}.table-footer{padding:16px 24px;border-top:1px solid var(--border);font-size:.75rem;color:#859085;display:flex;justify-content:space-between}.lower-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin-top:24px}.event{display:flex;gap:13px;padding:15px 24px;border-top:1px solid #edf0ed}.event-marker{width:32px;height:32px;background:#f1f5ed;color:#668158;display:grid;place-items:center;border-radius:8px;flex-shrink:0}.event-marker svg{width:16px;height:16px}.event p{font-size:.875rem;line-height:1.5}.event small{display:block;font-size:.75rem;margin-top:5px}.warehouse-card{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-top:1px solid #edf0ed;gap:15px}.warehouse-card .left{display:flex;align-items:center;gap:12px}.warehouse-card .left>svg{width:34px;height:34px;background:#f2f5ee;padding:7px;box-sizing:content-box;border-radius:9px;color:#799066}.warehouse-card strong{font-size:.9375rem;font-weight:500}.warehouse-card small{display:block;margin-top:5px;font-size:.75rem}.warehouse-card .stock{font-size:1.4rem;letter-spacing:-.5px}.muted{color:var(--muted)}.empty{text-align:center;padding:50px 20px;color:#7b897f;white-space:normal;line-height:1.7}.catalog-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.catalog-controls select{max-width:220px}.subtle-note{font-size:.8125rem;color:#809080;line-height:1.7;margin-top:16px}.overlay{position:fixed;inset:0;background:#152b2466;z-index:50;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(3px);padding:24px}.dialog{width:min(720px,100%);max-height:92vh;background:#f7f9f6;box-shadow:0 20px 80px #102e3033;border-radius:13px;display:flex;flex-direction:column;overflow:hidden}.dialog.wide{width:min(1080px,100%)}.dialog-head{background:#fff;padding:22px 26px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;align-items:center}.dialog-head small{display:block;margin-top:6px}.dialog-body{overflow:auto;padding:24px 26px}.dialog-foot{padding:18px 26px;background:#fff;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.dialog-foot .actions{display:flex;gap:9px;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:.875rem}.field.full{grid-column:1/-1}.field label{font-weight:500;color:#59695e}.field input,.field select,.field textarea,.control{border:1px solid #dce4dc;border-radius:7px;padding:11px 12px;background-color:white;min-width:0;color:#344536;width:100%;font-size:.9375rem}.field select{padding-right:30px}.field textarea{min-height:80px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #a9c49b;outline-offset:0}.section-title{margin:24px 0 14px}.line-editor{display:grid;grid-template-columns:minmax(0,1fr) 85px 35px;gap:9px;align-items:center;margin-bottom:10px}.line-editor .control{font-size:.875rem}.qty-input{width:85px;border:1px solid #dce4dc;border-radius:6px;padding:8px;font-size:.875rem}.details-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.details-meta small{display:block;margin-bottom:7px;font-size:.75rem}.details-meta span{font-size:.875rem}.detail-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}.detail-banner h3{font-size:1.2rem}.detail-note{border-left:3px solid #b8cd8e;background:#edf2e8;padding:13px 16px;font-size:.875rem;line-height:1.6;margin:18px 0}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.inline-error{color:#a44937;font-size:.875rem;background:#faede7;padding:12px;border-radius:7px;margin-bottom:14px}.inline-error:empty{display:none}.purchase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.purchase-card{background:white;border:1px solid var(--border);border-radius:11px;overflow:hidden}.purchase-card .body{padding:21px}.purchase-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.purchase-card h3{font-size:1rem;line-height:1.5;margin:8px 0}.purchase-card .meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px;font-size:.875rem}.purchase-card .meta small{display:block;font-size:.75rem;margin-bottom:5px}.purchase-card .bottom{padding:14px 21px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fcfdfa}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.text-panel{padding:25px;line-height:1.7}.text-panel p{color:#728074;font-size:.9375rem;margin-top:13px}.text-panel ul{padding-left:20px;color:#637368;font-size:.9375rem}.settings-item{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--border);font-size:.875rem}.bar-row{margin-top:25px;font-size:.875rem}.bar-label{display:flex;justify-content:space-between;margin-bottom:9px}.bar{height:9px;border-radius:9px;background:#eef2e9;overflow:hidden}.bar i{display:block;height:100%;background:#8caa5b;border-radius:9px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(20px);background:#203f32;color:#fff;border-radius:9px;box-shadow:0 8px 30px #152b2426;padding:14px 22px;font-size:.875rem;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.mobile-menu{display:none}.date-label{font-size:.875rem;color:#829080}.readonly{color:#85754e;font-size:.875rem;line-height:1.6}a{color:var(--green)}.spacer{height:20px}
.badge{font-size:.875rem}.cell-sub.priority{display:flex;width:max-content}.panel,.info-grid>*{min-width:0}
@media(min-width:1450px){td,th{padding-left:26px;padding-right:26px}.content{padding:38px 44px}.topbar{padding:0 44px}.metrics{gap:20px}.metric{padding:23px 25px}}
@media(max-width:1180px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{width:210px;padding-inline:12px}.logo{padding:0 8px}.logo b{font-size:1.15rem}.content{padding:26px 24px}.topbar{padding:0 24px}.metrics{gap:10px}.metric{padding:17px}.metric .label{font-size:.8125rem}.metric .value{font-size:1.7rem}.purchase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.date-label{display:none}.lower-grid{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:.2s;width:244px}.sidebar.open{transform:translateX(0);box-shadow:10px 0 40px #183c3444}.mobile-menu{display:flex}.topbar{height:68px;padding:0 18px}.crumb{display:none}.top-actions{margin-left:auto;gap:8px}.role-select{max-width:185px;font-size:.8125rem}.content{padding:24px 18px}.page-head{align-items:flex-start}h1{font-size:1.6rem}.head-actions{flex-wrap:wrap;justify-content:flex-end}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.lower-grid,.info-grid{grid-template-columns:1fr}.filters{padding:0 16px 16px}.panel-heading{padding:19px 16px}.search{min-width:200px;flex:1}.details-meta{grid-template-columns:1fr 1fr}.purchase-grid{grid-template-columns:1fr 1fr}.overlay{padding:12px}.dialog-body{padding:18px}.dialog-head,.dialog-foot{padding:18px}.notice{font-size:.8125rem}th,td{padding:14px 17px}}
@media(max-width:560px){.demo-tag{display:none}.page-head{flex-direction:column;gap:16px}.page-head p{font-size:.875rem}.head-actions{width:100%;justify-content:flex-start}.purchase-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.metric .label svg{display:none}.metric .foot{font-size:.75rem}.metric{padding:16px}.notice{align-items:flex-start}.line-editor{grid-template-columns:minmax(0,1fr) 65px 30px}.dialog-foot{align-items:stretch}.dialog-foot .actions{width:100%}.dialog-foot .actions button{flex:1}.dialog{max-height:96vh}.panel-heading{align-items:flex-start}.table-footer{gap:20px}.role-select{max-width:190px}}
.auth-shell{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:#fff}.auth-brand{background:#183c34;color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:70px}.auth-brand .logo{padding:0}.auth-brand h1{font-size:clamp(2rem,4vw,4rem);line-height:1.15;letter-spacing:-1.5px;margin:20px 0}.auth-brand p{color:#c3d6c9;line-height:1.9}.auth-brand .eyebrow{color:#b4c981}.auth-brand small{color:#99b2a4}.auth-form{padding:50px 40px;display:flex;align-items:center;justify-content:center}.auth-form>div{max-width:400px;width:100%}.auth-form h2{font-size:1.8rem;margin:24px 0 13px}.auth-form p{line-height:1.7;font-size:.9375rem}.auth-form form{display:grid;gap:20px;margin-top:30px}.auth-form .primary{padding:14px}.auth-help{margin-top:24px;color:#859085;font-size:.8125rem!important}.auth-form .inline-error{margin:0}.auth-form input{height:46px}@media(max-width:750px){.auth-shell{grid-template-columns:1fr}.auth-brand{padding:28px;gap:36px}.auth-brand h1{font-size:2rem}.auth-brand>small{display:none}.auth-form{padding:35px 24px}.top-actions .role-select{display:none}}
