:root{--navy:#112c42;--navy2:#1b3e56;--teal:#087f70;--mint:#d9f3eb;--bg:#f3f6f8;--ink:#163247;--muted:#65788a;--line:#dce5eb;--red:#b63635;--amber:#966213;--shadow:0 8px 30px #12334b09;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1ab6a0;outline-offset:3px}a{color:var(--teal)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.75rem,3vw,2.3rem);letter-spacing:-.04em;margin-bottom:10px}h2{font-size:1.2rem;letter-spacing:-.02em;margin-bottom:16px}h3{font-size:1rem}small,.small{font-size:.8rem}.muted{color:var(--muted)}.eyebrow{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:var(--teal);margin-bottom:10px}.brand{display:flex;align-items:center;gap:12px;font-size:1.2rem;font-weight:750;letter-spacing:-.03em}.brand-mark{display:grid;place-items:center;width:38px;height:42px;border-radius:12px;background:#1c514f;color:#91ecd4;font-weight:800;font-size:25px;font-style:normal}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:white;padding:30px 20px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 10px}.nav{display:grid;gap:7px}.nav button{border:0;background:transparent;color:#b8c9d6;display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border-radius:11px;font-size:.9rem;font-weight:600;min-height:48px}.nav button.active{background:#24465c;color:#fff}.nav button:hover{background:#ffffff12}.nav .icon{width:20px;font-size:18px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff20;padding:22px 10px 0}.person{font-size:.9rem;font-weight:650}.role{font-size:.73rem;color:#9db4c5;margin-top:6px}.sidebar-bottom button{color:#c6d6e0;border:0;background:none;padding:10px 0;text-align:left;font-size:.8rem}.main{min-width:0}.topbar{height:76px;padding:0 40px;border-bottom:1px solid var(--line);background:#ffffffa6;display:flex;align-items:center;justify-content:space-between;gap:20px}.crumb{font-size:.83rem;color:var(--muted)}.top-status{display:flex;align-items:center;gap:16px;font-size:.77rem}.status{display:inline-flex;align-items:center;gap:7px;font-weight:650;white-space:nowrap}.dot{width:7px;height:7px;background:#0d9c7b;border-radius:50%}.offline .dot{background:#cc8a25}.content{padding:34px 40px 50px;max-width:1550px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head p{color:var(--muted);font-size:.92rem;margin-bottom:0;line-height:1.6}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.button{border:1px solid var(--line);background:#fff;color:var(--ink);padding:12px 18px;border-radius:9px;font-weight:650;font-size:.86rem;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.button:hover{background:#edf4f6}.button.primary{color:#fff;border-color:var(--teal);background:var(--teal)}.button.primary:hover{background:#066e61}.button.danger{color:var(--red);border-color:#eccaca;background:#fff8f8}.button.small{padding:8px 12px;min-height:38px;font-size:.78rem}.button.ghost{background:transparent;border-color:transparent}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:24px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.card-title h2,.card-title h3{margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 22px}.stat .value{font-size:1.8rem;font-weight:750;letter-spacing:-.04em;margin-top:9px}.stat .label{color:var(--muted);font-size:.8rem}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:5px 9px;font-size:.7rem;font-weight:700;background:#edf2f7;color:#52697a;white-space:nowrap}.badge.green{background:#e2f4ed;color:#137353}.badge.amber{background:#fff1d8;color:#956016}.badge.red{background:#fde9e8;color:#af3834}.badge.blue{background:#e7f0fa;color:#346389}.warehouse{padding:23px;transition:transform .15s,border-color .15s}.warehouse:hover{border-color:#9fc5bc;transform:translateY(-2px)}.warehouse-code{width:48px;height:48px;display:grid;place-items:center;background:#e9f5f1;color:var(--teal);border-radius:12px;font-size:.95rem;font-weight:800}.warehouse h2{margin:17px 0 5px}.warehouse .count{display:flex;justify-content:space-between;font-size:.77rem;color:var(--muted);margin:22px 0 8px}.progress{height:6px;background:#edf2f5;border-radius:10px;overflow:hidden}.progress span{display:block;height:100%;background:var(--teal);border-radius:10px}.warehouse footer{margin-top:22px;display:flex;gap:10px;align-items:center;justify-content:space-between}.warehouse footer .button{flex:1}.notice{border:1px solid #c7e4dc;background:#ecf7f3;color:#316b5b;padding:15px 18px;border-radius:10px;font-size:.82rem;line-height:1.6;margin-bottom:22px}.notice.amber{background:#fff7e9;border-color:#eedbb1;color:#866127}.notice.red{background:#fff0ee;border-color:#edc3bd;color:#9a4037}.empty{text-align:center;padding:52px 20px;color:var(--muted)}.empty .empty-icon{font-size:30px;display:block;margin-bottom:15px}.empty h2{color:var(--ink);margin-bottom:9px}.empty p{font-size:.86rem;line-height:1.65;max-width:480px;margin:0 auto 20px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}.toolbar .search{flex:1;min-width:200px}.field{display:grid;gap:8px;margin-bottom:18px}.field label,.field-label{font-size:.8rem;font-weight:650}.field input,.field select,.field textarea,.search{width:100%;border:1px solid #ccd9e2;border-radius:9px;background:#fff;color:var(--ink);padding:13px 14px;min-height:48px}.field textarea{resize:vertical;min-height:90px}.field .help{color:var(--muted);font-size:.75rem;line-height:1.5}.field input.quantity{font-size:2.3rem;font-weight:700;letter-spacing:-.03em;padding:18px;min-height:84px}.field input[type=checkbox]{width:20px;min-height:20px}.check{display:flex;gap:10px;align-items:center;font-size:.85rem;line-height:1.5}.row{display:flex;gap:16px}.row>.field{flex:1}.two-col{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);gap:22px;align-items:start}.product-list{max-height:550px;overflow-y:auto;display:grid;gap:8px}.product{width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:76px}.product:hover,.product.selected{background:#eef9f5;border-color:#75b8a9}.product .name{display:block;font-size:.9rem;font-weight:650;line-height:1.35;margin-bottom:6px}.product .meta{font-size:.75rem;color:var(--muted)}.product .arrow{color:var(--teal);font-size:22px}.selected-product{background:#f0f7f5;padding:18px;border-radius:10px;margin-bottom:23px}.selected-product h2{margin-bottom:8px;line-height:1.4}.form-footer{padding-top:6px}.form-footer .button{width:100%;font-size:1rem;min-height:55px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{border-collapse:collapse;width:100%;font-size:.8rem;white-space:nowrap}th{text-align:left;background:#f7f9fb;color:var(--muted);font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;padding:15px 18px;border-bottom:1px solid var(--line)}td{padding:16px 18px;border-bottom:1px solid #edf1f4}tr:last-child td{border-bottom:0}td.wrap{white-space:normal;min-width:170px;max-width:350px;line-height:1.5}.right{text-align:right}.stack{display:grid;gap:16px}.record{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}.record h3{margin-bottom:7px;line-height:1.4}.record p{font-size:.77rem;color:var(--muted);margin:0;line-height:1.65}.record .amount{font-size:1.5rem;font-weight:750;white-space:nowrap}.record-side{text-align:right;display:grid;gap:9px;justify-items:end}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-hero{background:var(--navy);color:#fff;padding:50px 9%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-hero:after{content:"";position:absolute;width:440px;height:440px;border:1px solid #69cbb229;border-radius:90px;transform:rotate(35deg);bottom:-180px;right:-160px}.login-hero h1{font-size:clamp(2.3rem,4vw,3.5rem);line-height:1.13;max-width:520px;margin:70px 0 24px}.login-hero p{color:#adbfcb;font-size:1rem;line-height:1.85;max-width:470px}.login-hero .eyebrow{color:#75d8bd}.login-hero footer{font-size:.75rem;color:#9cb4c5;margin-top:70px}.login-main{display:grid;place-items:center;padding:45px}.login-form{max-width:390px;width:100%}.login-form h2{font-size:1.7rem;letter-spacing:-.04em;margin-bottom:12px}.login-form>p{color:var(--muted);font-size:.9rem;line-height:1.6;margin-bottom:32px}.login-form .button{width:100%;min-height:52px}.login-form .footnote{font-size:.72rem;color:var(--muted);line-height:1.65;margin-top:24px}.login-form .offline-resume{margin-top:20px}.boot{min-height:100vh;display:grid;align-content:center;justify-items:center;gap:14px}.boot p{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;max-width:600px;width:calc(100% - 32px);padding:28px;color:var(--ink);box-shadow:0 30px 100px #112c4240;max-height:90vh;overflow:auto}dialog::backdrop{background:#102a4266;backdrop-filter:blur(3px)}dialog h2{font-size:1.35rem}dialog .dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.signature{touch-action:none;background:#fff;border:2px dashed #bdccd6;border-radius:10px;width:100%;height:210px;display:block;margin:12px 0}.signature-help{font-size:.75rem;color:var(--muted)}.report{border:1px solid var(--line);border-radius:11px;padding:20px}.report h3{margin-bottom:9px}.report .hash{font:11px ui-monospace,monospace;overflow-wrap:anywhere;color:var(--muted);line-height:1.5;margin:12px 0}.report .actions{margin-top:16px}.divider{height:1px;background:var(--line);margin:24px 0}.list-detail{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #edf1f4;font-size:.83rem}.list-detail:last-child{border:0}.mobile-brand{display:none}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--navy);color:#fff;padding:15px 22px;border-radius:12px;box-shadow:0 8px 40px #112c4230;z-index:100;transition:transform .2s;max-width:calc(100% - 30px);font-size:.88rem;line-height:1.5}#toast.visible{transform:translateX(-50%) translateY(0)}#toast.error{background:#983e37}.preview-file{border:1px solid var(--line);border-radius:12px;padding:20px;margin:15px 0}.preview-file ul{padding-left:20px;font-size:.82rem;line-height:1.8}.period-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.period-card h2{margin-bottom:7px}.file-drop{border:2px dashed #bdcfd8;border-radius:12px;padding:28px;text-align:center;background:#f8fbfc;margin:20px 0}.file-drop input{max-width:100%;font-size:.85rem}.section-caption{font-size:.85rem;line-height:1.6;color:var(--muted);margin-bottom:22px}.sync-item{padding:17px;border:1px solid var(--line);border-radius:10px;background:#fff}.sync-item h3{margin-bottom:6px}.sync-item p{font-size:.78rem;line-height:1.6;color:var(--muted);margin:5px 0}.pending-count{background:#a1efd9;color:#143e35;min-width:20px;text-align:center;border-radius:5px;padding:2px 5px;font-size:.7rem;margin-left:auto}.hide{display:none!important}.history-line{border-left:2px solid #cbdcd5;padding:0 0 18px 16px;margin-left:6px;font-size:.83rem;line-height:1.7}.history-line:last-child{padding-bottom:0}code{font-size:.8em;background:#edf3f6;border-radius:4px;padding:2px 5px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.admin-grid .span2{grid-column:1/-1}.install{margin-top:10px;width:100%}.nowrap{white-space:nowrap}.chip-row{display:flex;gap:8px;flex-wrap:wrap}.signature-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.signature-box{background:#f5f8fa;border-radius:8px;padding:12px;font-size:.75rem;line-height:1.65}.signature-box.signed{background:#e9f7f0;color:#24684d}
@media(max-width:1100px){.shell{grid-template-columns:200px 1fr}.sidebar{padding:25px 12px}.topbar{padding:0 25px}.content{padding:28px 25px}.two-col{grid-template-columns:1fr 1fr}.admin-grid{grid-template-columns:1fr}.admin-grid .span2{grid-column:auto}.top-status{gap:10px}}
@media(max-width:1000px){.shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;width:100%;height:auto;padding:6px 8px max(6px,env(safe-area-inset-bottom));z-index:20;gap:0;border-top:1px solid #ffffff18}.sidebar>.brand,.sidebar-bottom{display:none}.nav{display:flex;gap:2px;justify-content:space-around}.nav button{padding:8px 5px;display:grid;justify-items:center;gap:4px;font-size:.61rem;min-height:50px;flex:1;line-height:1.2}.nav .icon{font-size:19px;width:auto}.pending-count{position:absolute;margin:0 0 22px 32px}.topbar{height:68px;padding:0 20px}.mobile-brand{display:flex}.mobile-brand .brand-mark{width:29px;height:32px;font-size:20px}.crumb{display:none}.top-status{font-size:.68rem;gap:9px}.top-status .sync-label{display:none}.content{padding:25px 20px 110px}.page-head{flex-direction:column;gap:17px}.page-head .actions{width:100%}.page-head .actions .button{flex:1}.two-col{grid-template-columns:1fr}.stats{gap:9px}.stat{padding:15px 12px}.stat .value{font-size:1.4rem}.stat .label{font-size:.68rem}.card{padding:20px}.login{grid-template-columns:1fr}.login-hero{padding:28px 28px 35px}.login-hero h1{font-size:2rem;margin:36px 0 14px;max-width:410px}.login-hero p{font-size:.85rem;line-height:1.7;margin:0}.login-hero footer{display:none}.login-main{padding:34px 28px}.login-form{max-width:440px}.login-form>p{margin-bottom:25px}.product-list{max-height:350px}.record{padding:17px;gap:12px}.record h3{font-size:.86rem}.record .amount{font-size:1.25rem}.row{gap:12px}.toolbar .button{flex:1}.signature-row{grid-template-columns:1fr}.period-card{flex-wrap:wrap}.topbar .button{min-height:34px;padding:6px 9px;font-size:.7rem}}
@media print{.sidebar,.topbar,.actions,.button,#toast{display:none!important}.shell{display:block}.content{padding:0}.card{box-shadow:none}body{background:#fff}}
