:root{--brand: #c41e24;--brand-hover: #9e181d;--brand-dark: #7c1216;--brand-tint: #fdf2f2;--brand-soft: #f3b7b9;--bg: #f2f4f7;--surface: #ffffff;--surface-alt: #f9fafb;--border: #e4e7ec;--border-strong: #d0d5dd;--text: #1d2027;--text-2: #4b5260;--muted: #606773;--faint: #98a2b3;--green: #067647;--amber: #b54708;--red: #b42318;--blue: #175cd3;--gray: #475467;--bottomnav: 64px}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Helvetica,sans-serif;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}a{color:var(--brand);text-decoration:none}a:hover{color:var(--brand-hover)}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}:focus-visible{outline:2px solid var(--brand);outline-offset:2px}#print-root{display:none}.grow{flex:1 1 0;min-width:0}.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stack{display:flex;flex-direction:column;gap:14px}.row{display:flex;align-items:center;gap:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.muted{color:var(--muted)}.right{text-align:right}.nowrap{white-space:nowrap}.only-mobile{display:none!important}.brand-ic{color:var(--brand);display:flex}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:8px;font-size:14px;font-weight:500;white-space:nowrap;border:1px solid var(--border-strong);background:var(--surface);color:var(--text)}.btn:hover{background:var(--surface-alt);color:var(--text)}.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn-primary:hover{background:var(--brand-hover);border-color:var(--brand-hover);color:#fff}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-2)}.btn-ghost:hover{background:#e9ecf1}.btn-danger{color:var(--red);border-color:#fecdca}.btn-danger:hover{background:#fef3f2;color:var(--red)}.btn-sm{height:36px}.btn-lg{height:48px;font-size:15px;font-weight:600;border-radius:10px}.iconbtn{width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--text-2);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.iconbtn:hover{background:#e9ecf1;color:var(--text)}.iconbtn.danger{color:var(--red)}.iconbtn.danger:hover{background:#fef3f2}.inp{display:flex;align-items:center;gap:8px;width:100%;height:40px;padding:0 12px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);font-size:14px;color:var(--text);outline:0;min-width:0}label.inp,div.inp{color:var(--muted)}.inp input{border:0;outline:0;background:transparent;width:100%;min-width:0;color:var(--text);padding:0}.inp:focus,.inp:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}textarea.inp{height:auto;min-height:72px;padding:10px 12px;line-height:22px;resize:vertical;display:block}select.inp{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23606773' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.inp::placeholder,.inp input::placeholder{color:var(--faint)}input[type=search]::-webkit-search-cancel-button{display:none}input[type=checkbox],input[type=radio]{accent-color:var(--brand);width:16px;height:16px;margin:0;flex-shrink:0}.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}.field-label{font-weight:500;color:var(--text-2)}.field-label b{color:var(--brand);font-weight:500}.field-hint{font-size:12px;color:var(--muted)}.suffix{color:var(--muted);font-size:13px;white-space:nowrap}.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:20px;white-space:nowrap;border:1px solid}.badge i{width:6px;height:6px;border-radius:50%;background:currentColor}.badge-sm{font-size:11px}.tone-gray{color:var(--gray);background:#f2f4f7;border-color:#d0d5dd}.tone-blue{color:var(--blue);background:#eff8ff;border-color:#b2ddff}.tone-amber{color:var(--amber);background:#fffaeb;border-color:#fedf89}.tone-green{color:var(--green);background:#ecfdf3;border-color:#abefc6}.tone-red{color:var(--red);background:#fef3f2;border-color:#fecdca}.chip{font-size:12px;font-weight:600;color:var(--text-2);background:#f2f4f7;border:1px solid var(--border);border-radius:6px;padding:1px 8px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.chip-brand{color:var(--brand);background:var(--brand-tint);border-color:#f4c7c9}.chip-lg{font-size:13px;padding:2px 8px}.shell{display:flex;min-height:100vh;min-height:100dvh}.sidebar{width:280px;position:fixed;left:0;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--border);color:var(--text);z-index:90;transform:translate(-100%);transition:transform .2s ease,visibility .2s;visibility:hidden}.sidebar.open{transform:none;visibility:visible;box-shadow:0 20px 48px #1018282e}.sidebar-logo{height:88px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--border);padding:12px 16px;position:relative;flex-shrink:0}.sidebar-logo img{height:52px;width:auto;display:block}.sidebar-close{display:flex;position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;background:transparent;color:var(--text-2);align-items:center;justify-content:center}.sidebar-cap{padding:20px 24px 8px;font-size:11px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:var(--muted)}.sidebar nav{display:flex;flex-direction:column;gap:4px;padding:0 12px;flex-grow:1;overflow-y:auto}.sidebar nav a,.sidebar-logout{display:flex;align-items:center;gap:12px;height:44px;padding:0 14px;border-radius:8px;flex-shrink:0;color:var(--text-2);font-size:14px;font-weight:500;border:0;background:transparent}.sidebar nav a:hover,.sidebar-logout:hover{background:var(--bg);color:var(--text)}.sidebar nav a.active{background:var(--brand-tint);color:var(--brand);font-weight:600}.sidebar nav em{margin-left:auto;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:#fff;font-size:11px;font-weight:700;font-style:normal;display:flex;align-items:center;justify-content:center}.sidebar-logout{margin:8px 12px}.sidebar-foot{padding:16px;border-top:1px solid var(--border);text-align:center;display:flex;flex-direction:column;gap:2px}.sidebar-foot b{font-size:13px;font-weight:600;color:var(--text-2)}.sidebar-foot span{font-size:11px;color:var(--muted)}.nav-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182873;z-index:80}.main-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column}.topbar{height:64px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px;padding:0 24px;position:sticky;top:0;z-index:30}.hamburger{display:flex;width:40px;height:40px;margin-left:-8px;border:0;border-radius:8px;background:transparent;color:var(--text);align-items:center;justify-content:center;flex-shrink:0}.hamburger:hover{background:var(--bg)}.topbar-logo{display:block;height:32px;width:auto}.crumbs{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);white-space:nowrap}.crumbs svg{color:var(--border-strong)}.crumbs b{color:var(--text);font-weight:600}.gsearch{position:relative;width:280px}.topbar-menus{display:flex;align-items:center;gap:16px;position:relative}.bell{position:relative;width:40px;height:40px;border-radius:8px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text-2);display:flex;align-items:center;justify-content:center}.bell i{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--brand);border:2px solid #fff;box-sizing:content-box}.userbtn{display:flex;align-items:center;gap:10px;padding:0 0 0 16px;border:0;border-left:1px solid var(--border);background:transparent;text-align:left;height:40px}.userbtn-text{display:flex;flex-direction:column;line-height:1.25;white-space:nowrap}.userbtn-text b{font-size:14px;font-weight:600}.userbtn-text span{font-size:12px;color:var(--muted)}.userbtn-chev{color:var(--muted)}.avatar{width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.avatar.off{background:#98a2b3}.page{flex-grow:1;padding:24px;display:flex;flex-direction:column;gap:20px;min-width:0}.bottomnav{display:none}.pop{position:absolute;top:calc(100% + 8px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 40px #10182829;padding:6px;z-index:50;max-height:70vh;overflow-y:auto}.pop-right{left:auto;right:0;min-width:220px}.pop-wide{width:340px}.pop-title{padding:8px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}.pop-empty{padding:14px 10px;color:var(--muted);font-size:13px;text-align:center}.pop-item{display:flex;flex-direction:column;gap:1px;width:100%;padding:8px 10px;border:0;background:transparent;border-radius:8px;text-align:left;font-size:14px;color:var(--text);min-height:40px;justify-content:center}.pop-item:hover,.pop-item.hl{background:var(--bg);color:var(--text)}.pop-item span{font-size:12px;color:var(--muted)}.pop-item b{font-weight:600}.pop-row{flex-direction:row;align-items:center;gap:10px;justify-content:flex-start}.pop-row span{font-size:14px;color:var(--text)}.pop-user{padding:10px;border-bottom:1px solid var(--border);margin-bottom:6px;display:flex;flex-direction:column}.pop-user span{font-size:12px;color:var(--muted)}.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}.pagehead h1{font-size:24px;line-height:32px;font-weight:700;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pagehead p{margin-top:4px;font-size:14px;color:var(--muted)}.pagehead-actions{display:flex;gap:8px;flex-wrap:wrap;position:relative}.backlink{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--text-2);margin-bottom:-8px;align-self:flex-start}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.card-head h2{font-size:16px;font-weight:600}.card-head>span{font-size:13px;color:var(--muted)}.card-head>a{font-size:14px;font-weight:500}.card-body{padding:20px}.cols{display:flex;gap:20px;align-items:flex-start}.cols>.side{width:380px;flex-shrink:0}.cols>.fill{flex:1 1 0;min-width:0}.col{display:flex;flex-direction:column;gap:20px}.tbl-wrap{overflow-x:auto}.tbl{width:100%;border-collapse:collapse}.tbl th{text-align:left;padding:12px 16px;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;background:var(--surface-alt);border-bottom:1px solid var(--border);white-space:nowrap}.tbl td{padding:14px 16px;font-size:14px;border-bottom:1px solid var(--border);vertical-align:middle}.tbl tbody tr:last-child td{border-bottom:0}.tbl tbody tr:hover{background:var(--brand-tint)}.tbl th.right,.tbl td.right{text-align:right}.tbl .strong{font-weight:600;white-space:nowrap}.tbl .sub{color:var(--text-2)}.tbl .actions{text-align:right;white-space:nowrap}.prodcell{display:flex;align-items:center;gap:12px;min-width:0}.prodcell b{display:block;font-weight:600;white-space:nowrap}.prodcell span{font-size:12px;color:var(--muted)}.thumb{flex-shrink:0;border-radius:8px;background:#f6f7f9;border:1px solid var(--border);color:var(--faint);display:flex;align-items:center;justify-content:center;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.empty{padding:48px 20px;text-align:center;color:var(--muted);font-size:14px;display:flex;flex-direction:column;align-items:center;gap:12px}.empty.err{color:var(--red)}.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--brand);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tabs{display:flex;gap:24px;padding:0 20px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{height:44px;padding:0 4px;border:0;border-bottom:2px solid transparent;background:transparent;font-size:14px;font-weight:500;color:var(--text-2);display:flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0}.tabs button span{font-size:12px;padding:0 8px;border-radius:999px;line-height:20px;background:#f2f4f7;color:var(--muted)}.tabs button.on{font-weight:600;color:var(--brand);border-bottom-color:var(--brand)}.tabs button.on span{background:var(--brand-tint);color:var(--brand)}.filters{display:flex;gap:12px;padding:16px 20px;flex-wrap:wrap;align-items:center}.filters .inp{width:auto}.filters .search{width:320px}.daterange{display:flex;align-items:center;gap:6px;color:var(--muted)}.daterange .inp{width:150px}.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;font-size:14px;color:var(--muted);border-top:1px solid var(--border);flex-wrap:wrap}.pager div{display:flex;gap:6px}.pager button{min-width:32px;height:32px;border-radius:8px;font-size:14px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text-2)}.pager button.on{border-color:var(--brand);color:var(--brand);font-weight:600}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:8px;color:var(--text);min-width:0}a.stat:hover{color:var(--text);border-color:var(--border-strong)}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--text-2);font-weight:500}.stat-ic{width:40px;height:40px;border-radius:10px;background:var(--brand-tint);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-ic.green{background:#ecfdf3;color:var(--green)}.stat-ic.amber{background:#fffaeb;color:var(--amber)}.stat-ic.red{background:#fef3f2;color:var(--red)}.stat-ic.gray{background:#f2f4f7;color:var(--text-2)}.stat-val{font-size:28px;line-height:36px;font-weight:700;letter-spacing:-.5px}.stat-sub{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:4px;flex-wrap:wrap}.up{color:var(--green);font-weight:600;display:inline-flex;align-items:center;gap:2px}.down{color:var(--red);font-weight:600;display:inline-flex;align-items:center;gap:2px}.legend{display:flex;gap:16px;font-size:13px;color:var(--text-2);margin-bottom:16px;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:2px}.chart{position:relative;height:228px}.chart-grid{position:absolute;left:0;right:0;top:0;height:200px;display:flex;flex-direction:column;justify-content:space-between}.chart-grid div{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);height:0}.chart-grid span{width:44px;text-align:right;flex-shrink:0}.chart-grid i{flex-grow:1;border-top:1px dashed var(--border)}.chart-bars{position:absolute;left:60px;right:0;top:0;display:flex}.chart-col{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.chart-col>div{height:200px;display:flex;align-items:flex-end;gap:6px}.chart-col i{width:22px;border-radius:4px 4px 0 0;min-height:0;display:block}.statusbar{display:flex;height:12px;border-radius:6px;overflow:hidden;gap:2px;margin-bottom:12px;background:var(--bg)}.statusrow{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border);font-size:14px;font-weight:600}.statusrow:last-child{border-bottom:0}.statusrow em{color:var(--muted);font-weight:400;font-style:normal}.critrow{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--border)}.critrow:last-child{border-bottom:0}.critrow b{font-size:14px;font-weight:600;display:block}.critrow small{font-size:12px;color:var(--muted)}.critrow .qty{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:16px;font-weight:700}.alert{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:10px;background:#fffaeb;border:1px solid #fedf89;color:#93370d;font-size:14px}.alert svg{flex-shrink:0}.alert button{margin-left:auto;font-weight:600;color:#93370d;text-decoration:underline;white-space:nowrap;border:0;background:transparent;padding:0}.warn{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--amber);background:#fffaeb;border:1px solid #fedf89;border-radius:6px;padding:4px 8px}.okline{font-size:12px;color:var(--green);display:flex;align-items:center;gap:6px}.okline.bad{color:var(--muted)}.statfilters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.statfilter{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 18px;display:flex;align-items:center;gap:14px;min-width:0}.statfilter.on{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}.statfilter .stat-ic{width:44px;height:44px}.statfilter>span:last-child{display:flex;flex-direction:column;min-width:0}.statfilter small{font-size:13px;color:var(--text-2);font-weight:500}.statfilter b{font-size:24px;font-weight:700;line-height:32px}.statfilter em{font-size:12px;color:var(--muted);font-style:normal}.stepper{display:inline-flex;height:36px;border:1px solid var(--border-strong);border-radius:8px;overflow:hidden;background:var(--surface);flex-shrink:0}.stepper.active{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}.stepper button{width:32px;border:0;background:var(--surface-alt);color:var(--text-2);display:flex;align-items:center;justify-content:center}.stepper input{width:56px;border:0;border-left:1px solid var(--border);border-right:1px solid var(--border);text-align:center;font-size:14px;font-weight:600;outline:0;padding:0;background:var(--surface);border-radius:0}.stockedit{display:flex;align-items:center;gap:8px;justify-content:flex-end}.delta{font-size:12px;font-weight:700;color:var(--green);background:#ecfdf3;border-radius:6px;padding:2px 6px;white-space:nowrap}.delta.neg{color:var(--red);background:#fef3f2}.stockqty{font-size:16px;font-weight:700}.stockqty span{font-size:12px;font-weight:400;color:var(--muted)}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar .search{width:320px;background:var(--surface)}.toolbar select.inp{width:auto}.seg{display:flex;padding:3px;gap:2px;background:#e9ecf1;border-radius:8px}.seg button{width:34px;height:34px;border:0;border-radius:6px;background:transparent;color:var(--text-2);display:flex;align-items:center;justify-content:center}.seg button.on{background:var(--surface);color:var(--brand);box-shadow:0 1px 2px #1018281f}.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.pcard{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.pcard.passive{opacity:.65}.pcard-img{height:150px;background:#f6f7f9;border-bottom:1px solid var(--border);color:var(--faint);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:12px;position:relative}.pcard-img img{width:100%;height:100%;object-fit:contain;background:#fff}.pcard-img .badge{position:absolute;top:10px;left:10px}.pcard-body{padding:14px 16px;display:flex;flex-direction:column;gap:6px;flex-grow:1}.pcard-body small{font-size:12px;color:var(--muted)}.pcard-body h3{font-size:15px;line-height:21px;font-weight:600}.pcard-body p{font-size:13px;line-height:19px;color:var(--text-2);height:38px;overflow:hidden}.pcard-price{display:flex;align-items:baseline;justify-content:space-between;margin-top:4px;gap:8px}.pcard-price b{font-size:17px;font-weight:700}.pcard-price b span{font-size:12px;font-weight:400;color:var(--muted)}.pcard-foot{display:flex;border-top:1px solid var(--border)}.pcard-foot a{flex:1 1 0;height:42px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:500;color:var(--text-2)}.pcard-foot a+a{border-left:1px solid var(--border)}.pcard-foot a:hover{background:var(--surface-alt);color:var(--brand)}.vatseg{display:flex;gap:4px;padding:4px;background:var(--bg);border-radius:8px}.vatseg button{flex:1 1 0;height:32px;border:0;border-radius:6px;background:transparent;font-size:14px;font-weight:500;color:var(--text-2)}.vatseg button.on{background:var(--surface);color:var(--brand);font-weight:600;box-shadow:0 1px 2px #1018281f}.infobox{background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;padding:12px 14px;font-size:13px;color:var(--text-2);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.infobox b{color:var(--text)}.specrow{display:flex;gap:8px;align-items:center}.specrow .inp:first-child{flex:0 0 38%}.linkbtn{border:0;background:transparent;color:var(--brand);font-weight:500;font-size:14px;display:inline-flex;align-items:center;gap:6px;padding:6px 0;align-self:flex-start}.drop{border:1.5px dashed var(--border-strong);border-radius:10px;padding:24px 16px;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);text-align:center;font-size:12px;cursor:pointer;background:var(--surface-alt)}.drop b{color:var(--text);font-size:14px;font-weight:600}.drop:hover,.drop.over{border-color:var(--brand);background:var(--brand-tint)}.imgprev{position:relative;border:1px solid var(--border);border-radius:10px;overflow:hidden}.imgprev img{display:block;width:100%;max-height:260px;object-fit:contain;background:#fff}.imgprev .iconbtn{position:absolute;top:8px;right:8px;background:#fff;border-color:var(--border)}.switchrow{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.switchrow small{display:block;font-size:12px;color:var(--muted)}.switch{width:44px;height:24px;border-radius:999px;border:0;background:var(--border-strong);position:relative;flex-shrink:0}.switch:after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px #10182833}.switch[aria-checked=true]{background:var(--brand)}.switch[aria-checked=true]:after{transform:translate(20px)}.qform{display:flex;gap:24px;align-items:flex-start}.qform-left{width:470px;flex-shrink:0;display:flex;flex-direction:column;gap:20px}.qform-right{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:12px;position:sticky;top:88px}.segment{display:flex;gap:4px;padding:4px;background:var(--bg);border-radius:8px}.segment button{flex:1 1 0;height:36px;border:0;border-radius:6px;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:var(--text-2)}.segment button.on{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #1018281f}.picker{position:relative}.custbox{background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:6px}.custbox-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;font-size:14px;font-weight:600}.custbox-head span{display:flex;align-items:center;gap:8px}.custbox-head button{border:0;background:transparent;color:var(--brand);font-size:13px;font-weight:500;display:flex;align-items:center;gap:4px;padding:0}.custbox small{font-size:12px;color:var(--muted);margin-top:4px}.kv{display:flex;gap:12px;font-size:13px;line-height:20px}.kv span:first-child{width:110px;flex-shrink:0;color:var(--muted)}.kv span:last-child{color:var(--text);font-weight:500;min-width:0;overflow-wrap:anywhere}.checkline{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--text-2)}.checkline input{margin-top:2px}.checkline small{font-size:12px;color:var(--muted);display:block}.qitem{border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px}.qitem-top{display:flex;gap:10px;align-items:center}.qitem-top b{font-size:14px;font-weight:600;display:block}.qitem-top small{font-size:12px;color:var(--muted)}.qitem-free{display:grid;grid-template-columns:1fr 1fr 90px 100px auto;gap:8px;align-items:center}.qitem-free .linkbtn{white-space:nowrap}.qitem-free .inp,.termrow .inp{height:36px;padding:0 10px}.qitem-detail{min-height:56px;font-size:13px}.inp .cursel{border:0;background:transparent;font:inherit;color:var(--muted);padding:0 2px;cursor:pointer}.termrow{display:flex;gap:8px;align-items:center}@media(max-width:900px){.qitem-free{grid-template-columns:1fr 1fr}}.qitem-nums{display:flex;gap:8px;align-items:flex-end}.qitem-nums>label,.qitem-nums>div{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.qitem-nums .inp{height:36px;padding:0 10px;color:var(--text)}.qitem-nums .stepper input{width:44px}.qitem-nums .stepper button{width:30px}.qitem-total{flex-grow:1;text-align:right}.qitem-total b{font-size:15px;font-weight:700;line-height:36px;color:var(--text);white-space:nowrap}.preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:600;color:var(--text-2)}.preview-head>span:first-child{display:flex;align-items:center;gap:8px}.preview-head>span:last-child{font-size:13px;font-weight:400;color:var(--muted)}.preview-head b{color:var(--text);font-size:15px}.steps,.stepbar{display:none}.a4{width:100%;aspect-ratio:210 / 297;display:flex;flex-direction:column;background:#fff;box-shadow:0 8px 28px #1018281f;border-radius:4px;overflow:hidden;color:#000;-webkit-print-color-adjust:exact;print-color-adjust:exact}.a4-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:52px 28px 20px;background:#fff;color:#000}.a4-head img{height:110px;width:auto;display:block}.a4-meta{display:grid;grid-template-columns:max-content;font-size:12.5px;line-height:20px;color:#000;white-space:nowrap}.a4-head h3{grid-column:1 / -1;justify-self:start;margin-bottom:14px;font-size:26px;line-height:1.2;letter-spacing:.5px;font-weight:800;color:#000}.a4-body{flex:1 0 auto;padding:20px 28px;display:flex;flex-direction:column;gap:14px}.a4-parties{display:flex;gap:12px}.a4-party{flex:0 1 60%;border:1px solid #e6e9ee;border-radius:6px;overflow:hidden;min-width:0}.a4-party>div{padding:8px 10px;display:flex;flex-direction:column;gap:2px}.a4-party b.name{font-size:12.5px;font-weight:700;color:#000;margin-bottom:3px}.a4-party p{display:flex;gap:8px;font-size:10px;line-height:14px}.a4-party p span{width:64px;color:#000;flex-shrink:0}.a4-party p b{font-weight:600;overflow-wrap:anywhere;min-width:0}.a4-intro{font-size:11px;line-height:17px}.a4 table{width:100%;border-collapse:collapse}.a4 th{padding:7px 8px;font-size:10.5px;font-weight:700;color:#000;background:#cdd1d7;text-align:center;white-space:nowrap}.a4 td{padding:7px 8px;font-size:11px;text-align:right;border-bottom:1px solid #e6e9ee;white-space:nowrap;vertical-align:top}.a4 tbody tr:nth-child(2n) td{background:#fafbfc}.a4 th.l{white-space:normal}.a4 td.l{text-align:left;white-space:normal}.a4 th.c,.a4 td.c{text-align:center;width:22px}.a4 th.m,.a4 td.m{text-align:center}.a4 th.w-brand{width:12%}.a4 th.w-model{width:17%}.a4 th.fit{width:1%}.a4 td.c{color:#000}.a4 td.l b{font-weight:600;display:block}.a4 td.l small{font-size:9.5px;color:#000}.a4 td small.disc{display:block;font-size:9px;color:#000}.a4 td.l small.detail{display:block;margin-top:2px;font-size:9.5px;line-height:13px;color:#000;white-space:pre-line}.a4-totals section{display:flex;flex-direction:column;gap:4px}.a4-totals section+section{margin-top:8px}.a4-totals b.cur{font-size:10px;letter-spacing:.3px;color:#000;text-transform:uppercase}.a4 td.t{font-weight:700}.a4-bottom{margin-top:auto;display:flex;gap:20px;align-items:flex-start}.a4-terms{flex:1 1 0;font-size:11px;line-height:17px;color:#000;min-width:0}.a4-terms b{display:block;font-size:12px;color:#000;margin-bottom:2px}.a4-terms p{margin-top:6px;white-space:pre-line;color:#000}.a4-stamp{width:180px;height:auto;flex-shrink:0;align-self:center}.a4-totals{width:270px;flex-shrink:0;display:flex;flex-direction:column;gap:4px;font-size:11px}.a4-totals div{display:flex;justify-content:space-between;gap:8px}.a4-totals div span:first-child{color:#000}.a4-totals div.net{font-weight:700;border-top:1px solid #e6e9ee;padding-top:4px}.a4-totals div.net span:first-child{color:#000}.a4-totals div.grand{margin-top:4px;padding:8px 10px;border-radius:4px;background:#f1f2f4;color:#000;font-weight:800;font-size:13px;white-space:nowrap}.a4-totals div.grand span:first-child{color:#000}.a4-foot{margin-top:12px;padding-top:12px;background:repeating-linear-gradient(to right,#000 0 4px,transparent 4px 7px) top left / 100% 1px no-repeat;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;font-size:9.5px;line-height:14px;color:#000}.a4-foot b{font-size:10.5px;color:#000}.a4-foot .dia{color:var(--brand)}.a4-foot .test{color:#000}.vtabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14px}.vtabs>span{display:flex;align-items:center;gap:6px;color:var(--text-2);font-weight:600;margin-right:4px}.vtab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 14px;border-radius:10px;border:1px solid var(--border-strong);background:var(--surface);text-align:left}.vtab b{font-size:14px;font-weight:700;color:var(--text-2);display:flex;align-items:center;gap:6px}.vtab small{font-size:12px;color:var(--muted)}.vtab.on{border-color:var(--brand);background:var(--brand-tint)}.vtab.on b{color:var(--brand)}.vtab em{font-size:11px;font-weight:600;font-style:normal;color:#fff;background:var(--brand);border-radius:999px;padding:0 7px;line-height:18px}.totalbox{display:flex;flex-direction:column;align-items:flex-end;gap:16px;padding:16px 20px;border-top:1px solid var(--border)}.totalbox>div{width:320px;display:flex;flex-direction:column;gap:8px;font-size:14px}.totalbox p{display:flex;justify-content:space-between;gap:12px}.totalbox p span:first-child{color:var(--muted)}.totalbox p.net{font-weight:600}.totalbox p.grand{font-size:17px;font-weight:700;border-top:1px solid var(--border);padding-top:10px}.totalbox p.grand span{color:var(--text)!important}.totalbox p.grand span:last-child{color:var(--brand)!important}.difflist{list-style:none;margin:0;padding:0}.difflist li{display:flex;align-items:center;gap:10px;font-size:14px;padding:8px 0}.difflist li i{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#eff8ff;color:var(--blue)}.difflist li i.add{background:#ecfdf3;color:var(--green)}.difflist li i.del{background:#fef3f2;color:var(--red)}.reason{margin-top:8px;padding:10px 12px;border-radius:8px;background:var(--surface-alt);border:1px solid var(--border);font-size:13px;color:var(--text-2)}.reason b{color:var(--text)}.timeline{list-style:none;margin:0;padding:0}.timeline li{display:flex;gap:12px;position:relative;padding-bottom:18px}.timeline li:last-child{padding-bottom:0}.timeline li:before{content:"";position:absolute;left:5px;top:14px;bottom:0;width:2px;background:var(--border)}.timeline li:last-child:before{display:none}.timeline .dot{width:12px;height:12px;border-radius:50%;margin-top:5px;flex-shrink:0;position:relative;background:var(--gray);box-shadow:0 0 0 3px #fff}.timeline .dot.blue{background:var(--blue)}.timeline .dot.amber{background:var(--amber)}.timeline .dot.green{background:var(--green)}.timeline .dot.red{background:var(--red)}.timeline div{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0;font-size:13px}.timeline small{font-size:12px;color:var(--muted)}.radiocard{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface);cursor:pointer}.radiocard.on{border-color:var(--brand);background:var(--brand-tint)}.radiocard small{margin-left:auto;font-size:12px;color:var(--muted)}.radiocard.top{align-items:flex-start;border-color:var(--border-strong);border-radius:8px}.radiocard.top.on{border-color:var(--brand)}.radiocard.top input{margin-top:2px}.radiocard.top span{display:flex;flex-direction:column;font-size:14px;font-weight:600}.radiocard.top span small{margin:0;font-weight:400}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182873;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.overlay-right{justify-content:flex-end;padding:0;align-items:stretch}.modal{width:100%;max-width:460px;max-height:90vh;background:var(--surface);border-radius:14px;display:flex;flex-direction:column;box-shadow:0 24px 60px #10182840}.modal-wide{max-width:760px}.sheet-grip{display:none}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-head h2,.drawer-head h2{font-size:18px;font-weight:700;display:flex;align-items:center;gap:10px}.modal-body{padding:20px;overflow-y:auto}.modal-foot,.drawer-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--border)}.drawer{width:480px;max-width:100%;background:var(--surface);display:flex;flex-direction:column;box-shadow:-8px 0 32px #1018282e}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--border)}.drawer-body{flex-grow:1;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.drawer-foot{padding:16px 24px}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%);z-index:200;background:#1d2027;color:#fff;padding:12px 18px;border-radius:10px;font-size:14px;font-weight:500;box-shadow:0 12px 32px #1018284d;max-width:calc(100vw - 32px)}.toast-err{background:var(--red)}.usercell{display:flex;align-items:center;gap:12px}.usercell b{display:block;font-weight:600;white-space:nowrap}.usercell span:last-child span{font-size:13px;color:var(--muted)}.login{min-height:100vh;min-height:100dvh;display:flex;background:var(--surface)}.login-hero{width:600px;max-width:46%;flex-shrink:0;padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:32px;position:relative;overflow:hidden;background:radial-gradient(120% 70% at 100% 100%,var(--brand-tint) 0%,rgba(253,242,242,0) 60%),var(--surface);border-right:1px solid var(--border);color:var(--text)}.login-hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,var(--brand) 0%,var(--brand-dark) 100%)}.login-logo{height:88px;width:auto;align-self:flex-start;display:block}.login-hero h1{font-size:36px;line-height:44px;font-weight:700;letter-spacing:-.5px;margin-bottom:28px}.login-hero h1 em{font-style:normal;color:var(--brand)}.login-hero ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:16px}.login-hero li{display:flex;align-items:center;gap:14px;font-size:15px;line-height:22px;color:var(--text-2)}.login-hero li i{width:40px;height:40px;border-radius:10px;background:var(--brand-tint);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0}.login-hero small{font-size:13px;color:var(--muted)}.login-hero .tagline{display:none}.login-main{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);padding:24px}.login-card{width:420px;max-width:100%;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:40px;display:flex;flex-direction:column;gap:20px;box-shadow:0 12px 32px #1018280f}.login-card header{text-align:center}.login-card h2{font-size:22px;font-weight:700}.login-card header p{margin-top:6px;font-size:14px;color:var(--muted)}.login-card .inp{height:44px}.login-card .btn{height:44px;font-size:15px;font-weight:600}.login-row{display:flex;align-items:center;justify-content:space-between;font-size:14px;gap:12px}.login-row label{display:flex;align-items:center;gap:8px;color:var(--text-2)}.login-row button{border:0;background:transparent;color:var(--brand);font-weight:500;padding:0}.login-note{text-align:center;font-size:13px;color:var(--muted)}.login-err{background:#fef3f2;border:1px solid #fecdca;color:var(--red);border-radius:8px;padding:10px 12px;font-size:13px}.login-copy{display:none}.eye{border:0;background:transparent;color:var(--muted);display:flex;padding:0}.mcard{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text)}a.mcard:hover{color:var(--text)}.mcard-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.mcard-no{font-size:13px;font-weight:700;color:var(--brand)}.mcard-no span{color:var(--muted);font-weight:500}.mcard-name{font-size:15px;font-weight:600}.mcard-bot{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}.mcard-bot b{font-size:16px;font-weight:700;color:var(--text)}.mlist{display:flex;flex-direction:column;gap:10px}.mrow{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text);flex-wrap:wrap}a.mrow:hover{color:var(--text)}.mrow b{font-size:14px;font-weight:600;display:block}.mrow small{font-size:12px;color:var(--muted)}.mrow .qty{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:16px;font-weight:700}.mrow .stockedit{width:100%;justify-content:space-between}.pills{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}.pills::-webkit-scrollbar{display:none}.pills button{height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface);font-size:13px;font-weight:500;color:var(--text-2);white-space:nowrap;flex-shrink:0}.pills button.on{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}.fab{position:fixed;right:16px;bottom:calc(var(--bottomnav) + env(safe-area-inset-bottom) + 16px);width:56px;height:56px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px #c41e2466;z-index:20}.fab:hover{color:#fff;background:var(--brand-hover)}@media(max-width:1180px){.stats,.statfilters{grid-template-columns:repeat(2,minmax(0,1fr))}.cols{flex-direction:column;align-items:stretch}.cols>.side{width:auto}.qform{flex-direction:column;align-items:stretch}.qform-left{width:auto}.qform-right{position:static}.gsearch{width:220px}}@media screen and (max-width:900px){.only-desktop{display:none!important}.only-mobile{display:flex!important}.inp,.btn{font-size:16px}.btn{font-size:14px}.topbar{height:60px;padding:0 16px;gap:6px}.hamburger{width:44px;height:44px;margin-left:-10px}.topbar-logo{height:30px}.crumbs,.gsearch,.userbtn-text,.userbtn-chev{display:none}.topbar-menus{gap:4px;position:static}.topbar-menus .pop{top:56px;right:8px;left:8px;width:auto}.bell{border:0;width:44px;height:44px}.bell i{top:10px;right:11px}.userbtn{border:0;padding:0;height:44px}.avatar{width:32px;height:32px;font-size:11px}.page{padding:16px;gap:14px;padding-bottom:calc(var(--bottomnav) + env(safe-area-inset-bottom) + 24px)}.bottomnav{display:flex;position:fixed;left:0;right:0;bottom:0;height:calc(var(--bottomnav) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);z-index:30}.bottomnav a{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:500;color:var(--muted)}.bottomnav a.active{color:var(--brand);font-weight:700}.pagehead h1{font-size:20px;line-height:28px}.pagehead p{font-size:13px}.stats{gap:10px}.stat{padding:14px;gap:4px}.stat-top{font-size:12px}.stat-ic{display:none}.stat-val{font-size:22px;line-height:28px}.stat-sub{font-size:12px}.card-head{padding:14px 16px}.card-body{padding:16px}.critrow{padding:10px 16px}.chart-col i{width:14px}.chart-col>div{gap:3px}.statfilters{display:none}.filters{padding:12px 16px}.filters .search,.toolbar .search{width:100%}.toolbar .search{flex:1 1 100%}.pgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pcard-img{height:110px}.pcard-body{padding:10px 12px}.pcard-body p{display:none}.pcard-price{flex-direction:column;align-items:flex-start;gap:4px}.alert{align-items:flex-start;font-size:13px}.totalbox>div{width:100%}.overlay{align-items:flex-end;padding:0}.modal{max-width:none;border-radius:20px 20px 0 0;max-height:92dvh;padding-bottom:env(safe-area-inset-bottom)}.sheet-grip{display:block;width:40px;height:4px;border-radius:2px;background:var(--border-strong);align-self:center;margin-top:10px}.modal-head{border-bottom:0;padding:8px 20px 4px}.modal-body{padding:8px 20px 16px}.modal-foot{border-top:0;padding:0 20px 20px}.modal-foot .btn{flex:1 1 0;height:48px}.drawer{width:100%}.drawer-foot .btn{flex:1 1 0;height:48px}.toast{bottom:calc(var(--bottomnav) + env(safe-area-inset-bottom) + 16px)}.grid2.keep{grid-template-columns:repeat(2,minmax(0,1fr))}.steps{display:flex;gap:6px}.steps span{flex:1 1 0;text-align:center;font-size:12px;font-weight:600;color:var(--muted);padding-bottom:8px;border-bottom:3px solid var(--border-strong)}.steps span.on{color:var(--brand);border-bottom-color:var(--brand)}.qform.step-1 .qs:not(.qs-1),.qform.step-2 .qs:not(.qs-2),.qform.step-3 .qs:not(.qs-3){display:none}.qform.step-1 .qform-right,.qform.step-2 .qform-right,.qform.step-3 .qform-left{display:none}.qform{padding-bottom:72px}.stepbar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:calc(var(--bottomnav) + env(safe-area-inset-bottom));padding:10px 16px;background:var(--surface);border-top:1px solid var(--border);z-index:25}.stepbar .btn{flex:1 1 0;height:48px}.a4-head{padding:32px 16px 14px}.a4-meta{font-size:11px;line-height:17px}.a4-head h3{margin-bottom:10px}.a4-head img{height:76px}.a4-head h3{font-size:20px}.a4-body{padding:14px 16px}.a4-parties,.a4-bottom{flex-direction:column}.a4-totals{width:100%}.a4 .hide-m{display:none}.login{flex-direction:column}.login-hero{width:auto;max-width:none;padding:36px 24px 28px;align-items:center;justify-content:center;gap:10px;border-right:0;border-bottom:1px solid var(--border);background:radial-gradient(90% 100% at 50% 0%,var(--brand-tint) 0%,rgba(253,242,242,0) 70%),var(--surface)}.login-hero:before{left:0;right:0;top:0;bottom:auto;width:auto;height:5px;background:linear-gradient(90deg,var(--brand) 0%,var(--brand-dark) 100%)}.login-logo{height:76px;align-self:center}.login-hero>div,.login-hero small{display:none}.login-hero .tagline{display:block;font-size:14px;color:var(--muted)}.login-main{background:var(--surface);justify-content:flex-start;padding:0}.login-card{border:0;box-shadow:none;padding:28px 24px;gap:18px;width:100%}.login-card header{text-align:left}.login-card .inp{height:48px}.login-card .btn{height:50px;font-size:16px}.login-copy{display:block;margin-top:auto;padding:20px;font-size:12px;color:var(--muted)}}@media print{@page{size:A4;margin:12mm 0}@page :first{margin:0}html,body{margin:0;padding:0;background:#fff}#root{display:none!important}#print-root{display:block}.a4{box-shadow:none;border-radius:0;aspect-ratio:auto;min-height:296mm}.a4 tr,.a4-bottom,.a4-foot{break-inside:avoid}}button.plain{border:0;background:transparent;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}button.plain:hover{color:var(--brand)}.grid-side{display:grid;grid-template-columns:340px 1fr;gap:20px;align-items:start}@media(max-width:900px){.grid-side{grid-template-columns:1fr}}
