:root{--forest:#183f35;--forest-2:#245748;--sage:#7f9c7c;--mint:#e8f0e9;--cream:#f6f4ed;--paper:#fffefa;--ink:#202923;--muted:#788179;--line:#e9ebe5;--amber:#b67b2c;--blue:#477897;--rose:#a85e61;--shadow:0 12px 35px rgba(35,55,44,.07)}
*{box-sizing:border-box}body{margin:0;font-family:"Be Vietnam Pro",sans-serif;background:var(--cream);color:var(--ink);font-size:14px}.app-shell{display:flex;min-height:100vh}.sidebar{width:268px;background:var(--forest);color:white;display:flex;flex-direction:column;padding:26px 18px 18px;position:fixed;inset:0 auto 0 0;z-index:50;transition:.25s ease}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 26px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-mark{width:43px;height:43px;border-radius:50% 50% 48% 52%;display:grid;place-items:center;background:#d9c9a0;color:var(--forest);font-family:"DM Serif Display";font-size:25px;box-shadow:inset 0 0 0 4px rgba(255,255,255,.28)}.brand strong{font-family:"DM Serif Display";font-size:23px;font-weight:400;letter-spacing:.5px;display:block}.brand span{display:block;font-size:8px;letter-spacing:1.6px;color:#b8c8be;margin-top:2px}.nav{padding-top:15px;flex:1}.nav-label{font-size:9px;letter-spacing:1.5px;color:#839e90;margin:20px 13px 8px}.nav-item,.collapse-btn{width:100%;border:0;background:none;color:#c6d2ca;display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:9px;font:500 12.5px "Be Vietnam Pro";cursor:pointer;text-align:left;position:relative}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.1);color:white}.nav-item.active:before{content:"";position:absolute;left:-18px;width:3px;height:24px;background:#d5bb7a;border-radius:0 3px 3px 0}.nav-item .icon,.collapse-btn .icon{width:18px;height:18px}.nav-badge{margin-left:auto;color:white;background:#bc765d;font-size:9px;padding:3px 7px;border-radius:10px}.alert-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:#d6a84c}.sidebar-card{padding:15px;background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.08);border-radius:12px;margin-top:10px}.sidebar-card .leaf{color:#dfc27f;font-size:18px}.sidebar-card strong{font-family:"DM Serif Display";font-size:16px;font-weight:400}.sidebar-card p{color:#9fb2a7;font-size:10px;line-height:1.6;margin:5px 0 0}.collapse-btn{margin-top:8px;color:#91a89b}.main{margin-left:268px;min-width:0;flex:1}.topbar{height:78px;background:rgba(255,254,250,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;position:sticky;top:0;z-index:40}.search-wrap{display:flex;align-items:center;width:min(445px,45vw);position:relative}.search-wrap .icon{position:absolute;left:14px;width:17px;color:#919991}.search-wrap input{width:100%;height:41px;border:1px solid #e6e8e2;background:#f7f7f3;border-radius:9px;padding:0 52px 0 42px;font:400 12px "Be Vietnam Pro";outline:none}.search-wrap input:focus{border-color:#8eaa94;background:white;box-shadow:0 0 0 3px rgba(73,113,91,.1)}kbd{position:absolute;right:10px;border:1px solid #dfe2dc;background:white;border-radius:5px;padding:3px 7px;color:#899087;font:10px sans-serif}.top-actions{margin-left:auto;display:flex;align-items:center;gap:15px}.icon-btn{position:relative;width:39px;height:39px;border-radius:50%;border:1px solid var(--line);background:white;display:grid;place-items:center;cursor:pointer;color:#5d675f}.icon-btn .icon{width:18px}.notification-dot{position:absolute;top:6px;right:7px;width:7px;height:7px;border:2px solid white;border-radius:50%;background:#c67b5a}.user-menu-wrap{position:relative}.user-menu{display:flex;align-items:center;gap:9px;border:0;background:none;cursor:pointer;padding:5px}.avatar{width:37px;height:37px;background:linear-gradient(145deg,#d9c8a4,#b89562);border-radius:50%;display:grid;place-items:center;color:white;font:600 11px "Be Vietnam Pro"}.user-copy{text-align:left}.user-copy strong,.user-copy span{display:block}.user-copy strong{font-size:11px}.user-copy span{font-size:9px;color:#969d96;margin-top:3px}.chevron{width:14px;color:#929892}.dropdown{position:absolute;right:0;top:54px;width:225px;background:white;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);padding:8px;display:none}.dropdown.open{display:block}.dropdown-email{font-size:10px;color:var(--muted);padding:10px;border-bottom:1px solid var(--line);margin-bottom:5px;overflow:hidden;text-overflow:ellipsis}.dropdown button{display:block;width:100%;text-align:left;border:0;background:none;padding:9px;border-radius:6px;font:500 11px "Be Vietnam Pro";cursor:pointer}.dropdown button:hover{background:#f4f6f2}.dropdown .danger{color:#a34b4b}.content{padding:30px 34px 24px;max-width:1700px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px}.eyebrow{font-size:9px;letter-spacing:1.5px;color:#899289;font-weight:600;margin:0 0 9px}.page-head h1{font-family:"DM Serif Display";font-size:30px;font-weight:400;margin:0;color:#1f3329}.page-head h1 span{font-family:sans-serif;font-size:22px}.page-head>div>p:last-child{color:var(--muted);font-size:11px;margin:7px 0 0}.head-actions{display:flex;gap:10px}.btn{height:40px;border-radius:8px;padding:0 15px;font:600 11px "Be Vietnam Pro";border:1px solid #dde1da;cursor:pointer;display:inline-flex;align-items:center;gap:7px}.btn .icon{width:15px}.btn.secondary{background:white;color:#4e5c53}.btn.primary{background:var(--forest);color:white;border-color:var(--forest)}.btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(24,63,53,.13)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}.metric-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:19px;box-shadow:0 2px 12px rgba(38,53,44,.025)}.metric-top{display:flex;justify-content:space-between;align-items:center}.metric-icon{width:35px;height:35px;border-radius:9px;display:grid;place-items:center}.metric-icon .icon{width:17px}.metric-icon.green{background:#e5eee7;color:#47705b}.metric-icon.amber{background:#f5ead9;color:#a67732}.metric-icon.blue{background:#e5eef2;color:#567f95}.metric-icon.rose{background:#f4e5e4;color:#a26765}.trend{font-size:9px;border-radius:12px;padding:4px 7px}.trend.up{color:#3d8060;background:#e8f3eb}.trend.down{color:#a75c5c;background:#f8e9e7}.metric-card>p{font-size:10.5px;color:var(--muted);margin:13px 0 5px}.metric-card h2{font-size:20px;letter-spacing:-.5px;margin:0}.metric-card small{display:block;font-size:8.5px;color:#999f99;margin-top:7px}.metric-card small b{color:#b37733}.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 12px rgba(38,53,44,.025)}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:16px;margin-bottom:16px}.panel-head{padding:18px 20px 12px;display:flex;justify-content:space-between;align-items:start}.panel-head h3{font-size:13px;margin:0 0 4px}.panel-head p{font-size:9px;color:var(--muted);margin:0}.panel-head select{border:1px solid var(--line);background:white;border-radius:7px;padding:7px 9px;font:500 9px "Be Vietnam Pro";color:#626d65}.chart-summary{display:flex;gap:8px;align-items:center;padding:1px 20px 5px}.chart-summary strong{font-size:20px}.chart-summary small{font-size:8px;color:#9aa09b}.chart-wrap{height:190px;padding:4px 14px 12px}canvas{width:100%;height:100%}.appointment-list{padding:0 18px 8px}.appointment{display:grid;grid-template-columns:49px 34px 1fr auto;gap:9px;align-items:center;padding:12px 5px;border-top:1px solid #f0f1ed;position:relative}.appointment.now:before{content:"";position:absolute;left:-19px;width:2px;height:39px;background:#b49b62}.time strong,.time span{display:block}.time strong{font-size:10px}.time span{font-size:7px;color:#a0a5a0;margin-top:3px}.person-avatar,.mini-avatar{border-radius:50%;display:grid;place-items:center;font-size:8px;font-weight:600;color:#66594d}.person-avatar{width:32px;height:32px}.peach{background:#f1dfcd}.mint{background:#dcebe1}.lavender{background:#e5e0ed}.sky{background:#dce8ec}.appointment-info strong,.appointment-info span{display:block}.appointment-info strong{font-size:9.5px}.appointment-info span{font-size:7.5px;color:#929992;margin-top:3px}.status,.pill{font-size:7px;padding:4px 7px;border-radius:9px;white-space:nowrap}.status.active,.pill.processing{background:#e7f1e9;color:#377050}.status.upcoming,.pill.pending{background:#f8ebd8;color:#a27029}.status.confirmed{background:#eff1ed;color:#737d75}.pill.shipping{background:#e4eef3;color:#3f7591}.pill.completed{background:#e5f1e9;color:#397451}.text-btn,.more-btn{border:0;background:none;color:#4c735e;font:600 9px "Be Vietnam Pro";cursor:pointer}.more-btn{font-size:15px;color:#929992}.lower-grid{display:grid;grid-template-columns:1.7fr .8fr;gap:16px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:7.5px;color:#9ca19c;font-weight:600;letter-spacing:.5px;padding:8px 18px;border-top:1px solid #f0f1ed;border-bottom:1px solid #f0f1ed}td{padding:11px 18px;font-size:8.5px;border-bottom:1px solid #f1f2ee;white-space:nowrap}td>strong,td>small{display:block}td>small{font-size:7px;color:#a0a5a0;margin-top:3px}.customer-cell{display:flex;align-items:center;gap:7px}.mini-avatar{width:27px;height:27px}.customer-cell small{display:block;font-size:7px;color:#a0a5a0;margin-top:3px}.stock-list{padding:0 18px}.stock-item{display:grid;grid-template-columns:42px 1fr 40px;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #f0f1ed}.product-img{width:38px;height:43px;border-radius:4px 4px 8px 8px;display:grid;place-items:center;font-family:"DM Serif Display";font-size:8px;letter-spacing:1px;color:white}.product-img.shampoo{background:linear-gradient(#476d55,#244b39)}.product-img.serum{background:linear-gradient(#c99c56,#8b612d)}.product-img.mask{background:linear-gradient(#869b74,#526c4c)}.stock-item>div:nth-child(2)>strong,.stock-item>div:nth-child(2)>span{display:block}.stock-item>div:nth-child(2)>strong{font-size:8.5px}.stock-item>div:nth-child(2)>span{font-size:7px;color:#a0a5a0;margin-top:3px}.stock-bar{height:3px;background:#efece6;border-radius:3px;margin-top:7px}.stock-bar i{display:block;height:100%;background:#bb7555;border-radius:3px}.stock-count{text-align:right}.stock-count strong,.stock-count span{display:block}.stock-count strong{color:#a85d48;font-size:12px}.stock-count span{font-size:6.5px;color:#aaa}.restock-btn{margin:7px 18px 16px;width:calc(100% - 36px);height:34px;border:1px solid #dbe1d9;background:#f6f8f4;border-radius:7px;color:#3c6952;font:600 9px "Be Vietnam Pro";cursor:pointer}footer{display:flex;justify-content:space-between;padding:20px 3px 0;font-size:8px;color:#979d97}footer i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#5c9c71;margin-right:4px}.icon svg{width:100%;height:100%;display:block}.mobile-menu{display:none;border:0;background:none}.hidden{display:none!important}.module-panel{min-height:510px;display:grid;place-items:center}.module-placeholder{text-align:center;max-width:390px;padding:50px}.placeholder-icon{width:65px;height:65px;border-radius:20px;background:var(--mint);color:var(--forest);display:grid;place-items:center;margin:auto}.placeholder-icon svg{width:29px}.module-placeholder h2{font-family:"DM Serif Display";font-size:24px;font-weight:400;margin:18px 0 7px}.module-placeholder p{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 20px}.toast{position:fixed;right:24px;bottom:24px;background:#163b31;color:white;padding:14px 18px;border-radius:10px;box-shadow:0 15px 40px rgba(16,43,35,.25);display:flex;gap:12px;align-items:center;transform:translateY(120px);opacity:0;transition:.3s;z-index:100}.toast.show{transform:none;opacity:1}.toast>span{width:27px;height:27px;border-radius:50%;background:#d2b975;color:#173c32;display:grid;place-items:center;font-weight:bold}.toast strong{font-size:10px}.toast p{font-size:8px;color:#becdc5;margin:3px 0 0}.modal-backdrop{position:fixed;inset:0;background:rgba(12,28,23,.48);backdrop-filter:blur(3px);z-index:90;display:none;place-items:center;padding:20px}.modal-backdrop.open{display:grid}.modal{width:min(510px,100%);background:var(--paper);border-radius:15px;box-shadow:0 24px 65px rgba(16,39,31,.3);padding:23px}.modal-head{display:flex;justify-content:space-between}.modal h2{font-family:"DM Serif Display";font-weight:400;margin:0;font-size:25px}.close-btn{border:0;background:#f0f1ed;width:31px;height:31px;border-radius:50%;font-size:20px;color:#687069;cursor:pointer}.modal form{margin-top:20px}.modal label{display:block;font-size:9px;font-weight:600;color:#566159;margin-bottom:13px}.modal input,.modal select{width:100%;height:42px;margin-top:6px;border:1px solid #dfe3dc;background:white;border-radius:8px;padding:0 12px;font:400 11px "Be Vietnam Pro";outline:none}.modal input:focus,.modal select:focus{border-color:#75927e;box-shadow:0 0 0 3px rgba(71,112,89,.08)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.sidebar.collapsed{width:78px}.sidebar.collapsed .brand>div:last-child,.sidebar.collapsed .nav-label,.sidebar.collapsed .nav-item>span:not(.icon),.sidebar.collapsed .sidebar-card,.sidebar.collapsed .collapse-btn span:last-child{display:none}.sidebar.collapsed .brand{padding-left:0;padding-right:0;justify-content:center}.sidebar.collapsed .nav-item{justify-content:center}.sidebar.collapsed+.main{margin-left:78px}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.lower-grid{grid-template-columns:1fr}.appointments-panel{order:-1}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);box-shadow:20px 0 50px rgba(0,0,0,.2)}.sidebar.mobile-open{transform:none}.main,.sidebar.collapsed+.main{margin-left:0}.topbar{height:66px;padding:0 16px}.mobile-menu{display:grid;place-items:center;width:36px;margin-right:8px}.mobile-menu .icon{width:20px}.search-wrap{width:auto;flex:1}.search-wrap kbd,.user-copy,.chevron{display:none}.top-actions{gap:5px;margin-left:8px}.content{padding:22px 16px}.page-head{align-items:flex-start;gap:18px}.page-head h1{font-size:26px}.head-actions{flex-direction:column}.head-actions .btn{height:36px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric-card{padding:15px}.metric-card h2{font-size:17px}.dashboard-grid,.lower-grid{gap:10px}.revenue-panel{overflow:hidden}footer{flex-direction:column;gap:8px}.sidebar.collapsed{width:268px}.sidebar.collapsed .brand>div:last-child,.sidebar.collapsed .nav-label,.sidebar.collapsed .nav-item>span:not(.icon),.sidebar.collapsed .sidebar-card,.sidebar.collapsed .collapse-btn span:last-child{display:block}.sidebar.collapsed .brand{justify-content:flex-start}.sidebar.collapsed .nav-item{justify-content:flex-start}}
@media(max-width:470px){.metrics{grid-template-columns:1fr}.page-head{flex-direction:column}.head-actions{width:100%;flex-direction:row}.head-actions .btn{flex:1;justify-content:center}.appointment{grid-template-columns:43px 31px 1fr}.appointment .status{display:none}.chart-summary{flex-wrap:wrap}.form-row{grid-template-columns:1fr}.user-menu{padding:0}.orders-panel .panel-head{min-width:600px}}

/* Be Vietnam Pro typography system */
:root{--font-display:"Be Vietnam Pro","Segoe UI",sans-serif;--font-body:"Be Vietnam Pro","Segoe UI",sans-serif}
body{font-family:var(--font-body);letter-spacing:-.011em;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea,.nav-item,.collapse-btn,.search-wrap input,.dropdown button,.btn,.panel-head select,.text-btn,.more-btn,.restock-btn,.modal input,.modal select{font-family:var(--font-body)!important}
.brand-mark,.brand strong,.page-head h1,.module-placeholder h2,.modal h2,.sidebar-card strong,.product-img{font-family:var(--font-display)!important}
.brand-mark{font-size:25px;font-weight:700;letter-spacing:-.04em}
.brand strong{font-size:20px;font-weight:650;letter-spacing:-.025em;line-height:1}
.brand span{letter-spacing:1.65px;font-weight:600}
.page-head h1{font-size:30px;font-weight:650;letter-spacing:-.035em;line-height:1.1}
.module-placeholder h2,.modal h2{font-weight:650;letter-spacing:-.025em}
.sidebar-card strong{font-size:15px;font-weight:650;letter-spacing:-.01em}
.metric-card h2,.chart-summary strong{font-weight:650;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.panel-head h3{font-weight:650;letter-spacing:-.025em}
.eyebrow,.nav-label,th{letter-spacing:1.7px}

/* Minimal ivory sidebar */
.sidebar{background:#f7f5ef;color:#26342d;border-right:1px solid #e4e2db;box-shadow:none}
.brand{border-bottom-color:#e4e2db}
.brand-mark{background:#263d33;color:#f7f5ef;box-shadow:none}
.brand strong{color:#26342d}
.brand span{color:#8a918b}
.nav-label{color:#a09f98}
.nav-item,.collapse-btn{color:#68736c}
.nav-item:hover{background:#efede7;color:#26342d}
.nav-item.active{background:#e9e7e0;color:#183f35}
.nav-item.active:before{background:#355b49}
.nav-badge{background:#e4e1d9;color:#59635d}
.alert-dot{background:#8c958e}
.sidebar-card{background:#f1efe9;border-color:#e1dfd8}
.sidebar-card .leaf{color:#607469}
.sidebar-card strong{color:#35473e}
.sidebar-card p{color:#858c87}
.collapse-btn{color:#929791}
.dashboard-grid .revenue-panel{grid-column:1/-1}
@media(min-width:1101px){.metrics{grid-template-columns:repeat(3,1fr)}}

/* Product management */
.product-page-head{margin-bottom:20px}.product-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.product-stats article{display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:14px 16px}.stat-symbol{width:34px;height:34px;border-radius:9px;background:#eeeee9;color:#40564a;display:grid;place-items:center;font-weight:700}.product-stats small,.product-stats strong{display:block}.product-stats small{font-size:8px;color:var(--muted);margin-bottom:3px}.product-stats strong{font-size:17px;letter-spacing:-.04em}.product-tabs{display:flex;gap:3px;border-bottom:1px solid #dddeda;margin-bottom:16px}.product-tab{border:0;background:none;padding:11px 15px;color:#828982;font:600 10px var(--font-body)!important;cursor:pointer;position:relative}.product-tab:hover{color:#263c31}.product-tab.active{color:#183f35}.product-tab.active:after{content:"";position:absolute;height:2px;background:#294f3e;left:13px;right:13px;bottom:-1px;border-radius:2px}.product-tab-panel{display:none}.product-tab-panel.active{display:block}.product-management{overflow:hidden}.product-toolbar{display:flex;gap:9px;padding:15px 17px;border-bottom:1px solid var(--line)}.product-toolbar select{height:38px;border:1px solid #dfe2dc;background:white;border-radius:8px;padding:0 30px 0 11px;font-size:9px;color:#5f685f}.product-search{width:min(340px,40%);position:relative}.product-search .icon{width:15px;position:absolute;left:12px;top:11px;color:#8e958f}.product-search input{width:100%;height:38px;border:1px solid #dfe2dc;border-radius:8px;padding:0 12px 0 36px;font-size:10px;outline:none}.product-search input:focus,.product-toolbar select:focus{border-color:#83998d;box-shadow:0 0 0 3px rgba(51,84,67,.07);outline:none}.btn.compact{height:34px;padding:0 12px}.product-toolbar .compact{height:38px;margin-left:auto}.product-table-wrap{overflow:auto}.product-table{min-width:860px}.product-table th:first-child,.product-table td:first-child{width:42px;padding-right:0}.product-table th{padding-top:11px;padding-bottom:11px}.product-table td{font-size:9px;padding-top:12px;padding-bottom:12px}.product-table input[type="checkbox"]{accent-color:#294f3e}.product-name-cell{display:flex;align-items:center;gap:11px;min-width:220px}.product-name-cell strong,.product-name-cell small,.product-table td>small{display:block}.product-name-cell strong{font-size:9.5px}.product-name-cell small,.product-table td>small{font-size:7px;color:#9da39e;margin-top:3px}.product-thumb{width:38px;height:44px;border-radius:5px 5px 9px 9px;display:grid;place-items:center;color:white;font-size:7px;font-weight:600;letter-spacing:.6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}.green-bottle{background:linear-gradient(145deg,#587863,#274c39)}.amber-bottle{background:linear-gradient(145deg,#c19a60,#886133)}.clay-jar{height:34px;border-radius:8px;background:linear-gradient(145deg,#9a8972,#655646)}.ivory-bottle{background:linear-gradient(145deg,#d1cbb8,#8d8a78)}.dark-bottle{background:linear-gradient(145deg,#5d625c,#303731)}.low-stock{color:#a65b41}.pill.neutral{background:#eeefec;color:#747b75}.row-action{border:0;background:none;color:#7f8780;cursor:pointer;font-weight:700;letter-spacing:1px}.table-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:12px 17px;color:#8b928c;font-size:8px}.table-footer div{display:flex;gap:4px}.table-footer button{width:27px;height:27px;border:1px solid #e0e2dd;background:white;border-radius:6px;color:#6b746d;font-size:9px}.table-footer button.current{background:#294d3c;color:white;border-color:#294d3c}.table-footer button:disabled{opacity:.4}.product-form-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.7fr);gap:16px;align-items:start}.form-main,.form-side{display:grid;gap:16px}.form-card{overflow:hidden}.form-card-head{padding:17px 19px;border-bottom:1px solid var(--line)}.form-card-head h3,.category-head h3{margin:0 0 4px;font-size:12px}.form-card-head p,.category-head p{margin:0;color:var(--muted);font-size:8px}.form-card-body{padding:18px}.field{display:block}.field>span{display:block;font-size:9px;font-weight:600;color:#4f5a52;margin-bottom:7px}.field b{color:#a9614b}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe2dc;border-radius:8px;background:white;padding:0 11px;font:400 10px var(--font-body);outline:none}.field input,.field select{height:40px}.field textarea{padding-top:11px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#82998c;box-shadow:0 0 0 3px rgba(54,90,70,.07)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.form-grid.three{grid-template-columns:1fr 1fr 1fr;margin:0}.input-suffix{position:relative}.input-suffix i{position:absolute;right:11px;top:12px;font-style:normal;font-size:9px;color:#929a94}.input-suffix input{padding-right:28px}.image-uploader{width:100%;height:135px;border:1px dashed #cfd4cd;border-radius:9px;background:#f8f8f5;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#657269;cursor:pointer}.image-uploader:hover{border-color:#789080;background:#f3f5f1}.image-uploader>span{font-size:22px;font-weight:300}.image-uploader strong{font-size:9px;margin:5px 0}.image-uploader small{font-size:7px;color:#9ba19c}.switch-row{display:flex;align-items:center;justify-content:space-between;margin-top:17px;padding-top:15px;border-top:1px solid var(--line)}.switch-row strong,.switch-row small{display:block}.switch-row strong{font-size:9px}.switch-row small{font-size:7px;color:#969d97;margin-top:3px}.switch-row input{appearance:none;width:32px;height:18px;background:#c9cdc8;border-radius:10px;position:relative;cursor:pointer;transition:.2s}.switch-row input:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:white;top:2px;left:2px;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}.switch-row input:checked{background:#345c48}.switch-row input:checked:after{left:16px}.form-submit{display:flex;justify-content:flex-end;gap:8px}.category-layout{display:grid;grid-template-columns:1.4fr .8fr;gap:16px;align-items:start}.category-head{display:flex;justify-content:space-between;align-items:center;padding:17px 19px;border-bottom:1px solid var(--line)}.category-list{padding:0 18px}.category-row{display:grid;grid-template-columns:39px 1fr auto 32px;gap:11px;align-items:center;padding:14px 2px;border-bottom:1px solid var(--line)}.category-row:last-child{border:0}.category-icon{width:36px;height:36px;border-radius:8px;background:#eceee9;color:#405549;display:grid;place-items:center;font-size:8px;font-weight:700}.category-row strong,.category-row small{display:block}.category-row strong{font-size:9.5px}.category-row small{font-size:7.5px;color:#989f99;margin-top:3px}.category-row>span:nth-child(3){font-size:7.5px;color:#54745f;background:#e9f0eb;padding:4px 7px;border-radius:10px}.category-form-panel{overflow:hidden}
@media(max-width:950px){.product-form-layout,.category-layout{grid-template-columns:1fr}.product-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.product-toolbar{flex-wrap:wrap}.product-search{width:100%}.product-toolbar select{flex:1}.product-toolbar .compact{margin-left:0}.product-tabs{overflow-x:auto}.product-tab{white-space:nowrap}.form-grid.three{grid-template-columns:1fr}.product-stats{gap:8px}.product-page-head{flex-direction:row}}
@media(max-width:470px){.product-stats{grid-template-columns:1fr 1fr}.product-stats article{padding:11px}.product-page-head{flex-direction:column}.product-page-head .btn{width:100%;justify-content:center}.category-row{grid-template-columns:39px 1fr 25px}.category-row>span:nth-child(3){display:none}}

/* Warehouse management */
.warehouse-page-head{margin-bottom:20px}.warehouse-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.warehouse-stats article{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:15px 17px}.warehouse-stats small,.warehouse-stats strong,.warehouse-stats span{display:block}.warehouse-stats small{font-size:8px;color:var(--muted)}.warehouse-stats strong{font-size:18px;letter-spacing:-.04em;margin:6px 0 5px}.warehouse-stats span{font-size:7.5px;color:#89918b}.warehouse-stats .warning-number{color:#a85d48}.warehouse-tabs{display:flex;gap:3px;border-bottom:1px solid #dddeda;margin-bottom:16px;overflow-x:auto;scrollbar-width:none}.warehouse-tabs::-webkit-scrollbar{display:none}.warehouse-tab{border:0;background:none;padding:11px 13px;color:#818882;font:600 9px var(--font-body)!important;cursor:pointer;position:relative;white-space:nowrap}.warehouse-tab:hover{color:#263c31}.warehouse-tab.active{color:#183f35}.warehouse-tab.active:after{content:"";position:absolute;height:2px;background:#294f3e;left:11px;right:11px;bottom:-1px;border-radius:2px}.warehouse-workspace{overflow:hidden}.warehouse-workspace-head{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;border-bottom:1px solid var(--line)}.warehouse-workspace-head h3{font-size:12px;margin:0 0 4px}.warehouse-workspace-head p{font-size:8px;color:var(--muted);margin:0}.warehouse-head-actions{display:flex;gap:7px}.warehouse-toolbar{display:flex;gap:9px;padding:13px 17px;background:#fafaf7;border-bottom:1px solid var(--line)}.warehouse-toolbar select{height:38px;border:1px solid #dfe2dc;background:white;border-radius:8px;padding:0 30px 0 11px;font:500 9px var(--font-body);color:#5f685f}.warehouse-table-wrap{overflow:auto}.warehouse-table{min-width:900px}.warehouse-table th{padding-top:11px;padding-bottom:11px}.warehouse-table td{font-size:8.5px;padding-top:13px;padding-bottom:13px}.warehouse-table td strong,.warehouse-table td small{display:block}.warehouse-table td small{font-size:7px;color:#969e98;margin-top:3px}.warehouse-product{display:flex;align-items:center;gap:9px;min-width:190px}.warehouse-product .product-thumb{width:31px;height:36px}.warehouse-code{color:#496758;font-weight:600}.warehouse-qty{font-size:11px!important}.warehouse-qty.low{color:#a85d48}.warehouse-tag{display:inline-block;font-size:7px;padding:4px 7px;border-radius:9px;background:#e8f0ea;color:#4c705c}.warehouse-tag.pending{background:#f7ead7;color:#9c6d29}.warehouse-tag.done{background:#e8f0ea;color:#467158}.warehouse-tag.cancelled{background:#efefec;color:#797f7a}.warehouse-tag.moving{background:#e5edf1;color:#4c7286}.warehouse-money{font-variant-numeric:tabular-nums}.warehouse-empty{text-align:center;padding:50px!important;color:#8c938e}.supplier-cell{display:flex;align-items:center;gap:9px}.supplier-logo{width:32px;height:32px;border-radius:8px;background:#e9ece7;display:grid;place-items:center;font-size:8px;font-weight:700;color:#43584c}
@media(max-width:950px){.warehouse-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.warehouse-toolbar{flex-wrap:wrap}.warehouse-toolbar .product-search{width:100%}.warehouse-toolbar select{flex:1}.warehouse-workspace-head{align-items:flex-start;gap:12px}.warehouse-head-actions{flex-direction:column}.warehouse-page-head{flex-direction:row}}
@media(max-width:470px){.warehouse-stats{grid-template-columns:1fr 1fr;gap:8px}.warehouse-stats article{padding:12px}.warehouse-page-head{flex-direction:column}.warehouse-page-head .btn{width:100%;justify-content:center}.warehouse-workspace-head{flex-direction:column}.warehouse-head-actions{width:100%;flex-direction:row}.warehouse-head-actions .btn{flex:1;justify-content:center}}

/* Operational forms and actions */
.business-modal{width:min(620px,100%);max-height:90vh;overflow:auto}.business-modal #businessModalFields{margin-top:20px}.business-modal .field{margin-bottom:13px}.business-modal .form-grid{margin:0 0 13px}.business-modal .form-grid .field{margin:0}.business-modal .modal-note{background:#f3f4f0;border:1px solid #e2e4df;border-radius:8px;padding:11px 12px;font-size:8px;color:#68726a;line-height:1.6;margin-bottom:14px}.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;white-space:nowrap}.table-action-btn{height:27px;border:1px solid #dfe2dc;background:white;border-radius:6px;padding:0 8px;color:#536159;font:600 7.5px var(--font-body);cursor:pointer}.table-action-btn:hover{background:#f1f3ef;border-color:#cfd4cd}.table-action-btn.danger{color:#a4584f}.data-empty{text-align:center!important;padding:48px 20px!important;color:#8a928c}.data-empty strong,.data-empty span{display:block}.data-empty strong{font-size:11px;color:#59635c;margin-bottom:5px}.data-empty span{font-size:8px}.saved-indicator{display:inline-flex;align-items:center;gap:5px;font-size:7.5px;color:#6d7c72;margin-left:10px}.saved-indicator:before{content:"";width:6px;height:6px;border-radius:50%;background:#5d8a6d}.field-help{display:block!important;font-size:7px!important;font-weight:400!important;color:#979e98!important;margin:5px 0 0!important}.danger-zone{border-top:1px solid #ebece8;margin-top:16px;padding-top:14px}.danger-zone button{color:#a3534b;border-color:#e5d7d4}

/* Square product thumbnails */
.product-thumb,.product-img{width:40px;height:40px;min-width:40px;aspect-ratio:1/1;border-radius:9px;overflow:hidden;flex:0 0 40px}
.product-thumb img,.product-img img{display:block;width:100%;height:100%;object-fit:cover}
.image-uploader img{display:block;width:88px;height:88px;object-fit:cover;border-radius:12px;border:1px solid var(--line);margin:0 auto 8px}
.clay-jar{height:40px;border-radius:9px}
.warehouse-product .product-thumb{width:36px;height:36px;min-width:36px;flex-basis:36px;border-radius:8px}

/* Order management */
.orders-page-head{margin-bottom:20px}.order-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.order-stats article{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:15px 17px}.order-stats small,.order-stats strong,.order-stats span{display:block}.order-stats small{font-size:8px;color:var(--muted)}.order-stats strong{font-size:18px;letter-spacing:-.04em;margin:6px 0 5px}.order-stats span{font-size:7.5px;color:#89918b}.order-tabs{display:flex;gap:3px;border-bottom:1px solid #dddeda;margin-bottom:16px}.order-tab{border:0;background:none;padding:11px 15px;color:#818882;font:600 10px var(--font-body)!important;cursor:pointer;position:relative}.order-tab.active{color:#183f35}.order-tab.active:after{content:"";position:absolute;height:2px;background:#294f3e;left:13px;right:13px;bottom:-1px}.order-tab-panel{display:none}.order-tab-panel.active{display:block}.order-list-panel{overflow:hidden}.order-toolbar{display:flex;gap:9px;padding:15px 17px;border-bottom:1px solid var(--line)}.order-toolbar select{height:38px;border:1px solid #dfe2dc;background:white;border-radius:8px;padding:0 30px 0 11px;font:500 9px var(--font-body);color:#5f685f}.order-toolbar .compact{height:38px;margin-left:auto}.order-table-wrap{overflow:auto}.order-management-table{min-width:950px}.order-management-table td{padding-top:12px;padding-bottom:12px}.order-customer strong,.order-customer small,.order-code strong,.order-code small{display:block}.order-customer small,.order-code small{font-size:7px;color:#969e98;margin-top:3px}.order-status{display:inline-block;font-size:7px;padding:4px 8px;border-radius:9px}.order-status.pending{background:#f7ead7;color:#986925}.order-status.processing{background:#e5edf1;color:#4d7286}.order-status.shipping{background:#e6ecf2;color:#4a6884}.order-status.completed{background:#e7f0e9;color:#416f55}.order-status.cancelled{background:#efefec;color:#7d827e}.new-order-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.65fr);gap:16px;align-items:start}.order-items-head{display:flex;justify-content:space-between;align-items:center}.order-item-row{display:grid;grid-template-columns:minmax(180px,1fr) 82px 120px 30px;gap:9px;align-items:end;padding:11px 0;border-bottom:1px solid var(--line)}.order-item-row:first-child{padding-top:0}.order-item-row:last-child{border-bottom:0}.order-item-row .field{margin:0}.order-item-total{height:40px;border:1px solid #e1e3de;background:#f7f7f4;border-radius:8px;display:flex;align-items:center;padding:0 10px;font-size:9px;font-weight:600}.remove-order-item{width:30px;height:40px;border:0;background:none;color:#a05b52;font-size:17px;cursor:pointer}.order-summary{padding:18px}.order-summary h3{font-size:12px;margin:0 0 14px}.order-summary>div{display:flex;align-items:center;justify-content:space-between;padding:9px 0;font-size:9px;color:#68736b}.order-summary>div strong{font-size:10px;color:#28342d}.order-summary label{position:relative}.order-summary input{width:110px;height:34px;border:1px solid #dfe2dc;border-radius:7px;padding:0 24px 0 8px;text-align:right;font:500 9px var(--font-body)}.order-summary label i{position:absolute;right:8px;top:8px;font-size:8px;font-style:normal}.order-summary .order-grand-total{border-top:1px solid var(--line);margin-top:5px;padding-top:14px}.order-summary .order-grand-total strong{font-size:16px;color:#183f35}.order-empty{text-align:center;padding:45px!important;color:#8d948f}.order-product-count{font-size:8px}.order-product-count strong{display:block;font-size:9px;margin-bottom:3px}
@media(max-width:950px){.order-stats{grid-template-columns:repeat(2,1fr)}.new-order-layout{grid-template-columns:1fr}}
@media(max-width:700px){.order-toolbar{flex-wrap:wrap}.order-toolbar .product-search{width:100%}.order-toolbar select{flex:1}.order-toolbar .compact{margin-left:0}.orders-page-head{flex-direction:row}}
@media(max-width:520px){.order-stats{grid-template-columns:1fr 1fr;gap:8px}.order-stats article{padding:12px}.orders-page-head{flex-direction:column}.orders-page-head .btn{width:100%;justify-content:center}.order-item-row{grid-template-columns:1fr 70px 30px}.order-item-row .order-item-total{display:none}}

/* Order information card spacing */
.order-info-card .form-card-head{padding:19px 20px 17px}
.order-info-card .form-card-head h3{margin:0;line-height:1.4}
.order-info-card .form-card-body{display:grid;gap:16px;padding:20px}
.order-info-card .field{margin:0}
.order-info-card .field>span{margin:0 0 8px;line-height:1.4}
.order-info-card .field select{display:block;margin:0}

/* Customer management */
.customer-page-head{margin-bottom:20px}.customer-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.customer-stats article{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:15px 17px}.customer-stats small,.customer-stats strong,.customer-stats span{display:block}.customer-stats small{font-size:8px;color:var(--muted)}.customer-stats strong{font-size:18px;letter-spacing:-.04em;margin:6px 0 5px}.customer-stats span{font-size:7.5px;color:#89918b}.customer-tabs{display:flex;gap:3px;border-bottom:1px solid #dddeda;margin-bottom:16px;overflow-x:auto;scrollbar-width:none}.customer-tab{border:0;background:none;padding:11px 15px;color:#818882;font:600 9.5px var(--font-body)!important;cursor:pointer;position:relative;white-space:nowrap}.customer-tab.active{color:#183f35}.customer-tab.active:after{content:"";position:absolute;height:2px;background:#294f3e;left:13px;right:13px;bottom:-1px}.customer-panel{display:none}.customer-panel.active{display:block}.customer-list-panel,.review-panel{overflow:hidden}.customer-toolbar{display:flex;gap:9px;padding:15px 17px;border-bottom:1px solid var(--line)}.customer-toolbar select{height:38px;border:1px solid #dfe2dc;background:white;border-radius:8px;padding:0 30px 0 11px;font:500 9px var(--font-body);color:#5f685f}.customer-toolbar .compact{height:38px;margin-left:auto}.customer-table-wrap,.review-table-wrap{overflow:auto}.customer-table{min-width:980px}.review-table{min-width:930px}.customer-table td,.review-table td{padding-top:12px;padding-bottom:12px}.customer-identity{display:flex;align-items:center;gap:10px;min-width:180px}.customer-avatar{width:35px;height:35px;border-radius:50%;background:#e5e9e3;color:#3f594c;display:grid;place-items:center;font-size:8px;font-weight:700}.customer-identity strong,.customer-identity small,.contact-stack span,.contact-stack small{display:block}.customer-identity small,.contact-stack small{font-size:7px;color:#969e98;margin-top:3px}.member-tier{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:10px;font-size:7px;font-weight:600;background:#efefec;color:#687169}.member-tier:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.member-tier.gold{background:#f5ead8;color:#9b6e2d}.member-tier.green{background:#e5efe8;color:#497159}.member-tier.dark{background:#e6e8e6;color:#34473e}.section-action-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}.section-action-head h3{font-size:13px;margin:0 0 4px}.section-action-head p{font-size:8px;color:var(--muted);margin:0}.tier-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tier-card{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:18px;position:relative;overflow:hidden}.tier-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--tier-color,#6d7b72)}.tier-card-head{display:flex;justify-content:space-between;align-items:start}.tier-badge{width:39px;height:39px;border-radius:11px;background:#edeee9;display:grid;place-items:center;font-weight:700;color:#43564b}.tier-card h3{font-size:12px;margin:12px 0 4px}.tier-card>p{font-size:8px;color:#8b928d;min-height:26px}.tier-rule{border-top:1px solid var(--line);margin-top:13px;padding-top:12px}.tier-rule div{display:flex;justify-content:space-between;font-size:8px;padding:4px 0}.tier-rule span{color:#838b85}.tier-rule strong{font-size:8px}.tier-members{font-size:8px;color:#6c756e;margin-top:12px}.rating-stars{color:#b4863d;letter-spacing:1px;white-space:nowrap}.review-content{max-width:270px;white-space:normal;line-height:1.5}.review-status{display:inline-block;font-size:7px;padding:4px 8px;border-radius:10px}.review-status.pending{background:#f7ead7;color:#986925}.review-status.visible{background:#e6f0e8;color:#426f55}.review-status.hidden-review{background:#eeeeeb;color:#777e78}.crm-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;overflow-x:auto;padding-bottom:8px}.crm-column{background:#eeefeb;border-radius:11px;padding:11px;min-height:430px}.crm-column-head{display:flex;justify-content:space-between;align-items:center;padding:4px 3px 12px}.crm-column-head strong{font-size:9.5px}.crm-column-head span{width:21px;height:21px;border-radius:50%;background:white;display:grid;place-items:center;font-size:8px;color:#6f7771}.crm-cards{display:grid;gap:8px}.crm-card{background:white;border:1px solid #e1e3de;border-radius:9px;padding:12px;cursor:pointer}.crm-card:hover{border-color:#bfc9c1;box-shadow:0 4px 12px rgba(36,55,44,.06)}.crm-card strong,.crm-card small{display:block}.crm-card>strong{font-size:9.5px}.crm-card>small{font-size:7px;color:#929993;margin:3px 0 10px}.crm-card p{font-size:8px;line-height:1.5;color:#5e6861;margin:0 0 10px}.crm-card-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eff0ed;padding-top:9px}.crm-card-foot span{font-size:7px;color:#8a918b}.crm-value{font-weight:700;color:#3d5d4c!important}
@media(max-width:950px){.customer-stats{grid-template-columns:repeat(2,1fr)}.tier-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.customer-toolbar{flex-wrap:wrap}.customer-toolbar .product-search{width:100%}.customer-toolbar select{flex:1}.customer-toolbar .compact{margin-left:0}.customer-page-head{flex-direction:row}.tier-grid{grid-template-columns:1fr}}
@media(max-width:520px){.customer-stats{grid-template-columns:1fr 1fr;gap:8px}.customer-stats article{padding:12px}.customer-page-head{flex-direction:column}.customer-page-head .btn{width:100%;justify-content:center}}

/* Production workflow */
.production-page-head{margin-bottom:20px}.access-badge{font-size:8px;color:#466b56;background:#e6eee8;border:1px solid #d6e2d9;border-radius:12px;padding:6px 10px}.production-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.production-stats article{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:15px 17px}.production-stats small,.production-stats strong,.production-stats span{display:block}.production-stats small{font-size:8px;color:var(--muted)}.production-stats strong{font-size:18px;letter-spacing:-.04em;margin:6px 0 5px}.production-stats span{font-size:7.5px;color:#89918b}.production-flow{display:flex;align-items:center;justify-content:center;gap:12px;background:#eeefeb;border-radius:11px;padding:12px 16px;margin-bottom:15px;overflow-x:auto}.production-flow span{display:flex;align-items:center;gap:6px;font-size:8px;color:#747d76;white-space:nowrap}.production-flow span i{width:22px;height:22px;border-radius:50%;background:white;display:grid;place-items:center;font-style:normal;font-size:8px;font-weight:700}.production-flow span.active{color:#244b38;font-weight:700}.production-flow span.active i{background:#294f3e;color:white}.production-flow b{font-weight:400;color:#abb0ac}.production-tabs{display:flex;gap:3px;border-bottom:1px solid #dddeda;margin-bottom:16px;overflow-x:auto;scrollbar-width:none}.production-tab{border:0;background:none;padding:11px 13px;color:#818882;font:600 9px var(--font-body)!important;cursor:pointer;position:relative;white-space:nowrap}.production-tab.active{color:#183f35}.production-tab.active:after{content:"";position:absolute;height:2px;background:#294f3e;left:11px;right:11px;bottom:-1px}.production-panel{display:none}.production-panel.active{display:block}.production-table-wrap{overflow:auto}.production-table{min-width:930px}.production-table td{padding-top:12px;padding-bottom:12px}.production-item{display:flex;align-items:center;gap:9px;min-width:180px}.production-icon{width:34px;height:34px;border-radius:8px;background:#e7ebe6;color:#3f594b;display:grid;place-items:center;font-size:8px;font-weight:700}.production-item strong,.production-item small{display:block}.production-item small{font-size:7px;color:#969e98;margin-top:3px}.production-status{display:inline-block;font-size:7px;padding:4px 8px;border-radius:10px}.production-status.draft{background:#eeeeeb;color:#747b76}.production-status.warning{background:#f7ead7;color:#986925}.production-status.ready{background:#e6f0e8;color:#426f55}.production-status.workshop{background:#e5edf1;color:#4d7286}.production-status.complete{background:#e6f0e8;color:#356c4d}.stock-number{font-size:11px;font-weight:700}.stock-number.low{color:#a75b45}.bom-check{display:flex;align-items:center;gap:5px;font-size:7px}.bom-check.ok{color:#477158}.bom-check.missing{color:#a3643d}.restricted-cost{filter:blur(4px);user-select:none}.production-cost-lock{font-size:7px;color:#8d948e}.production-detail-list{display:grid;gap:7px;background:#f5f5f1;border:1px solid #e3e4df;border-radius:8px;padding:10px;margin-bottom:13px}.production-detail-list div{display:flex;justify-content:space-between;font-size:8px}.production-detail-list span{color:#778079}[data-role="staff"] .cost-sensitive{display:none!important}[data-role="staff"] .access-badge{background:#efefec;color:#737a75;border-color:#e0e1dd}
.finished-goods-table{min-width:1260px}.finished-goods-table th:last-child,.finished-goods-table td.production-action-cell{width:250px;min-width:250px;text-align:right}.finished-goods-table .production-row-actions{width:100%;justify-content:flex-end;flex-wrap:nowrap}.finished-goods-table .production-row-actions .table-action-btn{flex:0 0 auto}
@media(max-width:950px){.production-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.production-page-head{flex-direction:row}.production-flow{justify-content:flex-start}.production-tabs{padding-bottom:2px}}
@media(max-width:520px){.production-stats{grid-template-columns:1fr 1fr;gap:8px}.production-stats article{padding:12px}.production-page-head{flex-direction:column}.access-badge{align-self:flex-start}}
[data-role="staff"] .product-table td:nth-child(4) small,[data-role="staff"] label:has(input[name="cost"]){display:none!important}
.finance-panel{display:none}.finance-panel.active{display:block}.finance-view .production-table{min-width:1080px}.finance-view .access-badge{background:#f2eadc;color:#87662f;border-color:#e7d9bd}
.finance-supplier-table{table-layout:fixed}.finance-supplier-table th:nth-child(1){width:34%}.finance-supplier-table th:nth-child(2){width:12%}.finance-supplier-table th:nth-child(3){width:13%}.finance-supplier-table th:nth-child(4){width:12%}.finance-supplier-table th:nth-child(5){width:12%}.finance-supplier-table th:nth-child(6){width:10%}.finance-supplier-table th:nth-child(7){width:7%}.finance-supplier-table .supplier-cell{align-items:flex-start;min-width:0}.finance-supplier-table .supplier-logo{flex:0 0 32px}.finance-supplier-table .supplier-name{min-width:0;padding-top:2px}.finance-supplier-table .supplier-name strong,.finance-supplier-table .supplier-contact-name{display:block;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.5}.finance-supplier-table .supplier-name strong{font-size:11px}.finance-supplier-table .supplier-contact-name{color:#4f5d54}

/* Readable Be Vietnam Pro typography scale */
html{font-size:16px}
body,button,input,select,textarea,table,kbd{font-family:"Be Vietnam Pro","Segoe UI",sans-serif!important}
body{font-size:14px;line-height:1.5;letter-spacing:-.008em}
.main{font-size:14px}
.page-head h1{font-size:32px;line-height:1.18;letter-spacing:-.035em}
.page-head>div>p:last-child{font-size:12px;line-height:1.6}
.eyebrow{font-size:10px;letter-spacing:1.5px}
.panel-head h3,.form-card-head h3,.category-head h3,.section-action-head h3,.warehouse-workspace-head h3,.order-summary h3{font-size:14px;line-height:1.35}
.panel-head p,.form-card-head p,.category-head p,.section-action-head p,.warehouse-workspace-head p{font-size:10.5px;line-height:1.5}
.metric-card>p{font-size:11.5px}.metric-card h2{font-size:23px}.metric-card small{font-size:10px;line-height:1.5}
.product-stats small,.warehouse-stats small,.order-stats small,.customer-stats small,.production-stats small{font-size:10px}
.product-stats strong,.warehouse-stats strong,.order-stats strong,.customer-stats strong,.production-stats strong{font-size:21px}
.product-stats span,.warehouse-stats span,.order-stats span,.customer-stats span,.production-stats span{font-size:9.5px;line-height:1.45}
.product-tab,.warehouse-tab,.order-tab,.customer-tab,.production-tab{font-size:11.5px!important;padding-top:12px;padding-bottom:12px}
.btn{font-size:11.5px}.btn.compact{font-size:10.5px}
.product-search input,.search-wrap input{font-size:12px}
.product-toolbar select,.warehouse-toolbar select,.order-toolbar select,.customer-toolbar select{font-size:11px}
th{font-size:9.5px;line-height:1.35;padding-top:11px;padding-bottom:11px}
td,.product-table td,.warehouse-table td,.order-management-table td,.customer-table td,.review-table td,.production-table td{font-size:11px;line-height:1.45;padding-top:14px;padding-bottom:14px}
td>small,.product-name-cell small,.product-table td>small,.warehouse-table td small,.order-customer small,.order-code small,.customer-identity small,.contact-stack small,.production-item small{font-size:9px;line-height:1.45}
.product-name-cell strong,.appointment-info strong,.stock-item>div:nth-child(2)>strong,.category-row strong,.customer-identity strong,.production-item strong{font-size:11.5px}
.status,.pill,.warehouse-tag,.order-status,.review-status,.production-status,.member-tier{font-size:9px;padding:5px 8px}
.trend{font-size:10px}
.text-btn{font-size:10.5px}
.field>span{font-size:10.5px}.field input,.field select,.field textarea{font-size:11.5px}.field-help{font-size:9px!important}
.switch-row strong{font-size:10.5px}.switch-row small{font-size:9px}
.table-action-btn{font-size:9.5px;height:30px;padding:0 10px}
.table-footer{font-size:10px}.table-footer button{font-size:10px}
.access-badge{font-size:10px}
.production-flow span{font-size:10px}.production-flow span i{font-size:9px}
.bom-check{font-size:9.5px}
.category-row small,.tier-members,.crm-card>small,.crm-card p,.crm-card-foot span{font-size:9.5px}
.tier-card h3{font-size:13px}.tier-card>p,.tier-rule div,.tier-rule strong{font-size:10px}
.review-content{font-size:10.5px}
.toast strong{font-size:11px}.toast p{font-size:9.5px}
.toast{transition:transform .14s ease-out,opacity .1s linear;will-change:transform,opacity}
.modal label{font-size:10.5px}.modal input,.modal select{font-size:11.5px}.modal .modal-note{font-size:10px}
.user-copy strong{font-size:12px}.user-copy span{font-size:10px}
.dropdown-email{font-size:10.5px}.dropdown button{font-size:11px}
footer{font-size:9.5px}
@media(max-width:760px){.page-head h1{font-size:27px}th{font-size:9px}td,.product-table td,.warehouse-table td,.order-management-table td,.customer-table td,.review-table td,.production-table td{font-size:10.5px}}

/* Product formula editor */
.formula-editor{display:grid;gap:10px;margin-top:8px}.formula-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.formula-editor-head strong{font-size:11px}.formula-lines{display:grid;gap:8px}.formula-line{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,.65fr) 34px;gap:8px;align-items:center}.formula-line select,.formula-line input{width:100%;height:42px;border:1px solid #dfe3dc;background:white;border-radius:8px;padding:0 11px;font:400 11.5px "Be Vietnam Pro","Segoe UI",sans-serif}.formula-remove{width:34px;height:34px;border:1px solid #ead8d3;border-radius:8px;background:#fff8f6;color:#a75343;cursor:pointer;font-size:16px}.formula-summary{display:flex;flex-wrap:wrap;gap:6px;max-width:560px}.formula-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef3ee;color:#355b48;font-size:9px;line-height:1.3}.formula-empty{padding:12px;border:1px dashed #d9ddd6;border-radius:9px;color:#7c857e;font-size:10px;text-align:center}
.formula-material-head{margin-top:24px}
.formula-tabs{display:flex;gap:4px;margin:0 0 20px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}.formula-tabs::-webkit-scrollbar{display:none}.formula-tab{position:relative;flex:0 0 auto;padding:12px 16px;border:0;background:transparent;color:#6f7b74;font:600 12px "Be Vietnam Pro","Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}.formula-tab::after{content:"";position:absolute;right:16px;bottom:-1px;left:16px;height:2px;border-radius:999px 999px 0 0;background:transparent}.formula-tab:hover{color:var(--green)}.formula-tab.active{color:var(--green)}.formula-tab.active::after{background:var(--green)}.formula-tab-panel{display:none}.formula-tab-panel.active{display:block}.formula-tab-panel>.section-action-head{margin-top:0}
.inventory-relocated{display:none!important}.inventory-scope-fieldset{margin:14px 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px}.inventory-scope-fieldset legend{padding:0 6px;font-weight:700;color:var(--ink)}.inventory-scope-fieldset>p{margin:0 0 11px;color:var(--muted);font-size:11px}.inventory-scope-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.inventory-scope-grid label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fafaf7;cursor:pointer}.inventory-scope-grid input{width:16px;height:16px;accent-color:var(--green)}.inventory-scope-grid span{font-size:12px;font-weight:600}@media(max-width:700px){.inventory-scope-grid{grid-template-columns:1fr}}
.category-row{grid-template-columns:39px minmax(0,1fr) auto auto}.category-row .table-actions{min-width:max-content}
.finished-purchase-view .order-list-panel>.section-action-head{margin:0;padding:18px 20px 14px;border-bottom:1px solid var(--line)}
.finished-purchase-toolbar{display:flex;align-items:center;gap:9px;padding:14px 17px;border-bottom:1px solid var(--line);background:#fafaf7}.finished-purchase-toolbar select{height:38px;border:1px solid #dfe2dc;background:white;border-radius:8px;padding:0 30px 0 11px;font:500 10px var(--font-body);color:#5f685f}.finished-purchase-toolbar .compact{height:38px;margin-left:auto}.finished-purchase-table{min-width:1380px}.purchase-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 10px}.purchase-editor-head strong,.purchase-editor-head small{display:block}.purchase-editor-head strong{font-size:11px}.purchase-editor-head small{font-size:8px;color:#8a928c;margin-top:3px}.finished-purchase-lines{display:grid;gap:9px;margin-bottom:14px}.finished-purchase-line-editor{display:grid;grid-template-columns:minmax(180px,1.6fr) 85px 130px 75px 115px 34px;gap:8px;align-items:end;padding:12px;border:1px solid #e0e3dc;border-radius:10px;background:#f8f8f4}.finished-purchase-line-editor .field{margin:0}.finished-line-total{height:40px;display:flex;flex-direction:column;justify-content:center}.finished-line-total span{font-size:7.5px;color:#89918b}.finished-line-total strong{font-size:10px;margin-top:3px}.finished-purchase-modal-total{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-radius:9px;background:#eaf0eb;color:#294f3e;margin-top:10px}.finished-purchase-modal-total span{font-size:9px;font-weight:600}.finished-purchase-modal-total strong{font-size:15px}.purchase-detail-lines{display:grid;gap:7px}.purchase-detail-line{display:grid;grid-template-columns:minmax(150px,1.4fr) 100px 145px 110px;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e3e5df;border-radius:8px;font-size:8.5px}.purchase-detail-line strong,.purchase-detail-line small{display:block}.purchase-detail-line small{color:#929a94;margin-top:3px}.purchase-detail-line>strong{text-align:right}.purchase-receipt-history{margin-top:16px}.purchase-receipt-history h3{font-size:11px;margin:0 0 9px}.purchase-receipt-card{display:grid;grid-template-columns:100px 1fr;gap:4px 10px;padding:10px 12px;border:1px solid #e2e4df;border-radius:8px;margin-bottom:7px}.purchase-receipt-card strong,.purchase-receipt-card span{font-size:8.5px}.purchase-receipt-card small{grid-column:1/-1;font-size:8px;color:#727c74}.finished-receipt-lines{display:grid;gap:8px;margin-bottom:14px}.finished-receipt-line{display:grid;grid-template-columns:1fr 120px;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e1e4dd;border-radius:8px;background:#f8f8f4}.finished-receipt-line strong,.finished-receipt-line small{display:block}.finished-receipt-line strong{font-size:10px}.finished-receipt-line small{font-size:8px;color:#8b938d;margin-top:3px}.finished-receipt-line input{margin:0!important}
.material-stock-panel{overflow:hidden}.material-stock-toolbar{display:flex;align-items:center;gap:9px;padding:14px 17px;border-bottom:1px solid var(--line);background:#fafaf7}.material-stock-toolbar select{height:38px;border:1px solid #dfe2dc;background:white;border-radius:8px;padding:0 30px 0 11px;font:500 10px var(--font-body);color:#5f685f}.material-stock-toolbar .compact{height:38px;margin-left:auto}.formula-version-list{display:grid;gap:10px}.formula-version-card{display:grid;gap:9px;padding:13px;border:1px solid #e0e3dc;border-radius:10px;background:#f8f8f4}.formula-version-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.formula-version-card strong{font-size:11px}.formula-version-card small{font-size:8px;color:#89918b}.formula-version-card p{margin:0;font-size:9px;line-height:1.5;color:#667069}.formula-enough{color:#3f7658}.formula-shortage{color:#a85d48}
.workshop-packaging-fields{display:grid;gap:10px;margin:14px 0;padding:14px;border:1px solid #e0e3dc;border-radius:10px;background:#f8f8f4}.workshop-packaging-fields .field{margin:0}.workshop-packaging-fields.hidden{display:none}.production-detail-list strong{text-align:right;line-height:1.5}.production-table td>small{display:block;margin-top:4px;color:#8d968f;font-size:7.5px}
.business-modal.manager-plan-modal{width:min(900px,calc(100vw - 32px));padding:28px 30px}.manager-plan-modal .modal-head{align-items:flex-start}.manager-plan-modal .modal-head .eyebrow{font-size:10px;letter-spacing:.13em;margin-bottom:8px}.manager-plan-modal .modal-head h2{font-size:26px;line-height:1.2}.manager-plan-modal #businessModalFields{margin-top:24px}.manager-plan-modal .production-detail-list{gap:0;padding:8px 18px;border-radius:11px;margin-bottom:16px}.manager-plan-modal .production-detail-list div{display:grid;grid-template-columns:minmax(220px,1fr) minmax(270px,auto);align-items:center;gap:24px;padding:12px 2px;border-bottom:1px solid #e0e3dd;font-size:11.5px;line-height:1.5}.manager-plan-modal .production-detail-list div:last-child{border-bottom:0}.manager-plan-modal .production-detail-list span{color:#536159;font-weight:500}.manager-plan-modal .production-detail-list strong{font-size:11.5px;color:#20392f}.manager-plan-modal .modal-note{padding:14px 16px;font-size:11px;line-height:1.6}.manager-plan-modal .modal-actions{margin-top:20px}.manager-plan-modal .modal-actions .btn{min-height:42px;padding-inline:18px;font-size:11px}
@media(max-width:700px){.business-modal.manager-plan-modal{width:calc(100vw - 20px);padding:22px 18px}.manager-plan-modal .modal-head h2{font-size:21px}.manager-plan-modal .production-detail-list{padding:7px 13px}.manager-plan-modal .production-detail-list div{grid-template-columns:1fr;gap:4px;padding:11px 0;font-size:11px}.manager-plan-modal .production-detail-list strong{text-align:left;font-size:11px}}

/* Lab semi-finished receipt */
.business-modal.lab-receipt-modal{width:min(1050px,calc(100vw - 32px));height:min(850px,calc(100vh - 40px));max-height:none;padding:0;overflow:hidden;display:flex;flex-direction:column}.lab-receipt-modal .modal-head{flex:0 0 auto;align-items:flex-start;padding:23px 28px 19px;border-bottom:1px solid var(--line);background:var(--paper)}.lab-receipt-modal .modal-head .eyebrow{font-size:9.5px;margin-bottom:8px}.lab-receipt-modal .modal-head h2{font-size:25px;line-height:1.15}.lab-receipt-modal form{display:flex;flex:1;min-height:0;flex-direction:column;margin:0}.lab-receipt-modal #businessModalFields{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden;margin:0;padding:21px 28px 18px}.lab-receipt-modal .modal-actions{flex:0 0 auto;margin:0;padding:14px 28px 16px;border-top:1px solid var(--line);background:rgba(255,254,250,.98);box-shadow:0 -8px 22px rgba(30,49,39,.04)}.lab-receipt-modal .modal-actions .btn{min-width:105px;height:42px;justify-content:center}.lab-receipt-summary,.lab-reconcile-section{border:1px solid #e2e5de;border-radius:12px;background:#fff;overflow:hidden}.lab-receipt-summary{flex:0 0 auto;padding:17px 18px 4px}.lab-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.lab-section-heading>div>strong,.lab-section-heading>div>span{display:block}.lab-section-heading>div>strong{font-size:12px;color:#24382f}.lab-section-heading>div>span{margin-top:4px;font-size:9px;color:#7c867f}.lab-section-heading>em{font-style:normal;font-size:8.5px;font-weight:600;color:#426b56;background:#eaf1eb;border-radius:999px;padding:6px 10px;white-space:nowrap}.lab-summary-fields{display:grid;grid-template-columns:1.35fr 1fr 1fr .7fr;gap:12px;margin-top:15px}.lab-receipt-modal .lab-summary-fields .field{margin:0 0 13px}.lab-receipt-guidance{display:flex;flex:0 0 auto;gap:11px;align-items:flex-start;margin:14px 0;padding:12px 14px;border:1px solid #dae6dc;border-radius:10px;background:#f0f5f0}.lab-receipt-guidance>span{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border-radius:50%;background:#3d6b53;color:#fff;font-size:11px}.lab-receipt-guidance p{margin:0;font-size:9.5px;line-height:1.55;color:#5f6c64}.lab-receipt-guidance p strong{display:block;margin-bottom:2px;color:#274336;font-size:10px}.lab-reconcile-section{display:flex;flex:1 1 auto;min-height:230px;flex-direction:column}.lab-reconcile-section>.lab-section-heading{flex:0 0 auto;padding:15px 17px 13px;border-bottom:1px solid #e8eae5;background:#fbfbf8}.lab-reconcile-table-wrap{flex:1 1 auto;min-height:0;overflow:auto}.lab-reconcile-table{min-width:800px}.lab-reconcile-table thead{position:sticky;top:0;z-index:2;background:#f6f7f3}.lab-reconcile-table th{padding:11px 13px;font-size:8px;letter-spacing:1.05px;color:#8a928c;border-top:0}.lab-reconcile-table th:first-child{width:31%}.lab-reconcile-table th:nth-child(2){width:13%}.lab-reconcile-table th:nth-child(n+3){width:18%}.lab-reconcile-table td{padding:10px 13px;font-size:10px;white-space:normal;vertical-align:middle}.lab-reconcile-table tbody tr:nth-child(even){background:#fdfdfb}.lab-reconcile-table tbody tr:hover{background:#f7faf6}.lab-material-cell strong,.lab-material-cell small{display:block}.lab-material-cell strong{font-size:10.5px;line-height:1.4;color:#20352b}.lab-material-cell small{margin-top:4px;font-size:8px;color:#8c958e}.lab-issued-quantity{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:7px;background:#edf2ed;color:#315844;font-size:10px;font-weight:650;white-space:nowrap}.lab-quantity-field{position:relative;display:block!important;margin:0!important}.lab-quantity-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.lab-quantity-field input{height:38px!important;margin:0!important;padding:0 32px 0 10px!important;background:#fff!important;font-size:10.5px!important;font-variant-numeric:tabular-nums}.lab-quantity-field small{position:absolute;right:10px;top:12px;color:#929a94;font-size:7.5px;pointer-events:none}.lab-quantity-field.returned input{border-color:#d7e3d9;background:#fbfdfb!important}.lab-quantity-field.wasted input{border-color:#eadfd2;background:#fffdf9!important}.lab-receipt-note{flex:0 0 auto;margin-top:13px}.lab-receipt-note .field{margin:0}.lab-receipt-note input{height:42px}
@media(max-width:900px){.lab-summary-fields{grid-template-columns:1fr 1fr}.lab-receipt-modal #businessModalFields{padding-inline:20px}.lab-receipt-modal .modal-head,.lab-receipt-modal .modal-actions{padding-inline:20px}}
@media(max-width:620px){.business-modal.lab-receipt-modal{width:calc(100vw - 16px);height:calc(100vh - 16px)}.lab-receipt-modal .modal-head{padding:18px 16px 15px}.lab-receipt-modal .modal-head h2{font-size:21px}.lab-receipt-modal #businessModalFields{display:block;overflow-y:auto;padding:16px}.lab-receipt-modal .modal-actions{padding:12px 16px}.lab-summary-fields{grid-template-columns:1fr}.lab-receipt-summary{padding:15px 15px 2px}.lab-section-heading{align-items:flex-start}.lab-reconcile-section{display:block;min-height:0}.lab-reconcile-table-wrap{max-height:360px}}

/* Lab material issue */
.business-modal.lab-issue-modal{width:min(980px,calc(100vw - 32px));height:min(830px,calc(100vh - 40px));max-height:none;padding:0;overflow:hidden;display:flex;flex-direction:column}.lab-issue-modal .modal-head{flex:0 0 auto;align-items:flex-start;padding:23px 28px 19px;border-bottom:1px solid var(--line);background:var(--paper)}.lab-issue-modal .modal-head .eyebrow{font-size:9.5px;margin-bottom:8px}.lab-issue-modal .modal-head h2{font-size:25px;line-height:1.15}.lab-issue-modal form{display:flex;flex:1;min-height:0;flex-direction:column;margin:0}.lab-issue-modal #businessModalFields{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden;margin:0;padding:20px 28px 17px}.lab-issue-modal .modal-actions{flex:0 0 auto;margin:0;padding:14px 28px 16px;border-top:1px solid var(--line);background:rgba(255,254,250,.98);box-shadow:0 -8px 22px rgba(30,49,39,.04)}.lab-issue-modal .modal-actions .btn{min-width:116px;height:42px;justify-content:center}.lab-issue-summary,.lab-issue-materials{border:1px solid #e2e5de;border-radius:12px;background:#fff;overflow:hidden}.lab-issue-summary{flex:0 0 auto;padding:16px 18px 3px}.lab-issue-plan{display:grid;grid-template-columns:.75fr 1.65fr .8fr;gap:10px;margin-top:14px}.lab-issue-plan>div{min-width:0;padding:10px 12px;border:1px solid #e6e8e3;border-radius:9px;background:#f8f9f5}.lab-issue-plan span,.lab-issue-plan strong{display:block}.lab-issue-plan span{font-size:8px;color:#8a938c}.lab-issue-plan strong{margin-top:4px;font-size:9.5px;color:#213c30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lab-issue-document-grid{display:grid;grid-template-columns:1fr .75fr 1.25fr;gap:12px;margin-top:13px}.lab-issue-modal .lab-issue-document-grid .field{margin:0 0 12px}.lab-issue-materials{display:flex;flex:1 1 auto;min-height:240px;flex-direction:column}.lab-issue-materials>.lab-section-heading{flex:0 0 auto;padding:14px 17px 12px;border-bottom:1px solid #e8eae5;background:#fbfbf8}.lab-issue-table-wrap{flex:1 1 auto;min-height:0;overflow:auto}.lab-issue-table{min-width:760px}.lab-issue-table thead{position:sticky;top:0;z-index:2;background:#f6f7f3}.lab-issue-table th{padding:11px 14px;font-size:8px;letter-spacing:1px;color:#89928b;border-top:0}.lab-issue-table th:first-child{width:37%}.lab-issue-table th:nth-child(2),.lab-issue-table th:nth-child(3){width:18%}.lab-issue-table th:last-child{width:27%}.lab-issue-table td{padding:10px 14px;font-size:10px;white-space:normal;vertical-align:middle}.lab-issue-table tbody tr:nth-child(even){background:#fdfdfb}.lab-issue-table tbody tr:hover{background:#f7faf6}.lab-stock-quantity{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:7px;background:#edf2ed;color:#315844;font-size:10px;font-weight:650;white-space:nowrap}.lab-stock-quantity.shortage{background:#faeee4;color:#a05f34}.lab-stock-warning{display:block!important;margin-top:4px!important;color:#a05f34!important;font-size:7.5px!important}.lab-issue-modal .lab-receipt-guidance{margin:12px 0}.lab-issue-modal .lab-receipt-note{margin-top:12px}
@media(max-width:760px){.business-modal.lab-issue-modal{width:calc(100vw - 16px);height:calc(100vh - 16px)}.lab-issue-modal .modal-head{padding:18px 16px 15px}.lab-issue-modal .modal-head h2{font-size:21px}.lab-issue-modal #businessModalFields{display:block;overflow-y:auto;padding:16px}.lab-issue-modal .modal-actions{padding:12px 16px}.lab-issue-plan,.lab-issue-document-grid{grid-template-columns:1fr}.lab-issue-plan strong{white-space:normal}.lab-issue-materials{display:block;min-height:0}.lab-issue-table-wrap{max-height:430px}}

/* Workshop dispatch */
.business-modal.workshop-dispatch-modal{width:min(980px,calc(100vw - 32px));height:min(840px,calc(100vh - 40px));max-height:none;padding:0;overflow:hidden;display:flex;flex-direction:column}.workshop-dispatch-modal .modal-head{flex:0 0 auto;align-items:flex-start;padding:23px 28px 19px;border-bottom:1px solid var(--line);background:var(--paper)}.workshop-dispatch-modal .modal-head .eyebrow{font-size:9.5px;margin-bottom:8px}.workshop-dispatch-modal .modal-head h2{font-size:25px;line-height:1.15}.workshop-dispatch-modal form{display:flex;flex:1;min-height:0;flex-direction:column;margin:0}.workshop-dispatch-modal #businessModalFields{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden;margin:0;padding:20px 28px 17px}.workshop-dispatch-modal .modal-actions{flex:0 0 auto;margin:0;padding:14px 28px 16px;border-top:1px solid var(--line);background:rgba(255,254,250,.98);box-shadow:0 -8px 22px rgba(30,49,39,.04)}.workshop-dispatch-modal .modal-actions .btn{min-width:116px;height:42px;justify-content:center}.workshop-dispatch-summary,.workshop-dispatch-materials{border:1px solid #e2e5de;border-radius:12px;background:#fff;overflow:hidden}.workshop-dispatch-summary{flex:0 0 auto;padding:16px 18px 3px}.workshop-plan-select{margin-top:13px}.workshop-plan-select .field{margin-bottom:11px}.workshop-plan-preview{display:grid;grid-template-columns:.75fr 1.65fr .75fr;gap:10px;margin-bottom:13px}.workshop-plan-preview>div{min-width:0;padding:9px 11px;border:1px solid #e6e8e3;border-radius:9px;background:#f8f9f5}.workshop-plan-preview span,.workshop-plan-preview strong{display:block}.workshop-plan-preview span{font-size:8px;color:#8a938c}.workshop-plan-preview strong{margin-top:4px;font-size:9.5px;color:#213c30;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workshop-dispatch-meta{display:grid;grid-template-columns:1.4fr .8fr;gap:12px}.workshop-dispatch-modal .workshop-dispatch-meta .field{margin:0 0 12px}.workshop-dispatch-modal .lab-receipt-guidance{margin:12px 0}.workshop-dispatch-materials{display:flex;flex:1 1 auto;min-height:220px;flex-direction:column}.workshop-dispatch-materials>.lab-section-heading{flex:0 0 auto;padding:14px 17px 12px;border-bottom:1px solid #e8eae5;background:#fbfbf8}.workshop-dispatch-table-wrap{flex:1 1 auto;min-height:0;overflow:auto}.workshop-dispatch-table{min-width:720px}.workshop-dispatch-table thead{position:sticky;top:0;z-index:2;background:#f6f7f3}.workshop-dispatch-table th{padding:11px 14px;font-size:8px;letter-spacing:1px;color:#89928b;border-top:0}.workshop-dispatch-table th:first-child{width:47%}.workshop-dispatch-table th:nth-child(2){width:21%}.workshop-dispatch-table th:last-child{width:32%}.workshop-dispatch-table td{padding:10px 14px;font-size:10px;white-space:normal;vertical-align:middle}.workshop-dispatch-table tbody tr:nth-child(even){background:#fdfdfb}.workshop-dispatch-table tbody tr:hover{background:#f7faf6}.dispatch-stock{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:7px;background:#edf2ed;color:#315844;font-size:10px;font-weight:650;white-space:nowrap}.dispatch-stock.low{background:#faeee4;color:#a05f34}.workshop-dispatch-modal .lab-receipt-note{margin-top:12px}
@media(max-width:760px){.business-modal.workshop-dispatch-modal{width:calc(100vw - 16px);height:calc(100vh - 16px)}.workshop-dispatch-modal .modal-head{padding:18px 16px 15px}.workshop-dispatch-modal .modal-head h2{font-size:21px}.workshop-dispatch-modal #businessModalFields{display:block;overflow-y:auto;padding:16px}.workshop-dispatch-modal .modal-actions{padding:12px 16px}.workshop-plan-preview,.workshop-dispatch-meta{grid-template-columns:1fr}.workshop-plan-preview strong{white-space:normal}.workshop-dispatch-materials{display:block;min-height:0}.workshop-dispatch-table-wrap{max-height:430px}}
.finished-purchase-line-editor{position:relative}
.production-plan-table{min-width:980px}.plan-progress{font-size:9px;color:#65726a}.production-view[data-planning-only="true"] .production-flow{justify-content:flex-start}
.production-status.cancelled{background:#f5e8e4;color:#9b5547}

/* Team accounts and role permissions */
.team-page-head{margin-bottom:20px}.team-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.team-stats article{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:16px 18px}.team-stats small,.team-stats strong,.team-stats span{display:block}.team-stats small{font-size:9px;color:var(--muted)}.team-stats strong{font-size:20px;margin:7px 0 5px}.team-stats span{font-size:8px;color:#89918b}.team-layout{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(260px,.8fr);gap:16px;align-items:start}.team-list-panel{overflow:hidden}.team-toolbar{display:flex;gap:9px;padding:14px 16px;border-bottom:1px solid var(--line)}.team-toolbar .product-search{width:min(390px,42%)}.team-toolbar select{min-width:150px;height:40px;border:1px solid #dfe3dc;background:white;border-radius:8px;padding:0 11px;font:500 10px var(--font-body);color:#606b63}.team-toolbar .compact{margin-left:auto}.team-table{min-width:900px}.team-member{display:flex;align-items:center;gap:10px}.team-member>span{width:36px;height:36px;border-radius:10px;background:#e6ece7;color:#2c5a44;display:grid;place-items:center;font-size:9px;font-weight:700}.team-member strong,.team-member small{display:block}.team-member small{margin-top:3px;color:#929b94;font-size:8px}.team-role-badge,.current-session-badge,.role-code{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:8px;white-space:nowrap}.team-role-badge{background:#eef1ec;color:#4e6759}.current-session-badge{background:#e4eee7;color:#35684d;font-weight:600}.role-guide{overflow:hidden}.role-guide-list{padding:4px 17px 14px}.role-guide-list article{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 0;border-top:1px solid var(--line)}.role-guide-list article:first-child{border-top:0}.role-guide-list strong,.role-guide-list span{display:block}.role-guide-list strong{font-size:10px}.role-guide-list article div span{font-size:8px;color:var(--muted);line-height:1.55;margin-top:4px}.role-code{background:#f1f2ee;color:#788179;font-family:monospace;font-size:7px}
.team-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:16px;padding:0 8px}.team-tab{border:0;background:none;padding:12px 0 11px;font:600 10px var(--font-body);color:#7c857e;cursor:pointer;border-bottom:2px solid transparent}.team-tab.active{color:var(--green);border-bottom-color:var(--green)}.team-tab-panel{display:none}.team-tab-panel.active{display:block}.team-form-panel{max-width:960px;overflow:hidden}.team-inline-form{padding:20px;display:grid;gap:14px}.team-inline-form .field{margin:0}.team-inline-form select,.team-inline-form textarea{width:100%;border:1px solid #dce1da;border-radius:8px;background:#fff;padding:11px 12px;font:500 10px var(--font-body);color:#25352d}.team-inline-form select{height:42px}.team-inline-form textarea{resize:vertical;min-height:90px}.team-form-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:4px}.team-role-table{min-width:820px}.team-role-table td strong,.team-role-table td small{display:block}.team-role-table td small{margin-top:4px;color:var(--muted);font-size:8px}.team-role-kind{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef1ec;color:#5a6b61;font-size:8px}.team-role-kind.custom{background:#f5ead9;color:#93683a}
@media(max-width:1050px){.team-layout{grid-template-columns:1fr}.team-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.team-toolbar{flex-wrap:wrap}.team-toolbar .product-search{width:100%}.team-toolbar select{flex:1}.team-toolbar .compact{margin-left:0}.team-page-head{flex-direction:row}.team-tabs{overflow-x:auto;gap:18px}.team-tab{white-space:nowrap}.team-inline-form .form-grid{grid-template-columns:1fr}}
@media(max-width:520px){.team-stats{grid-template-columns:1fr 1fr;gap:8px}.team-page-head{flex-direction:column}.team-page-head .btn{width:100%;justify-content:center}}
.warehouse-catalog-icon{width:38px;height:38px;border-radius:9px;background:#e7eee9;color:#2d5c46;display:grid;place-items:center;font-size:8px;font-weight:700;letter-spacing:.5px}

/* Authentication, account and notifications */
body.auth-locked{overflow:hidden}.login-screen{position:fixed;inset:0;z-index:500;background:#f8f6f0;display:none;grid-template-columns:minmax(360px,1.05fr) minmax(440px,.95fr)}body.auth-locked .login-screen{display:grid}body.auth-locked .app-shell{filter:blur(5px);pointer-events:none;user-select:none}.login-visual{position:relative;overflow:hidden;padding:46px 54px;color:#fff;background:radial-gradient(circle at 18% 20%,rgba(220,199,145,.18),transparent 34%),linear-gradient(145deg,#173c31,#244f3f 62%,#1d4437);display:flex;flex-direction:column}.login-visual:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(255,255,255,.08);border-radius:48% 52% 43% 57%;right:-190px;bottom:-250px;transform:rotate(22deg)}.login-brand{display:flex;align-items:center;gap:13px;position:relative;z-index:1}.login-brand>span,.login-mobile-brand>span{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#d8c28b;color:#173c31;font-size:24px;font-weight:700}.login-brand strong{display:block;font-size:21px}.login-brand small{display:block;margin-top:3px;font-size:8px;letter-spacing:2px;color:#c0cec7}.login-message{margin:auto 0;position:relative;z-index:1;max-width:620px}.login-message p{font-size:10px;letter-spacing:2.4px;color:#d8c28b;font-weight:600}.login-message h1{font-size:clamp(38px,4vw,62px);line-height:1.12;letter-spacing:-2px;margin:18px 0 21px}.login-message span{font-size:13px;color:#c7d2cc;line-height:1.8}.login-quote{position:relative;z-index:1;max-width:510px;padding-top:20px;border-top:1px solid rgba(255,255,255,.13);font-size:11px;line-height:1.75;color:#aebfb6}.login-form-side{display:grid;place-items:center;padding:38px}.login-card{width:min(430px,100%);background:#fffdfa;border:1px solid #e6e2d8;border-radius:18px;padding:38px;box-shadow:0 22px 70px rgba(31,55,43,.09)}.login-card h2{margin:4px 0 8px;font-size:28px;color:#1c352b}.login-intro{font-size:11px;line-height:1.65;color:#7e877f;margin:0 0 25px}.login-mobile-brand{display:none}.login-field{display:block;margin:0 0 16px}.login-field>span{display:block;font-size:10px;font-weight:600;margin-bottom:7px;color:#44544a}.login-field input{width:100%;height:47px;border:1px solid #dcded7;border-radius:9px;background:white;padding:0 13px;font:400 12px "Be Vietnam Pro";outline:none}.login-field input:focus{border-color:#577965;box-shadow:0 0 0 3px rgba(54,98,76,.09)}.password-input{position:relative}.password-input input{padding-right:58px}.password-input button{position:absolute;right:8px;top:8px;height:31px;border:0;background:#f1f3ef;color:#355b47;border-radius:6px;padding:0 9px;font:600 9px "Be Vietnam Pro";cursor:pointer}.login-options{display:flex;align-items:center;justify-content:space-between;font-size:9px;margin:2px 0 7px}.login-options label{display:flex;align-items:center;gap:6px;color:#657168}.login-options button{border:0;background:none;color:#2e654b;font:600 9px "Be Vietnam Pro";cursor:pointer}.login-error{min-height:18px;margin:7px 0;color:#a44d45;font-size:9px}.login-submit{width:100%;height:47px;border:0;border-radius:9px;background:#183f33;color:white;font:600 11px "Be Vietnam Pro";cursor:pointer}.login-submit:hover{background:#215440}.login-help{margin-top:22px;padding:13px 14px;background:#f4f4ee;border:1px solid #e6e5dd;border-radius:9px}.login-help span,.login-help strong,.login-help small{display:block}.login-help span{font-size:8px;color:#818980}.login-help strong{font-size:10px;margin:5px 0}.login-help small{font-size:8px;color:#9a8470}
.notification-wrap{position:relative}.notification-count{position:absolute;top:-4px;right:-5px;min-width:18px;height:18px;border:2px solid #fff;border-radius:10px;background:#b95e48;color:white;display:grid;place-items:center;padding:0 4px;font-size:8px;font-weight:700}.notification-dot.hidden,.notification-count.hidden{display:none!important}.notification-panel{position:absolute;right:0;top:49px;width:390px;max-height:min(600px,calc(100vh - 100px));background:#fffdfa;border:1px solid var(--line);border-radius:13px;box-shadow:0 24px 70px rgba(22,48,38,.18);display:none;overflow:hidden}.notification-panel.open{display:flex;flex-direction:column}.notification-panel-head{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid var(--line)}.notification-panel-head>div strong,.notification-panel-head>div span{display:block}.notification-panel-head strong{font-size:13px}.notification-panel-head span{font-size:8px;color:var(--muted);margin-top:4px}.notification-panel-head button,.notification-panel-foot button{border:0;background:none;color:#35634c;font:600 8px "Be Vietnam Pro";cursor:pointer}.notification-list{overflow:auto;max-height:460px}.notification-item{width:100%;border:0;border-bottom:1px solid #eff0eb;background:#fffdfa;padding:14px 16px;display:grid;grid-template-columns:34px 1fr auto;gap:10px;text-align:left;cursor:pointer}.notification-item:hover{background:#f7f7f1}.notification-item.unread{background:#f2f6f1}.notification-item-icon{width:34px;height:34px;border-radius:9px;background:#e4eee7;color:#315f49;display:grid;place-items:center;font-size:14px}.notification-item-content strong,.notification-item-content span,.notification-item-content small{display:block}.notification-item-content strong{font-size:9.5px}.notification-item-content span{font-size:8px;color:#6f7871;line-height:1.55;margin-top:3px}.notification-item-content small{font-size:7px;color:#a0a69f;margin-top:5px}.notification-unread{width:7px;height:7px;border-radius:50%;background:#b87748;margin-top:5px}.notification-empty{padding:42px 22px;text-align:center;color:#8a938c}.notification-empty strong,.notification-empty span{display:block}.notification-empty strong{font-size:11px;color:#536057}.notification-empty span{font-size:8px;margin-top:6px}.notification-panel-foot{display:flex;justify-content:space-between;padding:11px 14px;border-top:1px solid var(--line);background:#fafaf6}
.account-profile-summary{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);background:#f7f7f2;border-radius:10px;margin-bottom:15px}.account-profile-summary>span{width:48px;height:48px;border-radius:50%;background:#d3bd87;color:#fff;display:grid;place-items:center;font-weight:700}.account-profile-summary strong,.account-profile-summary small{display:block}.account-profile-summary small{color:var(--muted);font-size:8px;margin-top:4px}.account-setting-section{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.account-setting-section h3{font-size:11px;margin:0 0 10px}.account-setting-section .switch-row{margin-bottom:8px}
@media(max-width:850px){.login-screen{grid-template-columns:1fr}.login-visual{display:none}.login-form-side{padding:20px}.login-mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:26px}.login-mobile-brand>span{width:39px;height:39px;font-size:19px}.notification-panel{position:fixed;left:12px;right:12px;top:70px;width:auto}.user-copy{display:none}}

/* Vietnamese-safe page headings */
.page-head>div{min-width:0}.page-head h1{font-family:"Be Vietnam Pro","Segoe UI",sans-serif!important;font-size:32px;font-weight:650;line-height:1.32;letter-spacing:-.018em;overflow-wrap:anywhere;padding-block:2px}.page-head .eyebrow{line-height:1.5}.page-head>div>p:last-child{line-height:1.6}.formulas-view .page-head{align-items:center}.formulas-view .page-head>div{max-width:min(900px,80vw)}
th{line-height:1.5;word-break:normal;overflow-wrap:normal}
@media(max-width:760px){.page-head h1{font-size:27px;line-height:1.36;letter-spacing:-.012em}.formulas-view .page-head>div{max-width:100%}}
.role-hidden{display:none!important}
@media(max-width:760px){.material-stock-toolbar,.finished-purchase-toolbar{flex-wrap:wrap}.material-stock-toolbar .product-search,.finished-purchase-toolbar .product-search{width:100%}.material-stock-toolbar select,.finished-purchase-toolbar select{flex:1}.material-stock-toolbar .compact,.finished-purchase-toolbar .compact{margin-left:0}.formula-version-card>div:first-child{align-items:flex-start;flex-direction:column}.finished-purchase-line-editor{grid-template-columns:1fr 1fr}.finished-purchase-line-editor .field:first-child,.finished-line-total{grid-column:1/-1}.finished-purchase-line-editor .formula-remove{position:absolute;right:34px}.purchase-detail-line{grid-template-columns:1fr 1fr}.purchase-detail-line>strong{text-align:left}}
@media(max-width:620px){.formula-line{grid-template-columns:1fr 92px 34px}.category-row{grid-template-columns:39px minmax(0,1fr) auto}.category-row>span:nth-child(3){display:none}}

/* Role dashboard: production staff */
.warehouse-staff-dashboard{display:grid;gap:18px}.warehouse-staff-dashboard.hidden{display:none}
.production-staff-dashboard{display:grid;gap:18px}.production-staff-dashboard.hidden{display:none}.production-dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.production-dashboard-metrics>button{min-width:0;min-height:126px;padding:19px 20px;border:1px solid var(--line);border-radius:12px;background:var(--paper);text-align:left;color:inherit;cursor:pointer;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.production-dashboard-metrics>button:hover{transform:translateY(-2px);border-color:#bdcabf;box-shadow:0 10px 28px rgba(36,64,51,.07)}.production-dashboard-metrics span,.production-dashboard-metrics strong,.production-dashboard-metrics small{display:block}.production-dashboard-metrics span{font-size:10px;color:#6e7971}.production-dashboard-metrics strong{margin:9px 0 6px;font-size:25px;line-height:1;color:#173b30}.production-dashboard-metrics small{font-size:8.5px;line-height:1.5;color:#929a94}.production-dashboard-section{padding:19px 20px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.production-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.production-dashboard-heading h2,.production-dashboard-heading h3{margin:0;font-size:14px}.production-dashboard-heading p{margin:5px 0 0;font-size:9px;color:var(--muted)}.production-dashboard-heading>span{display:inline-flex;padding:7px 10px;border:1px solid #dfe5de;border-radius:999px;background:#f4f7f3;color:#567061;font-size:8px;white-space:nowrap}.production-dashboard-work{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:16px}.production-work-card{position:relative;min-height:154px;padding:16px;border:1px solid #e2e5df;border-radius:11px;background:#fafbf8;text-align:left;color:inherit;cursor:pointer;overflow:hidden}.production-work-card:after{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#63866f}.production-work-card.amber:after{background:#c28a4f}.production-work-card.blue:after{background:#6c91a4}.production-work-card.violet:after{background:#877c9b}.production-work-count{width:32px;height:32px;border-radius:9px;background:#e7eee8;color:#285943;display:grid;place-items:center;font-size:14px;font-weight:700}.production-work-card.amber .production-work-count{background:#f5eadb;color:#9a6735}.production-work-card.blue .production-work-count{background:#e7f0f3;color:#53798a}.production-work-card.violet .production-work-count{background:#eeeaf2;color:#6e6281}.production-work-card strong,.production-work-card small,.production-work-card i{display:block}.production-work-card strong{margin-top:13px;font-size:10.5px}.production-work-card small{min-height:36px;margin-top:6px;font-size:8px;line-height:1.55;color:#7b857e}.production-work-card i{margin-top:9px;color:#35634d;font-size:8px;font-style:normal;font-weight:600}.production-work-card:hover{border-color:#bbc9be;background:#fff}.production-dashboard-panel{overflow:hidden}.production-dashboard-panel>.panel-head{padding:18px 20px;border-bottom:1px solid var(--line)}.production-dashboard-table-wrap{overflow:auto}.production-dashboard-table{width:100%;min-width:880px;border-collapse:collapse}.production-dashboard-table th{padding:12px 16px;background:#fafaf7;text-align:left}.production-dashboard-table td{padding:14px 16px;border-top:1px solid #eceee9;font-size:9px;color:#526158}.production-dashboard-table tbody tr:first-child td{border-top:0}.production-dashboard-table td strong,.production-dashboard-table td small{display:block}.production-dashboard-table td strong{font-size:9.5px;color:#1e382e}.production-dashboard-table td small{margin-top:4px;font-size:7.5px;color:#929b94}.production-dashboard-quick{display:flex;align-items:center;justify-content:space-between;gap:20px}.production-dashboard-quick h2{margin:0;font-size:13px}.production-dashboard-quick p{margin:5px 0 0;font-size:8px;color:var(--muted)}.production-dashboard-quick>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.production-dashboard-quick button{height:34px;padding:0 12px;border:1px solid #dce2dc;border-radius:8px;background:#fff;color:#355b48;font:600 8.5px var(--font-body);cursor:pointer}.production-dashboard-quick button:first-child{border-color:#194637;background:#194637;color:#fff}.production-dashboard-quick button:hover{filter:brightness(.97)}
@media(max-width:1180px){.production-dashboard-metrics,.production-dashboard-work{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.production-dashboard-metrics,.production-dashboard-work{grid-template-columns:1fr}.production-dashboard-metrics>button{min-height:108px}.production-dashboard-heading,.production-dashboard-quick{align-items:flex-start;flex-direction:column}.production-dashboard-heading>span{white-space:normal}.production-dashboard-quick>div:last-child{justify-content:flex-start}.production-dashboard-quick button{flex:1 1 calc(50% - 8px)}}

/* Cash flow and supplier payables */
.finance-ledger-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:2px 0 18px}.finance-ledger-stats article{padding:16px 18px;border:1px solid var(--line);border-radius:11px;background:var(--paper)}.finance-ledger-stats small,.finance-ledger-stats strong,.finance-ledger-stats span{display:block}.finance-ledger-stats small{font-size:9px;color:var(--muted)}.finance-ledger-stats strong{margin:7px 0 5px;font-size:20px;color:#173b30}.finance-ledger-stats strong.negative{color:#a45143}.finance-ledger-stats span{font-size:8px;color:#8a948d}.finance-ledger-panel{overflow:hidden}.finance-ledger-toolbar{display:flex;align-items:center;gap:9px;padding:13px 16px;border-bottom:1px solid var(--line);background:#fafaf7}.finance-ledger-toolbar select{height:38px;min-width:190px;border:1px solid #dfe3dc;border-radius:8px;background:#fff;padding:0 32px 0 11px;color:#526158;font:500 9px var(--font-body)}.finance-ledger-toolbar .btn{margin-left:auto}.finance-ledger-table{min-width:1180px}.finance-payable-table{min-width:1050px}.cashflow-type{display:inline-flex;min-width:42px;justify-content:center;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:600}.cashflow-type.income{background:#e5f0e8;color:#35704f}.cashflow-type.expense{background:#f5e8e4;color:#9b5547}.cashflow-amount{white-space:nowrap}.cashflow-amount.income{color:#34704e}.cashflow-amount.expense,.payable-balance{color:#ad5b45}.finance-payment-history-head{margin-top:24px}.finance-panel[data-finance-panel="payables"] .production-table td small{display:block;margin-top:4px;color:#8b958e;font-size:7.5px}
@media(max-width:1100px){.finance-ledger-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.finance-ledger-stats{grid-template-columns:1fr 1fr;gap:8px}.finance-ledger-toolbar{flex-wrap:wrap}.finance-ledger-toolbar select{flex:1;min-width:140px}.finance-ledger-toolbar .btn{margin-left:0}}
.purchase-relocated{display:none!important}

/* Grouped executive navigation */
.nav{min-height:0;overflow-y:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav-label{margin:15px 13px 7px}
.nav>.nav-label:first-child{margin-top:8px}

/* TikTok Shop sales channel */
.tiktok-nav-icon{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:#101820;color:#fff;font-size:12px;font-weight:800}.channel-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:#c8ccc7}.channel-dot.connected{background:#54a873;box-shadow:0 0 0 3px #e4f1e8}.tiktok-view{max-width:1680px;padding-bottom:64px}.tiktok-page-head{align-items:flex-end;margin-bottom:16px}.channel-readiness{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid #dce1dc;border-radius:999px;background:#f2f3f0;color:#6d756f;font-size:9px;font-weight:650;white-space:nowrap}.channel-readiness.ready{border-color:#cce3d4;background:#e9f5ed;color:#39704f}.tiktok-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.tiktok-stats article{min-height:91px;padding:14px 16px;border:1px solid #e1e5df;border-radius:11px;background:var(--paper);box-shadow:0 2px 10px rgba(34,61,48,.018)}.tiktok-stats small,.tiktok-stats strong,.tiktok-stats span{display:block}.tiktok-stats small{color:var(--muted);font-size:10px}.tiktok-stats strong{margin-top:7px;font-size:22px;line-height:1.15}.tiktok-stats span{margin-top:6px;color:#879188;font-size:8px;line-height:1.45}.tiktok-tabs{display:flex;gap:4px;margin:14px 0 20px;padding:5px;border:1px solid #e1e5df;border-radius:11px;background:#eef1ed;overflow-x:auto}.tiktok-tab{appearance:none;border:0;background:none;padding:9px 13px;border-radius:7px;color:#68746c;font:600 9.5px var(--font-body);white-space:nowrap;cursor:pointer}.tiktok-tab:hover{color:#244f3d;background:rgba(255,255,255,.55)}.tiktok-tab.active{background:#fff;color:#173f31;box-shadow:0 1px 5px rgba(31,61,48,.09)}.tiktok-panel{display:none}.tiktok-panel.active{display:block}.tiktok-overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,.75fr);gap:16px}.tiktok-connection-card,.tiktok-health-card,.tiktok-list-panel,.tiktok-settings-card,.tiktok-endpoint-card{border-color:#e1e5df;border-radius:12px;box-shadow:0 3px 14px rgba(34,61,48,.025)}.tiktok-connection-card,.tiktok-health-card{padding:17px}.tiktok-view .section-action-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:0 2px 12px}.tiktok-view .section-action-head h3{margin:0;font-size:13px}.tiktok-view .section-action-head p{margin:5px 0 0;color:#7b867e;font-size:8.5px;line-height:1.55}.tiktok-health-list{display:grid;gap:7px}.tiktok-health-list>div{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-radius:9px;background:#f3f5f2;font-size:9px}.tiktok-health-list strong{font-size:13px}.tiktok-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center;border:1px dashed #dce2dc;border-radius:10px;background:#fbfcf9}.tiktok-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#151b20;color:#fff;font-size:22px}.tiktok-empty strong{margin-top:12px;font-size:11px}.tiktok-empty p{max-width:390px;margin:7px auto 14px;color:var(--muted);font-size:8.5px;line-height:1.6}.tiktok-empty.compact{min-height:170px;border:0;background:#fff}.tiktok-shop-row{display:grid;grid-template-columns:40px minmax(180px,1fr) auto 150px auto;gap:11px;align-items:center;padding:13px 4px;border-top:1px solid var(--line)}.tiktok-shop-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#131b20;color:#fff;font-size:19px}.tiktok-shop-row strong,.tiktok-shop-row small{display:block}.tiktok-shop-row small{margin-top:3px;color:var(--muted);font-size:7.5px}.tiktok-shop-row time{color:var(--muted);font-size:8px}.channel-pill{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef0ed;color:#707872;font-size:7.5px;white-space:nowrap}.channel-pill.success{background:#e5f3e9;color:#37714e}.channel-pill.danger{background:#fae9e7;color:#a34a3e}.tiktok-settings-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.65fr);gap:16px;align-items:start}.tiktok-settings-card{overflow:hidden}.tiktok-settings-body{padding:18px}.tiktok-setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}.tiktok-setting-row strong,.tiktok-setting-row small{display:block}.tiktok-setting-row strong{font-size:9.5px}.tiktok-setting-row small{margin-top:4px;color:var(--muted);font-size:7.5px;line-height:1.5}.tiktok-setting-row input{appearance:none;flex:0 0 auto;width:36px;height:20px;border-radius:11px;background:#cbd0cb;position:relative;cursor:pointer}.tiktok-setting-row input:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.17);transition:.15s}.tiktok-setting-row input:checked{background:#255b45}.tiktok-setting-row input:checked:after{left:19px}.tiktok-settings-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:17px}.tiktok-settings-actions span{color:var(--muted);font-size:8px}.tiktok-endpoint-card{padding:18px}.tiktok-endpoint-card h3{margin:0;font-size:12px}.tiktok-endpoint-card>p{margin:5px 0 17px;color:var(--muted);font-size:8px;line-height:1.55}.tiktok-endpoint-card label{display:block;margin:13px 0 6px;color:#59655d;font-size:8px;font-weight:650}.tiktok-endpoint-card code{display:block;padding:10px;border:1px solid #e1e5df;border-radius:8px;background:#f6f7f4;color:#365846;font:8px/1.5 monospace;overflow-wrap:anywhere}.tiktok-security-note{margin-top:17px;padding:13px;border-radius:9px;background:#edf3ee}.tiktok-security-note strong,.tiktok-security-note span{display:block}.tiktok-security-note strong{font-size:9px}.tiktok-security-note span{margin-top:4px;color:#637168;font-size:7.5px;line-height:1.55}.tiktok-list-panel{overflow:hidden}.tiktok-toolbar{display:flex;align-items:center;gap:8px;padding:11px 13px;background:#fafbf8;border-bottom:1px solid #e5e8e2}.tiktok-toolbar .product-search{flex:1;width:auto}.tiktok-toolbar select{height:38px;min-width:180px;border:1px solid #dce2dc;border-radius:8px;background:#fff;padding:0 28px 0 11px;font:500 8.5px var(--font-body);color:#56645b}.tiktok-table-wrap{overflow:auto}.tiktok-table{width:100%;min-width:900px;border-collapse:collapse}.tiktok-table th{padding:11px 15px;border-bottom:1px solid #e7e9e4;background:#f7f8f5;color:#89928b;font-size:7.5px;letter-spacing:1.15px;text-align:left}.tiktok-table td{padding:13px 15px;border-top:1px solid #eceee9;font-size:8.8px;vertical-align:middle}.tiktok-table td strong,.tiktok-table td small{display:block}.tiktok-table td small{margin-top:4px;color:#8f9891;font-size:7.3px}.tiktok-product-cell{display:flex;align-items:center;gap:10px;min-width:260px}.tiktok-product-thumb{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:8px;background:#e9eee9;color:#476153;font-size:8px;font-weight:700;overflow:hidden}.tiktok-product-thumb img{width:100%;height:100%;object-fit:cover}.tiktok-connect-modal{width:min(620px,calc(100vw - 32px));max-width:620px}.tiktok-connect-steps{display:grid;gap:10px}.tiktok-connect-steps>div{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;padding:11px;border:1px solid var(--line);border-radius:9px}.tiktok-connect-steps i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e8f0eb;color:#295a43;font-style:normal;font-size:9px;font-weight:700}.tiktok-connect-steps strong,.tiktok-connect-steps small{display:block}.tiktok-connect-steps strong{font-size:9px}.tiktok-connect-steps small{margin-top:3px;color:var(--muted);font-size:7.5px;line-height:1.5}
@media(max-width:950px){.tiktok-stats{grid-template-columns:repeat(2,1fr)}.tiktok-overview-grid,.tiktok-settings-layout{grid-template-columns:1fr}}
@media(max-width:640px){.tiktok-page-head{align-items:flex-start;flex-direction:column}.tiktok-page-head .head-actions{width:100%}.tiktok-page-head .head-actions .btn{flex:1;justify-content:center}.tiktok-stats{grid-template-columns:1fr 1fr}.tiktok-view .section-action-head{align-items:flex-start;flex-direction:column}.tiktok-toolbar{flex-wrap:wrap}.tiktok-toolbar .product-search,.tiktok-toolbar select{width:100%;flex-basis:100%}.tiktok-shop-row{grid-template-columns:38px 1fr auto}.tiktok-shop-row time,.tiktok-shop-row button{grid-column:2/-1}}
.purchasing-view{padding-bottom:64px}.purchasing-page-head{align-items:flex-end}.purchasing-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.purchasing-tabs{display:flex;gap:26px;border-bottom:1px solid var(--border);margin:24px 0 16px;overflow-x:auto}.purchasing-tab{appearance:none;border:0;background:none;color:var(--muted);font:inherit;font-weight:600;padding:0 0 13px;white-space:nowrap;cursor:pointer}.purchasing-tab.active{color:var(--green);border-bottom:2px solid var(--green)}.purchasing-panel{display:none}.purchasing-panel.active{display:block}.purchasing-overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px}.purchasing-pipeline,.purchasing-scope-card{padding:18px}.purchasing-pipeline .section-action-head{margin:0 0 8px}.purchasing-pipeline-list{display:grid;gap:8px}.purchasing-pipeline-list>button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border);background:#fff;border-radius:10px;padding:12px;text-align:left;cursor:pointer}.purchasing-pipeline-list>button:hover{border-color:#9fb5aa;background:#f8faf8}.purchasing-pipeline-list strong,.purchasing-pipeline-list small{display:block}.purchasing-pipeline-list small{color:var(--muted);margin-top:3px}.purchasing-scope-card h3{margin:0 0 14px}.purchasing-scope-list{display:grid;gap:8px}.purchasing-scope-list>div{display:flex;justify-content:space-between;gap:16px;padding:11px 12px;border-radius:9px;background:#f3f5f2}.purchasing-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 220px 220px;gap:10px;padding:14px;border-bottom:1px solid var(--border)}.purchasing-toolbar input,.purchasing-toolbar select{min-height:40px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:0 12px;color:var(--text)}.purchasing-table td{vertical-align:middle}.purchase-workflow-modal{width:min(760px,calc(100vw - 32px));max-width:760px}.purchase-receipt-modal{width:min(980px,calc(100vw - 32px));max-width:980px}.purchase-price-line,.purchase-receive-line{border:1px solid var(--border);border-radius:12px;padding:14px;margin-top:12px;background:#fbfcfa}.purchase-price-line>strong,.purchase-price-line>small,.purchase-receive-line>div:first-child strong,.purchase-receive-line>div:first-child small{display:block}.purchase-price-line>small,.purchase-receive-line small{color:var(--muted);margin:3px 0 12px}.purchase-receive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.purchase-timeline{position:relative;margin-top:18px;display:grid;gap:12px}.purchase-event{display:grid;grid-template-columns:16px 1fr;gap:10px}.purchase-event>span{width:10px;height:10px;border-radius:50%;background:var(--green);margin-top:5px;box-shadow:0 0 0 4px #e8f0eb}.purchase-event strong,.purchase-event small{display:block}.purchase-event small{color:var(--muted);margin-top:2px}.purchase-event p{margin:5px 0 0;color:#8b3d2f}.production-status.cancelled{background:#f8e8e5;color:#a24334}
@media(max-width:1100px){.purchasing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.purchasing-overview-grid{grid-template-columns:1fr}.purchasing-toolbar{grid-template-columns:1fr}.purchase-receive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.purchasing-stats,.purchase-receive-grid{grid-template-columns:1fr}.purchasing-tabs{gap:18px}}

/* Purchasing workspace refinement */
.purchasing-view{max-width:1680px}.purchasing-page-head{margin-bottom:16px;padding-bottom:2px}.purchasing-page-head>div>p:last-child{max-width:720px}.purchasing-page-head .btn{height:42px;padding-inline:18px}.purchasing-stats{gap:10px;margin:0 0 14px}.purchasing-stats article{min-height:91px;padding:14px 16px;border-radius:11px}.purchasing-stats article strong{font-size:22px;margin-top:7px}.purchasing-stats article span{font-size:8px;line-height:1.45}.purchasing-tabs{gap:4px;margin:14px 0 20px;padding:5px;border:1px solid #e1e5df;border-radius:11px;background:#eef1ed;overflow-x:auto}.purchasing-tab{padding:9px 13px;border-radius:7px;color:#68746c;font-size:9.5px;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.purchasing-tab:hover{color:#244f3d;background:rgba(255,255,255,.55)}.purchasing-tab.active{border-bottom:0;background:#fff;color:#173f31;box-shadow:0 1px 5px rgba(31,61,48,.09)}.purchasing-section-head{align-items:flex-end;margin:0 2px 10px}.purchasing-section-head h3{margin:0;font-size:13px}.purchasing-section-head p{margin:5px 0 0;color:#7b867e;font-size:8.5px}.purchasing-head-tools{display:flex;align-items:center;gap:9px}.purchasing-result-count{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid #dbe3dc;border-radius:999px;background:#f4f7f3;color:#416550;font-size:8px;font-weight:650;white-space:nowrap}.purchasing-list-panel{overflow:hidden;border-radius:12px;box-shadow:0 3px 14px rgba(34,61,48,.025)}.purchasing-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:11px 13px;background:#fafbf8;border-bottom:1px solid #e5e8e2}.purchasing-toolbar input,.purchasing-toolbar select{height:38px;min-height:38px;border-color:#dce2dc;border-radius:8px;padding:0 31px 0 11px;font:500 8.5px var(--font-body);outline:none}.purchasing-toolbar input:focus,.purchasing-toolbar select:focus{border-color:#789483;box-shadow:0 0 0 3px rgba(54,98,76,.08)}.purchasing-toolbar select{flex:0 1 190px;min-width:155px}.purchasing-toolbar input[type=date]{flex:0 0 142px;color:#56645b}.purchasing-search{position:relative;display:flex;align-items:center;flex:1 1 300px;min-width:230px}.purchasing-search>span{position:absolute;left:12px;z-index:1;color:#839087;font-size:14px;pointer-events:none}.purchasing-search input{width:100%;padding-left:34px}.purchasing-reset{height:38px;margin-left:auto;white-space:nowrap}.purchasing-table{min-width:990px}.purchasing-table thead th{padding:11px 15px;background:#f7f8f5;color:#89928b;font-size:7.5px;letter-spacing:1.15px}.purchasing-table tbody td{padding:13px 15px;border-top-color:#eceee9;font-size:8.8px}.purchasing-table tbody tr{transition:background .12s ease}.purchasing-table tbody tr:hover{background:#fafbf8}.purchasing-table td strong,.purchasing-table td small{display:block}.purchasing-table td small{margin-top:4px;color:#8f9891;font-size:7.3px;line-height:1.45}.purchasing-table .table-actions{justify-content:flex-end;flex-wrap:nowrap}.purchasing-table .table-action-btn{height:30px;padding:0 10px;white-space:nowrap}.purchasing-pipeline,.purchasing-scope-card{border-radius:12px;padding:17px}.purchasing-pipeline-list{gap:7px}.purchasing-pipeline-list>button{min-height:57px;padding:10px 12px;border-color:#e2e6e0}.purchasing-scope-list{gap:7px}.purchasing-scope-list>div{padding:10px 12px;background:#f2f5f1}.purchasing-panel .data-empty{height:132px;background:#fff}.purchasing-panel .data-empty strong{font-size:9px}.purchasing-panel .data-empty span{margin-top:5px;font-size:7.5px;color:#9aa29c}
@media(max-width:1200px){.purchasing-toolbar select{flex:1 1 170px}.purchasing-toolbar input[type=date]{flex:1 1 135px}.purchasing-reset{margin-left:0}.purchasing-page-head{align-items:flex-start}.purchasing-page-head>div:last-child{align-items:flex-end}}
@media(max-width:760px){.purchasing-page-head>div:last-child{width:100%;align-items:stretch}.purchasing-page-head .btn{width:100%;justify-content:center}.purchasing-section-head{align-items:flex-start;flex-direction:column}.purchasing-head-tools{width:100%;justify-content:space-between}.purchasing-toolbar,.purchasing-toolbar-wide{display:flex}.purchasing-search,.purchasing-toolbar select,.purchasing-toolbar input[type=date]{flex:1 1 100%;width:100%}.purchasing-reset{width:100%;justify-content:center}.purchasing-overview-grid{grid-template-columns:1fr}}

/* Workshop packaging supplement */
.business-modal.workshop-packaging-supplement-modal{width:min(980px,calc(100vw - 32px));max-height:min(820px,calc(100vh - 36px));padding:0;overflow:hidden;display:flex;flex-direction:column}.workshop-packaging-supplement-modal .modal-head{flex:0 0 auto;align-items:flex-start;padding:22px 26px 18px;border-bottom:1px solid var(--line)}.workshop-packaging-supplement-modal .modal-head .eyebrow{margin-bottom:7px}.workshop-packaging-supplement-modal .modal-head h2{font-size:24px;line-height:1.25}.workshop-packaging-supplement-modal form{display:flex;flex:1;min-height:0;flex-direction:column;margin:0}.workshop-packaging-supplement-modal #businessModalFields{display:flex;flex:1;min-height:0;flex-direction:column;gap:13px;margin:0;padding:18px 26px;overflow:hidden}.workshop-packaging-supplement-modal .modal-actions{flex:0 0 auto;margin:0;padding:13px 26px 15px;border-top:1px solid var(--line);background:#fffefa;box-shadow:0 -7px 20px rgba(31,54,43,.04)}.workshop-packaging-supplement-modal .modal-actions .btn{min-width:112px;height:41px;justify-content:center}.workshop-supplement-guidance{display:flex;flex:0 0 auto;align-items:flex-start;gap:11px;padding:12px 14px;border:1px solid #dae6dc;border-radius:10px;background:#f1f6f1}.workshop-supplement-guidance>span{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border-radius:50%;background:#3c6a52;color:#fff;font-size:10px;font-weight:700}.workshop-supplement-guidance strong,.workshop-supplement-guidance p{display:block}.workshop-supplement-guidance strong{font-size:10px;color:#294638}.workshop-supplement-guidance p{margin:3px 0 0;color:#657269;font-size:8.5px;line-height:1.55}.workshop-supplement-section{display:flex;flex:1 1 auto;min-height:230px;flex-direction:column;border:1px solid #e1e5de;border-radius:12px;background:#fff;overflow:hidden}.workshop-supplement-section-head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:18px;padding:13px 16px;border-bottom:1px solid #e8ebe6;background:#fbfbf8}.workshop-supplement-section-head strong,.workshop-supplement-section-head span{display:block}.workshop-supplement-section-head strong{font-size:11px;color:#243c31}.workshop-supplement-section-head span{margin-top:3px;color:#89928b;font-size:8px}.workshop-supplement-section-head em{padding:5px 9px;border-radius:999px;background:#eaf1eb;color:#426650;font-size:7.5px;font-style:normal;font-weight:650;white-space:nowrap}.workshop-supplement-table-wrap{flex:1 1 auto;min-height:0;overflow:auto}.workshop-supplement-table{min-width:760px}.workshop-supplement-table thead{position:sticky;top:0;z-index:2;background:#f7f8f5}.workshop-supplement-table th{padding:10px 14px;border-top:0;color:#8c958e;font-size:7.5px;letter-spacing:1px}.workshop-supplement-table th:first-child{width:38%}.workshop-supplement-table th:nth-child(2),.workshop-supplement-table th:nth-child(3){width:18%}.workshop-supplement-table th:last-child{width:26%}.workshop-supplement-table td{padding:10px 14px;vertical-align:middle;white-space:normal}.workshop-supplement-table tbody tr:nth-child(even){background:#fdfdfb}.workshop-supplement-table tbody tr:hover{background:#f7faf6}.workshop-supplement-item{display:flex;align-items:center;gap:10px}.workshop-supplement-item>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:8px;background:#e7eee8;color:#346149;font-size:7.5px;font-weight:700}.workshop-supplement-item strong,.workshop-supplement-item small{display:block}.workshop-supplement-item strong{font-size:10px;line-height:1.4;color:#20372c}.workshop-supplement-item small{margin-top:3px;color:#929a94;font-size:7.5px}.workshop-supplement-metric{display:inline-flex;min-height:30px;align-items:center;padding:5px 9px;border-radius:7px;background:#edf2ed;color:#315844;font-size:9px;font-weight:650;white-space:nowrap}.workshop-supplement-metric.empty{background:#f6ece8;color:#a05a49}.workshop-supplement-input{position:relative;display:block!important;margin:0!important}.workshop-supplement-input>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.workshop-packaging-supplement-modal .workshop-supplement-input input{height:38px;margin:0;padding:0 39px 0 11px;background:#fff;font-size:10px;font-variant-numeric:tabular-nums}.workshop-supplement-input small{position:absolute;right:11px;top:12px;color:#8c958e;font-size:7.5px;pointer-events:none}.workshop-supplement-input input:disabled{background:#f3f4f1;color:#9ca39e;cursor:not-allowed}.workshop-supplement-note{flex:0 0 auto}.workshop-supplement-note .field{margin:0}.workshop-supplement-note input{height:41px}.workshop-supplement-note .field>span{font-size:8.5px}
@media(max-width:720px){.business-modal.workshop-packaging-supplement-modal{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.workshop-packaging-supplement-modal .modal-head{padding:18px 16px 15px}.workshop-packaging-supplement-modal .modal-head h2{font-size:20px}.workshop-packaging-supplement-modal #businessModalFields{padding:15px 16px}.workshop-packaging-supplement-modal .modal-actions{padding:12px 16px}.workshop-supplement-guidance p{font-size:8px}.workshop-supplement-section-head{align-items:flex-start}.workshop-supplement-section-head em{white-space:normal}}

/* Unified management workspace — purchasing is the visual reference */
.module-view{max-width:1680px;padding-bottom:64px}.module-view>.page-head{align-items:flex-end;margin-bottom:16px;padding-bottom:2px}.module-view>.page-head .btn{min-height:42px;padding-inline:18px}.module-view .module-panel{border-color:#e1e5df;border-radius:12px;box-shadow:0 3px 14px rgba(34,61,48,.025)}.module-view .btn{border-radius:8px}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view){max-width:1680px;padding-bottom:64px}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view)>.page-head{align-items:flex-end;margin-bottom:16px;padding-bottom:2px}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view)>.page-head>div>p:last-child{max-width:720px}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view)>.page-head .btn{min-height:42px;padding-inline:18px}

:is(.team-stats,.order-stats,.customer-stats,.production-stats,.product-stats,.warehouse-stats,.finance-ledger-stats){gap:10px;margin:0 0 14px}
:is(.team-stats,.order-stats,.customer-stats,.production-stats,.product-stats,.warehouse-stats,.finance-ledger-stats)>article{min-height:91px;padding:14px 16px;border:1px solid #e1e5df;border-radius:11px;background:var(--paper);box-shadow:0 2px 10px rgba(34,61,48,.018)}
:is(.team-stats,.order-stats,.customer-stats,.production-stats,.warehouse-stats,.finance-ledger-stats)>article strong{margin-top:7px;font-size:22px;line-height:1.15}
:is(.team-stats,.order-stats,.customer-stats,.production-stats,.warehouse-stats,.finance-ledger-stats)>article span{font-size:8px;line-height:1.45}
.product-stats>article{gap:12px}.product-stats .stat-symbol{width:36px;height:36px;flex:0 0 36px;border-radius:9px}.product-stats strong{font-size:22px;line-height:1.15}

:is(.team-tabs,.order-tabs,.customer-tabs,.production-tabs,.formula-tabs,.product-tabs,.warehouse-tabs){display:flex;gap:4px;margin:14px 0 20px;padding:5px;border:1px solid #e1e5df;border-radius:11px;background:#eef1ed;overflow-x:auto}
:is(.team-tab,.order-tab,.customer-tab,.production-tab,.formula-tab,.product-tab,.warehouse-tab){flex:0 0 auto;padding:9px 13px!important;border:0!important;border-radius:7px!important;background:transparent;color:#68746c;font-size:9.5px;line-height:1.35;white-space:nowrap;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
:is(.team-tab,.order-tab,.customer-tab,.production-tab,.formula-tab,.product-tab,.warehouse-tab):hover{background:rgba(255,255,255,.55);color:#244f3d}
:is(.team-tab,.order-tab,.customer-tab,.production-tab,.formula-tab,.product-tab,.warehouse-tab).active{border:0!important;background:#fff!important;color:#173f31!important;box-shadow:0 1px 5px rgba(31,61,48,.09)}
:is(.team-tab,.order-tab,.customer-tab,.production-tab,.formula-tab,.product-tab,.warehouse-tab).active:after{display:none!important}

:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .section-action-head{align-items:flex-end;margin:0 2px 10px}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .section-action-head h3{margin:0;font-size:13px;line-height:1.4}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .section-action-head p{margin:5px 0 0;color:#7b867e;font-size:8.5px;line-height:1.55}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .panel{border-color:#e1e5df;border-radius:12px;box-shadow:0 3px 14px rgba(34,61,48,.025)}

:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar){display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:11px 13px;border-bottom:1px solid #e5e8e2;background:#fafbf8}
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) .product-search{position:relative;display:flex;align-items:center;flex:1 1 300px;min-width:230px;width:auto}
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) .product-search .icon{position:absolute;left:12px;z-index:1;color:#839087;pointer-events:none}
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) input,
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) select{height:38px;min-height:38px;border:1px solid #dce2dc;border-radius:8px;background:#fff;padding:0 31px 0 11px;color:#56645b;font:500 8.5px var(--font-body);outline:none}
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) .product-search input{width:100%;padding-left:35px}
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) select{flex:0 1 190px;min-width:155px}
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) input:focus,
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) select:focus{border-color:#789483;box-shadow:0 0 0 3px rgba(54,98,76,.08)}
:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar)>.btn:last-child{height:38px;margin-left:auto;white-space:nowrap}

:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) :is(.production-table-wrap,.product-table-wrap,.warehouse-table-wrap,.customer-table-wrap,.review-table-wrap,.order-table-wrap){overflow:auto}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table{border-collapse:collapse}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table thead th{padding:11px 15px;border-bottom:1px solid #e7e9e4;background:#f7f8f5;color:#89928b;font-size:7.5px;line-height:1.5;letter-spacing:1.15px;text-align:left}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table tbody td{padding:13px 15px;border-top:1px solid #eceee9;font-size:8.8px;vertical-align:middle}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table tbody tr{transition:background .12s ease}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table tbody tr:hover{background:#fafbf8}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table td strong,
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table td small{display:block}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) table td small{margin-top:4px;color:#8f9891;font-size:7.3px;line-height:1.45}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .table-actions{justify-content:flex-end;flex-wrap:wrap;gap:5px}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .table-action-btn{min-height:30px;padding:0 10px;border-radius:7px;white-space:nowrap}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .table-footer{min-height:46px;padding:10px 14px;border-top:1px solid #e7e9e4;background:#fbfbf8}

:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .btn{border-radius:8px;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .btn.primary{border-color:#194637;background:#194637;box-shadow:0 2px 7px rgba(25,70,55,.12)}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .btn.primary:hover{background:#215440;box-shadow:0 5px 13px rgba(25,70,55,.15);transform:translateY(-1px)}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .btn.secondary{border-color:#dce2dc;background:#fff;color:#355b48}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .btn.secondary:hover{border-color:#b9c8bd;background:#f8faf8}

:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) :is(.form-card,.team-form-panel,.category-form-panel,.tier-card,.crm-card,.formula-version-card){border-color:#e1e5df;border-radius:12px;box-shadow:0 3px 14px rgba(34,61,48,.025)}
:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) :is(.form-card-head,.panel-head,.category-head){padding:16px 18px;border-bottom-color:#e7e9e4;background:#fbfbf8}
.production-flow{margin:0 0 14px;padding:10px 13px;border:1px solid #e1e5df;border-radius:11px;background:#eef1ed}
.production-dashboard-metrics{gap:10px}.production-dashboard-metrics>button,.production-dashboard-section,.production-work-card{border-color:#e1e5df;border-radius:11px;box-shadow:0 2px 10px rgba(34,61,48,.018)}

@media(max-width:1200px){:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) select{flex:1 1 170px}:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar)>.btn:last-child{margin-left:0}}
@media(max-width:760px){:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view)>.page-head{align-items:flex-start}:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view)>.page-head .head-actions{width:100%}:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view)>.page-head .head-actions .btn{flex:1;justify-content:center}:is(.team-tabs,.order-tabs,.customer-tabs,.production-tabs,.formula-tabs,.product-tabs,.warehouse-tabs){margin-bottom:16px}:is(.team-view,.orders-view,.customers-view,.production-view,.formulas-view,.finance-view,.products-view,.warehouse-view,.finished-purchase-view) .section-action-head{align-items:flex-start;flex-direction:column}:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) .product-search,:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar) select{flex:1 1 100%;width:100%}:is(.team-toolbar,.order-toolbar,.customer-toolbar,.product-toolbar,.warehouse-toolbar,.finance-ledger-toolbar,.finished-purchase-toolbar,.material-stock-toolbar)>.btn:last-child{width:100%;justify-content:center}}

/* Workshop receipt and reconciliation */
.lab-receipt-modal #businessModalFields{overflow-x:hidden;overflow-y:auto}.lab-receipt-modal .lab-receipt-summary{padding:15px 17px 4px}.lab-receipt-modal .lab-summary-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.lab-receipt-modal .lab-summary-dispatch{grid-column:span 2}.lab-receipt-modal .lab-summary-document{grid-column:span 2}.lab-receipt-modal .lab-summary-dispatch>.field,.lab-receipt-modal .lab-summary-document>.field{margin:0 0 11px}.lab-summary-divider{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:2px -17px 0;padding:11px 17px 0;border-top:1px solid #e8ebe6}.lab-summary-divider strong,.lab-summary-divider span{display:block}.lab-summary-divider strong{font-size:10px;color:#2b4338}.lab-summary-divider span{font-size:8px;color:#879089;text-align:right}.lab-receipt-modal .lab-summary-fields-secondary{grid-template-columns:1fr 1fr 2fr;margin-top:9px}.lab-receipt-modal .lab-summary-fields-secondary .lab-summary-document{grid-column:auto}.lab-receipt-modal .workshop-packaging-fields{display:flex;flex:0 0 auto;min-height:250px;margin:0;padding:0;gap:0;border-radius:12px;background:#fff}.lab-receipt-modal .workshop-packaging-fields.hidden{display:none}.lab-receipt-modal .lab-reconcile-table-wrap{max-height:310px}.lab-receipt-modal .lab-reconcile-table td:first-child{min-width:210px}.lab-receipt-modal .lab-reconcile-table input{width:100%}.lab-receipt-modal .lab-receipt-note{margin-top:10px}.lab-receipt-modal .lab-receipt-guidance{margin:10px 0}.lab-receipt-modal .lab-receipt-guidance>span{font-style:normal;font-weight:700}.lab-receipt-modal .modal-actions .btn.primary{min-width:165px}
@media(max-width:900px){.lab-receipt-modal .lab-summary-fields{grid-template-columns:1fr 1fr}.lab-receipt-modal .lab-summary-dispatch,.lab-receipt-modal .lab-summary-document{grid-column:1/-1}.lab-receipt-modal .lab-summary-fields-secondary{grid-template-columns:1fr 1fr}.lab-summary-divider{align-items:flex-start;flex-direction:column;gap:3px}.lab-summary-divider span{text-align:left}}
@media(max-width:620px){.lab-receipt-modal .lab-summary-fields,.lab-receipt-modal .lab-summary-fields-secondary{grid-template-columns:1fr}.lab-receipt-modal .lab-summary-dispatch,.lab-receipt-modal .lab-summary-document{grid-column:auto}.lab-receipt-modal .lab-receipt-guidance{margin:10px 0}.lab-receipt-modal .lab-reconcile-table-wrap{max-height:330px}.lab-receipt-modal .modal-actions{display:grid;grid-template-columns:1fr 1fr}.lab-receipt-modal .modal-actions .btn{width:100%;min-width:0}}

/* Official TikTok artwork supplied by the business */
.tiktok-nav-icon,.tiktok-shop-logo,.tiktok-empty>span.tiktok-empty-logo{overflow:hidden;background:#000;color:transparent;font-size:0}
.tiktok-nav-icon img,.tiktok-shop-logo img,.tiktok-empty-logo img{display:block;width:100%;height:100%;object-fit:cover}
