:root{color-scheme:light;--ink:#172b43;--muted:#8090a4;--navy:#0e223b;--navy2:#172f4d;--teal:#32c89f;--bg:#f4f7fa;--white:#fff;--line:#e6edf3;--shadow:0 12px 36px rgba(20,50,80,.05);--radius:18px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit;text-decoration:none}input,select,textarea{width:100%;padding:12px 13px;border-radius:11px;border:1px solid #dbe5ed;background:#fff;color:var(--ink);outline:0;min-width:0}input:focus,select:focus,textarea:focus{border-color:#36bca2;box-shadow:0 0 0 3px #31cca322}label{display:grid;gap:7px;font-weight:650;font-size:12px;color:#526378}small,.muted{color:var(--muted)}.boot{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--muted)}.spin{width:34px;height:34px;border:3px solid #d8ede7;border-top-color:var(--teal);border-radius:100%;animation:rotate 1s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}
.btn{border:1px solid transparent;background:#132e4c;color:white;border-radius:11px;min-height:42px;padding:10px 16px;font-weight:750;display:inline-flex;justify-content:center;align-items:center;gap:8px;white-space:nowrap;transition:filter .15s,transform .15s}.btn:hover{filter:brightness(1.1)}.btn:active{transform:translateY(1px)}.btn-green{background:var(--teal);color:#08382f}.btn-light{background:#ecf4f7;color:#27445d;border-color:#dce9ef}.btn-outline{background:#fff;border-color:#dae4ed;color:#2d485d}.btn-danger{background:#fff1f1;color:#a33d3d}.btn-sm{min-height:34px;padding:8px 11px;font-size:12px}.btn-icon{width:42px;min-width:42px;padding:0;font-size:20px}.eyebrow{font-size:11px;font-weight:850;letter-spacing:.13em;text-transform:uppercase;color:#36ba9e}.chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;background:#e5f8f0;color:#13866f;font-size:11px;font-weight:800}.chip-warn{background:#fff3dd;color:#c18018}.chip-dark{background:#ebf0f7;color:#52657a}.section-desc{color:var(--muted);margin:5px 0 0;line-height:1.5}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.heading h1{font-size:clamp(24px,3vw,32px);letter-spacing:-.045em;margin:0;font-weight:850}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.panel-pad{padding:22px}.row{display:flex;align-items:center;gap:12px}.justify-between{justify-content:space-between}.grow{flex:1}.mini{font-size:12px}.empty{padding:36px;text-align:center;color:var(--muted)}.empty .emoji{display:block;font-size:34px;margin-bottom:8px}
/* Auth */
.auth-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100dvh}.auth-brand{background:radial-gradient(circle at 17% 85%,#23675e55,transparent 35%),linear-gradient(135deg,#0b1b31,#12324d);color:white;display:flex;align-items:center;padding:clamp(30px,7vw,110px);position:relative;overflow:hidden}.auth-brand:after{content:'';position:absolute;border:1px solid #ffffff19;width:650px;height:650px;border-radius:50%;right:-350px;top:-230px;box-shadow:0 0 0 80px #ffffff06,0 0 0 190px #ffffff03}.brandmark{display:inline-flex;align-items:center;gap:11px;font-size:20px;font-weight:850;letter-spacing:-.04em}.brandmark img{width:42px;height:42px}.auth-brand h1{font-size:clamp(38px,4.5vw,68px);letter-spacing:-.065em;line-height:1.06;max-width:570px;margin:50px 0 22px}.auth-brand h1 em{color:#70e3c3;font-style:normal}.auth-brand p{font-size:17px;color:#afc1d0;line-height:1.65;max-width:500px}.feature-line{display:flex;gap:18px;flex-wrap:wrap;margin-top:55px}.feature-line span{padding:9px 13px;border:1px solid #ffffff25;border-radius:50px;font-size:12px;color:#d5e3ea}.auth-form{display:flex;justify-content:center;align-items:center;padding:30px}.auth-box{width:min(430px,100%)}.auth-box h2{font-size:30px;letter-spacing:-.05em;margin:12px 0 7px}.auth-box p{color:#8292a5;margin:0 0 27px;line-height:1.5}.form-stack{display:grid;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.auth-redirect{text-align:center;margin-top:22px;color:#75869a}.auth-redirect button{border:0;background:none;color:#148c78;font-weight:850;padding:3px}.auth-foot{margin-top:37px;color:#9aa8b5;font-size:11px}
/* Shell */
.shell{display:flex;min-height:100vh}.sidebar{background:var(--navy);width:255px;flex:0 0 255px;color:#e1eaf5;padding:30px 17px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brandmark{padding:0 12px;margin-bottom:45px}.workspace-card{background:#ffffff0c;border:1px solid #ffffff12;border-radius:13px;padding:14px;margin:0 5px 29px}.workspace-card .name{font-weight:780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px}.sidebar-heading{padding:7px 15px 12px;color:#718ba5;font-size:10px;letter-spacing:.16em;font-weight:800}.nav{display:grid;gap:5px}.nav button{border:0;background:transparent;color:#9cb0c5;display:flex;gap:13px;align-items:center;text-align:left;padding:13px 15px;border-radius:12px;font-weight:700;width:100%}.nav button:hover{background:#ffffff0c;color:#fff}.nav button.active{background:#25435f;color:#fff;box-shadow:inset 3px 0 var(--teal)}.nav .ico{font-size:18px;width:22px;text-align:center}.sidebar-footer{margin-top:auto;border-top:1px solid #ffffff14;padding:19px 8px 0}.avatar{background:#346184;color:#fff;border-radius:12px;width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;font-weight:850}.user-name{font-size:13px;font-weight:780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}.user-role{font-size:11px;color:#8ea7bf;margin-top:4px}.logout{color:#a9c4d7;border:0;background:transparent;padding:10px;margin:10px 0 0;display:flex;align-items:center;gap:8px}.main{flex:1;min-width:0;padding:36px clamp(22px,4vw,64px) 50px;max-width:1700px;margin-inline:auto}.mobile-top,.bottom-nav{display:none}.hero{background:linear-gradient(115deg,#10334d,#164f58);border-radius:22px;color:#fff;min-height:188px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 36px;margin-bottom:22px;overflow:hidden;position:relative}.hero:after{content:'';position:absolute;width:280px;height:280px;right:-70px;top:-80px;border:30px solid #ffffff0a;border-radius:50%;box-shadow:0 0 0 38px #ffffff06}.hero h2{font-size:25px;letter-spacing:-.04em;margin:9px 0}.hero p{max-width:480px;margin:0;color:#aacccf;line-height:1.6}.hero .hero-emoji{font-size:94px;opacity:.75;position:relative;z-index:1;margin-right:30px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.stat{padding:21px 22px}.stat .top{display:flex;align-items:center;justify-content:space-between;color:#8492a3;font-size:12px;font-weight:700}.stat .em{border-radius:12px;background:#eff7fa;padding:8px;font-size:21px}.stat .value{font-size:clamp(24px,2.5vw,35px);font-weight:870;letter-spacing:-.05em;margin-top:15px}.stat small{display:block;margin-top:6px}.two-cols{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.panel-title{font-size:16px;font-weight:820;letter-spacing:-.02em;margin:0 0 17px}.shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.shortcut{border:1px solid #e5edf3;border-radius:14px;padding:19px 10px;background:#fafcfd;text-align:center;font-weight:740;color:#31465b}.shortcut span{display:block;font-size:30px;margin-bottom:12px}.shortcut:hover{border-color:#79d8c2;background:#f2fcf8}.warn-item{display:flex;align-items:center;justify-content:space-between;padding:11px 0;gap:10px;border-bottom:1px solid #edf1f5}.warn-item:last-child{border:0}.warn-item strong{font-size:13px}
/* Tables, sales */
.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}.toolbar .search{flex:1;min-width:200px;position:relative}.toolbar .search input{padding-left:37px}.search-ico{position:absolute;top:10px;left:13px;font-size:18px;color:#9aabb9}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;min-width:650px}.data-table th{background:#f8fafc;color:#7f8ea1;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:850;padding:14px 18px;white-space:nowrap}.data-table td{padding:16px 18px;border-bottom:1px solid #eef1f5;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table strong{font-size:13px}.data-table .sub{font-size:11px;color:#8b99a9;margin-top:4px}.product-image{width:43px;height:43px;border-radius:12px;background:#e8f5f2;display:grid;place-items:center;overflow:hidden;font-size:20px;flex-shrink:0}.product-image img{width:100%;height:100%;object-fit:cover}.table-action{border:0;background:#eff5f8;padding:8px 11px;border-radius:9px;color:#2a5065}.sale-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(315px,.8fr);gap:18px}.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:11px;max-height:550px;overflow-y:auto;padding:3px}.pick-card{border:1px solid #e5ebf2;border-radius:14px;padding:15px;display:grid;gap:8px;text-align:left;background:#fff;min-height:153px}.pick-card:hover:not(:disabled){border-color:#43c6a2;box-shadow:0 5px 16px #3fcaa41a}.pick-card .tile-emoji{font-size:28px}.pick-card .stock{font-size:11px;color:#8293a4}.cart-item{display:flex;align-items:center;gap:9px;border-bottom:1px solid #edf1f5;padding:13px 0}.cart-item strong{font-size:13px}.qty-step{display:flex;align-items:center;gap:4px;flex-shrink:0}.qty-step button{border:1px solid #dfe7ed;background:#f4f7fa;border-radius:7px;width:29px;height:29px}.qty-step b{min-width:22px;text-align:center}.cart-total{border-top:1px dashed #d9e3ec;margin-top:20px;padding-top:20px;display:flex;justify-content:space-between;align-items:center}.cart-total strong{font-size:28px;letter-spacing:-.05em}.cart-panel{position:sticky;top:18px;align-self:start}.cart-items{max-height:390px;overflow:auto}.kpi-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}.kpi-mini{padding:14px 18px;background:#edf5f8;border-radius:11px;font-weight:750}
/* Modal */
.overlay{position:fixed;inset:0;background:#0618279e;z-index:100;display:flex;justify-content:center;align-items:center;padding:18px;backdrop-filter:blur(4px)}.overlay[hidden]{display:none}.modal{width:min(650px,100%);max-height:min(92vh,880px);overflow-y:auto;background:#fff;border-radius:21px;box-shadow:0 20px 90px #001a3366;padding:27px}.modal-sm{width:min(495px,100%)}.modal h2{font-size:23px;letter-spacing:-.04em;margin:0}.modal .head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:21px}.close{border:0;background:#f1f5f7;border-radius:9px;width:35px;height:35px;font-size:20px;color:#5c7284}.form-row{display:grid;gap:16px;margin:18px 0}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px;border-top:1px solid #eaf0f4;padding-top:17px}.help{font-size:12px;color:#8090a4;line-height:1.6}.scanner-video{width:100%;height:250px;background:#061827;border-radius:14px;object-fit:cover}.scanner-box{position:relative;overflow:hidden;border-radius:14px}.scanner-frame{position:absolute;left:18%;right:18%;top:20%;bottom:20%;border:2px solid #47e8b4;border-radius:14px;pointer-events:none;box-shadow:0 0 0 700px #00000038}.scan-warning{padding:13px;background:#fff5e7;color:#956520;border-radius:12px;margin-bottom:12px}#toast{position:fixed;bottom:25px;right:25px;z-index:110;pointer-events:none}#toast>div{background:#102b43;color:white;padding:14px 19px;border-radius:12px;margin-top:8px;box-shadow:0 12px 32px #09243b3d;max-width:370px;line-height:1.5}#toast .bad{background:#a33c3c}.upload-zone{border:2px dashed #b5d9d3;background:#f3fcf9;border-radius:14px;padding:20px;text-align:center}.upload-zone input{margin:10px auto}.tag{font-size:11px;background:#eef4f7;padding:5px 8px;border-radius:8px;color:#597185}.no-scroll{overflow:hidden}
@media(max-width:1250px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-layout{grid-template-columns:1fr 330px}.hero .hero-emoji{font-size:65px}}
@media(max-width:900px){.sidebar{display:none}.main{padding:22px 18px 100px}.mobile-top{display:flex;align-items:center;justify-content:space-between;background:#10233b;color:white;padding:15px 20px;position:sticky;top:0;z-index:20}.mobile-top .brandmark{font-size:17px}.mobile-top img{width:33px;height:33px}.mobile-user{font-size:11px;color:#b5cbd7;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell{display:block}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;padding:8px 7px calc(8px + env(safe-area-inset-bottom));z-index:20;border-top:1px solid #e6ebef;box-shadow:0 -5px 18px #17395510;justify-content:space-around}.bottom-nav button{background:none;border:0;color:#8795a3;display:grid;justify-items:center;gap:3px;font-size:10px;padding:4px 5px;min-width:55px}.bottom-nav button span{font-size:22px}.bottom-nav .active{color:#0f9981;font-weight:800}.two-cols{grid-template-columns:1fr}.sale-layout{grid-template-columns:1fr}.cart-panel{position:static}.auth-wrap{grid-template-columns:1fr}.auth-brand{display:none}.auth-form{min-height:100dvh}.hero .hero-emoji{display:none}}
@media(max-width:570px){.stat-grid{gap:10px}.stat{padding:16px}.stat .value{font-size:24px}.hero{padding:23px;min-height:auto}.hero h2{font-size:21px}.heading{align-items:flex-start}.heading h1{font-size:25px}.panel-pad{padding:16px}.shortcut-grid{gap:7px}.shortcut{padding:14px 6px;font-size:12px}.shortcut span{font-size:24px}.form-grid{grid-template-columns:1fr}.modal{padding:20px;max-height:93vh}.auth-form{padding:26px}.pick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pick-card{min-height:140px;padding:11px}.btn{padding:10px 12px}.toolbar .search{min-width:100%}#toast{right:12px;left:12px;bottom:85px}#toast>div{max-width:none}}
