/* Reference-led titanium workbench. Existing embedded brand assets remain unchanged. */
:root{--bg:#f3f6fa;--panel:#fff;--panel2:#f7f9fc;--txt:#142844;--mut:#63748c;--gold:#0869ff;--gold-soft:#0964e8;--red:#f43c59;--amb:#f48730;--line:#e8edf4;--grn:#0d9e88}
html{background:#e8eef5}body{background:#e8eef5;padding:0 0 85px;font-size:14px}body::before{display:none}
#app{max-width:480px;min-height:100vh;margin:auto;background:var(--bg);position:relative;box-shadow:0 16px 70px #19395d12}
button{font-family:inherit}button:focus-visible,a:focus-visible{outline:3px solid #7aaeff;outline-offset:3px}.ui-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wrap{padding:12px;max-width:none}.card{border-radius:12px;box-shadow:0 3px 15px #183e6805;padding:14px;margin-bottom:12px}.card h3{font-size:14px;color:#162b48;letter-spacing:0}.card h3::after{display:none}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.card-head h3{margin:0;font-size:14px;display:flex;align-items:center;gap:7px}.card-head h3:before{content:'';width:4px;height:14px;border-radius:2px;background:#0871ff}.text-action{border:0;background:none;padding:4px;color:#63758e;font-size:11px;min-height:32px;cursor:pointer;white-space:nowrap}
.topbar{max-width:none;margin:0;border:0;border-radius:0;box-shadow:none;padding:14px 14px 10px;gap:8px}.topbar .logo{width:31px;height:31px}.topbar h1{font-size:15px}.topbar .co{font-size:10px}.topbar .date{display:none}.topbar .logout{margin-left:auto;min-height:36px;padding:5px 8px}
.rolebar{margin:0 12px 6px;border:0;padding:8px 10px;font-size:11px}.rolebar .tag{font-size:10px}.rolebar .sub{font-size:10px}
.home-scene{display:none}.header-alert{display:none}.role-pill{display:none}.page-header{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:10px 12px;background:#f5f7fb;position:sticky;top:0;z-index:21}.page-header h2{font-size:17px;font-weight:750;margin:0}.page-header button{width:40px;height:40px;border:0;background:none;color:#243c58;display:grid;place-items:center;border-radius:9px}.page-header .header-spacer{width:40px}
body[data-page=boss] .page-header{display:none}body:not([data-page=boss]) .topbar,body:not([data-page=boss]) .rolebar{display:none}#backbar{display:none!important}#app>.wrap:has(#backbar){display:none}
body[data-page=boss]{padding-bottom:0}body[data-page=boss] .topbar{background:transparent;color:white;position:relative;z-index:2;padding-top:19px}body[data-page=boss] .topbar h1{color:white}body[data-page=boss] .co{background:#ffffffed;color:#31516e;border-radius:15px;padding:3px 9px;margin-top:9px;display:table;max-width:240px}body[data-page=boss] .topbar .logout{display:none}body[data-page=boss] .header-alert{display:grid;position:relative;width:32px;height:40px;place-items:center;border:0;background:none;color:white;margin-left:auto}body[data-page=boss] .header-alert b{position:absolute;right:0;top:1px;background:#fb3e5b;border-radius:9px;font-size:9px;min-width:14px;padding:1px 3px}body[data-page=boss] .role-pill{display:block;font-size:10px;white-space:nowrap;color:white;background:#0e367a9c;padding:6px 8px;border-radius:14px}body[data-page=boss] .rolebar{display:none}
body[data-page=boss] .home-scene{display:flex;height:235px;margin-top:-92px;padding:143px 18px 25px;align-items:flex-end;background:linear-gradient(90deg,#0b3860c4,#07549230 70%),url('assets/factory.png') center/cover;background-color:#174c79;color:white}.home-scene h2{font-size:22px;margin:0 0 3px;letter-spacing:1px}.home-scene p{font-size:11px;margin:0;color:#e1ecf9}.home-scene small{position:absolute;right:8px;top:214px;font-size:8px;color:#e2eaf1}
body[data-page=boss] #app>.wrap:last-of-type{margin-top:-14px;position:relative}body[data-page=boss] #nav{display:none}
#v-boss>.stat{gap:9px;margin-bottom:11px}#v-boss>.stat .b{display:grid;grid-template-columns:30px 1fr;column-gap:8px;padding:13px 11px;min-height:94px;border-radius:11px;box-shadow:none}#v-boss>.stat .b::after{display:none}#v-boss>.stat .b .metric-icon{grid-row:1/4;background:#e9f4ff;color:#1289fa;border-radius:8px;display:grid;place-items:center;width:29px;height:32px}#v-boss>.stat .b:nth-child(2) .metric-icon{color:#ff973d;background:#fff2e7}#v-boss>.stat .b:nth-child(3) .metric-icon{color:#fa526b;background:#ffedf0}#v-boss>.stat .k{font-size:11px;color:#4e627d}#v-boss>.stat .v{font-size:20px;color:#0762db;margin:0;line-height:1.5;letter-spacing:-.5px}#v-boss>.stat .v.r{color:#f03751}#v-boss>.stat .v.g#s-pending{color:#ec832c}.metric-meta{font-size:10px;color:#6d7e92;grid-column:2}.metric-meta strong{font-weight:600;color:#ee8a31}
.chart-toggle{display:flex;background:#f2f5fb;border-radius:16px;padding:2px}.chart-toggle button{background:none;border:0;font-size:10px;color:#64748e;min-height:30px;padding:4px 8px;border-radius:14px}.chart-toggle button.on{background:#fff;box-shadow:0 1px 5px #1766dd1a;color:#006cff}.trend-chart{display:block;width:100%;height:auto;overflow:visible}.trend-caption{font-size:10px;color:#697d94;margin-top:4px}.trend-chart text{font-family:inherit;font-size:9px;fill:#6f8199}.trend-chart .chart-dot{fill:#0875ff;stroke:white;stroke-width:1.5}
.alert-summary{background:linear-gradient(120deg,#fff0e2,#fff9f4 70%);padding:12px 13px;border-radius:12px;margin-bottom:12px}.alert-summary .card-head{margin-bottom:5px}.alert-summary h3{font-size:14px;display:flex;gap:7px;align-items:center}.alert-summary h3 .ui-icon{color:#ff781f}.alert-count{font-size:10px;background:#f63252;color:white;padding:0 4px;border-radius:9px}.alert-line{display:flex;align-items:center;gap:7px;color:#52657d;font-size:11px;padding:6px 0}.alert-line .ui-icon{width:15px;height:15px;color:#f74b64}.alert-line b{color:#f13754}.alert-line .text-action{margin-left:auto;font-size:10px;min-height:24px;padding:0}
.module-panel{padding:9px 6px}.modgrid{grid-template-columns:repeat(4,1fr);gap:3px}.modgrid .mod{background:none;border:0;border-radius:10px;min-height:81px;padding:8px 3px;gap:5px}.modgrid .mod:hover{background:#f3f7ff;transform:none}.modgrid .mod b{font-size:11px;font-weight:600}.module-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#edf5ff;color:#0664ff}.module-icon .ui-icon{width:26px;height:26px;stroke-width:2.2}.module-icon.orange{background:#fff1e5;color:#ff8b29}.module-icon.dark{color:#415c7f;background:#edf0f5}
.advanced-home{margin-top:14px}.advanced-home>summary{font-size:12px;color:#5c7290;cursor:pointer;padding:8px 2px 14px;min-height:40px}.advanced-home .modgrid{grid-template-columns:repeat(3,1fr)}
.btn{background:linear-gradient(115deg,#2d95ff,#0654ff);border-radius:12px;box-shadow:0 6px 13px #075cff19;min-height:46px}.btn.ghost{background:white;border-color:#d7e1f0;color:#576b87;box-shadow:none}.btn.sm{min-height:36px;border-radius:20px;padding:6px 15px}.pill{border-radius:10px;padding:3px 8px}.pill.pending{color:#ef7c28;background:#fff1e5}.pill.warn{background:#ffebef;color:#f13957}
.seg{background:#e9edf4;padding:3px;border-radius:11px}.seg button{min-height:38px}.seg button.on{color:#065eff}.item,.custcard{background:white;border-color:#edf0f6;border-radius:11px}.row>*{min-width:0}input,select,textarea{background:#fcfdff;border:1px solid #e5eaf3;border-radius:9px;font-size:14px;min-height:41px;color:#21374f;padding:9px 11px}textarea{min-height:75px}input::placeholder,textarea::placeholder{color:#6b7d93}label.f{color:#526781}select{padding-right:28px}.form-section-title{font-size:13px!important;margin-bottom:12px!important}.form-section-title .ui-icon{width:16px;height:16px;color:#086dff}
.order-customer{padding:14px}.order-customer .customer-select{display:grid;grid-template-columns:35px 1fr;align-items:center;gap:9px}.customer-avatar{background:#edf2fa;color:#5d7595;width:35px;height:38px;border-radius:8px;display:grid;place-items:center}.customer-select select{font-weight:700;font-size:13px;border:0;background-color:#f8faff;min-height:42px}.customer-meta{font-size:10px;color:#667b92;margin:6px 0 0 44px}.customer-meta b{background:#fff0e2;color:#dc7b2f;padding:2px 6px;margin-right:7px}.order-product select{font-weight:700;font-size:13px}.product-summary{display:flex;align-items:center;gap:10px;margin:10px 0 13px}.product-photo{width:60px;height:60px;flex:none;border-radius:8px;background:#e6ebf1 url('assets/products.png') 0 center/300% 100%;border:1px solid #edf1f5}.product-photo.plate{background-position:50% center}.product-photo.tube{background-position:100% center}.product-summary b{font-size:13px}.product-summary p{font-size:11px;color:#657a94;margin:5px 0 0}.order-field{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:start;gap:8px;margin:9px 0}.order-field>label{font-size:12px;font-weight:600;padding:11px 0;color:#405878}.order-field .row{gap:5px}.order-field .unit{flex:0 0 75px}.order-extra{border-top:1px solid #edf1f6;margin-top:12px;padding-top:6px}.order-extra summary,.recognition summary{font-size:12px;color:#2468ba;padding:10px 0;cursor:pointer}.recognition{margin-bottom:12px}.recognition>.card{margin:5px 0}.recognition>summary{padding:10px 13px;background:#eaf2ff;border-radius:9px}.pricebox{border-radius:11px;background:linear-gradient(125deg,#15385f,#19458b 65%,#346db3);position:relative;overflow:hidden;text-align:left;margin:12px 0}.pricebox:before{content:'';position:absolute;width:210px;height:90px;transform:rotate(42deg);background:#ffffff06;right:-60px;top:-50px}.pricebox .amt{font-size:30px;line-height:1.5}.pricebox .sub{font-size:11px}.pricebox .lock{color:#d8e6fc;font-size:10px;margin-top:8px}.price-label{color:#d4e4fa;font-size:12px}.order-submit{margin-top:0!important;font-size:17px;min-height:53px}#v-order .hint{font-size:10px}.order-product .hint{margin-top:8px}
#v-fin>.card{background:none;padding:0;box-shadow:none}#v-fin>.card>h3,#finAlert{display:none}.mtab{gap:0;justify-content:space-between;border-bottom:1px solid #dce3ed;margin-bottom:12px}.mtab button{flex:1;background:none;border:0;border-radius:0;min-height:43px;font-size:13px;padding:7px 5px;color:#63738c}.mtab button.on{background:none;border-bottom:3px solid #1e73ff;color:#0665fa}.tab-count{font-size:10px;border-radius:10px;background:#e0e5ee;padding:2px 5px;margin-left:4px}.mtab .on .tab-count{background:#176eff;color:#fff}.finance-search{display:flex;gap:8px;align-items:center;margin:12px 0}.finance-search input{font-size:12px;background:#eaf0f6;border:0;min-height:37px}.finance-search button{background:none;border:0;white-space:nowrap;color:#506480;font-size:11px;display:flex;align-items:center;gap:4px;min-height:38px}.finance-filters{display:none;gap:8px;margin-bottom:10px}.finance-filters.open{display:flex}.finance-filters select{font-size:11px}.fin-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:13px}.fin-summary>div{background:white;padding:13px 10px;border-radius:11px;display:flex;gap:9px;align-items:center}.fin-summary .module-icon{width:36px;height:40px}.fin-summary small{font-size:10px;color:#687c94}.fin-summary strong{font-size:19px;color:#123e91;display:block;white-space:nowrap}.fin-order{background:white;border-radius:12px;padding:12px;margin-bottom:12px}.fin-order-header{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;margin-bottom:10px;gap:5px}.fin-order-header .ui-icon{width:14px;height:14px;color:#0874ff}.fin-order-id{display:flex;align-items:center;gap:4px}.fin-product{display:flex;gap:9px;align-items:center}.fin-product .product-photo{width:56px;height:56px}.fin-product .fin-description{min-width:0;flex:1}.fin-product b{font-size:12px;display:block}.fin-product p{font-size:11px;color:#75849b;margin:4px 0;display:flex;justify-content:space-between;gap:6px}.fin-order-footer{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:10px}.fin-order-footer>strong{font-size:21px;color:#fc304d;letter-spacing:-.5px}.fin-order-footer .acts{margin:0;gap:6px;flex-wrap:nowrap}.fin-order-footer .btn{padding:5px 17px;min-height:34px;font-size:11px}.fin-order details{font-size:10px;color:#60758d;margin-top:10px}.fin-order details summary{cursor:pointer;color:#5c6f89}.fin-order details p{line-height:1.8}.empty{padding:25px 10px;background:#fff;color:#62778d;border-color:#e6edf5}
.stock-overview{display:flex;align-items:center;gap:18px;padding:10px 0}.stock-donut{width:120px;height:120px;border-radius:50%;background:conic-gradient(#1288ff 0 var(--safe),#ff993f var(--safe) var(--low),#fd4c69 var(--low) 100%);position:relative;flex:none;display:grid;place-items:center}.stock-donut:before{content:'';position:absolute;inset:17px;background:white;border-radius:50%}.stock-donut>div{z-index:1;text-align:center}.stock-donut small{display:block;font-size:10px;color:#6c7b93}.stock-donut strong{font-size:23px;color:#163e76}.stock-legend{flex:1;font-size:11px;display:grid;gap:14px}.stock-legend>div{display:flex;align-items:center;gap:6px;color:#526983}.stock-legend i{width:7px;height:7px;border-radius:1px;background:#118bff}.stock-legend .low i{background:#ff993f}.stock-legend .out i{background:#fd4c69}.stock-legend b{margin-left:auto;color:#254363}.stock-note{color:#6b7c92;font-size:10px;margin-top:8px}.stock-row{display:flex;gap:10px;align-items:center;margin:15px 0}.stock-row .product-photo{width:58px;height:58px}.stock-row-content{flex:1;min-width:0}.stock-row-top{display:flex;align-items:center;gap:5px;justify-content:space-between}.stock-row-top b{font-size:12px}.stock-row-top .pill{font-size:9px;white-space:nowrap}.stock-row p{margin:4px 0;font-size:10px;color:#65788f}.stock-meter{height:8px;background:#edf0f5;border-radius:8px;overflow:hidden;margin:7px 0 4px}.stock-meter i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#ffb276,#ff6c5f)}.stock-meter.safe i{background:linear-gradient(90deg,#42b5ff,#0872fb)}.stock-row-foot{font-size:10px;color:#71829a;display:flex;justify-content:space-between}.warning-section-title{display:flex;align-items:center;gap:7px;font-size:14px;margin:0 0 12px}.warning-section-title .ui-icon{color:#f94065}.warning-section-title small{font-size:10px;font-weight:400;color:#677a94}.warning-section-title .text-action{margin-left:auto}.receivable-row{display:flex;gap:10px;padding:13px 0;border-bottom:1px solid #edf1f6}.receivable-row:last-child{border:0}.receivable-row .module-icon{width:32px;height:36px;flex:none;background:#edf3fa;color:#5c7a9f}.receivable-main{flex:1;min-width:0}.receivable-main b{font-size:12px;display:block}.receivable-main strong{font-size:19px;color:#f13d57;display:block;margin:3px 0}.receivable-main small{font-size:10px;color:#6c8199}.receivable-actions{text-align:right;flex:none}.receivable-actions .pill{font-size:9px;display:block;margin-bottom:7px}.receivable-actions button{border:1px solid #478bff;color:#0667ef;background:white;border-radius:16px;font-size:11px;padding:4px 14px;min-height:31px}.reminder-draft{margin-top:8px;font-size:11px}.reminder-draft textarea{font-size:12px;margin:6px 0}.warning-tabs{margin:0 0 12px}.warning-tabs button{font-weight:700}.warning-list .card-head small{color:#ef4963}.stock-purchase-toggle{margin-bottom:12px}.stock-purchase-toggle summary{cursor:pointer;font-size:12px;color:#1267d7;padding:13px;background:#eaf2ff;border-radius:9px}.stock-purchase-toggle .card{margin-top:8px}
#v-cust .card,#v-prod .card,#v-rpt .card,#v-kpi .card,#v-myperf .card{overflow:auto}.nav{max-width:456px;bottom:9px;border:0;box-shadow:0 7px 30px #25466a14}.nav button{font-size:10px}.nav button.on{background:#eaf3ff}.nav .ui-icon{width:20px;height:20px}.nav button .ic{display:none}.nav button::before{display:none}.toast{z-index:100}.login-card{background:white}#login{background:linear-gradient(155deg,#dcecff,#f4f7fc 55%,#e5ecf4)}
@media(min-width:700px){#app{margin:22px auto;border-radius:20px;overflow:clip}.page-header{top:0}body[data-page=boss] .topbar{margin:0}.nav{bottom:16px}}
@media(max-width:380px){.fin-order-footer>strong{font-size:18px}.fin-order-footer .btn{padding:5px 11px}.stock-overview{gap:10px}.stock-donut{width:105px;height:105px}.order-field{grid-template-columns:77px 1fr}#v-boss>.stat .b{padding:11px 9px;column-gap:6px}#v-boss>.stat .v{font-size:18px}.home-scene h2{font-size:20px}}
@media print{.page-header,.home-scene,.header-alert,.role-pill,.stock-purchase-toggle>summary,.finance-search,.nav{display:none!important}#app{max-width:none;box-shadow:none;margin:0}body,#app{background:white}.wrap{padding:0}.card{box-shadow:none}.advanced-home{display:block}}
/* Compact mobile composition matching the supplied four-screen layout. */
.view.on{animation:none}.page-header .session-exit{font-size:11px;color:#61748b;width:40px}
body[data-role=boss] #nav{display:none}body[data-role=boss]{padding-bottom:0}
body[data-page=boss] .topbar{background:transparent!important;padding-top:14px}
body[data-page=boss] .home-scene{height:184px;padding:105px 16px 22px;margin-top:-87px;background-position:70% center}
.home-scene h2{font-size:19px}.home-scene small{top:169px}
#v-boss>.stat .b{min-height:76px;padding:10px}#v-boss>.stat .v{font-size:19px}
.trend-card{padding:11px 13px}.trend-card .card-head{margin-bottom:3px}.trend-chart{max-height:165px}.trend-caption{font-size:9px}
.alert-summary{padding:8px 12px}.alert-summary .card-head{margin-bottom:0}.alert-line{padding:4px 0}
.module-panel{padding:5px}.modgrid .mod{min-height:70px;padding:5px 3px}.module-icon{width:37px;height:37px}
.order-customer{padding:11px 13px}.order-customer .form-section-title{margin-bottom:5px!important}.order-customer .customer-select select{min-height:35px}.order-customer .text-action{min-height:27px;font-size:10px;padding:3px 0}.customer-meta{margin-top:3px}
.order-product{padding:12px 13px}.order-product .form-section-title{margin-bottom:7px!important}.order-product>select{min-height:36px}.product-summary{margin:7px 0 9px}.product-summary .product-photo{width:48px;height:48px}
.order-field{margin:7px 0;grid-template-columns:84px minmax(0,1fr)}.order-field>label{padding:9px 0}.order-field input,.order-field select{min-height:35px;padding:7px 10px}.order-field textarea{min-height:61px}
.order-extra{margin-top:7px;padding-top:0}.order-extra summary{padding:8px 0;font-size:11px}
.pricebox{padding:13px 16px}.pricebox .amt{font-size:29px}.pricebox .lock{font-size:9px;margin-top:5px}
.fin-order{padding:11px 12px;margin-bottom:10px}.fin-order-header{margin-bottom:7px}.fin-product .product-photo{width:50px;height:50px}.fin-order-footer{margin-top:7px}.fin-order details{margin-top:6px}.fin-order details summary{font-size:9px}
.fin-summary>div{padding:11px 10px}.stock-note{color:#536981}.stock-row p,.stock-row-foot,.receivable-main small,.trend-caption{color:#536981}
.stock-note{color:#536981!important}.warning-section-title{flex-wrap:wrap}.warning-section-title small{color:#536981}
::selection{background:#c4ddff;color:#113d73}input,textarea{caret-color:#0869ff}.stat,.fin-summary,.pricebox{font-variant-numeric:tabular-nums}
