:root{--green:#002a65;--deep:#001f4b;--light:#eaeff5;--bg:#f5f6f7;--ink:#171f2b;--muted:#616872;--border:#dce0e6;--red:#ba252b;--gold:#f4d963;--white:#fff}*{box-sizing:border-box}body{margin:0;font:15px/1.6 "Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #d6ae28}button{cursor:pointer;transition:background .18s,transform .18s}button:disabled{opacity:.6;cursor:wait}a{color:inherit;text-decoration:none}button{border:0}h1,h2,h3,p{margin:0}h2{font-size:28px;line-height:1.3;letter-spacing:-.7px}h3{font-size:18px}label{display:block;font-weight:600;margin:18px 0 6px}input,select,textarea{width:100%;padding:12px 14px;border:1px solid #cbd0d8;border-radius:9px;background:white;color:var(--ink);min-height:46px}input:focus,select:focus,textarea:focus{border-color:var(--green);outline:2px solid #b5c6dd}textarea{resize:vertical}small{font-size:12px}.primary,.secondary,.danger{min-height:44px;padding:11px 20px;border-radius:8px;font-weight:600}.primary{background:var(--green);color:white}.primary:hover{background:var(--deep)}.secondary{background:var(--light);color:var(--deep)}.secondary:hover{background:#d8e1ed}.danger{background:#fff0f0;color:var(--red)}.wide{width:100%}.link{background:transparent;color:var(--green);padding:12px 0;min-height:44px}.error{color:var(--red);margin:12px 0;min-height:24px}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.8px}.green{color:var(--green)}.auth{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr}.auth-story{background:var(--deep);color:white;padding:48px 50px 28px;display:flex;flex-direction:column;justify-content:space-between;gap:35px}.brand{display:flex;align-items:center;gap:12px;color:var(--deep);font-size:10px;letter-spacing:1px;font-weight:650}.brand strong{display:block;font-size:25px;line-height:1.25;letter-spacing:0}.brand small{font-size:9px;display:block;color:var(--red);margin-top:4px}.brand.white{color:white}.brand.white small{color:#ccd7e7}.brand-mark{font-weight:750;font-size:32px;border:2px solid currentColor;border-radius:50%;width:64px;height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;letter-spacing:-3px}.brand-mark span{font-size:7px;letter-spacing:0;margin-top:3px}.story-copy{max-width:590px;margin-top:25px}.story-copy h1{font-size:clamp(32px,3.2vw,49px);line-height:1.18;letter-spacing:-1.8px;margin:20px 0}.story-copy p{color:#d4dce7;max-width:440px}.auth-story img{width:100%;height:auto;display:block;border-radius:14px;border:1px solid #ffffff40}.story-footer{display:flex;justify-content:space-between;font-size:12px;color:#d4dce7;gap:12px}.story-footer b{color:var(--gold);margin-left:8px}.story-footer strong{font-size:16px;color:white}.auth-panel{display:flex;justify-content:center;align-items:center;flex-direction:column;padding:40px;background:white;position:relative}.auth-card{width:100%;max-width:390px}.auth-card h2{font-size:32px;margin:15px 0 10px}.auth-card>p{color:var(--muted);margin-bottom:30px}.auth-card .primary{display:flex;justify-content:space-between;margin-top:15px}.auth-card .link{margin:15px 0}.auth-note{border-top:1px solid var(--border);padding-top:22px;font-size:12px;color:var(--muted);text-align:center}.copyright{font-size:11px;color:var(--muted);margin-top:70px}.sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:30px 20px;z-index:10}.sidebar .brand{padding:0 6px 30px}.sidebar .brand strong{font-size:23px}.sidebar .brand-mark{width:55px;height:55px;font-size:29px}.nav-label{font-size:10px;color:#7b828b;letter-spacing:1.5px;margin:18px 12px 10px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:9px;color:var(--muted);margin:5px 0;font-weight:600}.nav-item svg{width:20px;height:20px;flex:none}.nav-item.active{background:var(--green);color:white}.nav-item:hover:not(.active){background:var(--light);color:var(--green)}.sidebar-bottom{margin-top:auto}.support{background:var(--light);border-radius:12px;padding:17px;display:flex;flex-direction:column;color:var(--deep)}.support span{font-size:12px}.support strong{font-size:21px;margin:3px 0}.support small{color:var(--muted)}.sidebar-bottom>.link{margin-left:13px;margin-top:12px}.workspace{margin-left:250px;min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;justify-content:space-between;align-items:center;padding:22px 36px;background:white;border-bottom:1px solid var(--border);gap:12px}.crumb{font-size:11px;color:var(--muted)}.top-title{font-size:18px;font-weight:650}.user-chip{background:transparent;display:flex;align-items:center;gap:10px;text-align:left;min-height:44px}.user-chip>span{width:40px;height:40px;border-radius:50%;background:var(--light);color:var(--green);display:grid;place-items:center;font-weight:700}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:13px}.user-chip small{color:var(--muted)}main{padding:25px 36px 40px;flex:1;max-width:1800px;width:100%;margin:auto}.sync-banner{font-size:12px;background:#fff8e7;border:1px solid #e9dba9;color:#6e5617;border-radius:8px;padding:10px 14px;margin-bottom:25px}.sync-banner.fresh{background:var(--light);border-color:#cfd8e5;color:var(--deep)}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:5px 0 25px}.page-head p{color:var(--muted);margin-top:6px;font-size:13px}.hero{background:var(--deep);border-radius:16px;color:white;padding:30px;margin-bottom:25px;position:relative;overflow:hidden}.hero:after{content:'+';position:absolute;right:25px;top:-50px;font-size:240px;font-weight:700;line-height:1;color:#ffffff0c;pointer-events:none}.hero h2{margin:10px 0;font-size:30px;max-width:650px}.hero p{color:#d0dae7;max-width:600px;font-size:13px}.hero .eyebrow{color:var(--gold)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--border);border-radius:12px;padding:20px}.stat .label{font-size:12px;color:var(--muted)}.stat .value{font-size:28px;line-height:1.25;font-weight:700;letter-spacing:-1px;margin:12px 0 6px;overflow-wrap:anywhere}.stat small{color:var(--muted)}.stat.accent{background:var(--light);border-color:#b7c6da}.panel{background:white;border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.panel-head p{color:var(--muted);font-size:12px}.two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.empty{padding:45px 20px;text-align:center;color:var(--muted)}.empty svg{width:45px;height:45px;color:#8594a8;margin-bottom:12px}.empty h3{color:var(--ink);margin-bottom:8px}.empty p{max-width:520px;margin:auto;font-size:13px}.filters{display:flex;gap:12px;margin-bottom:22px}.filters input{flex:1}.filters select{width:240px}.catalog-layout{display:grid;grid-template-columns:215px 1fr;gap:22px}.categories{background:white;border:1px solid var(--border);border-radius:12px;padding:17px;height:fit-content}.categories h3{font-size:14px;margin-bottom:13px}.category{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;padding:10px;border-radius:7px;background:none;gap:6px;font-size:12px;min-height:44px}.category.active{background:var(--light);color:var(--deep);font-weight:700}.category small{background:var(--bg);border-radius:5px;padding:0 5px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product-card{padding:18px;background:white;border:1px solid var(--border);border-radius:12px;display:flex;flex-direction:column;gap:10px}.product-symbol{height:100px;background:var(--light);border-radius:8px;display:grid;place-items:center;color:#7589a5}.product-symbol svg{width:44px;height:44px}.product-card h3{font-size:15px;line-height:1.45}.product-card .code{font-size:11px;color:var(--muted)}.product-card .category-label{font-size:10px;letter-spacing:.5px;color:var(--green)}.product-card .price{font-size:21px;font-weight:750;color:var(--green);margin-top:auto}.product-card .stock{font-size:12px;color:var(--muted)}.product-card .actions{display:flex;gap:8px}.product-card .actions button{flex:1;font-size:12px;padding:9px}.pagination{display:flex;justify-content:space-between;align-items:center;margin:23px 0;gap:10px;font-size:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{background:#f6f7f9;color:var(--muted);font-size:11px;font-weight:600;padding:12px 14px;white-space:nowrap}td{padding:15px 14px;border-bottom:1px solid #edeff1;vertical-align:middle}td input{width:95px}td .link{padding:0;font-weight:600}td small{display:block;color:var(--muted)}.badge{background:var(--light);color:var(--deep);font-size:11px;padding:5px 9px;border-radius:5px;white-space:nowrap}.badge.pending{background:#fff5d8;color:#806315}.total{display:flex;justify-content:space-between;padding:18px 0;font-size:20px;font-weight:700}.notice{background:#fff8e7;border-radius:8px;padding:14px;font-size:12px;color:#6e5617;margin:15px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.span2{grid-column:1/-1}.app-footer{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding:20px 36px;color:var(--muted);font-size:10px;letter-spacing:.7px}dialog{border:1px solid var(--border);border-radius:16px;width:min(650px,92vw);max-height:90vh;padding:25px;color:var(--ink)}dialog::backdrop{background:#000b1b80}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-head h2{font-size:22px}.icon-button{background:var(--light);border-radius:8px;width:44px;height:44px;font-size:25px;color:var(--deep)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--deep);color:white;padding:12px 22px;border-radius:10px;z-index:100;display:none;max-width:90vw}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.detail-list span{font-size:12px;color:var(--muted);display:block}.detail-list strong{font-size:15px}.bar-chart{display:flex;gap:9px;height:190px;align-items:flex-end;padding-top:20px;overflow:auto}.bar-column{min-width:28px;flex:1;text-align:center;font-size:10px;color:var(--muted)}.bar{background:var(--green);border-radius:5px 5px 0 0;min-height:2px;margin-bottom:6px}.loading{padding:65px;text-align:center;color:var(--muted)}@media(min-width:1600px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){.sidebar{width:215px;padding:25px 14px}.workspace{margin-left:215px}main{padding:22px}.topbar{padding:20px 22px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-layout{grid-template-columns:180px 1fr}.two-col{grid-template-columns:1fr}.auth-story{padding:35px}}@media(max-width:760px){.auth{grid-template-columns:1fr}.auth-story{padding:25px;gap:20px}.story-copy{margin-top:0}.story-copy h1{font-size:30px}.auth-story img{display:none}.story-footer{display:none}.auth-panel{padding:35px 24px}.copyright{margin-top:30px}.sidebar{position:static;width:auto;padding:18px 16px 8px;border-right:0;border-bottom:1px solid var(--border)}.sidebar .brand{padding:0}.sidebar .brand strong{font-size:21px}.sidebar .brand-mark{width:47px;height:47px;font-size:25px}.nav-label,.sidebar-bottom{display:none}#nav{display:flex;overflow:auto;gap:6px;margin-top:16px}.nav-item{white-space:nowrap;padding:10px;font-size:12px;gap:6px}.nav-item svg{width:17px}.workspace{margin-left:0}.topbar{padding:15px 18px}.top-title{font-size:14px}.user-chip strong{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}main{padding:18px 15px}.page-head{align-items:flex-start}.page-head h2{font-size:24px}.page-head .primary{font-size:12px}.hero{padding:23px}.hero h2{font-size:25px}.stats{gap:10px}.stat{padding:15px}.stat .value{font-size:23px}.catalog-layout{grid-template-columns:1fr}.categories{max-height:210px;overflow:auto}.product-grid{gap:10px}.product-card{padding:12px}.product-card h3{font-size:13px}.product-card .price{font-size:18px}.product-card .actions{flex-direction:column}.filters{flex-wrap:wrap}.filters select{width:100%}.panel{padding:16px}.app-footer{padding:18px;gap:12px}.app-footer span:last-child{display:none}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.detail-list{grid-template-columns:1fr}.story-copy .eyebrow{font-size:9px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.two-col{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.panel,.catalog-layout>section{min-width:0}.bar-column{min-width:10px}.brand-mark{flex-shrink:0}.sidebar .brand strong{font-size:21px;white-space:nowrap}.brand>div{min-width:0}@media(max-width:1200px){.two-col{grid-template-columns:minmax(0,1fr)}.sidebar .brand{gap:8px}.sidebar .brand strong{font-size:18px}}

.brand-mark{--logo-size:64px;width:var(--logo-size);height:var(--logo-size);border:0;font-size:0!important;color:transparent;background-image:url('/assets/thanh-do-logo.png');background-repeat:no-repeat;background-size:calc(var(--logo-size)*7.646) auto;background-position:calc(var(--logo-size)*-.378) calc(var(--logo-size)*-.197);background-color:white}.brand-mark span{display:none}.sidebar .brand-mark{--logo-size:55px}@media(max-width:760px){.sidebar .brand-mark{--logo-size:47px}}
