:root{--navy:#111d3d;--navy2:#18264d;--blue:#2563eb;--blue-light:#eaf1ff;--bg:#f5f7fb;--line:#e6eaf0;--text:#17243a;--muted:#8190a5;--green:#16a578;--red:#e75c5c;--orange:#ef9b38;--radius:14px;--shadow:0 8px 28px rgba(24,43,79,.04)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 'Be Vietnam Pro',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}
.app-shell{display:flex;min-height:100vh}.sidebar{width:240px;flex:0 0 240px;background:var(--navy);color:#c6d0e2;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;z-index:20}.brand{height:78px;display:flex;align-items:center;gap:12px;padding:0 24px;color:white}.brand-mark{width:37px;height:37px;border-radius:11px;background:#3677f5;display:grid;place-items:center;font-weight:800;font-size:24px;box-shadow:0 8px 18px #0a3fb370}.brand strong{font-size:20px;letter-spacing:.04em;display:block;line-height:1}.brand small{font-size:9px;letter-spacing:.12em;color:#94a7c8;font-weight:700}.store-switch{margin:8px 14px 29px;padding:11px;background:#203056;border:1px solid #304166;border-radius:11px;display:flex;align-items:center;gap:10px}.store-icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:#354971;color:#dce8ff;font-size:19px}.store-switch strong,.sidebar-bottom strong{color:white;display:block;font-size:11px}.store-switch small,.sidebar-bottom small{font-size:10px;color:#91a2c2}.chevron{margin-left:auto}.nav-title{padding:0 26px;margin-bottom:9px;font-size:10px;letter-spacing:.12em;color:#7789aa;font-weight:700}.in-nav{margin:26px 0 9px}.sidebar nav{padding:0 12px;flex:1;overflow:auto}.nav-item{height:43px;width:100%;border:0;background:none;color:#aebcd2;border-radius:9px;display:flex;align-items:center;text-align:left;gap:13px;padding:0 14px;font-weight:600;font-size:12px;margin:2px 0}.nav-item:hover{background:#25365c;color:white}.nav-item.active{background:#2b57ae;color:white;box-shadow:inset 3px 0 #68a3ff}.nav-icon{font-size:20px;font-weight:400;line-height:1;width:22px;text-align:center}.nav-count{margin-left:auto;padding:0 7px;border-radius:12px;background:#314266;font-size:10px}.sidebar-bottom{margin:16px;padding:14px;border-top:1px solid #293a60;display:flex;align-items:center;gap:10px}.help-badge{width:30px;height:30px;border-radius:50%;background:#2a3d65;display:grid;place-items:center;color:#cddcff;font-weight:700}
.main-wrap{flex:1;min-width:0}.topbar{height:68px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;justify-content:space-between}.breadcrumb{display:flex;gap:10px;color:#8b99aa;font-size:12px}.breadcrumb strong{color:#2a3851;font-weight:700}.crumb-sep{color:#b6c0ce}.top-actions{display:flex;align-items:center;gap:17px}.today{font-size:11px;color:#708199}.icon-btn{border:0;background:none;font-size:24px;color:#7183a0;line-height:1;padding:6px}.avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#e7edff;color:#3059bc;font-size:11px;font-weight:800;border:2px solid white;box-shadow:0 0 0 1px #d8e1f2}.mobile-menu{display:none}
main{padding:31px 32px 60px;max-width:1600px;margin:0 auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:26px}.eyebrow{text-transform:uppercase;color:#7184a4;font-size:10px;font-weight:700;letter-spacing:.13em;margin-bottom:5px}.page-head h1{font-size:25px;line-height:1.3;letter-spacing:-.025em;margin:0;font-weight:800}.page-head p{color:#8593a8;font-size:12px;margin:6px 0 0}.head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid transparent;padding:10px 15px;border-radius:9px;font-weight:700;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:38px}.btn-primary{background:var(--blue);color:white;box-shadow:0 6px 13px #2662e82b}.btn-primary:hover{background:#1b54d3}.btn-light{background:#fff;color:#4f617a;border-color:#dfe5ed}.btn-light:hover{border-color:#aac0e2}.btn-danger{background:#fff0f0;color:#cf4a4a;border-color:#ffd8d8}.btn-sm{padding:7px 10px;min-height:30px}.btn-icon{font-size:17px;line-height:0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:20px}.stat-card,.card{background:white;border:1px solid #ebeff4;border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:19px 19px 17px;min-height:130px;position:relative}.stat-label{font-size:11px;color:#8492a7;font-weight:600}.stat-value{font-size:24px;font-weight:800;margin:8px 0 3px;letter-spacing:-.03em}.stat-note{font-size:10px;color:#8b98a9}.stat-icon{position:absolute;right:17px;top:18px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eaf1ff;color:#3572eb;font-size:18px}.stat-card.green .stat-icon{background:#e8f8f1;color:#19a778}.stat-card.orange .stat-icon{background:#fff3e7;color:#ec9439}.stat-card.purple .stat-icon{background:#f1edff;color:#8a69df}.trend{color:var(--green);font-weight:700}.trend.down{color:var(--red)}
.dash-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr);gap:19px;margin-bottom:20px}.card{padding:20px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.card-head h2{font-size:15px;margin:0;font-weight:800}.card-head small,.card-head a{font-size:10px;color:#7f91aa}.chart{height:205px;display:flex;align-items:end;gap:13px;padding:14px 8px 0;border-bottom:1px solid #e8edf4;background:repeating-linear-gradient(to top,transparent 0,transparent 47px,#f0f3f7 48px)}.bar-wrap{flex:1;height:100%;display:flex;align-items:end;position:relative}.bar{width:100%;max-width:42px;margin:auto;border-radius:6px 6px 0 0;background:linear-gradient(#86aafa,#3474ec);min-height:3px;transition:height .3s}.bar:hover{background:#1458dc}.chart-labels{display:flex;gap:13px;padding:10px 8px 0}.chart-labels span{flex:1;text-align:center;color:#a0abbb;font-size:10px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-action{padding:15px 12px;border:1px solid #e7edf5;background:#fff;border-radius:10px;text-align:left;color:#43536d;min-height:75px}.quick-action:hover{background:#f6f9ff;border-color:#bcd0f7}.quick-action span{font-size:23px;color:#3470e8;display:block;line-height:1;margin-bottom:8px}.quick-action strong{font-size:11px}.low-list{display:grid;gap:12px}.low-row{display:flex;align-items:center;gap:10px}.mini-image,.product-img{display:grid;place-items:center;background:#edf3ff;border-radius:9px;color:#3b6db3}.mini-image{width:37px;height:37px;font-size:19px}.low-row strong{display:block;font-size:10px}.low-row small{color:#8b98a9;font-size:10px}.low-row .stock{margin-left:auto;color:#e4923b;font-size:10px;font-weight:700}
.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap}.data-table th{background:#f8fafc;text-align:left;font-size:10px;color:#8b99ab;font-weight:700;padding:11px 15px}.data-table td{border-bottom:1px solid #edf0f4;padding:13px 15px;font-size:11px;color:#46536a}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#fafcff}.data-table td strong{color:#223552}.linkish{color:#2563eb!important;font-weight:700;cursor:pointer}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:700}.badge:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.badge.success{color:#159b70;background:#e9f8f1}.badge.pending{color:#dc8c2b;background:#fff4e7}.badge.cancelled{color:#ce5962;background:#fff0f1}.badge.blue{color:#386bde;background:#ebf1ff}.empty{text-align:center;color:#98a4b6;padding:34px!important}.table-footer{padding-top:14px;color:#91a0b2;font-size:10px;border-top:1px solid #edf0f4;margin-top:4px}
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:17px}.searchbox{position:relative;min-width:260px;flex:1;max-width:440px}.searchbox span{position:absolute;left:13px;top:8px;font-size:19px;color:#95a5b9}.searchbox input{width:100%;padding:10px 12px 10px 38px;border:1px solid #dfe5ed;background:white;border-radius:9px;outline:none;font-size:11px;height:39px}.searchbox input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#78a5f4;box-shadow:0 0 0 3px #eaf1ff}.filter-select{border:1px solid #dfe5ed;background:white;border-radius:9px;height:39px;padding:0 30px 0 13px;color:#63728b;font-size:11px;outline:none}.segmented{display:flex;gap:5px;background:#edf1f7;border-radius:9px;padding:4px}.segment{border:0;background:transparent;color:#8090a4;font-size:10px;font-weight:700;padding:7px 12px;border-radius:6px}.segment.active{background:white;color:#2c62c9;box-shadow:0 2px 5px #263c6416}.toolbar-right{margin-left:auto}
.product-name{display:flex;align-items:center;gap:11px}.product-img{width:42px;height:42px;font-size:21px}.product-name strong{display:block}.product-name small{display:block;color:#97a3b3;font-size:10px}.muted{color:#92a0b1}.low-text{color:#df8c34;font-weight:700}.ok-text{color:#159b70;font-weight:700}.danger-text{color:#df5c5c;font-weight:700}.row-actions{display:flex;gap:7px}.text-btn{border:0;background:none;color:#3670df;font-weight:700;font-size:10px;padding:5px}.text-btn.red{color:#d35a61}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:19px;align-items:start}.category-list{display:flex;gap:7px;overflow:auto;margin-bottom:18px}.category-chip{border:1px solid #e2e8f0;background:white;color:#708099;border-radius:20px;padding:7px 13px;font-size:10px;font-weight:700;white-space:nowrap}.category-chip.active{background:#e9f1ff;border-color:#bcd3ff;color:#2361d5}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:13px}.product-card{border:1px solid #e6ebf2;background:white;border-radius:12px;padding:13px;text-align:left;transition:.15s;min-height:171px}.product-card:hover{transform:translateY(-2px);border-color:#a9c4f8;box-shadow:0 8px 20px #2459bc15}.product-card:disabled{opacity:.5}.product-art{height:73px;border-radius:9px;background:linear-gradient(135deg,#f1f5ff,#e6edfa);display:grid;place-items:center;font-size:38px;margin-bottom:10px}.product-card strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card small{display:block;color:#9ba8b8;font-size:9px;margin:1px 0 5px}.product-card b{font-size:12px;color:#1c5dd3}.cart-card{position:sticky;top:85px;padding:0;overflow:hidden}.cart-head{padding:18px 18px 12px;display:flex;justify-content:space-between;align-items:center}.cart-head h2{font-size:15px;margin:0}.cart-body{padding:0 18px;max-height:320px;overflow:auto;min-height:100px}.cart-empty{text-align:center;padding:35px 8px;color:#9aa8b8;font-size:11px}.cart-empty span{display:block;font-size:38px;margin-bottom:8px}.cart-line{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #f0f2f6}.cart-line .mini-image{flex:0 0 36px}.cart-line-main{flex:1;min-width:0}.cart-line-main strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-line-main small{color:#7b8da5;font-size:10px}.qty{display:flex;align-items:center;gap:8px;margin-top:5px}.qty button{width:21px;height:21px;border:1px solid #dfe7f2;background:#fff;border-radius:5px;font-size:14px;line-height:1}.qty span{font-size:10px}.cart-line-price{font-size:10px;font-weight:700;white-space:nowrap}.cart-line-price button{display:block;margin-left:auto;border:0;background:none;color:#a5b0c0}.cart-controls{padding:16px 18px;border-top:1px solid #eef1f5}.cart-summary{padding:15px 18px;background:#f9fbff;border-top:1px solid #eef1f5}.summary-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#728199;margin:8px 0}.summary-row strong{color:#263750}.summary-row.total{border-top:1px dashed #dce3ed;padding-top:13px;margin-top:13px;font-weight:800;color:#233554}.summary-row.total strong{font-size:20px;color:#2462df}.checkout-wrap{padding:16px 18px}.checkout-wrap .btn{width:100%;height:43px;font-size:12px}
.field{display:grid;gap:6px;margin-bottom:13px}.field label{font-size:10px;font-weight:700;color:#63758f}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe6ef;background:white;border-radius:8px;padding:10px 11px;outline:none;color:#263750;font-size:11px}.field textarea{resize:vertical;min-height:66px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-help{font-size:9px;color:#98a5b4}.payment-options{display:flex;gap:7px}.pay-option{flex:1;border:1px solid #dfe6ef;background:white;border-radius:8px;padding:10px 7px;text-align:center;font-size:10px;color:#687b96;font-weight:700}.pay-option.active{border-color:#3475ed;background:#eef4ff;color:#235fd6}.pay-option span{display:block;font-size:18px;line-height:1;margin-bottom:5px}
.report-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:19px}.rank-row{display:flex;align-items:center;gap:12px;margin:13px 0}.rank-no{font-size:11px;color:#91a1b7;width:18px}.rank-track{height:6px;border-radius:8px;background:#edf2f8;margin-top:6px}.rank-fill{height:100%;border-radius:8px;background:#5892f0}.rank-main{flex:1}.rank-main strong{font-size:10px}.rank-row b{font-size:10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.settings-note{background:#eef4ff;color:#55709c;border-radius:10px;padding:12px;font-size:10px;margin-top:9px}.settings-actions{display:flex;gap:9px;flex-wrap:wrap}.notice{padding:11px 13px;background:#fff6e8;color:#a36a23;border-radius:9px;font-size:10px;margin-bottom:18px}
.modal-backdrop{position:fixed;inset:0;background:#0e1d3b88;z-index:50;display:flex;align-items:center;justify-content:center;padding:18px}.modal{width:min(100%,510px);max-height:92vh;overflow:auto;background:white;border-radius:16px;box-shadow:0 24px 80px #0b193b33}.modal.wide{width:min(100%,650px)}.modal-head{padding:20px 22px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between}.modal-head h2{font-size:17px;margin:0}.close-btn{border:0;background:#f3f6fa;color:#789;border-radius:7px;width:27px;height:27px;font-size:19px}.modal-content{padding:21px 22px}.modal-foot{padding:16px 22px;border-top:1px solid #edf0f5;display:flex;justify-content:flex-end;gap:8px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:16px}.detail-box{background:#f7f9fc;padding:12px;border-radius:8px}.detail-box small{display:block;color:#8e9baf;font-size:9px}.detail-box strong{font-size:11px}.detail-lines{border-top:1px solid #edf0f5;padding-top:12px}.detail-line{display:flex;justify-content:space-between;font-size:11px;margin:10px 0}.detail-total{font-size:17px;font-weight:800;color:#2462df}.toast{position:fixed;bottom:24px;right:24px;background:#14254b;color:white;padding:13px 17px;border-radius:9px;box-shadow:0 10px 25px #13234e33;z-index:100;font-size:11px;max-width:330px}.toast.error{background:#bd4754}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:minmax(0,1fr) 330px}}@media(max-width:960px){.sidebar{position:fixed;left:-260px;transition:left .2s}.sidebar.open{left:0}.mobile-menu{display:block}.topbar{padding:0 20px}.dash-grid,.report-grid,.settings-grid{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}.cart-card{position:static}main{padding:25px 20px 50px}}@media(max-width:600px){.topbar{height:59px}.today{display:none}main{padding:22px 14px 45px}.page-head{align-items:stretch;flex-direction:column}.page-head h1{font-size:22px}.stats-grid{gap:10px}.stat-card{padding:15px;min-height:116px}.stat-value{font-size:19px}.stat-icon{position:static;margin-bottom:5px;width:28px;height:28px;font-size:15px}.stat-label{font-size:10px}.stat-note{font-size:9px}.toolbar{align-items:stretch}.searchbox{max-width:none;width:100%;min-width:0}.toolbar-right{margin-left:0}.field-row{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:15px}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:16px 16px 0 0;max-height:95vh}.head-actions .btn{flex:1}}
.customer-picker{position:relative}.customer-picker-row{display:flex;gap:7px}.customer-picker-row input{min-width:0;flex:1}.customer-picker-row .btn{flex:0 0 auto;padding:7px 10px}.customer-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:12;max-height:240px;overflow:auto;background:white;border:1px solid #dfe6ef;border-radius:9px;box-shadow:0 12px 28px #17243a1f;padding:5px}.customer-options[hidden]{display:none}.customer-option{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:1px;border:0;border-radius:6px;background:white;padding:9px 10px;text-align:left;color:#263750}.customer-option:hover,.customer-option:focus{background:#eef4ff}.customer-option strong{font-size:11px}.customer-option small{font-size:10px;color:#7b8da5}.customer-no-match{padding:10px;font-size:10px;color:#8593a8}
@media(max-width:380px){.customer-picker-row{flex-wrap:wrap}.customer-picker-row input{flex-basis:100%}.customer-picker-row .btn{width:100%}}
.pos-main{display:grid;gap:18px}.pos-panel{padding:0;overflow:visible}.pos-panel-head{padding:16px 18px;border-bottom:1px solid #edf0f4}.pos-panel-head h2{margin:0;font-size:14px}.pos-panel .customer-picker{margin:16px 18px 0}.customer-searchbox{position:relative;flex:1;min-width:0}.customer-searchbox>span{position:absolute;left:12px;top:7px;color:#9aa8b8;font-size:20px}.customer-searchbox input{width:100%;height:39px;border:1px solid #dfe6ef;border-radius:8px;padding:9px 11px 9px 37px;outline:none;font-size:11px}.customer-searchbox input:focus{border-color:#78a5f4;box-shadow:0 0 0 3px #eaf1ff}.pos-panel .customer-options{top:42px}.customer-state{min-height:142px;display:flex;align-items:center;justify-content:center;gap:14px;margin:10px 18px 16px;border:1px dashed #e2e8f0;border-radius:9px;text-align:center;color:#9aa7b8}.customer-state>span{font-size:34px;color:#cbd5e2}.customer-state p{margin:0;font-size:11px}.customer-state small{font-size:10px;color:#9aa7b8}.customer-state.selected{min-height:100px;justify-content:flex-start;text-align:left;padding:18px;background:#f7faff;border-color:#cddcf7;color:#263750}.customer-state.selected strong,.customer-state.selected small{display:block}.customer-state.selected strong{font-size:13px}.customer-state.selected small{font-size:11px;color:#7b8da5}.pos-product-search{display:flex;align-items:center;gap:12px;padding:16px 18px 10px}.pos-product-search .searchbox{max-width:none}.pos-search-hint{font-size:10px;color:#99a8ba;white-space:nowrap}.pos-panel .category-list{padding:0 18px;margin:0 0 8px}.pos-product-list{max-height:380px;overflow:auto}.pos-product-row{display:flex;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid #f0f2f6}.pos-product-row:hover{background:#fafcff}.pos-product-name{flex:1;min-width:0}.pos-product-name strong,.pos-product-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-product-name strong{font-size:11px}.pos-product-name small{font-size:10px;color:#8b98a9}.pos-product-row>b{font-size:11px;color:#235fd6;white-space:nowrap}.pos-service-link{border-top:1px solid #e9edf3;padding:12px 18px}.pos-service-link button{border:0;background:none;color:#1671e9;font-weight:700;font-size:11px;padding:0}.pos-service-link button:hover{text-decoration:underline}
@media(max-width:600px){.pos-product-search{align-items:stretch;flex-direction:column}.pos-search-hint{display:none}.pos-product-row{gap:8px;padding:11px 13px}.pos-product-row .mini-image{display:none}.pos-product-row>b{font-size:10px}.customer-state{min-height:110px}}
[hidden]{display:none!important}
#auth-root{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#0b1836,#173a70)}
.auth-card{width:min(100%,430px);background:#fff;border-radius:16px;box-shadow:0 22px 60px #06112555;padding:34px}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:34px}.auth-brand strong,.auth-brand small{display:block}.auth-brand strong{font-size:20px;color:#17345e}.auth-brand small{font-size:11px;color:#8291a5}
.auth-card h1{font-size:25px;color:#183150;margin:0 0 8px}.auth-card>p{color:#78899e;font-size:13px;line-height:1.5;margin:0 0 25px}
.auth-field{display:block;margin:15px 0}.auth-field span{display:block;color:#344862;font-size:12px;font-weight:600;margin-bottom:7px}.auth-field input{width:100%;height:44px;border:1px solid #dbe3ed;border-radius:8px;padding:0 13px;font:inherit;font-size:13px;outline:0}.auth-field input:focus{border-color:#4187ed;box-shadow:0 0 0 3px #e7f0ff}.auth-submit{width:100%;min-height:44px;margin-top:9px}.auth-error{min-height:18px;color:#c63141;font-size:11px;margin:8px 0 0}
.account-label{display:flex;flex-direction:column;text-align:right;line-height:1.3}.account-label strong{font-size:11px;color:#263b56}.account-label small{font-size:10px;color:#8999ad}.top-actions .avatar{border:0;cursor:pointer;font-weight:700}
@media(max-width:700px){.account-label{display:none}.auth-card{padding:25px}}
.pagination{display:flex;align-items:center;gap:8px}.pagination span{white-space:nowrap}.order-source{font-size:11px;line-height:1.6;margin:0 0 14px}
@media(max-width:620px){.table-footer{flex-wrap:wrap;gap:8px}.pagination{width:100%;justify-content:space-between}}
