:root{
  --bg:#f6f8fc;--surface:#fff;--surface-soft:#f9fbff;--text:#111827;--muted:#667085;--muted-2:#98a2b3;
  --border:#e4e9f2;--blue:#1769e8;--blue-600:#0f5ed7;--blue-soft:#eef5ff;--green:#1eaa68;--green-soft:#eaf8f0;
  --amber:#e58a18;--amber-soft:#fff6e5;--red:#dc4c4c;--red-soft:#fff0f0;--purple:#7357d9;--purple-soft:#f2efff;
  --shadow:0 12px 35px rgba(30,55,90,.07);--shadow-sm:0 5px 18px rgba(30,55,90,.055);--radius:16px;--radius-sm:11px;
  --sidebar:228px;--topbar:76px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);font-size:14px;line-height:1.45}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:30}.sidebar-brand{height:var(--topbar);display:flex;align-items:center;gap:11px;padding:0 20px;border-bottom:1px solid var(--border)}.sidebar-brand strong{display:block;color:#1058ce;font-size:16px;letter-spacing:-.2px}.sidebar-brand span{display:block;color:var(--muted);font-size:11.5px;margin-top:1px}.brand-mark{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#0b5fe2,#2a7afa);color:#fff;font-weight:800;display:grid;place-items:center;font-size:22px;box-shadow:0 8px 18px rgba(23,105,232,.25)}.brand-mark.small{width:34px;height:34px;border-radius:10px;font-size:15px}.sidebar-nav{padding:22px 12px;display:flex;flex-direction:column;gap:6px}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:#344054;font-weight:600;font-size:13.5px}.nav-link .icon{width:19px;height:19px;color:#667085}.nav-link:hover{background:#f8faff}.nav-link.active{background:var(--blue-soft);color:var(--blue)}.nav-link.active .icon{color:var(--blue)}.sidebar-footer{margin-top:auto;padding:18px 14px;border-top:1px solid var(--border);display:grid;gap:10px}.phase-badge,.phase-pill{display:inline-flex;align-items:center;justify-content:center;width:max-content;background:var(--blue-soft);color:var(--blue);border:1px solid #dceaff;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800;letter-spacing:.6px}.logout-link{display:flex;align-items:center;gap:10px;color:#667085;padding:9px 8px;border-radius:9px}.logout-link:hover{background:#fff3f3;color:var(--red)}.app-main{margin-left:var(--sidebar);min-height:100vh}.topbar{height:var(--topbar);position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 30px;gap:15px;z-index:20}.topbar-spacer{flex:1}.sidebar-toggle{display:none;border:0;background:transparent;font-size:22px}.branch-switcher,.branch-chip{height:42px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:#fff;color:#344054}.branch-switcher .icon,.branch-chip .icon{width:17px;color:#667085}.branch-switcher select{border:0;outline:0;background:transparent;font-weight:650;min-width:115px}.user-menu{display:flex;align-items:center;gap:10px;padding-left:14px;border-left:1px solid var(--border)}.avatar{width:38px;height:38px;border-radius:50%;background:#e8effd;color:#4e69a4;display:grid;place-items:center;font-weight:800}.user-copy strong,.user-copy span{display:block}.user-copy strong{font-size:12.5px}.user-copy span{font-size:11px;color:var(--muted)}.page-content{padding:30px;max-width:1500px;margin:0 auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading h1{font-size:30px;line-height:1.1;margin:5px 0 7px;letter-spacing:-.75px}.page-heading p{margin:0;color:var(--muted);max-width:700px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.15px;color:var(--blue)}.btn{min-height:40px;border-radius:10px;padding:0 15px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:750;cursor:pointer;white-space:nowrap}.btn .icon{width:17px;height:17px}.btn-primary{background:var(--blue);color:#fff;box-shadow:0 5px 14px rgba(23,105,232,.18)}.btn-primary:hover{background:var(--blue-600)}.btn-secondary{background:#fff;border-color:var(--border);color:#344054}.btn-ghost{background:transparent;color:#667085}.btn-outline{background:#fff;border-color:#bfd8ff;color:var(--blue)}.btn-sm{min-height:32px;padding:0 10px;font-size:12px;border-radius:8px}.btn-block{width:100%}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm)}.card.compact{border-radius:12px}.quick-search{height:50px;display:flex;align-items:center;padding:0 16px;margin-bottom:18px;max-width:720px}.quick-search .icon{color:#7c879a}.quick-search input{border:0;outline:0;width:100%;padding:0 12px;background:transparent}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.kpi-grid.owner{grid-template-columns:repeat(6,minmax(0,1fr))}.kpi-card{border-radius:14px;padding:17px;border:1px solid rgba(255,255,255,.65);min-height:142px;display:flex;flex-direction:column;justify-content:flex-end}.kpi-icon{width:37px;height:37px;border-radius:10px;background:rgba(255,255,255,.7);display:grid;place-items:center;margin-bottom:auto}.kpi-icon .icon{width:20px}.kpi-card span{font-weight:650;font-size:12px;color:#465066}.kpi-card strong{font-size:28px;line-height:1.1;margin-top:9px;letter-spacing:-.6px}.kpi-card small{color:#667085;margin-top:2px}.tint-blue{background:linear-gradient(160deg,#f0f7ff,#e8f4ff);color:#1769e8}.tint-green{background:linear-gradient(160deg,#effbf5,#e8f8f1);color:#1b9b60}.tint-violet{background:linear-gradient(160deg,#f6f1ff,#f0ebff);color:#7357d9}.tint-purple{background:linear-gradient(160deg,#f4f1ff,#ebe7ff);color:#7459d7}.tint-amber{background:linear-gradient(160deg,#fff9ec,#fff3d7);color:#d98213}.tint-red{background:linear-gradient(160deg,#fff4f4,#ffeaea);color:#cf4545}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:18px}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:18px 20px;border-bottom:1px solid var(--border)}.card-header h2{font-size:16px;margin:0 0 3px;letter-spacing:-.25px}.card-header p{margin:0;color:var(--muted);font-size:12px}.card-header a{font-size:12px;color:var(--blue);font-weight:750}.activity-list{padding:7px 18px 14px}.activity-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 2px;border-bottom:1px solid #edf0f5}.activity-row:last-child{border-bottom:0}.activity-dot{width:8px;height:8px;border-radius:50%}.activity-dot.in{background:#29ad6d}.activity-dot.out{background:#eb5c5c}.activity-main strong,.activity-main span,.activity-meta strong,.activity-meta span{display:block}.activity-main strong{font-size:12.5px}.activity-main span,.activity-meta span{color:var(--muted);font-size:11px;margin-top:2px}.activity-meta{text-align:right}.text-success{color:var(--green)}.text-danger{color:var(--red)}.branch-bars{padding:19px 20px}.branch-bar-row{margin-bottom:17px}.branch-bar-row>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.branch-bar-row strong{font-size:12px}.branch-bar-row span{font-size:11px;color:var(--muted)}.bar-track{height:8px;border-radius:999px;background:#eff3f8;overflow:hidden}.bar-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1769e8,#4e8efa)}.category-summary{display:flex;gap:22px;align-items:center;padding:25px}.donut{width:152px;height:152px;border-radius:50%;background:conic-gradient(#3d7fea 0 var(--phone),#34aa70 var(--phone) var(--pre),#7657d8 var(--pre) 360deg);position:relative;display:grid;place-items:center}.donut:before{content:"";width:96px;height:96px;background:#fff;border-radius:50%;position:absolute}.donut>div{position:relative;z-index:1;text-align:center}.donut strong,.donut span{display:block}.donut strong{font-size:21px}.donut span{font-size:10px;color:var(--muted)}.legend-list{display:grid;gap:12px;flex:1}.legend-list span{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:8px;font-size:12px}.legend{width:9px;height:9px;border-radius:3px}.legend.blue{background:#3d7fea}.legend.green{background:#34aa70}.legend.purple{background:#7657d8}.empty-state{padding:44px 20px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:6px}.empty-state.small{padding:20px}.empty-state strong{color:#344054}.empty-icon{width:48px;height:48px;border-radius:14px;background:#f1f5fb;display:grid;place-items:center;color:#718096;margin-bottom:3px}.two-column{display:grid;grid-template-columns:.75fr 1.25fr;gap:18px}.master-list{padding:8px 18px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.master-row{display:flex;align-items:center;gap:10px;border:1px solid #edf0f5;padding:10px;border-radius:10px}.master-row strong,.master-row span{display:block}.master-row strong{font-size:12.5px}.master-row span{font-size:10.5px;color:var(--muted)}.brand-avatar{width:34px;height:34px;border-radius:10px;background:#f0f5ff;color:#2d66ba;display:grid;place-items:center;font-size:10px;font-weight:800}.brand-avatar.small{width:30px;height:30px;border-radius:8px}.count-badge{min-width:28px;height:28px;padding:0 8px;border-radius:999px;display:grid;place-items:center;background:#f0f5ff;color:var(--blue);font-size:11px;font-weight:800}.info-strip{margin-top:18px;border:1px solid #dce8fb;background:#f5f9ff;border-radius:13px;padding:14px 16px;display:flex;gap:11px;align-items:flex-start;color:#32588b}.info-strip strong,.info-strip span{display:block}.info-strip strong{font-size:12.5px}.info-strip span{font-size:11.5px;margin-top:2px}.form-card{max-width:920px;margin:0 auto;overflow:hidden}.form-section{padding:24px 26px;border-bottom:1px solid var(--border)}.form-section.last{border-bottom:0}.section-heading{margin-bottom:18px}.section-heading>div{display:flex;align-items:center;gap:11px}.section-heading h2{font-size:15px;margin:0}.section-heading p{font-size:11.5px;color:var(--muted);margin:2px 0 0}.section-number{width:27px;height:27px;border-radius:8px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:11px;font-weight:800}.type-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.type-option{min-height:70px;border:1px solid var(--border);border-radius:12px;padding:11px 14px;display:flex;align-items:center;gap:11px;cursor:pointer;background:#fff}.type-option input{position:absolute;opacity:0}.type-option .icon{color:#667085}.type-option strong,.type-option small{display:block}.type-option strong{font-size:13px}.type-option small{font-size:10.5px;color:var(--muted);margin-top:2px}.type-option.active{border-color:#82b2ff;background:#f5f9ff;box-shadow:0 0 0 2px #e8f1ff}.type-option.active .icon,.type-option.active strong{color:var(--blue)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid.two{grid-template-columns:repeat(2,1fr)}.field{display:block}.field.span-2{grid-column:1/-1}.field>span{display:block;font-size:11.5px;font-weight:700;color:#344054;margin-bottom:6px}.field b{color:#ef4444}.field input,.field select,.search-box input,.filter-card select{height:43px;width:100%;border:1px solid #dce2ec;background:#fff;border-radius:9px;padding:0 12px;outline:0;transition:.18s}.field input:focus,.field select:focus,.search-box input:focus,.filter-card select:focus{border-color:#8db9ff;box-shadow:0 0 0 3px #edf4ff}.field small{display:block;font-size:10.5px;color:var(--muted);margin-top:5px}.input-with-icon{position:relative}.input-with-icon input{padding-right:42px}.input-status{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:var(--green)}.input-status .icon{width:18px}.barcode-field{display:grid;grid-template-columns:1fr 20px auto;align-items:center;border:1px solid #dce2ec;border-radius:9px;padding-right:10px;overflow:hidden}.barcode-field input{border:0!important;box-shadow:none!important}.barcode-field .icon{width:17px;color:#e08b23}.barcode-field em{font-style:normal;font-size:10.5px;color:var(--blue);font-weight:700}.money-input,.input-suffix{display:flex;align-items:center;border:1px solid #dce2ec;border-radius:9px;overflow:hidden}.money-input>span,.input-suffix>span{padding:0 0 0 12px;color:#667085;font-weight:700}.money-input input,.input-suffix input{border:0;box-shadow:none!important}.hidden{display:none!important}.form-actions{padding:18px 26px;background:#fbfcfe;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px}.filter-card{display:grid;grid-template-columns:minmax(260px,1.8fr) repeat(2,minmax(150px,.7fr)) auto auto;gap:10px;align-items:end;background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:15px;box-shadow:var(--shadow-sm)}.filter-card>label>span{display:block;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:5px}.search-box{height:43px;border:1px solid #dce2ec;border-radius:9px;display:flex;align-items:center;padding-left:11px}.search-box .icon{width:18px;color:#7c879a}.search-box input{border:0;box-shadow:none!important;height:41px}.table-card{overflow:hidden}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:860px}.data-table th{background:#f8fafc;color:#667085;font-size:10px;letter-spacing:.1px;text-transform:none;text-align:left;padding:12px 14px;border-bottom:1px solid var(--border);white-space:nowrap}.data-table td{padding:12px 14px;border-bottom:1px solid #edf0f5;font-size:12px;vertical-align:middle}.data-table tbody tr:hover{background:#fbfdff}.data-table tbody tr:last-child td{border-bottom:0}.compact-table{min-width:0}.product-cell{display:flex;align-items:center;gap:9px;min-width:190px}.product-cell strong,.product-cell span{display:block}.product-cell span,.table-subtext{font-size:10.5px!important;color:var(--muted);margin-top:2px;display:block}.status-pill,.movement-pill,.mini-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 8px;font-size:9.5px;font-weight:800;white-space:nowrap}.status-pill.available,.status-pill.completed{color:#168952;background:#eaf8f0}.status-pill.low{color:#b66b0d;background:#fff3dd}.movement-pill.stock_in,.movement-pill.return,.movement-pill.transfer_in{color:#168952;background:#eaf8f0}.movement-pill.stock_out,.movement-pill.sale,.movement-pill.defective{color:#c74646;background:#fff0f0}.movement-pill.transfer_out{color:#185bc6;background:#eaf2ff}.movement-pill.adjustment{color:#b66b0d;background:#fff3dd}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10.5px!important}.feature-grid{display:grid;gap:16px}.feature-grid.three{grid-template-columns:repeat(3,1fr)}.feature-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:20px;box-shadow:var(--shadow-sm)}.feature-card h2{font-size:15px;margin:13px 0 6px}.feature-card p{font-size:12px;color:var(--muted);margin:0 0 13px}.feature-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center}.feature-icon.blue{background:#eef5ff;color:#1769e8}.feature-icon.violet{background:#f2efff;color:#7357d9}.feature-icon.green{background:#eaf8f0;color:#1eaa68}.mini-chip{background:#f4f6f9;color:#667085}.callout-card{margin-top:18px;padding:18px 20px;display:flex;gap:13px;align-items:flex-start}.callout-card>.icon{color:var(--blue);width:24px;height:24px}.callout-card h2{font-size:14px;margin:0 0 4px}.callout-card p{font-size:12px;color:var(--muted);margin:0}.tab-row{display:flex;gap:6px;margin-bottom:14px;overflow:auto}.tab{padding:9px 13px;border-radius:9px;color:#667085;font-size:12px;font-weight:750}.tab:hover{background:#fff}.tab.active{background:#eaf2ff;color:var(--blue)}.role-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.role-card{background:#fff;border:1px solid var(--border);border-radius:13px;padding:15px;display:flex;gap:11px}.role-card strong{font-size:12.5px}.role-card p{font-size:10.8px;color:var(--muted);margin:3px 0 0}.role-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:800;font-size:11px}.role-icon.owner{background:#eaf2ff;color:#1769e8}.role-icon.manager{background:#eaf8f0;color:#19955c}.role-icon.inventory{background:#f2efff;color:#7255d2}.role-icon.cashier{background:#fff3dd;color:#bd7314}.alert{border-radius:11px;padding:12px 14px;margin-bottom:16px;font-size:12px;border:1px solid}.alert-success{background:#edf9f2;color:#19794d;border-color:#cbeedb}.alert-error{background:#fff3f3;color:#a53e3e;border-color:#ffd4d4}.alert-info{background:#f1f7ff;color:#315f95;border-color:#d9e9ff}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.35);backdrop-filter:blur(2px)}.modal-dialog{position:relative;width:min(620px,100%);max-height:80vh;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(16,24,40,.2);overflow:hidden}.modal-header{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start}.modal-header h2{margin:3px 0 0;font-size:18px}.icon-button{width:34px;height:34px;border:0;background:#f5f6f8;border-radius:9px;font-size:20px;cursor:pointer}.modal-body{padding:10px 20px 20px;max-height:60vh;overflow:auto}.unit-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 2px;border-bottom:1px solid #edf0f5}.unit-row strong,.unit-row span{display:block}.unit-row>div:first-child span{font-size:10.5px;color:var(--muted)}.unit-row>div:last-child{text-align:right}.unit-row small{display:block;color:var(--muted);margin-top:4px}.modal-open{overflow:hidden}.loading-state{padding:30px;text-align:center;color:var(--muted)}.auth-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#eaf3ff 0,transparent 34%),#f5f7fb;padding:30px}.auth-shell{width:min(970px,100%);min-height:590px;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:0 30px 90px rgba(20,44,80,.12);overflow:hidden}.auth-brand-panel{padding:58px;background:linear-gradient(145deg,#0c4aa9,#1266dd 60%,#2e7bec);color:#fff;position:relative}.auth-brand-panel:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-90px;bottom:-80px}.auth-brand-panel .brand-mark{background:#fff;color:#1769e8;box-shadow:none;margin-bottom:26px}.auth-brand-panel .phase-pill{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.2);color:#fff}.auth-brand-panel h1{font-size:34px;letter-spacing:-1px;margin:14px 0 3px}.auth-brand-panel>p{margin:0;color:#d9e8ff}.auth-feature-list{margin-top:54px;display:grid;gap:15px}.auth-feature-list>div{display:flex;align-items:center;gap:11px;color:#eff6ff}.auth-feature-list .icon{width:19px}.auth-card{padding:64px 54px;display:flex;flex-direction:column;justify-content:center}.auth-card-header h2{font-size:26px;margin:7px 0 5px;letter-spacing:-.5px}.auth-card-header p{margin:0 0 25px;color:var(--muted)}.form-stack{display:grid;gap:15px}.demo-credentials{margin-top:22px;border:1px dashed #d6dce7;background:#fafbfc;border-radius:11px;padding:12px 13px;display:grid;gap:3px;font-size:10.5px;color:#667085}.demo-credentials strong{color:#344054;margin-bottom:2px}
@media(max-width:1180px){.kpi-grid.owner{grid-template-columns:repeat(3,1fr)}.role-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){:root{--sidebar:220px}.sidebar{transform:translateX(-100%);transition:.22s}.sidebar.open{transform:translateX(0);box-shadow:20px 0 50px rgba(20,40,70,.12)}.app-main{margin-left:0}.sidebar-toggle{display:block}.page-content{padding:22px}.topbar{padding:0 20px}.dashboard-grid,.two-column{grid-template-columns:1fr}.kpi-grid,.kpi-grid.owner{grid-template-columns:repeat(2,1fr)}.feature-grid.three{grid-template-columns:1fr}.filter-card{grid-template-columns:1fr 1fr}.search-box{grid-column:1/-1}.auth-shell{grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-card{padding:45px 35px}}
@media(max-width:600px){.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:26px}.kpi-grid,.kpi-grid.owner,.role-grid{grid-template-columns:1fr}.form-grid,.form-grid.two,.type-selector{grid-template-columns:1fr}.field.span-2{grid-column:auto}.filter-card{grid-template-columns:1fr}.topbar .user-copy{display:none}.branch-switcher select{min-width:80px}.page-content{padding:18px 14px}.auth-card{padding:35px 22px}}

/* P1-006 Product Master */
.product-master-heading{align-items:center}.master-heading-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.product-master-grid{align-items:start}.master-card-header{align-items:center}.master-list-single{grid-template-columns:1fr;padding:10px 14px 14px}.master-row-link,.master-row-manage{min-height:58px}.master-row-link{color:inherit}.master-row.selected{border-color:#9fc3ff;background:#f6f9ff;box-shadow:0 0 0 2px #eef4ff}.master-row.archived,.category-master-item.archived,.archived-row{opacity:.68}.master-row-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.master-copy{min-width:0}.master-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-row-manage{justify-content:space-between}.master-row-actions,.master-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.master-row-actions form,.master-table-actions form{display:inline-flex}.master-action{border:0;background:#f4f6f9;color:#475467;border-radius:7px;padding:6px 8px;font-size:10px;font-weight:750;cursor:pointer}.master-action:hover{background:#eaf2ff;color:var(--blue)}.master-action.danger-soft{background:#fff4f1;color:#b5472e}.master-action.success-soft{background:#ecfdf3;color:#15803d}.master-action.danger{background:#feeceb;color:#b42318}.master-card-footer{padding:11px 16px;border-top:1px solid var(--border);font-size:11px;font-weight:700;color:var(--blue)}.master-filter{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border)}.master-filter .search-box{height:40px}.master-filter .search-box input{height:38px}.master-filter .btn{min-height:40px}.master-model-table th:last-child,.master-model-table td:last-child{text-align:right}.category-master-card{margin-top:18px}.category-master-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px}.category-master-item{border:1px solid #edf0f5;border-radius:10px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.category-master-item strong,.category-master-item span{display:block}.category-master-item strong{font-size:12px}.category-master-item span{font-size:10.5px;color:var(--muted);margin-top:2px}.master-modal-dialog{width:min(560px,100%)}.master-modal-form{padding:18px 20px 20px}.master-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.master-modal-form>.field{margin-bottom:4px}.master-modal-form .form-grid{gap:12px}code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.95em}
@media(max-width:1100px){.category-master-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.master-heading-actions{width:100%;justify-content:stretch}.master-heading-actions .btn{flex:1}.master-filter{grid-template-columns:1fr}.category-master-list{grid-template-columns:1fr}.master-row-manage,.category-master-item{align-items:flex-start;flex-direction:column}.master-row-actions,.master-table-actions{justify-content:flex-start}}

/* P1-007 Product Master UI/UX refresh */
.product-master-heading{margin-bottom:16px}.product-master-heading h1{font-size:32px}.catalog-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.catalog-switcher-item{min-height:74px;border:1px solid var(--border);border-radius:15px;background:#fff;box-shadow:var(--shadow-sm);padding:13px 15px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;transition:.18s ease}.catalog-switcher-item:hover{transform:translateY(-1px);border-color:#cbdcf8;box-shadow:0 9px 24px rgba(30,55,90,.075)}.catalog-switcher-item.active{border-color:#9fc3ff;background:linear-gradient(180deg,#fff,#f7faff);box-shadow:0 0 0 3px #eef5ff,0 9px 24px rgba(23,105,232,.07)}.catalog-switcher-icon{width:42px;height:42px;border-radius:12px;background:#edf5ff;color:var(--blue);display:grid;place-items:center}.catalog-switcher-icon.accessory{background:#f4f0ff;color:#7357d9}.catalog-switcher-icon .icon{width:20px;height:20px}.catalog-switcher-item strong,.catalog-switcher-item small{display:block}.catalog-switcher-item strong{font-size:13px;letter-spacing:-.1px}.catalog-switcher-item small{font-size:10.5px;color:var(--muted);margin-top:2px}.catalog-switcher-count{min-width:30px;height:30px;padding:0 9px;border-radius:999px;background:#f3f6fb;color:#526174;font-size:10.5px;font-weight:800;display:grid;place-items:center}.catalog-switcher-item.active .catalog-switcher-count{background:#e9f2ff;color:var(--blue)}

.product-master-devices{grid-template-columns:minmax(360px,.72fr) minmax(560px,1.28fr);gap:16px}.master-surface-card{overflow:hidden}.master-card-header{padding:17px 18px}.master-card-header h2{font-size:17px;margin-top:2px}.section-kicker{display:block;color:var(--blue);font-weight:800;font-size:9.5px;letter-spacing:.95px;margin-bottom:2px}.master-card-title-actions{display:flex;align-items:center;gap:8px}.btn-soft-primary{background:#eef5ff;border-color:#d9e9ff;color:var(--blue);box-shadow:none}.btn-soft-primary:hover{background:#e3efff;border-color:#c7ddff}.master-card-header .btn-sm{min-height:36px;border-radius:9px;padding:0 12px}.master-card-header .btn-sm .icon{width:15px;height:15px}

.brand-master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:13px}.brand-master-card{min-height:70px;border:1px solid #e8edf4;border-radius:13px;background:#fff;display:flex;align-items:center;gap:10px;padding:10px 11px;transition:.16s ease;position:relative}.brand-master-card:hover{border-color:#cdddf5;background:#fbfdff}.brand-master-card.selected{border-color:#9fc3ff;background:#f6f9ff;box-shadow:inset 0 0 0 1px #dceaff}.brand-master-card.archived{opacity:.66}.brand-master-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.brand-master-avatar{width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#edf4ff,#e7effc);color:#2b65bc;font-size:10px;font-weight:850;display:grid;place-items:center;flex:0 0 auto}.brand-master-avatar.all{background:#eef2f7;color:#667085}.brand-master-copy{min-width:0;flex:1}.brand-master-copy strong,.brand-master-copy small{display:block}.brand-master-copy strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-master-copy small{font-size:10.5px;color:var(--muted);margin-top:2px}.brand-master-arrow{color:#98a2b3;font-size:20px;line-height:1}.catalog-icon-btn{width:34px;height:34px;border:1px solid #e4e9f2;border-radius:10px;background:#fff;color:#667085;display:grid;place-items:center;cursor:pointer;transition:.16s ease;flex:0 0 auto}.catalog-icon-btn:hover{color:var(--blue);border-color:#bcd5ff;background:#f4f8ff}.catalog-icon-btn .icon{width:15px;height:15px}.brand-master-empty{grid-column:1/-1}.master-card-footer{background:#fbfcfe}

.modern-filter{grid-template-columns:minmax(220px,1fr) auto auto;padding:11px 13px;background:#fbfcfe}.modern-filter .search-box{background:#fff}.master-table-wrap{overflow:auto}.modern-master-table th{background:#fbfcfe;color:#667085;font-size:9.5px;letter-spacing:.25px;text-transform:uppercase}.modern-master-table td{padding-top:13px;padding-bottom:13px}.modern-master-table tbody tr{transition:.14s ease}.modern-master-table tbody tr:hover{background:#fafcff}.table-brand-chip{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:650;color:#344054}.table-brand-chip>span{width:27px;height:27px;border-radius:8px;background:#eef4ff;color:#2d66ba;display:grid;place-items:center;font-size:8px;font-weight:850}.device-type-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;background:#f4f6f9;color:#596579;font-size:9.5px;font-weight:800}.device-type-chip.tablet{background:#f3efff;color:#6b50ca}.device-type-chip .icon{width:13px;height:13px}.action-col{text-align:right!important}.master-table-actions{gap:6px;flex-wrap:nowrap}.master-table-actions form{display:inline-flex}.table-action-btn{min-height:32px;border:1px solid #e1e7ef;background:#fff;color:#475467;border-radius:9px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:750;cursor:pointer;white-space:nowrap;transition:.15s ease}.table-action-btn:hover{border-color:#bcd5ff;background:#f5f9ff;color:var(--blue)}.table-action-btn .icon{width:14px;height:14px}.table-action-btn.warn{background:#fffaf2;border-color:#f7dfb8;color:#a8640b}.table-action-btn.warn:hover{background:#fff5e5}.table-action-btn.success{background:#f0fbf5;border-color:#cdeedc;color:#168952}.table-action-btn.danger{background:#fff6f5;border-color:#f6d5d2;color:#b42318}.table-action-btn.danger:hover{background:#ffedeb}.archived-row{opacity:.68}

.accessory-catalog-card{min-height:430px}.accessory-master-header{align-items:center}.accessory-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}.accessory-category-card{border:1px solid #e7ebf2;border-radius:14px;background:linear-gradient(180deg,#fff,#fcfdff);padding:14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;grid-template-areas:"icon copy status" "actions actions actions";align-items:center;gap:10px;min-height:130px;transition:.17s ease}.accessory-category-card:hover{transform:translateY(-1px);border-color:#cbdcf8;box-shadow:0 9px 24px rgba(30,55,90,.06)}.accessory-category-card.archived{opacity:.68}.accessory-category-icon{grid-area:icon;width:42px;height:42px;border-radius:12px;background:#f3efff;color:#7357d9;display:grid;place-items:center}.accessory-category-icon .icon{width:20px;height:20px}.accessory-category-copy{grid-area:copy;min-width:0}.accessory-category-copy strong,.accessory-category-copy span{display:block}.accessory-category-copy strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.accessory-category-copy span{font-size:10.5px;color:var(--muted);margin-top:2px}.accessory-category-card>.status-pill{grid-area:status}.accessory-category-actions{grid-area:actions;display:flex;align-items:center;gap:6px;border-top:1px solid #eef1f5;padding-top:10px;margin-top:2px}.accessory-category-actions form{display:inline-flex}.accessory-empty{grid-column:1/-1;min-height:260px}.product-master-info{margin-top:16px}.modal-subtitle{margin:4px 0 0;color:var(--muted);font-size:11px}.master-modal-dialog{border:1px solid rgba(255,255,255,.8);box-shadow:0 30px 90px rgba(16,24,40,.22)}.master-modal-form{padding:20px}.master-modal-actions{padding-top:16px;border-top:1px solid #eef1f5}.master-modal .field input,.master-modal .field select{background:#fff}

@media(max-width:1200px){.product-master-devices{grid-template-columns:1fr}.accessory-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.brand-master-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.catalog-switcher{grid-template-columns:1fr}.brand-master-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accessory-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.master-table-actions{flex-wrap:wrap}}
@media(max-width:620px){.brand-master-grid,.accessory-category-grid{grid-template-columns:1fr}.catalog-switcher-item{grid-template-columns:40px minmax(0,1fr) auto}.master-card-header{align-items:flex-start;flex-direction:column}.master-card-title-actions{width:100%;justify-content:space-between}.table-action-btn span{display:none}.table-action-btn{width:32px;padding:0;justify-content:center}}
.brand-card-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}.brand-card-actions form{display:inline-flex}.catalog-icon-btn.warn{background:#fffaf2;border-color:#f7dfb8;color:#a8640b}.catalog-icon-btn.success{background:#f0fbf5;border-color:#cdeedc;color:#168952}.catalog-icon-btn.danger{background:#fff6f5;border-color:#f6d5d2;color:#b42318}

/* P2-001 Point of Sale */
.pos-heading{align-items:flex-end}.pos-heading-badges{display:flex;align-items:center;gap:8px}.branch-chip.compact{height:34px;padding:0 11px;border-radius:10px;font-size:11px}.pos-shell{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,.72fr);gap:16px;align-items:start}.pos-catalog-column{display:grid;gap:16px}.pos-search-card,.pos-recent-card,.pos-checkout-card{border-radius:16px}.pos-search-card{padding:18px}.pos-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:15px}.pos-section-heading.compact{align-items:center;margin-bottom:0;padding:17px 18px;border-bottom:1px solid var(--border)}.pos-section-heading h2{font-size:18px;margin:2px 0 3px;letter-spacing:-.25px}.pos-section-heading p{font-size:11.5px;color:var(--muted);margin:0}.pos-search-hint{height:32px;border-radius:999px;background:#f3f7fd;border:1px solid #e0eafb;padding:0 10px;display:flex;align-items:center;gap:6px;color:#53709a;font-size:10px;font-weight:750;white-space:nowrap}.pos-search-hint .icon{width:14px}.pos-search-input{height:52px;border:1px solid #d9e1ec;border-radius:13px;background:#fff;display:flex;align-items:center;gap:9px;padding:0 12px;box-shadow:0 1px 0 rgba(16,24,40,.02);transition:.16s ease}.pos-search-input:focus-within{border-color:#8ebaff;box-shadow:0 0 0 3px #edf5ff}.pos-search-input>.icon{width:19px;color:#718096}.pos-search-input input{border:0!important;box-shadow:none!important;outline:0;width:100%;height:48px;padding:0;background:transparent;font-size:13px}.pos-search-input kbd{border:1px solid #e4e9f2;border-bottom-width:2px;background:#f9fafb;border-radius:6px;padding:3px 6px;color:#667085;font-size:9px;font-family:inherit;white-space:nowrap}.pos-search-status{min-height:29px;padding:9px 3px 0;color:#7b8799;font-size:10.5px}.pos-results{display:grid;gap:8px;margin-top:6px}.pos-result-card{width:100%;border:1px solid #e4e9f1;background:#fff;border-radius:12px;padding:11px 12px;display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:10px;text-align:left;cursor:pointer;transition:.15s ease}.pos-result-card:hover{border-color:#a9c9fb;background:#fbfdff;box-shadow:0 6px 18px rgba(31,72,130,.055);transform:translateY(-1px)}.pos-result-icon,.pos-cart-line-icon{width:36px;height:36px;border-radius:10px;background:#eef5ff;color:var(--blue);display:grid;place-items:center;font-size:15px}.pos-result-copy{min-width:0}.pos-result-copy strong,.pos-result-copy span,.pos-result-copy small{display:block}.pos-result-copy strong{font-size:12.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-result-copy span{font-size:10.5px;color:#667085;margin-top:2px}.pos-result-copy small{font-size:9.7px;color:#8692a3;margin-top:3px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.pos-result-price{text-align:right}.pos-result-price strong,.pos-result-price span{display:block}.pos-result-price strong{font-size:12.5px}.pos-result-price span{font-size:9.5px;color:var(--muted);margin-top:2px}.pos-result-add{height:30px;border-radius:8px;background:#edf5ff;color:var(--blue);font-size:10px;font-weight:800;padding:0 9px;display:flex;align-items:center;justify-content:center;white-space:nowrap}.pos-recent-card{overflow:hidden}.pos-recent-list{padding:3px 18px 8px}.pos-recent-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f5}.pos-recent-row:last-child{border-bottom:0}.pos-recent-icon{width:32px;height:32px;border-radius:9px;background:#f4f7fb;color:#667085;display:grid;place-items:center}.pos-recent-icon .icon{width:15px}.pos-recent-row>div:nth-child(2) strong,.pos-recent-row>div:nth-child(2) span,.pos-recent-row>div:last-child strong,.pos-recent-row>div:last-child span{display:block}.pos-recent-row>div:nth-child(2) strong{font-size:11px}.pos-recent-row>div:nth-child(2) span{font-size:9.6px;color:var(--muted);margin-top:2px}.pos-recent-row>div:last-child{text-align:right}.pos-recent-row>div:last-child strong{font-size:11.5px}.pos-recent-row>div:last-child span{font-size:9.5px;color:var(--muted);margin-top:2px}.pos-recent-empty{padding:24px;text-align:center;color:var(--muted);font-size:11px}.pos-checkout-card{position:sticky;top:calc(var(--topbar) + 16px);overflow:hidden}.pos-checkout-header{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid var(--border)}.pos-checkout-header h2{font-size:18px;margin:2px 0 0}.pos-cart-count{height:28px;border-radius:999px;background:#f3f6fa;padding:0 9px;display:grid;place-items:center;font-size:9.5px;color:#667085;font-weight:800}.pos-cart-lines{padding:10px 14px;max-height:360px;overflow:auto}.pos-cart-empty{min-height:190px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--muted);padding:25px}.pos-cart-empty .empty-icon{margin-bottom:10px}.pos-cart-empty strong{color:#344054;font-size:12.5px}.pos-cart-empty span{font-size:10.5px;max-width:210px;margin-top:4px}.pos-cart-line{padding:11px 0;border-bottom:1px solid #edf0f5}.pos-cart-line:last-child{border-bottom:0}.pos-cart-line-main{display:grid;grid-template-columns:34px minmax(0,1fr) 28px;gap:9px;align-items:start}.pos-cart-line-icon{width:32px;height:32px;font-size:12px}.pos-cart-line-copy{min-width:0}.pos-cart-line-copy strong,.pos-cart-line-copy span{display:block}.pos-cart-line-copy strong{font-size:11.5px}.pos-cart-line-copy span{font-size:9.7px;color:var(--muted);margin-top:2px}.pos-cart-line-copy span b{color:#475467;font-weight:750}.pos-remove-line{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#98a2b3;font-size:17px;cursor:pointer}.pos-remove-line:hover{background:#fff0f0;color:#c53f3f}.pos-cart-line-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 0 41px}.pos-cart-line-footer>div:last-child{text-align:right}.pos-cart-line-footer>div:last-child span,.pos-cart-line-footer>div:last-child strong{display:block}.pos-cart-line-footer>div:last-child span{font-size:9.2px;color:var(--muted)}.pos-cart-line-footer>div:last-child strong{font-size:11.5px;margin-top:1px}.pos-qty-control{height:29px;border:1px solid #e3e8f0;border-radius:8px;display:flex;align-items:center;overflow:hidden}.pos-qty-control button{width:28px;height:27px;border:0;background:#fff;cursor:pointer;color:#667085;font-weight:800}.pos-qty-control button:hover{background:#f5f8fc;color:var(--blue)}.pos-qty-control span{min-width:28px;text-align:center;font-size:10.5px;font-weight:750}.pos-summary{border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:#fbfcfe;padding:13px 18px}.pos-summary>div{display:flex;justify-content:space-between;align-items:center;font-size:10.5px;color:#667085;padding:3px 0}.pos-summary>div strong{color:#344054}.pos-summary .pos-total-row{padding-top:10px;margin-top:6px;border-top:1px dashed #d9e0e9;font-size:13px;color:#111827}.pos-summary .pos-total-row strong{font-size:20px;letter-spacing:-.4px;color:#0f172a}.pos-payment-section{padding:15px 18px}.pos-payment-title strong,.pos-payment-title span{display:block}.pos-payment-title strong{font-size:12px}.pos-payment-title span{font-size:9.7px;color:var(--muted);margin-top:2px}.payment-method-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:10px}.payment-method{min-height:56px;border:1px solid #e3e8ef;border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;font-size:9.4px;font-weight:750;color:#667085;transition:.14s ease}.payment-method input{position:absolute;opacity:0;pointer-events:none}.payment-method:hover{border-color:#bcd4fa;background:#fbfdff}.payment-method.active{border-color:#8ebaff;background:#f3f8ff;color:var(--blue);box-shadow:0 0 0 2px #eef5ff}.payment-method-icon{height:18px}.payment-method-icon .icon{width:16px;height:16px}.pos-payment-fields{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;margin-top:10px;align-items:end}.pos-payment-fields>.field{margin:0}.pos-payment-fields>.field[data-reference-field]{grid-column:1/-1}.pos-change-box{height:64px;border:1px solid #e5e9ef;border-radius:10px;background:#fafbfc;padding:10px 12px;display:flex;flex-direction:column;justify-content:center}.pos-change-box span{font-size:9px;color:var(--muted)}.pos-change-box strong{font-size:14px;margin-top:2px}.pos-complete-btn{width:calc(100% - 36px);margin:0 18px;min-height:48px;border-radius:11px;justify-content:flex-start;gap:9px;padding:0 14px}.pos-complete-btn>span{flex:1;text-align:left}.pos-complete-btn>strong{font-size:13px}.pos-complete-btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.pos-checkout-note{font-size:9.3px;color:#7b8797;line-height:1.45;text-align:center;margin:9px 18px 16px}.pos-sale-success{background:linear-gradient(180deg,#f0fbf5,#ecf9f2);border:1px solid #caebd9;border-radius:14px;padding:13px 16px;margin-bottom:15px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px}.pos-success-icon{width:36px;height:36px;border-radius:11px;background:#1eaa68;color:#fff;display:grid;place-items:center;font-weight:900}.pos-sale-success>div:nth-child(2) strong,.pos-sale-success>div:nth-child(2) small{display:block}.pos-sale-success>div:nth-child(2) strong{font-size:12.5px;margin-top:1px}.pos-sale-success>div:nth-child(2) small{font-size:9.7px;color:#527563;margin-top:2px}.pos-success-total{text-align:right}.pos-success-total span,.pos-success-total strong{display:block}.pos-success-total span{font-size:9px;color:#62806f}.pos-success-total strong{font-size:17px;color:#167949;margin-top:1px}.pos-confirm-dialog{width:min(500px,100%)}.pos-confirm-body{padding:16px 20px}.pos-confirm-row{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:11px;color:#667085}.pos-confirm-row strong{color:#344054;text-align:right}.pos-confirm-row.total{font-size:14px;border-top:1px dashed #dce2ea;margin-top:7px;padding-top:14px;color:#111827}.pos-confirm-row.total strong{font-size:18px;color:#111827}.pos-confirm-actions{padding:14px 20px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.pos-branch-picker{padding:24px}.pos-branch-picker-copy h2{font-size:20px;margin:3px 0 4px}.pos-branch-picker-copy p{font-size:11.5px;color:var(--muted);margin:0}.pos-branch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.pos-branch-card{border:1px solid #e2e8f0;border-radius:13px;padding:14px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;background:#fff;transition:.15s ease}.pos-branch-card:hover{border-color:#a8c8fa;background:#fafdff;transform:translateY(-1px)}.pos-branch-icon{width:36px;height:36px;border-radius:10px;background:#eef5ff;color:var(--blue);display:grid;place-items:center}.pos-branch-icon .icon{width:17px}.pos-branch-card strong,.pos-branch-card span{display:block}.pos-branch-card strong{font-size:11.5px}.pos-branch-card span{font-size:9.6px;color:var(--muted);margin-top:2px}.pos-branch-card>b{color:#98a2b3}.pos-blocked-state{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.pos-blocked-state strong{font-size:14px;margin-top:8px}.pos-blocked-state span{font-size:11px;color:var(--muted);margin-top:3px}.input-error{border-color:#e56a6a!important;box-shadow:0 0 0 3px #fff0f0!important}

@media(max-width:1180px){.pos-shell{grid-template-columns:minmax(0,1fr) 360px}.payment-method-grid{grid-template-columns:repeat(3,1fr)}.pos-branch-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.pos-shell{grid-template-columns:1fr}.pos-checkout-card{position:static}.pos-cart-lines{max-height:none}.pos-heading{align-items:flex-start}.pos-heading-badges{margin-top:8px}.pos-result-card{grid-template-columns:36px minmax(0,1fr) auto}.pos-result-add{display:none}}
@media(max-width:620px){.pos-search-card{padding:14px}.pos-section-heading{flex-direction:column}.pos-search-hint{align-self:flex-start}.pos-result-card{grid-template-columns:34px minmax(0,1fr)}.pos-result-price{grid-column:2;text-align:left;display:flex;align-items:center;gap:7px}.pos-result-price strong,.pos-result-price span{display:inline}.payment-method-grid{grid-template-columns:repeat(2,1fr)}.pos-payment-fields{grid-template-columns:1fr}.pos-change-box{height:auto;min-height:54px}.pos-branch-grid{grid-template-columns:1fr}.pos-sale-success{grid-template-columns:34px minmax(0,1fr)}.pos-success-total{grid-column:2;text-align:left}.pos-confirm-actions{flex-direction:column-reverse}.pos-confirm-actions .btn{width:100%}}

/* P2-002 Product configuration / Stock In separation */
.configuration-heading{align-items:flex-start}
.configuration-rule-strip,.receiving-rule-strip{margin-bottom:16px}
.configuration-form{overflow:hidden}
.compact-type-selector{grid-template-columns:repeat(3,minmax(0,1fr))}
.configuration-cost-note{min-height:76px;border:1px solid #dbe7f7;border-radius:14px;background:#f8fbff;padding:14px;display:flex;gap:11px;align-items:flex-start}
.configuration-cost-note .note-icon{width:34px;height:34px;border-radius:10px;background:#e9f2ff;color:var(--primary);display:grid;place-items:center;flex:0 0 auto}
.configuration-cost-note .note-icon svg{width:17px;height:17px}
.configuration-cost-note strong,.configuration-cost-note small{display:block}.configuration-cost-note strong{font-size:13px;color:var(--text);margin-bottom:3px}.configuration-cost-note small{font-size:11.5px;color:var(--muted);line-height:1.5}
.configuration-master-card{margin-top:18px;scroll-margin-top:18px}
.configuration-master-header{align-items:center}
.configuration-table td:first-child{min-width:220px}
.configuration-table .action-col{min-width:220px}
.configuration-empty{padding:36px 18px}
.table-action-btn.primary-lite{color:#1769e0;border-color:#cfe0fb;background:#f7fbff;text-decoration:none}
.table-action-btn.primary-lite:hover{background:#edf5ff;border-color:#9dc0f6}
.empty-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.price-config-grid{align-items:stretch}
@media(max-width:900px){.compact-type-selector{grid-template-columns:1fr}.configuration-table .action-col{min-width:170px}}

/* P2-003 Receive Stock UX */
.receive-heading{align-items:center}
.receive-form{overflow:visible;margin-bottom:28px}
.receive-step{display:grid;grid-template-columns:40px minmax(0,1fr);gap:16px;padding:24px 26px;border-bottom:1px solid var(--border)}
.receive-step:last-of-type{border-bottom:0}
.receive-step-number{width:32px;height:32px;border-radius:10px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:12px;font-weight:850}
.receive-step-body{min-width:0}
.receive-step-title{margin-bottom:16px}.receive-step-title h2{font-size:18px;letter-spacing:-.25px;margin:0 0 4px}.receive-step-title p{font-size:12px;color:var(--muted);margin:0}
.receive-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.receive-search-wrap{position:relative;max-width:760px}.receive-search-field{margin:0}.receive-search-input{height:48px;border:1px solid #dce3ed;border-radius:11px;background:#fff;display:flex;align-items:center;padding:0 13px;transition:.15s ease}.receive-search-input:focus-within{border-color:#8ab8ff;box-shadow:0 0 0 3px #eef5ff}.receive-search-input .icon{width:18px;color:#8090a6}.receive-search-input input{width:100%;border:0;outline:0;background:transparent;padding:0 10px;font-size:13px}
.receive-search-results{position:absolute;top:76px;left:0;right:0;z-index:18;background:#fff;border:1px solid var(--border);border-radius:13px;box-shadow:0 18px 45px rgba(30,55,90,.16);padding:6px;max-height:360px;overflow:auto}.receive-result-row{width:100%;border:0;background:#fff;border-radius:10px;padding:10px 11px;display:grid;grid-template-columns:36px minmax(0,1fr) 20px;gap:10px;align-items:center;text-align:left;cursor:pointer}.receive-result-row:hover{background:#f4f8ff}.receive-result-avatar{width:34px;height:34px;border-radius:9px;background:#eef5ff;color:#2f67bd;display:grid;place-items:center;font-size:10px;font-weight:850}.receive-result-row strong,.receive-result-row small{display:block}.receive-result-row strong{font-size:12.5px}.receive-result-row small{font-size:10.5px;color:var(--muted);margin-top:2px}.receive-result-row>b{font-size:18px;color:#98a2b3}.receive-result-empty{padding:20px;text-align:center}.receive-result-empty strong,.receive-result-empty span{display:block}.receive-result-empty strong{font-size:12px}.receive-result-empty span{font-size:10.5px;color:var(--muted);margin-top:3px}
.receive-selected-item{max-width:760px;border:1px solid #cfe0fb;background:#f8fbff;border-radius:13px;padding:12px 13px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center}.receive-selected-icon{width:38px;height:38px;border-radius:10px;background:#e9f2ff;color:var(--blue);display:grid;place-items:center;font-weight:850;font-size:11px}.receive-selected-copy small,.receive-selected-copy strong,.receive-selected-copy span{display:block}.receive-selected-copy small{font-size:9.5px;color:#7f8da1;text-transform:uppercase;letter-spacing:.45px;font-weight:800}.receive-selected-copy strong{font-size:13px;margin-top:1px}.receive-selected-copy span{font-size:10.5px;color:var(--muted);margin-top:2px}.receive-help{font-size:10.5px;color:var(--muted);margin:10px 0 0}.receive-help a{color:var(--blue);font-weight:750}
.receive-variant-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.receive-variant-card{min-height:76px;border:1px solid #dfe5ed;background:#fff;border-radius:12px;padding:12px 13px;display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:8px;align-items:center;text-align:left;cursor:pointer;transition:.15s ease}.receive-variant-card:hover{border-color:#a8c8fa;background:#fbfdff}.receive-variant-card.selected{border-color:#7eaff8;background:#f1f7ff;box-shadow:0 0 0 2px #e9f2ff}.receive-variant-card strong,.receive-variant-card small{display:block}.receive-variant-card strong{font-size:12px}.receive-variant-card small{font-size:10px;color:var(--muted);margin-top:3px}.receive-variant-card>b{width:22px;height:22px;border-radius:50%;background:#eaf7f0;color:#19945b;display:grid;place-items:center;font-size:11px;opacity:0}.receive-variant-card.selected>b{opacity:1}.receive-empty-variants{border:1px dashed #cdd8e6;border-radius:13px;background:#fafcff;padding:24px;text-align:center}.receive-empty-variants strong,.receive-empty-variants span{display:block}.receive-empty-variants strong{font-size:13px}.receive-empty-variants span{font-size:10.5px;color:var(--muted);margin:4px 0 12px}
.receive-summary-bar{border:1px solid #d9e6f8;background:#f8fbff;border-radius:12px;padding:12px 14px;margin-bottom:16px;display:flex;justify-content:space-between;gap:18px;align-items:center}.receive-summary-bar>div:last-child{text-align:right}.receive-summary-bar small,.receive-summary-bar strong,.receive-summary-bar span{display:block}.receive-summary-bar small{font-size:9.5px;color:#7c8da3;text-transform:uppercase;letter-spacing:.4px;font-weight:800}.receive-summary-bar strong{font-size:12.5px;margin-top:2px}.receive-summary-bar span{font-size:10.5px;color:var(--muted);margin-top:2px}.receive-stock-grid{margin-bottom:18px}.receive-form-actions{padding:17px 26px;border-top:1px solid var(--border);background:#fbfcfe;display:flex;justify-content:flex-end;gap:8px}.receive-variant-dialog{width:min(590px,100%)}
.receive-form .identifier-panel{margin-top:18px}
@media(max-width:980px){.receive-variant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.receive-step{grid-template-columns:1fr;padding:20px 16px}.receive-step-number{width:28px;height:28px}.receive-title-row{align-items:flex-start;flex-direction:column}.receive-variant-grid{grid-template-columns:1fr}.receive-selected-item{grid-template-columns:36px minmax(0,1fr)}.receive-selected-item .btn{grid-column:2;justify-self:start}.receive-summary-bar{align-items:flex-start;flex-direction:column}.receive-summary-bar>div:last-child{text-align:left}.receive-form-actions{flex-direction:column-reverse}.receive-form-actions .btn{width:100%}.receive-search-results{top:74px}}


/* P2-005: focused Add Variant -> Receive Stock flow */
.selected-model-card{display:flex;align-items:center;gap:14px;padding:16px 18px;margin:2px 0 22px;border:1px solid var(--border,#dfe7f3);border-radius:14px;background:#f8fbff}
.selected-model-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eaf3ff;color:#1769e8;flex:0 0 auto}
.selected-model-card>div:last-child{display:grid;gap:2px}.selected-model-card small{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7890;font-weight:700}.selected-model-card strong{font-size:16px;color:#101828}.selected-model-card span{font-size:13px;color:#667085}
.split-form-actions{justify-content:space-between;gap:16px}.form-action-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:720px){.split-form-actions{align-items:stretch;flex-direction:column}.form-action-group{display:grid;grid-template-columns:1fr}.form-action-group .btn,.split-form-actions>.btn{width:100%}.selected-model-card{align-items:flex-start}}


/* P2-006 Serial / IMEI receiving UI polish */
.receive-identifiers{
  margin-top:20px!important;
  border:1px solid #dbe5f2;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  padding:18px;
  box-shadow:0 8px 24px rgba(31,62,104,.04);
}
.identifier-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.identifier-panel-head h3{
  margin:0 0 4px;
  font-size:16px;
  letter-spacing:-.2px;
  color:#101828;
}
.identifier-panel-head p{
  margin:0;
  color:#667085;
  font-size:11.5px;
  line-height:1.5;
}
.identifier-panel-actions{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.identifier-progress{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:70px;
  height:32px;
  padding:0 11px;
  border-radius:999px;
  background:#edf4ff;
  color:#1769e8;
  font-size:10.5px;
  font-weight:850;
  letter-spacing:.15px;
}
.identifier-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
}
.identifier-entry{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:9px;
  align-items:center;
  min-width:0;
}
.identifier-entry-number{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f2f5f9;
  color:#667085;
  font-size:10.5px;
  font-weight:800;
  transition:.15s ease;
}
.identifier-entry-control{
  position:relative;
  min-width:0;
}
.identifier-entry-control input{
  width:100%;
  height:44px;
  border:1px solid #d9e2ee;
  border-radius:10px;
  background:#fff;
  padding:0 92px 0 12px;
  outline:0;
  font-size:12.5px;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.identifier-entry-control input::placeholder{color:#98a2b3}
.identifier-entry-control input:focus{
  border-color:#7eadf7;
  box-shadow:0 0 0 3px #eef5ff;
}
.identifier-entry-status{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  max-width:80px;
  color:#667085;
  font-size:9.5px;
  font-weight:750;
  text-align:right;
  pointer-events:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.identifier-entry.is-valid .identifier-entry-number{
  background:#eaf8f0;
  color:#178a53;
}
.identifier-entry.is-valid .identifier-entry-control input{
  border-color:#b9e7cf;
  background:#fcfffd;
}
.identifier-entry.is-valid .identifier-entry-status{color:#178a53}
.identifier-entry.is-checking .identifier-entry-number{
  background:#fff7e8;
  color:#b26a0b;
}
.identifier-entry.is-checking .identifier-entry-status{color:#a86812}
.identifier-entry.is-error .identifier-entry-number{
  background:#fff0f0;
  color:#c14343;
}
.identifier-entry.is-error .identifier-entry-control input{
  border-color:#e88989!important;
  box-shadow:0 0 0 3px #fff2f2!important;
  background:#fffdfd;
}
.identifier-entry.is-error .identifier-entry-status{color:#c14343}

.paste-identifiers-dialog{
  width:min(600px,100%);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 32px 90px rgba(16,24,40,.24);
}
.paste-identifiers-dialog .modal-header{
  padding:20px 22px 16px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.paste-identifiers-dialog .modal-header h2{
  font-size:19px;
  letter-spacing:-.25px;
}
.paste-identifiers-dialog .modal-body{
  padding:20px 22px 18px;
  overflow:visible;
}
.paste-identifiers-editor{
  display:grid;
  gap:12px;
}
.paste-identifiers-field{margin:0}
.paste-identifiers-field textarea{
  display:block;
  width:100%;
  min-height:210px;
  resize:vertical;
  border:1px solid #d9e2ee;
  border-radius:12px;
  background:#fbfcfe;
  padding:13px 14px;
  outline:0;
  color:#101828;
  font:12.5px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.paste-identifiers-field textarea:focus{
  background:#fff;
  border-color:#7eadf7;
  box-shadow:0 0 0 3px #eef5ff;
}
.paste-identifiers-field textarea::placeholder{color:#98a2b3}
.paste-identifiers-field small{
  margin-top:7px;
  color:#7b8799;
  font-size:10.5px;
}
.paste-meta{
  min-height:40px;
  border:1px solid #e5eaf1;
  background:#f8fafc;
  border-radius:10px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.paste-meta strong{
  color:#1769e8;
  font-size:11px;
  font-weight:850;
}
.paste-meta span{
  color:#667085;
  font-size:10.5px;
  text-align:right;
}
.paste-identifiers-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  padding:15px 22px 20px;
  border-top:1px solid #eef1f5;
  background:#fbfcfe;
}

@media(max-width:900px){
  .identifier-list{grid-template-columns:1fr}
}
@media(max-width:620px){
  .receive-identifiers{padding:15px;border-radius:14px}
  .identifier-panel-head{flex-direction:column;gap:10px}
  .identifier-panel-actions{width:100%;justify-content:space-between}
  .identifier-entry{grid-template-columns:28px minmax(0,1fr);gap:8px}
  .identifier-entry-number{width:28px;height:28px}
  .identifier-entry-control input{height:43px;padding-right:78px}
  .paste-identifiers-dialog .modal-header,.paste-identifiers-dialog .modal-body,.paste-identifiers-actions{padding-left:16px;padding-right:16px}
  .paste-identifiers-actions{flex-direction:column-reverse}
  .paste-identifiers-actions .btn{width:100%}
  .paste-meta{align-items:flex-start;flex-direction:column}
  .paste-meta span{text-align:left}
}

/* P2-007 Owner inventory adjustment inside Edit Variant */
.variant-owner-dialog{width:min(760px,100%);max-height:88vh}.variant-edit-tabs{display:flex;gap:8px;padding:12px 20px;border-bottom:1px solid var(--border);background:#fbfcfe}.variant-edit-tab{border:1px solid transparent;background:transparent;color:#667085;border-radius:9px;padding:8px 13px;font-weight:800;font-size:12px;cursor:pointer}.variant-edit-tab:hover{background:#f2f6fc;color:#344054}.variant-edit-tab.active{background:#eaf3ff;border-color:#cfe1ff;color:var(--blue)}.variant-owner-dialog [data-variant-panel]{max-height:calc(88vh - 150px);overflow:auto}.variant-inventory-panel{background:#fff}.variant-inventory-content{padding:18px 20px 22px}.variant-inventory-summary{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px;margin-bottom:14px}.variant-inventory-summary>div{border:1px solid #e7ebf2;border-radius:13px;padding:14px;background:#fbfcfe}.variant-inventory-summary span,.variant-inventory-summary small,.variant-inventory-summary strong{display:block}.variant-inventory-summary>div:first-child>span{font-size:10.5px;color:#667085;font-weight:750}.variant-inventory-summary>div:first-child>strong{font-size:27px;line-height:1;margin:7px 0 5px;letter-spacing:-.5px}.variant-inventory-summary>div:first-child>small{font-size:10.5px;color:var(--muted)}.variant-inventory-help{display:flex;flex-direction:column;justify-content:center}.variant-inventory-help strong{font-size:12.5px}.variant-inventory-help span{font-size:11px;color:var(--muted);margin-top:3px}.variant-branch-stock-list{border:1px solid #e7ebf2;border-radius:13px;overflow:hidden}.variant-branch-stock-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 13px;border-bottom:1px solid #edf0f5}.variant-branch-stock-row:last-child{border-bottom:0}.variant-branch-stock-name{display:flex;align-items:center;gap:10px;min-width:0}.variant-branch-stock-name strong,.variant-branch-stock-name small{display:block}.variant-branch-stock-name strong{font-size:12.5px}.variant-branch-stock-name small{font-size:10.5px;color:var(--muted);margin-top:1px}.variant-branch-icon{width:34px;height:34px;border-radius:9px;background:#eef4ff;color:#2b64bd;display:grid;place-items:center;font-size:9.5px;font-weight:850}.variant-branch-stock-row .btn[disabled]{opacity:.45;cursor:not-allowed}.variant-inventory-back{border:0;background:transparent;color:var(--blue);padding:0;margin:0 0 13px;font-size:11.5px;font-weight:800;cursor:pointer}.variant-adjust-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}.variant-adjust-heading h3{font-size:17px;margin:3px 0 2px}.variant-adjust-heading p{margin:0;color:var(--muted);font-size:11.5px}.variant-unit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8faff;border:1px solid #e4ebf7;border-radius:10px;padding:10px 12px;margin-bottom:10px}.variant-select-all{display:flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;color:#475467}.variant-unit-toolbar>strong{font-size:11px;color:var(--blue)}.variant-adjust-units{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;padding-right:3px}.variant-adjust-unit{display:grid;grid-template-columns:18px 38px minmax(0,1fr);align-items:center;gap:9px;border:1px solid #e5eaf2;border-radius:11px;padding:10px;background:#fff;cursor:pointer;transition:.14s ease}.variant-adjust-unit:hover{border-color:#bfd5f7;background:#f9fbff}.variant-adjust-unit:has(input:checked){border-color:#9fc3ff;background:#f3f8ff}.variant-adjust-unit input{width:16px;height:16px;accent-color:var(--blue)}.variant-adjust-unit-index{height:27px;border-radius:8px;background:#eef4ff;color:#2f64b8;display:grid;place-items:center;font-size:8px;font-weight:850}.variant-adjust-unit-copy{min-width:0}.variant-adjust-unit-copy strong,.variant-adjust-unit-copy small{display:block}.variant-adjust-unit-copy strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.variant-adjust-unit-copy small{font-size:9.5px;color:#219261;margin-top:2px}.variant-adjust-reason{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #eef1f5}.variant-adjust-reason .field{margin:0}.variant-adjust-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #eef1f5}.variant-adjust-footer strong,.variant-adjust-footer span{display:block}.variant-adjust-footer strong{font-size:11.5px;color:#344054}.variant-adjust-footer span{font-size:10.5px;color:var(--muted);margin-top:2px}.btn-danger{background:#c7362f;color:#fff;border-color:#c7362f;box-shadow:0 5px 14px rgba(199,54,47,.15)}.btn-danger:hover{background:#ad2d27}.btn-danger:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.variant-inventory-message{border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:11.5px;font-weight:650}.variant-inventory-message.success{background:#edf9f2;border:1px solid #cdeedc;color:#18794d}.variant-inventory-message.error{background:#fff3f3;border:1px solid #ffd4d4;color:#a53e3e}
@media(max-width:700px){.variant-inventory-summary{grid-template-columns:1fr}.variant-adjust-units{grid-template-columns:1fr}.variant-adjust-reason{grid-template-columns:1fr}.variant-adjust-footer{align-items:stretch;flex-direction:column}.variant-adjust-footer .btn{width:100%}.variant-branch-stock-row{align-items:flex-start}.variant-branch-stock-row .btn{min-width:112px}}


/* P2-010 — Products Active / Archived */
.product-state-tabs{display:flex;gap:10px;margin:0 0 18px;max-width:760px}.product-state-tab{flex:1;min-height:62px;border:1px solid var(--border);border-radius:14px;background:#fff;display:flex;align-items:center;gap:11px;padding:11px 14px;color:#344054;box-shadow:var(--shadow-sm);transition:.16s ease}.product-state-tab:hover{border-color:#bfd5f7;background:#fbfdff}.product-state-tab.active{border-color:#9fc3ff;background:#f6f9ff;box-shadow:0 0 0 3px #eef5ff}.product-state-tab.archived.active{border-color:#f1c98e;background:#fffaf2;box-shadow:0 0 0 3px #fff5e7}.product-state-tab-icon{width:38px;height:38px;border-radius:11px;background:#edf5ff;color:var(--blue);display:grid;place-items:center;flex:0 0 auto}.product-state-tab.archived .product-state-tab-icon{background:#fff1dc;color:#b86b00}.product-state-tab-icon .icon{width:18px;height:18px}.product-state-tab strong,.product-state-tab small{display:block}.product-state-tab strong{font-size:12.5px}.product-state-tab small{font-size:10.5px;color:var(--muted);margin-top:2px}
.archive-overview-card{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px;background:linear-gradient(135deg,#fff,#fffaf3)}.archive-overview-copy{max-width:650px}.archive-overview-copy h2{font-size:20px;margin:2px 0 5px}.archive-overview-copy p{margin:0;color:var(--muted);font-size:11.5px;line-height:1.55}.archive-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:8px;min-width:430px}.archive-summary-grid>div{border:1px solid #f1e3cf;background:#fff;padding:10px 12px;border-radius:11px}.archive-summary-grid strong,.archive-summary-grid span{display:block}.archive-summary-grid strong{font-size:18px;color:#344054}.archive-summary-grid span{font-size:9.5px;color:var(--muted);margin-top:2px}.archive-sections{display:grid;gap:16px}.archive-section-card{overflow:hidden}.archive-table .table-subtext{display:block;margin-top:3px}.archive-actions .table-action-btn[disabled]{opacity:.45;cursor:not-allowed;background:#f6f7f9;border-color:#e8ebef;color:#98a2b3}.archive-secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.archive-list{padding:6px 14px 14px}.archive-list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px;border-bottom:1px solid #eef1f5}.archive-list-row:last-child{border-bottom:0}.archive-list-row strong,.archive-list-row span{display:block}.archive-list-row strong{font-size:11.5px}.archive-list-row span{font-size:10px;color:var(--muted);margin-top:2px}.archive-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}.archive-category-item{border:1px solid #e8edf4;border-radius:12px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.archive-category-item strong,.archive-category-item span{display:block}.archive-category-item strong{font-size:11.5px}.archive-category-item span{font-size:10px;color:var(--muted);margin-top:2px}
@media(max-width:900px){.archive-overview-card{align-items:flex-start;flex-direction:column}.archive-summary-grid{min-width:0;width:100%}.archive-secondary-grid{grid-template-columns:1fr}}
@media(max-width:620px){.product-state-tabs{flex-direction:column}.archive-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-category-grid{grid-template-columns:1fr}.archive-list-row,.archive-category-item{align-items:flex-start;flex-direction:column}.archive-list-row .master-table-actions,.archive-category-item .master-table-actions{width:100%}}


/* P2-012 Operational data entry uses uppercase for consistent inventory records. */
[data-uppercase]{text-transform:uppercase;}
[data-uppercase]::placeholder{text-transform:uppercase;}

/* P2-013 — Inventory table UI/UX + local brand marks */
.inventory-page-heading{margin-bottom:18px}
.inventory-filter-card{
  grid-template-columns:minmax(280px,1.8fr) repeat(4,minmax(125px,.58fr)) auto auto;
  gap:10px;
  padding:13px;
  align-items:end;
}
.inventory-filter-card .inventory-search{min-width:0}
.inventory-filter-card select{height:43px}
.inventory-filter-card .inventory-apply,.inventory-filter-card .inventory-reset{height:43px}
.inventory-table-card{overflow:hidden}
.inventory-table-wrap{
  overflow:auto;
  max-height:calc(100vh - 350px);
  min-height:320px;
}
.inventory-table{min-width:980px;table-layout:fixed}
.inventory-table .col-product{width:28%}
.inventory-table .col-specs{width:18%}
.inventory-table .col-stock{width:12%}
.inventory-table .col-location{width:17%}
.inventory-table .col-status{width:12%}
.inventory-table .col-action{width:13%}
.inventory-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#f8fafc;
  padding:11px 15px;
  box-shadow:inset 0 -1px 0 var(--border);
}
.inventory-table td{
  padding:10px 15px;
  height:58px;
  vertical-align:middle;
}
.inventory-table tbody tr{transition:background .14s ease}
.inventory-table tbody tr:hover{background:#f9fbff}
.inventory-table tbody tr.inventory-own-branch-row{background:#f7faff}
.inventory-table tbody tr.inventory-own-branch-row:hover{background:#f1f7ff}
.inventory-product-cell{display:flex;align-items:center;gap:11px;min-width:0}
.brand-logo{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  overflow:hidden;
  background:#f4f6f9;
  border:1px solid #edf0f5;
}
.brand-logo img{display:block;width:100%;height:100%;object-fit:contain}
.brand-logo-fallback{background:#eef4ff;color:#2d66ba;font-size:8px;font-weight:850;letter-spacing:.25px}
.inventory-accessory-logo{background:#f5f0ff;color:#7257d6}
.inventory-accessory-logo .icon{width:17px;height:17px}
.inventory-product-copy{min-width:0;line-height:1.2}
.inventory-product-copy strong{
  display:block;
  color:#101828;
  font-size:12px;
  font-weight:800;
  letter-spacing:-.08px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.inventory-product-copy span{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:4px;
  color:#7b8799;
  font-size:9.8px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.inventory-product-copy span b{font-size:8px;color:#b1bac7;font-weight:700}
.inventory-specs-text{
  display:block;
  color:#27364b;
  font-size:11.2px;
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.inventory-stock-count{display:flex;align-items:center;min-height:34px}
.inventory-stock-count strong{font-size:13px;font-weight:850;color:#101828}
.inventory-location-cell{min-width:0;line-height:1.2}
.inventory-location-cell strong{
  display:block;
  color:#172033;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.inventory-location-cell span{
  display:inline-block;
  margin-top:4px;
  color:#1769e8;
  font-size:9.3px;
  font-weight:750;
}
.inventory-table .status-pill{padding:5px 9px;font-size:9px}
.inventory-view-btn{min-width:102px;justify-content:center}
.inventory-view-btn .icon{width:14px;height:14px}
.inventory-table-footer{
  min-height:58px;
  border-top:1px solid var(--border);
  background:#fff;
  padding:10px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#667085;
  font-size:10.5px;
}
.inventory-pagination-controls{display:flex;align-items:center;gap:13px}
.inventory-page-size label{display:flex;align-items:center;gap:7px;white-space:nowrap}
.inventory-page-size select{
  height:34px;
  min-width:66px;
  border:1px solid #dce2ec;
  border-radius:8px;
  background:#fff;
  padding:0 24px 0 9px;
  color:#344054;
  font-size:10.5px;
}
.inventory-pagination{display:flex;align-items:center;gap:5px}
.inventory-page-btn{
  min-width:32px;
  height:32px;
  border:1px solid #e1e7ef;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#475467;
  font-size:10.5px;
  font-weight:750;
  transition:.14s ease;
}
.inventory-page-btn:hover{border-color:#bcd5ff;background:#f7faff;color:var(--blue)}
.inventory-page-btn.active{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 4px 10px rgba(23,105,232,.16)}
.inventory-page-btn.disabled{pointer-events:none;opacity:.4}
.inventory-page-ellipsis{min-width:20px;text-align:center;color:#98a2b3}

@media(max-width:1180px){
  .inventory-filter-card{grid-template-columns:minmax(260px,1.4fr) repeat(2,minmax(140px,.7fr)) auto auto}
  .inventory-filter-card>label:nth-of-type(4),.inventory-filter-card>label:nth-of-type(5){grid-row:2}
  .inventory-table-wrap{max-height:none;min-height:0}
}
@media(max-width:900px){
  .inventory-filter-card{grid-template-columns:1fr 1fr}
  .inventory-filter-card .inventory-search{grid-column:1/-1}
  .inventory-filter-card>label:nth-of-type(4),.inventory-filter-card>label:nth-of-type(5){grid-row:auto}
  .inventory-filter-card .inventory-apply,.inventory-filter-card .inventory-reset{width:100%}
  .inventory-table-footer{align-items:flex-start;flex-direction:column}
  .inventory-pagination-controls{width:100%;justify-content:space-between}
}
@media(max-width:620px){
  .inventory-filter-card{grid-template-columns:1fr}
  .inventory-table-footer{padding:12px}
  .inventory-pagination-controls{align-items:stretch;flex-direction:column}
  .inventory-page-size label{justify-content:space-between}
  .inventory-pagination{overflow:auto;padding-bottom:2px}
}


/* P2-014 — Product Catalog Brand Logos */
.product-master-brand-logo{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  background:#f8fafc;
  border-color:#e8edf4;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.brand-master-card.selected .product-master-brand-logo{
  border-color:#d8e6ff;
  background:#fff;
}
.product-model-brand-cell{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.product-model-brand-logo{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:8px;
  background:#f8fafc;
  border-color:#edf0f5;
}
.product-model-brand-name{
  font-size:11.5px;
  font-weight:700;
  color:#344054;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width: 820px){
  .product-master-brand-logo{width:36px;height:36px;flex-basis:36px}
  .product-model-brand-logo{width:26px;height:26px;flex-basis:26px}
}

/* P2-016 Edit Variant full fields + safe locking */
.variant-spec-section{padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid #edf0f5}.variant-spec-section .variant-price-heading{margin-bottom:11px}.variant-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.variant-spec-grid .field{margin:0}.variant-spec-lock-note{margin-top:10px;padding:9px 11px;border:1px solid #dfe8f5;border-radius:10px;background:#f8fbff;color:#52647b;font-size:10.5px;line-height:1.45}.variant-spec-lock-note.locked{border-color:#eadfca;background:#fffaf1;color:#7a5a26}.variant-spec-grid .field.field-locked>span{color:#667085}.variant-spec-grid .field.field-locked select,.variant-spec-grid .field.field-locked input{background:#f5f7fa;color:#667085;border-color:#e3e8ef;cursor:not-allowed;box-shadow:none}.variant-price-dialog .master-modal-form{padding-top:16px}.variant-owner-dialog .variant-spec-section{padding-top:2px}
@media(max-width:640px){.variant-spec-grid{grid-template-columns:1fr}}

/* P2-019: controlled restore state for previously adjusted-out serialized units */
.identifier-entry.is-restore .identifier-entry-number{
  background:#eaf2ff;
  color:#1769e8;
}
.identifier-entry.is-restore .identifier-entry-control input{
  border-color:#9ec3fb;
  background:#fbfdff;
  box-shadow:0 0 0 3px #f1f6ff;
}
.identifier-entry.is-restore .identifier-entry-status{
  color:#1769e8;
  max-width:145px;
}
.restore-review-note{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #cfe0fb;
  border-radius:12px;
  background:#f5f9ff;
}
.restore-review-note strong{
  color:#175fb8;
  font-size:12px;
}
.restore-review-note span{
  color:#667085;
  font-size:11px;
  line-height:1.45;
}

/* P2-020 — clear restore action for previously removed units */
.identifier-entry-control input{
  padding-right:12px;
}
.identifier-entry-feedback{
  min-height:24px;
  margin-top:5px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.identifier-entry-status{
  position:static;
  transform:none;
  max-width:none;
  min-width:0;
  color:#667085;
  font-size:9.8px;
  font-weight:750;
  text-align:left;
  pointer-events:auto;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.35;
}
.identifier-restore-btn{
  flex:0 0 auto;
  height:28px;
  padding:0 10px;
  border:1px solid #9fc5fb;
  border-radius:8px;
  background:#f4f8ff;
  color:#1769e8;
  font:inherit;
  font-size:9.5px;
  font-weight:800;
  cursor:pointer;
  transition:.14s ease;
}
.identifier-restore-btn:hover{
  border-color:#6ea7f5;
  background:#eaf3ff;
}
.identifier-entry.is-restore .identifier-entry-number{
  background:#eaf2ff;
  color:#1769e8;
}
.identifier-entry.is-restore .identifier-entry-control input{
  border-color:#9ec3fb;
  background:#fbfdff;
  box-shadow:0 0 0 3px #f1f6ff;
}
.identifier-entry.is-restore .identifier-entry-status{color:#4f6788}
.identifier-entry.is-restore-approved .identifier-entry-number{
  background:#eaf8f0;
  color:#178a53;
}
.identifier-entry.is-restore-approved .identifier-entry-control input{
  border-color:#b9e7cf;
  background:#fcfffd;
  box-shadow:0 0 0 3px #f2fbf6;
}
.identifier-entry.is-restore-approved .identifier-entry-status{color:#178a53}
.restore-unit-dialog{
  width:min(520px,100%);
}
.restore-unit-summary{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:12px;
}
.restore-unit-summary>div{
  padding:12px 13px;
  border:1px solid #e2e8f0;
  border-radius:11px;
  background:#fbfcfe;
  min-width:0;
}
.restore-unit-summary span,
.restore-unit-summary small{
  display:block;
  color:#667085;
  font-size:9.8px;
  line-height:1.4;
}
.restore-unit-summary strong{
  display:block;
  margin-top:4px;
  color:#172033;
  font-size:11.5px;
  font-weight:800;
  overflow-wrap:anywhere;
}
.restore-unit-summary small{margin-top:4px}
.restore-unit-info{
  margin-top:12px;
  padding:11px 12px;
  border:1px solid #cfe0fb;
  border-radius:10px;
  background:#f5f9ff;
}
.restore-unit-info strong{
  display:block;
  color:#175fb8;
  font-size:10.5px;
}
.restore-unit-info span{
  display:block;
  margin-top:3px;
  color:#5f6f84;
  font-size:10px;
  line-height:1.45;
}
@media(max-width:620px){
  .restore-unit-summary{grid-template-columns:1fr}
  .identifier-entry-feedback{align-items:flex-start;flex-direction:column}
  .identifier-restore-btn{width:100%}
}


/* P2-023 — Dual IMEI receive-stock UI */
.identifier-entry-dual{
  grid-column:1 / -1;
  align-items:start;
}
.identifier-dual-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
  min-width:0;
}
.identifier-field-wrap{
  min-width:0;
}
.identifier-field-label{
  display:block;
  margin:0 0 5px;
  color:#475467;
  font-size:10.5px;
  font-weight:800;
}
.identifier-field-label b{color:#d14343}
.identifier-field-wrap input{
  width:100%;
  height:44px;
  border:1px solid #d9e2ee;
  border-radius:10px;
  background:#fff;
  padding:0 12px;
  outline:0;
  font-size:12.5px;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.identifier-field-wrap input::placeholder{color:#98a2b3}
.identifier-field-wrap input:focus{
  border-color:#7eadf7;
  box-shadow:0 0 0 3px #eef5ff;
}
.identifier-field-wrap.is-valid input{
  border-color:#b9e7cf;
  background:#fcfffd;
}
.identifier-field-wrap.is-valid .identifier-entry-status{color:#178a53}
.identifier-field-wrap.is-checking .identifier-entry-status{color:#a86812}
.identifier-field-wrap.is-error input{
  border-color:#e88989!important;
  box-shadow:0 0 0 3px #fff2f2!important;
  background:#fffdfd;
}
.identifier-field-wrap.is-error .identifier-entry-status{color:#c14343}
.identifier-field-wrap.is-restore input{
  border-color:#9ec3fb;
  background:#fbfdff;
  box-shadow:0 0 0 3px #f1f6ff;
}
.identifier-field-wrap.is-restore .identifier-entry-status{color:#4f6788}
.identifier-field-wrap.is-restore-approved input{
  border-color:#b9e7cf;
  background:#fcfffd;
  box-shadow:0 0 0 3px #f2fbf6;
}
.identifier-field-wrap.is-restore-approved .identifier-entry-status{color:#178a53}
.identifier-entry-dual .identifier-entry-number{
  margin-top:24px;
}
@media (max-width:760px){
  .identifier-dual-grid{grid-template-columns:1fr}
  .identifier-entry-dual .identifier-entry-number{margin-top:24px}
}

/* P2-024 — Scanner-friendly Receive Stock */
.scanner-ready-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:32px;
  padding:0 11px;
  border-radius:999px;
  background:#eef6ff;
  color:#1769e8;
  font-size:10.5px;
  font-weight:850;
  white-space:nowrap;
}
.scanner-ready-badge>span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#2f7ff0;
  box-shadow:0 0 0 4px rgba(47,127,240,.12);
}
.scanner-ready-badge.is-checking{background:#fff7e8;color:#a86812}
.scanner-ready-badge.is-checking>span{background:#d78a1d;box-shadow:0 0 0 4px rgba(215,138,29,.12)}
.scanner-ready-badge.is-error{background:#fff0f0;color:#c14343}
.scanner-ready-badge.is-error>span{background:#d94b4b;box-shadow:0 0 0 4px rgba(217,75,75,.12)}
.scanner-help{
  display:flex;
  align-items:center;
  min-height:38px;
  margin:-2px 0 12px;
  padding:9px 11px;
  border:1px solid #e2eaf5;
  border-radius:10px;
  background:#f8fbff;
  color:#667085;
  font-size:10.5px;
  line-height:1.45;
}
.identifier-field-wrap input:focus{
  border-color:#2f7ff0;
  box-shadow:0 0 0 3px rgba(47,127,240,.12);
  background:#fff;
}
.identifier-field-wrap input:focus::placeholder{color:#7b8ba1}
@media(max-width:860px){
  .identifier-panel-actions{flex-wrap:wrap;justify-content:flex-end}
  .scanner-ready-badge{order:-1}
}
@media(max-width:620px){
  .identifier-panel-actions{justify-content:flex-start}
  #focusScannerBtn,#openPasteIdentifiers{flex:1 1 auto}
  .scanner-help{font-size:10px}
}

/* P2-025 Mobile Camera + External Scanner */
.identifier-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}
.identifier-camera-btn{min-width:88px;padding-inline:18px}
.camera-scan-dialog{width:min(620px,calc(100vw - 28px))}
.camera-scan-stage{position:relative;overflow:hidden;border-radius:18px;background:#101826;min-height:360px;display:grid;place-items:center}
.camera-scan-stage video{display:block;width:100%;min-height:360px;max-height:62vh;object-fit:cover;background:#101826}
.camera-scan-guide{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.camera-scan-guide span{display:block;width:min(82%,470px);height:150px;border:3px solid rgba(255,255,255,.95);border-radius:18px;box-shadow:0 0 0 999px rgba(5,15,30,.28)}
.camera-scan-state{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);max-width:90%;padding:10px 16px;border-radius:999px;background:rgba(10,20,35,.84);color:#fff;font-weight:800;font-size:13px;text-align:center;white-space:nowrap}
.camera-scan-message{padding:14px 16px;border-radius:14px;background:#eff6ff;color:#1d4ed8;font-weight:700;line-height:1.45}
.camera-scan-message.is-error{background:#fff7ed;color:#9a3412}
.camera-scan-tips{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.45}
.camera-scan-actions{justify-content:flex-end}
@media (max-width:700px){
  .identifier-input-row{grid-template-columns:1fr}
  .identifier-camera-btn{width:100%;min-height:48px}
  .identifier-panel-actions{align-items:stretch}
  .identifier-panel-actions .btn{width:100%}
  .camera-scan-dialog{width:100%;max-width:none;align-self:flex-end;border-radius:22px 22px 0 0;margin:0}
  .camera-scan-stage,.camera-scan-stage video{min-height:48vh}
  .camera-scan-guide span{height:128px;width:88%}
  .camera-scan-actions{display:grid;grid-template-columns:1fr 1fr}
  .camera-scan-actions .btn{width:100%}
}
.camera-gallery-btn{width:100%;margin-top:12px}

/* Keep the camera and all actions reachable above a phone browser's toolbar. */
.camera-scan-dialog{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden}
.camera-scan-dialog .modal-header,.camera-scan-dialog .modal-actions{flex-shrink:0}
.camera-scan-dialog .modal-body{overflow-y:auto;min-height:0}
.camera-scan-stage,.camera-scan-stage video{min-height:220px;height:clamp(220px,38dvh,420px);max-height:420px}
.camera-scan-state{white-space:normal;width:max-content}
.camera-scan-actions{gap:8px;padding-bottom:max(16px,env(safe-area-inset-bottom))}
.camera-scan-actions .camera-gallery-btn{margin-top:0;width:auto}
.camera-single-result{width:100%;margin-top:12px;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.camera-serial-review{display:grid;gap:10px;margin-top:12px;padding:14px;background:#f4f8ff;border:1px solid #cbdcf8;border-radius:12px}
.camera-serial-review input{font-family:monospace;font-size:18px;letter-spacing:.08em;text-transform:uppercase;width:100%}
.camera-serial-review small{color:var(--muted)}
.camera-serial-candidates{display:flex;gap:8px;flex-wrap:wrap}
.camera-serial-candidates:empty{display:none}
.camera-serial-candidates .btn{font-family:monospace;font-size:14px;min-height:40px}
#cameraScanVideo[hidden]{display:none}
#cameraScanGuide.is-photo-tap{display:none}
@media(max-width:700px){
  .camera-scan-modal{padding:8px}
  .camera-scan-dialog{max-height:calc(100dvh - 16px);border-radius:18px;align-self:center}
  .camera-scan-dialog .modal-header,.camera-scan-dialog .modal-body{padding:16px}
  .camera-scan-actions{padding:12px;grid-template-columns:1fr 1fr}
  .camera-scan-actions .btn{white-space:normal;min-height:44px}
}

/* P2-032 Fast Paired IMEI Label Scan */
.identifier-input-row-solo{grid-template-columns:minmax(0,1fr)}
.identifier-pair-scan-card{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  margin-bottom:2px;
  border:1px solid #d9e7fb;
  border-radius:14px;
  background:#f8fbff;
}
.identifier-pair-scan-card>div{display:grid;gap:3px;min-width:0}
.identifier-pair-scan-card strong{font-size:13px;color:#162033}
.identifier-pair-scan-card span{font-size:11px;line-height:1.45;color:var(--muted)}
.identifier-pair-scan-btn{flex:0 0 auto;min-width:150px;white-space:nowrap}
.shared-scan-launch{margin-top:10px}
.shared-device-scanner[hidden],.shared-device-scanner [hidden]{display:none!important}
.shared-device-scanner .modal-body>.field{margin:12px 0}
.shared-device-scanner [data-photo]{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#101826;cursor:crosshair;touch-action:manipulation}
.shared-device-scanner [data-selection]{position:absolute;z-index:2;border:2px solid #1670ea;background:rgba(22,112,234,.12);pointer-events:none}
.shared-device-scanner [data-select]{margin:10px 0}
.shared-device-scanner [data-value]{font-family:monospace;font-size:18px}
.shared-scanner-crop{padding:10px;margin:10px 0;border:1px solid #cbdcf8;border-radius:12px;background:#fff}
.shared-scanner-crop small{color:var(--muted)}
.shared-scanner-crop img{display:block;max-width:100%;max-height:100px;margin:8px auto;object-fit:contain}
.shared-device-scanner .camera-scan-actions{flex-wrap:wrap}
.shared-device-scanner .camera-scan-actions .btn{min-height:44px;white-space:normal}
@media(max-width:700px){
  .identifier-pair-scan-card{display:grid;gap:12px;padding:14px}
  .identifier-pair-scan-btn{width:100%;min-height:48px}
}


/* POS stabilization patch - Sep 2026 */
.pos-cart-header-actions{display:flex;align-items:center;gap:7px}
.pos-clear-cart{height:28px;border:1px solid #e4e9f0;border-radius:8px;background:#fff;padding:0 9px;color:#667085;font-size:9.5px;font-weight:800;cursor:pointer}
.pos-clear-cart:hover:not(:disabled){border-color:#f0b2b2;background:#fff7f7;color:#b42318}
.pos-clear-cart:disabled{opacity:.45;cursor:not-allowed}
.pos-setup-state{min-height:280px;padding:28px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;align-content:center}
.pos-setup-state .empty-icon{margin:0}
.pos-setup-state h2{font-size:19px;margin:4px 0 6px}
.pos-setup-state p{max-width:760px;color:var(--muted);font-size:11.5px;line-height:1.6;margin:0}
.pos-setup-state code{background:#f5f7fa;border:1px solid #e4e9f0;border-radius:5px;padding:2px 5px;font-size:10px}
.pos-setup-state small{display:block;margin-top:10px;color:#8a5b00;font-size:10px}
@media(max-width:620px){.pos-setup-state{grid-template-columns:1fr;padding:20px}.pos-cart-header-actions{gap:5px}}

/* P2-033 Owner Branch Sales Records */
.sales-records-heading{align-items:center}
.sales-filter-card{display:grid;grid-template-columns:minmax(240px,1.35fr) minmax(145px,.72fr) minmax(145px,.72fr) 145px 145px auto auto;gap:10px;align-items:end;padding:16px;margin-bottom:16px}
.sales-filter-card .field{margin:0;min-width:0}
.sales-filter-card .field>span{display:block;margin-bottom:6px;font-size:10px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.45px}
.sales-filter-card input,.sales-filter-card select{width:100%;height:42px;border:1px solid #dce3ed;border-radius:10px;background:#fff;padding:0 11px;outline:0}
.sales-filter-card input:focus,.sales-filter-card select:focus{border-color:#8ab8ff;box-shadow:0 0 0 3px #eef5ff}
.sales-search-input{height:42px;border:1px solid #dce3ed;border-radius:10px;display:flex;align-items:center;background:#fff;padding:0 10px}
.sales-search-input:focus-within{border-color:#8ab8ff;box-shadow:0 0 0 3px #eef5ff}
.sales-search-input .icon{width:17px;color:#7b8ba1}
.sales-search-input input{height:40px;border:0;box-shadow:none!important;padding:0 8px;background:transparent}
.sales-filter-apply,.sales-filter-reset{height:42px}
.sales-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.sales-kpi-card{min-height:118px;padding:17px 18px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:var(--shadow-sm);display:flex;flex-direction:column}
.sales-kpi-card span{font-size:11px;font-weight:750;color:#667085}
.sales-kpi-card strong{font-size:25px;line-height:1.12;letter-spacing:-.5px;margin-top:9px;color:#111827}
.sales-kpi-card small{font-size:10px;color:#8a96a8;margin-top:auto;padding-top:8px}
.sales-branch-section{margin-bottom:16px;overflow:hidden}
.sales-branch-section .card-header{align-items:center}
.sales-branch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px 17px}
.sales-branch-card{border:1px solid #e0e7f0;border-radius:13px;background:#fff;padding:14px;display:flex;flex-direction:column;min-height:142px;transition:.15s ease}
.sales-branch-card:hover{border-color:#a9c8f8;background:#fbfdff;transform:translateY(-1px)}
.sales-branch-card.active{border-color:#82aff4;background:#f2f7ff;box-shadow:0 0 0 2px #edf4ff}
.sales-branch-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.sales-branch-icon{width:34px;height:34px;border-radius:10px;background:#eef5ff;color:var(--blue);display:grid;place-items:center}
.sales-branch-icon .icon{width:16px}
.sales-branch-code{font-size:9px;font-weight:850;letter-spacing:.6px;color:#7890af;background:#f5f7fa;padding:5px 7px;border-radius:999px}
.sales-branch-card>strong{font-size:12px;color:#475467}
.sales-branch-card>b{font-size:20px;letter-spacing:-.35px;margin-top:5px;color:#101828}
.sales-branch-card>small{font-size:10px;color:var(--muted);margin-top:auto;padding-top:8px}
.sales-detail-card{margin-bottom:16px;overflow:hidden;border-color:#cfe0fb}
.sales-detail-header{padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);background:#fbfdff}
.sales-detail-header h2{font-size:18px;margin:3px 0 3px}
.sales-detail-header p{font-size:11px;color:var(--muted);margin:0}
.sales-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(180px,1.15fr);gap:0;border-bottom:1px solid var(--border)}
.sales-detail-summary>div{padding:14px 16px;border-right:1px solid var(--border);min-width:0}
.sales-detail-summary>div:last-child{border-right:0}
.sales-detail-summary span,.sales-detail-summary strong{display:block}
.sales-detail-summary span{font-size:9.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.35px;font-weight:750}
.sales-detail-summary strong{font-size:12px;color:#344054;margin-top:4px;overflow-wrap:anywhere}
.sales-detail-summary .sales-detail-total{background:#f5f9ff}
.sales-detail-summary .sales-detail-total strong{font-size:19px;color:#0f5ed7}
.sales-detail-table-wrap{max-height:340px}
.sales-cell-sub{display:block;font-size:10px;color:var(--muted);margin-top:2px;font-weight:500}
.sales-records-table-card{overflow:hidden}
.sales-records-table-wrap{overflow:auto}
.sales-records-table{min-width:1030px}
.sales-records-table td{vertical-align:middle}
.sales-table-branch{display:inline-flex;align-items:center;gap:6px;font-weight:650;white-space:nowrap}
.sales-table-branch .icon{width:15px;color:#6c7c92}
.sales-table-total{font-size:13px;white-space:nowrap}
.sales-payment-pill{display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border-radius:999px;background:#f1f4f8;color:#596579;font-size:9.5px;font-weight:800;white-space:nowrap}
.sales-payment-pill.cash{background:#eaf8f0;color:#198456}
.sales-payment-pill.gcash,.sales-payment-pill.maya{background:#eef5ff;color:#1769e8}
.sales-payment-pill.card,.sales-payment-pill.bank_transfer{background:#f3efff;color:#6c52cb}
.sales-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-top:1px solid var(--border);background:#fbfcfe}
.sales-pagination>span{font-size:10.5px;color:var(--muted)}
.sales-pagination>div{display:flex;gap:7px}
@media(max-width:1260px){
  .sales-filter-card{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sales-search-field{grid-column:span 2}
  .sales-filter-apply,.sales-filter-reset{width:100%}
}
@media(max-width:980px){
  .sales-kpi-grid,.sales-branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-detail-summary>div{border-bottom:1px solid var(--border)}
  .sales-detail-summary .sales-detail-total{grid-column:1/-1;border-bottom:0}
}
@media(max-width:700px){
  .sales-records-heading{align-items:flex-start;flex-direction:column}
  .sales-records-heading .btn{width:100%}
  .sales-filter-card{grid-template-columns:1fr}
  .sales-search-field{grid-column:auto}
  .sales-kpi-grid,.sales-branch-grid{grid-template-columns:1fr}
  .sales-detail-header{flex-direction:column}
  .sales-detail-header .btn{width:100%}
  .sales-detail-summary{grid-template-columns:1fr}
  .sales-detail-summary .sales-detail-total{grid-column:auto}
  .sales-pagination{align-items:stretch;flex-direction:column}
  .sales-pagination>div{display:grid;grid-template-columns:1fr 1fr}
}

/* ========================================================================== 
   P2-034 — APPROVED MASTER UI/UX (Responsive Production System)
   Source of truth: design-reference/approved_responsive_ui_reference.png
   One system • one design language • desktop / tablet / phone
   ========================================================================== */
:root{
  --primary:#1769e8;
  --primary-hover:#0f5ed7;
  --primary-soft:#eef5ff;
  --app-bg:#f5f7fb;
  --surface:#ffffff;
  --surface-soft:#f8faff;
  --text:#101828;
  --muted:#667085;
  --muted-2:#98a2b3;
  --border:#e4e9f2;
  --success:#1e9e63;
  --success-soft:#eaf8f0;
  --warning:#d98213;
  --warning-soft:#fff6e5;
  --error:#d14343;
  --error-soft:#fff1f1;
  --blue:var(--primary);
  --blue-600:var(--primary-hover);
  --blue-soft:var(--primary-soft);
  --bg:var(--app-bg);
  --green:var(--success);
  --green-soft:var(--success-soft);
  --amber:var(--warning);
  --amber-soft:var(--warning-soft);
  --red:var(--error);
  --red-soft:var(--error-soft);
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 8px 24px rgba(31,55,90,.06);
  --shadow-sm:0 3px 12px rgba(31,55,90,.045);
  --sidebar:236px;
  --topbar:72px;
  --mobile-nav-height:68px;
  --touch-target:44px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
}
html{background:var(--app-bg);scroll-behavior:smooth}
body{background:var(--app-bg);color:var(--text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid rgba(23,105,232,.18);outline-offset:2px}

/* App shell */
.sidebar{width:var(--sidebar);border-right:1px solid var(--border);box-shadow:none}
.sidebar-brand{height:var(--topbar);padding:0 18px;gap:10px}
.brand-mark,.brand-mark.small{background:var(--primary);box-shadow:0 6px 14px rgba(23,105,232,.18)}
.sidebar-brand strong{font-size:15px;color:#0f57c8}
.sidebar-brand span{font-size:10.5px}
.sidebar-nav{padding:20px 12px;gap:5px;overflow-y:auto;overscroll-behavior:contain}
.nav-link{min-height:43px;padding:10px 12px;border-radius:10px;font-size:13px;font-weight:650}
.nav-link .icon{width:18px;height:18px}
.nav-link.active{background:#edf4ff;color:var(--primary)}
.nav-link:hover{background:#f7f9fc}
.sidebar-footer{padding:14px 13px 16px;gap:8px;background:#fff}
.sidebar-context{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:11px;background:#fbfcfe;min-width:0}
.sidebar-context>.icon{width:17px;color:var(--primary)}
.sidebar-context>div{min-width:0}
.sidebar-context strong,.sidebar-context span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-context strong{font-size:11.5px;color:#344054}
.sidebar-context span{font-size:9.5px;color:var(--muted);margin-top:2px}
.logout-link{min-height:42px;padding:9px 10px;font-size:12px}
.sidebar-scrim{display:none}
.app-main{margin-left:var(--sidebar)}

.topbar{height:var(--topbar);padding:0 24px;gap:12px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}
.sidebar-toggle{width:42px;height:42px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#475467;align-items:center;justify-content:center;cursor:pointer}
.sidebar-toggle .icon{width:20px}
.mobile-brand{display:none;align-items:center;gap:9px;min-width:0}
.mobile-brand-copy strong,.mobile-brand-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-brand-copy strong{font-size:12px;color:#0f57c8}
.mobile-brand-copy small{font-size:8.5px;color:var(--muted)}
.topbar-search{height:42px;width:min(460px,38vw);display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--border);border-radius:10px;background:#f9fbfd;transition:.16s ease}
.topbar-search:focus-within{background:#fff;border-color:#91baff;box-shadow:0 0 0 3px #eef5ff}
.topbar-search>.icon{width:17px;color:#7a8799}
.topbar-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:12px}
.topbar-search kbd{font:700 9px/1 var(--font);color:#98a2b3;border:1px solid #e5e9f0;border-radius:5px;background:#fff;padding:4px 6px}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px;min-width:0}
.branch-switcher,.branch-chip{height:40px;border-radius:10px;padding:0 11px;font-size:12px;background:#fff}
.branch-switcher select{min-width:108px;font-size:12px}
.topbar-icon-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:#fff;color:#667085;cursor:pointer}
.topbar-icon-button:hover{background:#f8faff;color:var(--primary)}
.topbar-icon-button .icon{width:18px}
.user-dropdown{position:relative}
.user-dropdown>summary{list-style:none}
.user-dropdown>summary::-webkit-details-marker{display:none}
.user-menu{min-height:44px;display:flex;align-items:center;gap:9px;padding:2px 6px 2px 10px;border-left:1px solid var(--border);cursor:pointer;border-radius:9px}
.user-menu:hover{background:#f8faff}
.avatar{width:36px;height:36px;font-size:12px}
.user-copy strong{font-size:11.5px}.user-copy span{font-size:9.5px}
.user-chevron{width:14px!important;color:#98a2b3;transition:.16s ease}
.user-dropdown[open] .user-chevron{transform:rotate(180deg)}
.user-dropdown-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:70;width:235px;padding:8px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 45px rgba(16,24,40,.13)}
.user-dropdown-meta{padding:9px 10px 11px;border-bottom:1px solid #eef1f5;margin-bottom:5px}
.user-dropdown-meta strong,.user-dropdown-meta span{display:block}
.user-dropdown-meta strong{font-size:12px}.user-dropdown-meta span{font-size:9.5px;color:var(--muted);margin-top:2px}
.user-dropdown-menu>a{min-height:40px;padding:9px 10px;border-radius:8px;display:flex;align-items:center;gap:9px;color:#667085;font-size:11.5px;font-weight:650}
.user-dropdown-menu>a:hover{background:#fff3f3;color:var(--error)}
.user-dropdown-menu>a .icon{width:17px}

/* Page hierarchy */
.page-content{padding:26px 28px 38px;max-width:1480px}
.page-heading{align-items:flex-end;margin-bottom:20px;gap:18px}
.page-heading h1{font-size:28px;line-height:1.12;margin:4px 0 6px;letter-spacing:-.65px}
.page-heading p{font-size:13px;line-height:1.5;color:var(--muted)}
.eyebrow{font-size:9.5px;letter-spacing:1.05px;color:var(--primary)}

/* Shared component language */
.card,.feature-card,.table-card,.master-surface-card{border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);background:#fff}
.card-header{padding:16px 18px}.card-header h2{font-size:15.5px}.card-header p{font-size:11px}
.btn{min-height:42px;border-radius:9px;padding:0 14px;font-size:12px;font-weight:750;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn-primary{background:var(--primary);box-shadow:0 5px 12px rgba(23,105,232,.15)}
.btn-primary:hover{background:var(--primary-hover)}
.btn-secondary,.btn-outline{box-shadow:none}
.btn-secondary:hover,.btn-outline:hover{background:#f8faff}
.btn-danger{box-shadow:none}
.icon-button{width:38px;height:38px;border:1px solid #e6eaf0;background:#f8fafc;border-radius:9px;color:#667085;display:grid;place-items:center}
.icon-button>.icon{width:17px}
.field>span{font-size:11px;margin-bottom:6px}
.field input,.field select,.field textarea,.search-box input,.filter-card select,.sales-filter-card input,.sales-filter-card select{min-height:44px;border-radius:9px;border-color:#dbe2ec}
.field textarea{width:100%;padding:11px 12px;outline:0;resize:vertical;background:#fff}
.field input:focus,.field select:focus,.field textarea:focus,.search-box input:focus,.filter-card select:focus{border-color:#8cb8ff;box-shadow:0 0 0 3px #edf4ff}
.search-box,.sales-search-input{min-height:44px;border-radius:9px}
.filter-card{border-radius:13px;padding:13px;box-shadow:var(--shadow-sm)}
.status-pill,.movement-pill,.mini-chip{font-size:9px;font-weight:800}
.alert{border-radius:10px;padding:11px 13px;box-shadow:none}
.empty-state{min-height:180px;justify-content:center}
.empty-icon{width:44px;height:44px;border-radius:12px}

/* Tables — compact desktop, labelled cards on phones */
.data-table th{background:#f8fafc;padding:11px 13px;font-size:9.5px;color:#667085}
.data-table td{padding:11px 13px;font-size:11.5px}
.data-table tbody tr:hover{background:#fbfdff}
.table-wrap,.inventory-table-wrap,.sales-records-table-wrap{scrollbar-width:thin;scrollbar-color:#cfd7e4 transparent}

/* Modals */
.modal-backdrop{background:rgba(16,24,40,.38);backdrop-filter:blur(3px)}
.modal-dialog{border:1px solid rgba(255,255,255,.8);border-radius:16px;box-shadow:0 28px 80px rgba(16,24,40,.2)}
.modal-header{padding:17px 19px;background:#fff}.modal-header h2{font-size:17px}
.modal-body{padding:16px 19px 19px}
.modal-actions,.master-modal-actions,.pos-confirm-actions{border-top:1px solid var(--border);background:#fbfcfe}

/* POS — approved reference proportions */
.pos-shell{grid-template-columns:minmax(0,1.42fr) minmax(360px,.72fr);gap:16px}
.pos-search-card{padding:17px}
.pos-search-input{height:50px;border-radius:11px}
.pos-search-input input{height:46px}
.pos-search-hint{background:#f3f7fd}
.shared-scan-launch{margin-top:9px}
.pos-checkout-card{top:calc(var(--topbar) + 14px);box-shadow:var(--shadow-sm)}
.pos-cart-empty{min-height:180px}
.payment-method{min-height:54px;border-radius:9px}
.pos-complete-btn{min-height:46px;border-radius:9px}
.pos-recent-row{padding:10px 0}

/* Mobile / tablet primary navigation */
.mobile-bottom-nav,.mobile-more-sheet{display:none}

@media(max-width:1100px){
  :root{--topbar:66px}
  .sidebar{transform:translateX(-100%);transition:transform .2s ease;width:min(300px,86vw);box-shadow:none;z-index:90}
  .sidebar.open{transform:translateX(0);box-shadow:18px 0 50px rgba(16,24,40,.16)}
  .sidebar-scrim{display:block;position:fixed;inset:0;z-index:85;border:0;background:rgba(16,24,40,.28);opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.nav-open .sidebar-scrim{opacity:1;pointer-events:auto}
  body.nav-open,body.mobile-sheet-open{overflow:hidden}
  .app-main{margin-left:0;padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))}
  .topbar{padding:0 16px;gap:10px}
  .sidebar-toggle{display:inline-flex;flex:0 0 auto}
  .mobile-brand{display:flex;max-width:230px}
  .topbar-search{display:none}
  .topbar-actions{gap:7px}
  .user-menu{padding-left:5px;border-left:0}
  .user-copy{display:none}
  .user-chevron{display:none}
  .page-content{padding:22px 22px 30px}
  .page-heading{align-items:flex-start}
  .page-heading h1{font-size:26px}
  .kpi-grid,.kpi-grid.owner{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-grid,.two-column{grid-template-columns:1fr}
  .filter-card{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-card .search-box{grid-column:1/-1}
  .form-grid,.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
  .role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .btn,.field input,.field select,.search-box,.sales-search-input,.icon-button{min-height:var(--touch-target)}

  /* Tablet POS flow: Search → Cart/Payment → Recent Sales */
  .pos-shell{display:flex;flex-direction:column;gap:14px}
  .pos-catalog-column{display:contents}
  .pos-search-card{order:1}
  .pos-checkout-card{order:2;position:static;width:100%}
  .pos-recent-card{order:3}
  .pos-cart-lines{max-height:none}
  .shared-scan-launch{width:100%;min-height:46px;background:var(--primary);border-color:var(--primary);color:#fff}
  .shared-scan-launch:hover{background:var(--primary-hover);color:#fff}
  .payment-method-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .payment-method{min-height:58px}
  .pos-complete-btn{min-height:50px}

  .mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:75;min-height:var(--mobile-nav-height);padding:6px max(12px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:flex;align-items:stretch;justify-content:center;gap:2px;background:rgba(255,255,255,.97);border-top:1px solid var(--border);backdrop-filter:blur(14px);box-shadow:0 -8px 24px rgba(31,55,90,.055)}
  .mobile-nav-item{flex:1 1 0;max-width:150px;min-width:0;min-height:54px;border:0;border-radius:10px;background:transparent;color:#718096;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:9.5px;font-weight:700;cursor:pointer}
  .mobile-nav-item .icon{width:19px;height:19px}
  .mobile-nav-item.active{color:var(--primary);background:#eef5ff}
  .mobile-more-sheet{display:block;position:fixed;inset:0;z-index:110;pointer-events:none}
  .mobile-more-sheet[hidden]{display:none}
  .mobile-more-sheet.open{pointer-events:auto}
  .mobile-more-backdrop{position:absolute;inset:0;border:0;background:rgba(16,24,40,.35);opacity:0;transition:opacity .18s ease}
  .mobile-more-panel{position:absolute;left:10px;right:10px;bottom:10px;max-height:min(72vh,620px);overflow:auto;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(16,24,40,.22);transform:translateY(18px);opacity:0;transition:transform .18s ease,opacity .18s ease;padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .mobile-more-sheet.open .mobile-more-backdrop{opacity:1}
  .mobile-more-sheet.open .mobile-more-panel{transform:translateY(0);opacity:1}
  .mobile-more-panel>header{padding:17px 17px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border)}
  .mobile-more-panel>header strong,.mobile-more-panel>header small{display:block}
  .mobile-more-panel>header strong{font-size:18px;margin-top:2px}.mobile-more-panel>header small{font-size:10px;color:var(--muted);margin-top:2px}
  .mobile-more-links{padding:8px}
  .mobile-more-links>a{min-height:50px;display:grid;grid-template-columns:22px minmax(0,1fr) 16px;align-items:center;gap:10px;padding:0 11px;border-radius:10px;color:#475467;font-size:12.5px;font-weight:650}
  .mobile-more-links>a:hover,.mobile-more-links>a.active{background:#eef5ff;color:var(--primary)}
  .mobile-more-links>a>.icon:first-child{width:19px}.mobile-more-links>a>.icon:last-child{width:14px;transform:rotate(-90deg);color:#98a2b3}
  .mobile-more-signout{min-height:50px;margin:0 8px 8px;display:flex;align-items:center;gap:10px;padding:0 11px;border-top:1px solid var(--border);color:#b42318;font-size:12.5px;font-weight:650}
  .mobile-more-signout .icon{width:19px}
}

@media(max-width:760px){
  .topbar{padding:0 12px}
  .mobile-brand{max-width:170px}
  .mobile-brand .brand-mark.small{width:32px;height:32px;flex:0 0 auto}
  .branch-switcher,.topbar-branch-chip{max-width:132px;padding:0 8px}
  .branch-switcher>.icon,.topbar-branch-chip>.icon{display:none}
  .branch-switcher select{min-width:0;width:112px;font-size:11px}
  .topbar-icon-button{display:none}
  .page-content{padding:18px 14px 24px}
  .page-heading{margin-bottom:16px;flex-direction:column;gap:10px}
  .page-heading h1{font-size:24px;margin-top:3px}
  .page-heading p{font-size:12px}
  .page-heading>.btn,.page-heading>div:last-child:not(:first-child){max-width:100%}
  .card{border-radius:13px}
  .card-header{padding:14px 15px}
  .kpi-grid,.kpi-grid.owner{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .kpi-card{min-height:118px;padding:14px}
  .kpi-card strong{font-size:24px}
  .dashboard-grid{gap:12px}
  .form-grid,.form-grid.two,.filter-card,.role-grid,.feature-grid.three{grid-template-columns:1fr}
  .field.span-2{grid-column:auto}
  .form-section{padding:18px 15px}
  .form-actions,.receive-form-actions{padding:13px 15px;flex-direction:column-reverse}
  .form-actions .btn,.receive-form-actions .btn{width:100%}
  .quick-search{max-width:none;height:46px;margin-bottom:14px}
  .tab-row{margin-inline:-14px;padding-inline:14px}

  /* Phone tables become readable cards instead of wide horizontal sheets. */
  .table-wrap,.sales-records-table-wrap,.inventory-table-wrap{overflow:visible;max-height:none;min-height:0}
  table.is-responsive-table{display:block;width:100%;min-width:0!important;background:transparent}
  table.is-responsive-table thead{display:none}
  table.is-responsive-table tbody{display:grid;gap:10px;padding:10px;background:var(--app-bg)}
  table.is-responsive-table tbody tr{display:block;background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:var(--shadow-sm)}
  table.is-responsive-table tbody tr:hover{background:#fff}
  table.is-responsive-table tbody td{width:100%!important;display:grid;grid-template-columns:minmax(92px,.4fr) minmax(0,1fr);gap:12px;align-items:start;padding:10px 12px!important;border-bottom:1px solid #eef1f5!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
  table.is-responsive-table tbody td:last-child{border-bottom:0!important}
  table.is-responsive-table tbody td::before{content:attr(data-label);font-size:9.5px;font-weight:800;color:#7a8799;text-transform:uppercase;letter-spacing:.25px}
  table.is-responsive-table tbody td[colspan]{display:block;text-align:center!important;padding:20px!important}
  table.is-responsive-table tbody td[colspan]::before{display:none}
  table.is-responsive-table .table-action-btn,table.is-responsive-table .btn{min-height:40px}
  table.is-responsive-table .master-table-actions{justify-content:flex-start;flex-wrap:wrap}

  /* POS phone proportions closely follow the approved reference. */
  .pos-heading-badges{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .pos-search-card{padding:14px}
  .pos-section-heading{margin-bottom:12px;gap:10px}
  .pos-section-heading h2{font-size:16px}
  .pos-search-input{height:48px}
  .pos-search-input input{height:44px;font-size:12px}
  .pos-search-status{font-size:10px}
  .pos-checkout-header{padding:14px 15px}
  .pos-cart-lines{padding:8px 12px}
  .pos-cart-empty{min-height:150px;padding:20px 14px}
  .pos-summary{padding:12px 15px}
  .pos-payment-section{padding:13px 15px}
  .payment-method-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
  .payment-method{min-width:0;min-height:54px;padding:4px 2px;font-size:8.5px;gap:2px}
  .payment-method-icon .icon{width:15px}
  .pos-payment-fields{grid-template-columns:minmax(0,1fr) 108px;gap:7px}
  .pos-change-box{height:62px;padding:8px 10px}
  .pos-complete-btn{width:calc(100% - 30px);margin:0 15px;min-height:48px}
  .pos-checkout-note{margin:8px 15px 14px}
  .pos-recent-list{padding:3px 14px 8px}
  .pos-recent-row{grid-template-columns:30px minmax(0,1fr) auto;gap:8px}
  .pos-recent-icon{width:29px;height:29px}

  .modal{padding:8px;place-items:end center}
  .modal-dialog{width:100%;max-height:calc(100dvh - 16px);border-radius:18px 18px 12px 12px}
  .modal-header{padding:15px}.modal-body{padding:14px 15px 16px}
  .modal-actions,.master-modal-actions,.pos-confirm-actions{padding:12px 15px max(12px,env(safe-area-inset-bottom));flex-direction:column-reverse}
  .modal-actions .btn,.master-modal-actions .btn,.pos-confirm-actions .btn{width:100%}
}

@media(max-width:520px){
  .mobile-brand-copy{display:none}
  .mobile-brand{max-width:none}
  .topbar-actions{gap:4px}
  .branch-switcher,.topbar-branch-chip{height:38px;max-width:112px}
  .branch-switcher select{width:96px}
  .avatar{width:34px;height:34px}
  .user-menu{padding:0 2px}
  .page-content{padding:16px 12px 22px}
  .kpi-grid,.kpi-grid.owner{grid-template-columns:1fr 1fr}
  .activity-row{grid-template-columns:10px minmax(0,1fr);gap:8px}
  .activity-meta{grid-column:2;text-align:left;display:flex;gap:8px;align-items:center}
  .category-summary{padding:18px;flex-direction:column;align-items:stretch}
  .donut{margin:0 auto}
  .sales-kpi-grid{grid-template-columns:1fr}
  .sales-branch-grid{grid-template-columns:1fr}
  .sales-filter-card{padding:12px}
  .pos-payment-fields{grid-template-columns:1fr 96px}
  .mobile-nav-item{font-size:8.5px}
}

@media(max-width:390px){
  .branch-switcher,.topbar-branch-chip{max-width:100px}
  .branch-switcher select{width:84px;font-size:10px}
  .sidebar-toggle{width:38px;height:38px}
  .payment-method-grid{gap:4px}
  .payment-method{font-size:8px}
  .pos-payment-fields{grid-template-columns:1fr}
  .pos-change-box{height:auto;min-height:54px}
  .mobile-bottom-nav{padding-left:6px;padding-right:6px}
}

/* P2-034 notification dropdown keeps the header action functional without inventing backend alerts. */
.notification-dropdown{position:relative}
.notification-dropdown>summary{list-style:none}
.notification-dropdown>summary::-webkit-details-marker{display:none}
.notification-dropdown-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:70;width:220px;padding:13px 14px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 45px rgba(16,24,40,.13)}
.notification-dropdown-menu strong,.notification-dropdown-menu span{display:block}
.notification-dropdown-menu strong{font-size:12px;color:#344054}
.notification-dropdown-menu span{margin-top:4px;font-size:10.5px;color:var(--muted)}
@media(max-width:760px){.notification-dropdown{display:none}}
/* P2-026 — Branch inventory forwarding: approved production modal */
.inventory-row-actions{display:flex;align-items:center;gap:7px;justify-content:flex-start;flex-wrap:wrap}
.inventory-forward-btn{min-width:82px}

.forward-inventory-modal{padding:24px}
.forward-inventory-modal .modal-backdrop{background:rgba(15,23,42,.42);backdrop-filter:blur(3px)}
.forward-inventory-dialog{width:min(780px,100%);max-height:min(88vh,820px);border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 28px 80px rgba(15,23,42,.22);overflow:hidden;background:#fff}
.forward-inventory-dialog form{display:flex;flex-direction:column;max-height:min(88vh,820px)}
.forward-modal-header{padding:20px 24px 18px;background:#fff}
.forward-modal-header h2{font-size:20px;letter-spacing:-.35px;margin-top:4px}
.forward-close-button{width:38px;height:38px;border:1px solid #e5eaf2;background:#f8fafc;color:#64748b;font-size:20px;line-height:1}
.forward-close-button:hover{background:#f1f5f9;color:#334155}
.forward-modal-body{padding:18px 24px 22px;max-height:none;overflow:auto;overscroll-behavior:contain}

.forward-product-summary{margin:0 0 18px;padding:14px 16px;border:1px solid #dce7f7;background:#f8fbff;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.forward-product-summary-main{min-width:0}
.forward-product-summary-main strong,.forward-product-summary-main span{display:block}
.forward-product-summary-main strong{font-size:14px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forward-product-summary-main span{font-size:11px;color:#667085;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forward-product-source{flex:0 0 auto;font-size:11px;color:#667085;white-space:nowrap}
.forward-product-source b{color:var(--blue)}

.forward-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.forward-field{margin:0;min-width:0}
.forward-field>span,.forward-notes>span{display:block;margin-bottom:6px;font-size:11px;font-weight:800;color:#344054}
.forward-field>span>b,.forward-unit-heading strong>b{color:#d92d20}
.forward-field input,.forward-field select{width:100%;height:46px;border-radius:10px;border:1px solid #d7e0ec;background:#fff;padding:0 12px;outline:0}
.forward-field input:focus,.forward-field select:focus{border-color:#8cb8ff;box-shadow:0 0 0 3px #edf4ff}
.forward-quantity-readonly{background:#f8fafc!important;color:#475467}
.forward-helper{display:block;font-size:10.5px;color:#7b8799;margin-top:6px;min-height:15px}
.forward-field-error{display:block;margin-top:6px;color:#c33f3f;font-size:10.5px;font-weight:650;line-height:1.35}
.forward-field-error[hidden]{display:none!important}

.forward-units-section{margin-top:20px}
.forward-unit-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 9px}
.forward-unit-heading strong,.forward-unit-heading span{display:block}
.forward-unit-heading strong{font-size:13px;color:#172033}
.forward-unit-heading span{font-size:10.5px;color:var(--muted);margin-top:3px}
.forward-select-all{min-height:34px;padding:0 10px;color:#667085;background:#f8fafc;border:1px solid transparent}
.forward-select-all:hover{background:#f1f5f9;color:#344054}
.forward-unit-list{border:1px solid #d7e3f3;background:#fbfdff;border-radius:12px;max-height:245px;overflow:auto;padding:8px;display:grid;gap:7px;scrollbar-gutter:stable}
.forward-unit-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:9px 10px;border:1px solid #e4eaf2;border-radius:9px;background:#fff;cursor:pointer;transition:border-color .14s ease,background .14s ease,box-shadow .14s ease;min-width:max-content;width:100%}
.forward-unit-option:hover{border-color:#bdd5fa;background:#fbfdff}
.forward-unit-option:has(input:checked){border-color:#8fbaff;background:#f3f8ff;box-shadow:0 0 0 1px rgba(23,105,232,.04)}
.forward-unit-option>input{position:absolute;opacity:0;pointer-events:none}
.forward-unit-check{width:20px;height:20px;flex:0 0 20px;border:1.5px solid #b6c2d1;border-radius:6px;background:#fff;display:grid;place-items:center}
.forward-unit-option>input:checked+.forward-unit-check{background:var(--blue);border-color:var(--blue)}
.forward-unit-option>input:checked+.forward-unit-check:after{content:"✓";color:#fff;font-size:13px;font-weight:900;line-height:1}
.forward-unit-line{display:flex;align-items:center;gap:0;min-width:max-content;white-space:nowrap;color:#475467;font-size:10.5px}
.forward-unit-segment{display:inline-flex;align-items:center;padding:0 10px;border-left:1px solid #dce4ef;line-height:18px}
.forward-unit-segment:first-child{border-left:0;padding-left:0}
.forward-unit-segment b{color:#344054;margin-right:4px}
.forward-unit-identifier{font-size:11px;color:#172033;font-weight:650}
.forward-unit-condition{display:inline-flex;align-items:center;margin-left:10px;padding:4px 8px;border-radius:999px;background:#eaf8f0;color:#168952;font-size:9.5px;font-weight:800}
.forward-unit-error{margin:7px 2px 0}

.forward-notes{display:block;margin-top:18px}
.forward-notes>span small{font-size:10.5px;font-weight:600;color:#98a2b3}
.forward-notes textarea{width:100%;min-height:58px;max-height:120px;resize:vertical;border:1px solid #d7e0ec;border-radius:10px;padding:11px 12px;outline:0;line-height:1.45;background:#fff}
.forward-notes textarea:focus{border-color:#8cb8ff;box-shadow:0 0 0 3px #edf4ff}
.forward-general-error{margin:14px 0 0}
.forward-modal-actions{flex:0 0 auto;padding:14px 24px;border-top:1px solid #e7ecf2;background:#fff;display:flex;justify-content:flex-end;gap:9px;box-shadow:0 -6px 18px rgba(15,23,42,.025)}
.forward-modal-actions .btn{height:42px;min-height:42px;padding:0 17px}
.forward-modal-actions .btn-primary{min-width:150px}

@media(max-width:760px){
  .inventory-table .col-action{width:22%}
  .forward-inventory-modal{padding:16px}
  .forward-inventory-dialog{width:min(680px,100%);max-height:92vh;border-radius:16px}
  .forward-inventory-dialog form{max-height:92vh}
  .forward-modal-header{padding:18px 18px 16px}
  .forward-modal-body{padding:16px 18px 20px}
  .forward-product-summary{align-items:flex-start;flex-direction:column;gap:6px}
  .forward-product-source{white-space:normal}
  .forward-grid{grid-template-columns:1fr}
  .forward-unit-list{max-height:34vh}
  .forward-modal-actions{padding:12px 18px}
}

@media(max-width:620px){
  .inventory-row-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .inventory-row-actions .btn{width:100%;min-height:44px}
  .forward-inventory-modal{padding:10px}
  .forward-inventory-dialog{width:100%;max-width:none;max-height:94vh;border-radius:15px}
  .forward-inventory-dialog form{max-height:94vh}
  .forward-modal-header{padding:16px}
  .forward-modal-header h2{font-size:18px}
  .forward-modal-body{padding:14px 16px 18px}
  .forward-unit-list{max-height:30vh;padding:7px}
  .forward-unit-option{min-height:46px;padding:9px;overflow-x:auto;scrollbar-width:thin}
  .forward-unit-line{font-size:10px}
  .forward-unit-segment{padding:0 8px}
  .forward-modal-actions{display:grid;grid-template-columns:1fr 1fr;padding:12px 16px}
  .forward-modal-actions .btn,.forward-modal-actions .btn-primary{width:100%;min-width:0;min-height:46px;height:46px}
}

@media(max-width:390px){
  .forward-inventory-modal{padding:6px}
  .forward-modal-header{padding:14px}
  .forward-modal-body{padding:12px 14px 16px}
  .forward-modal-actions{padding:10px 14px;gap:7px}
  .forward-unit-list{max-height:28vh}
}
.inventory-table{min-width:1100px}
.inventory-table .col-action{width:21%}
@media(max-width:760px){.inventory-table .col-action{width:24%}}

/* P2-027 — Branch Transfer unit row: keep one line, remove horizontal scrollbar */
.forward-unit-list{
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:auto;
}

.forward-unit-option{
  min-width:0;
  width:100%;
  overflow:hidden;
}

.forward-unit-line{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  overflow:hidden;
  white-space:nowrap;
}

.forward-unit-segment{
  flex:0 1 auto;
  min-width:0;
  white-space:nowrap;
}

.forward-unit-segment:not(:first-child){
  overflow:hidden;
  text-overflow:ellipsis;
}

.forward-unit-identifier{
  flex:0 0 auto;
}

.forward-unit-condition{
  flex:0 0 auto;
  margin-left:8px;
}

@media(max-width:700px){
  .forward-unit-option{
    overflow:hidden;
  }
  .forward-unit-line{
    overflow:hidden;
  }
}

/* P2-031 — Products Phase 1: faster catalog setup + responsive product management */
.product-master-heading{margin-bottom:16px}
.product-master-heading p{max-width:760px}
.product-quick-start{margin-bottom:16px;overflow:hidden}
.product-quick-start-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px 12px}
.product-quick-start-head h2{margin:2px 0 3px;font-size:17px;letter-spacing:-.25px}
.product-quick-start-head p{margin:0;color:var(--muted);font-size:11.5px}
.product-view-context{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid #dce8f8;border-radius:999px;background:#f7faff;color:#526174;font-size:9.5px;font-weight:800;white-space:nowrap}
.product-quick-actions{display:grid;grid-template-columns:minmax(210px,1.14fr) repeat(3,minmax(170px,1fr));gap:9px;padding:0 14px 14px}
.product-quick-action{appearance:none;width:100%;min-width:0;min-height:70px;border:1px solid #e2e8f1;border-radius:13px;background:#fff;color:#344054;padding:10px 12px;display:grid;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:10px;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}
.product-quick-action:hover{transform:translateY(-1px);border-color:#bed4f6;background:#fbfdff;box-shadow:0 7px 20px rgba(31,62,104,.06)}
.product-quick-primary{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(23,105,232,.18)}
.product-quick-primary:hover{border-color:var(--blue-600);background:var(--blue-600);box-shadow:0 9px 22px rgba(23,105,232,.22)}
.product-quick-icon{width:38px;height:38px;border-radius:10px;background:#eef5ff;color:var(--blue);display:grid;place-items:center}
.product-quick-icon.accessory{background:#f3efff;color:#7357d9}
.product-quick-icon .icon{width:18px;height:18px}
.product-quick-primary .product-quick-icon{background:rgba(255,255,255,.16);color:#fff}
.product-quick-copy{min-width:0}
.product-quick-copy strong,.product-quick-copy small{display:block}
.product-quick-copy strong{font-size:12.5px;line-height:1.25}
.product-quick-copy small{margin-top:2px;color:var(--muted);font-size:10px;line-height:1.3}
.product-quick-primary .product-quick-copy small{color:rgba(255,255,255,.78)}
.product-quick-arrow{justify-self:end;color:#98a2b3;font-size:18px;line-height:1}
.product-quick-primary .product-quick-arrow{color:#fff}
.product-section-header{min-height:82px}
.product-brands-card,.models-card{scroll-margin-top:92px}
.model-mobile-brand,.model-mobile-badges{display:none}

/* Tablet: reduce vertical scanning by turning brands into a compact horizontal shelf and models into a list. */
@media(max-width:1100px){
  .product-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-master-devices{gap:14px}
  .brand-master-grid{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:12px 14px 14px;scrollbar-width:none}
  .brand-master-grid::-webkit-scrollbar{display:none}
  .brand-master-card{flex:0 0 220px;min-height:64px;scroll-snap-align:start}
  .brand-master-empty{flex:1 0 100%}
  .models-card .master-table-wrap{overflow:visible}
  .master-model-table{display:block;width:100%;min-width:0}
  .master-model-table thead{display:none}
  .master-model-table tbody{display:grid;padding:0 12px 12px}
  .master-model-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;border-bottom:1px solid #edf0f5;background:#fff}
  .master-model-table tbody tr:last-child{border-bottom:0}
  .master-model-table tbody td{display:block;width:auto;padding:11px 8px;border:0;text-align:left;white-space:normal}
  .master-model-table tbody td::before{display:none}
  .master-model-table .model-brand-cell{display:none}
  .master-model-table .model-name-cell{min-width:0}
  .master-model-table .model-name-cell>strong{display:block;font-size:12px;line-height:1.25;white-space:normal}
  .master-model-table .model-mobile-brand{display:flex;align-items:center;gap:6px;margin-bottom:4px;color:#667085;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.2px}
  .master-model-table .model-mobile-brand .product-model-brand-logo{width:22px;height:22px;flex:0 0 22px;border-radius:7px}
  .master-model-table .model-type-cell,.master-model-table .model-status-cell{white-space:nowrap}
  .master-model-table .master-table-actions{flex-wrap:nowrap;justify-content:flex-end}
  .master-model-table td[colspan]{display:block;grid-column:1/-1;padding:20px}
}

@media(max-width:760px){
  .product-master-heading{margin-bottom:13px}
  .product-master-heading h1{font-size:25px}
  .product-master-heading p{max-width:34rem;font-size:11.5px;line-height:1.45}
  .product-quick-start{margin-bottom:12px}
  .product-quick-start-head{padding:14px 14px 10px}
  .product-quick-start-head h2{font-size:15px}
  .product-quick-start-head p{font-size:10.5px;line-height:1.4}
  .product-view-context{display:none}
  .product-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 10px 10px}
  .product-quick-action{min-height:76px;padding:9px 6px;grid-template-columns:1fr;grid-template-rows:30px auto;text-align:center;justify-items:center;gap:4px;border-radius:11px}
  .product-quick-action.product-quick-primary{grid-column:1/-1;min-height:52px;padding:8px 12px;grid-template-columns:34px minmax(0,1fr) 14px;grid-template-rows:1fr;text-align:left;justify-items:stretch}
  .product-quick-icon{width:30px;height:30px;border-radius:9px}
  .product-quick-icon .icon{width:16px;height:16px}
  .product-quick-copy strong{font-size:10.5px;line-height:1.2}
  .product-quick-copy small{display:none}
  .product-quick-primary .product-quick-copy strong{font-size:12px}
  .product-quick-arrow{display:none}
  .product-quick-primary .product-quick-arrow{display:block;align-self:center}

  .product-section-header{min-height:0;padding:13px 14px}
  .product-section-header h2{font-size:15px}
  .product-section-header p{font-size:10.5px}
  .product-model-header-add{display:none}
  .product-brands-card{overflow:hidden}
  .brand-master-grid{padding:10px 12px 12px}
  .brand-master-card{flex-basis:150px;min-height:58px;padding:8px 9px;border-radius:11px}
  .brand-master-avatar,.product-master-brand-logo{width:34px;height:34px;flex-basis:34px}
  .brand-master-copy strong{font-size:11.5px}
  .brand-master-copy small{font-size:9.5px}
  .brand-master-arrow{font-size:17px}
  .brand-card-actions{gap:3px}
  .brand-card-actions .catalog-icon-btn{width:31px;height:31px}

  .models-card .modern-filter{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:10px 12px}
  .models-card .modern-filter .search-box{grid-column:auto;height:42px;min-height:42px}
  .models-card .modern-filter .search-box input{height:40px;font-size:11.5px}
  .models-card .modern-filter .btn-secondary{min-width:72px;padding:0 11px}
  .models-card .modern-filter .btn-ghost{grid-column:1/-1;justify-self:start;min-height:30px;padding:0 4px}
  .master-model-table tbody{gap:0;padding:0 12px 10px;background:#fff}
  .master-model-table tbody tr{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 0}
  .master-model-table tbody td{padding:0}
  .master-model-table .model-name-cell{align-self:center}
  .master-model-table .model-type-cell,.master-model-table .model-status-cell{display:none}
  .master-model-table .model-mobile-brand{margin-bottom:5px}
  .master-model-table .model-mobile-badges{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:7px}
  .master-model-table .model-mobile-badges .device-type-chip,.master-model-table .model-mobile-badges .status-pill{font-size:8.5px;padding:4px 7px}
  .master-model-table .master-table-actions{gap:5px;align-items:center}
  .master-model-table .table-action-btn{min-height:36px;width:36px;padding:0;justify-content:center;border-radius:9px}
  .master-model-table .table-action-btn span{display:none}
  .master-model-table .model-variants-action{width:auto;padding:0 9px}
  .master-model-table .model-variants-action span{display:inline;font-size:9.5px}
  .master-model-table td[colspan]{grid-column:1/-1;padding:16px 0}
  .configuration-master-card{margin-top:12px}
  .product-master-info{margin-top:12px}
}

@media(max-width:390px){
  .product-quick-actions{gap:6px;padding-inline:8px}
  .product-quick-action{padding-inline:4px}
  .product-quick-copy strong{font-size:10px}
  .brand-master-card{flex-basis:142px}
  .models-card .modern-filter .btn-secondary{min-width:66px;padding-inline:9px;font-size:11px}
  .master-model-table .model-variants-action{padding-inline:8px}
}

@media(max-width:760px){
  .models-card .product-section-header{flex-direction:row;align-items:flex-start}
  .models-card .master-card-title-actions{width:auto;flex:0 0 auto}
  .accessory-master-header .master-card-title-actions{display:none}
}

/* P2-030 — Products Phase 2A: guided Add Model / Add Brand setup */
.product-setup-modal .product-setup-dialog{width:min(610px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));overflow:hidden;display:flex;flex-direction:column;background:#fff}
.product-setup-modal .brand-setup-dialog{width:min(520px,calc(100vw - 32px))}
.product-setup-header{flex:0 0 auto;align-items:flex-start}
.product-setup-header .eyebrow{display:block;margin-bottom:5px}
.product-setup-header h2{font-size:20px;letter-spacing:-.35px;margin:0}
.product-setup-header .modal-subtitle{font-size:11.5px;line-height:1.45;max-width:440px}
.product-setup-form{padding:0!important;overflow:auto;min-height:0}
.product-setup-body{padding:20px 22px;display:grid;gap:16px}
.product-setup-field{margin:0!important}
.product-setup-field>span{font-size:11.5px;font-weight:780;color:#344054}
.product-setup-field>span b{color:#e5484d}
.product-setup-field>small{display:block;margin-top:6px;color:#7b8798;font-size:10.5px;line-height:1.4}
.product-setup-field input,.product-setup-field select{width:100%;min-height:46px;border-radius:10px;background:#fff}
.product-setup-field.has-error input,.product-setup-field.has-error select{border-color:#e56b70;box-shadow:0 0 0 3px rgba(229,107,112,.12)}
.field-inline-error{display:block;margin-top:6px;color:#c53b42;font-size:10.5px;font-style:normal;font-weight:650}
.product-setup-footer{margin:0!important;padding:14px 20px!important;flex:0 0 auto;background:#fff!important;display:flex;justify-content:flex-end;align-items:center;gap:9px}
.product-setup-footer .btn{min-width:112px;min-height:44px;justify-content:center}
.product-setup-footer .btn-primary{min-width:145px}
.product-setup-footer .btn .icon{width:15px;height:15px}
.icon-chevron-right{transform:rotate(-90deg)}
.icon-chevron-left{transform:rotate(90deg)}

.model-stepper{padding:16px 22px 4px;display:grid;grid-template-columns:auto minmax(36px,1fr) auto;align-items:center;gap:10px;background:#fff}
.model-step{display:flex;align-items:center;gap:8px;color:#98a2b3;font-size:10.5px;font-weight:720;white-space:nowrap}
.model-step>span{width:25px;height:25px;border-radius:999px;background:#e9eef5;color:#7b8797;display:grid;place-items:center;font-size:10px;font-weight:850}
.model-step.active{color:var(--primary)}
.model-step.active>span{background:var(--primary);color:#fff;box-shadow:0 4px 10px rgba(23,105,232,.18)}
.model-step.complete{color:var(--primary)}
.model-step.complete>span{background:#eaf3ff;color:var(--primary)}
.model-step-line{height:1px;background:#dfe5ee}
.model-step-panel[hidden]{display:none!important}

.device-type-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.device-type-option{min-height:58px;border:1px solid #dfe5ee;border-radius:11px;background:#fff;color:#596579;padding:9px 11px;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:9px;text-align:left;cursor:pointer;transition:.15s ease}
.device-type-option>.icon{width:20px;height:20px;color:#8190a3}
.device-type-option span,.device-type-option strong,.device-type-option small{display:block;min-width:0}
.device-type-option strong{font-size:11.5px;color:#344054}
.device-type-option small{margin-top:2px;font-size:9.5px;line-height:1.25;color:#98a2b3}
.device-type-option:hover:not(:disabled){border-color:#a9c8f8;background:#fbfdff}
.device-type-option.active{border-color:var(--primary);background:#f4f8ff;box-shadow:0 0 0 2px rgba(23,105,232,.08)}
.device-type-option.active>.icon,.device-type-option.active strong{color:var(--primary)}
.device-type-option:disabled{cursor:not-allowed;background:#f5f7fa;border-color:#e3e8ef;opacity:.7}

.product-status-control{min-height:46px;border:1px solid #e2e7ee;border-radius:10px;background:#fbfcfe;padding:10px 12px;display:grid;grid-template-columns:10px auto minmax(0,1fr);align-items:center;gap:8px}
.product-status-control .status-dot,.review-active-status .status-dot{width:8px;height:8px;border-radius:50%;background:#1aaa67;box-shadow:0 0 0 3px #e7f7ef}
.product-status-control strong{font-size:11.5px;color:#344054}
.product-status-control small{font-size:10px;color:#7b8798;justify-self:end;text-align:right}

.model-review-body{gap:15px}
.model-review-summary{border:1px solid #dce7f6;border-radius:13px;background:#f8fbff;padding:13px 14px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:11px}
.model-review-mark{width:44px;height:44px;border-radius:12px;background:#eaf2ff;color:#1d64cd;display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:.25px}
.model-review-summary-copy{min-width:0}
.model-review-summary-copy strong,.model-review-summary-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.model-review-summary-copy strong{font-size:13px;color:#1f2937}
.model-review-summary-copy span{margin-top:3px;font-size:10.5px;color:#718096}
.model-review-summary-copy b{color:#475467;font-weight:750}
.model-review-list{margin:0;border:1px solid #e7ebf1;border-radius:12px;overflow:hidden;background:#fff}
.model-review-list>div{min-height:42px;padding:9px 12px;display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:12px;border-bottom:1px solid #edf0f4}
.model-review-list>div:last-child{border-bottom:0}
.model-review-list dt{font-size:10.5px;color:#7b8798}
.model-review-list dd{margin:0;font-size:11.5px;font-weight:720;color:#344054;overflow-wrap:anywhere}
.review-active-status{display:inline-flex;align-items:center;gap:8px;color:#23875c;font-size:11px;font-weight:750}
.model-review-info{border:1px solid #d8e7fb;border-radius:12px;background:#f4f8ff;color:#4e6582;padding:11px 12px;display:grid;grid-template-columns:19px minmax(0,1fr);gap:9px;align-items:start}
.model-review-info>.icon{width:18px;height:18px;color:var(--primary);margin-top:1px}
.model-review-info strong,.model-review-info span{display:block}
.model-review-info strong{font-size:11px;color:#375477}
.model-review-info span{margin-top:2px;font-size:10px;line-height:1.4}

.brand-setup-body{gap:17px}
.brand-live-preview{border:1px solid #dce7f6;border-radius:13px;background:#f8fbff;padding:13px;display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:11px}
.brand-live-mark{width:46px;height:46px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:.3px;box-shadow:0 5px 12px rgba(23,105,232,.15)}
.brand-live-preview strong,.brand-live-preview span{display:block}
.brand-live-preview strong{font-size:13px;color:#1f2937}
.brand-live-preview span{margin-top:2px;font-size:10.5px;color:#718096;line-height:1.35}

@media(max-width:760px){
  .product-setup-modal{padding:8px;place-items:end center}
  .product-setup-modal .product-setup-dialog,.product-setup-modal .brand-setup-dialog{width:100%;max-height:calc(100dvh - 16px);border-radius:18px 18px 12px 12px}
  .product-setup-header{padding:15px 16px}
  .product-setup-header h2{font-size:18px}
  .product-setup-header .modal-subtitle{font-size:10.5px}
  .model-stepper{padding:14px 16px 3px;gap:7px}
  .model-step{font-size:9.5px;gap:6px}
  .model-step>span{width:23px;height:23px;font-size:9.5px}
  .product-setup-body{padding:16px;gap:14px}
  .product-setup-field input,.product-setup-field select{min-height:46px}
  .device-type-option{min-height:56px;padding:8px 9px;grid-template-columns:24px minmax(0,1fr)}
  .device-type-option>.icon{width:18px;height:18px}
  .device-type-option small{display:none}
  .product-status-control{grid-template-columns:10px auto 1fr}
  .product-status-control small{font-size:9.5px}
  .product-setup-footer{padding:11px 14px max(11px,env(safe-area-inset-bottom))!important;flex-direction:row!important;gap:8px;position:sticky;bottom:0;z-index:2}
  .product-setup-footer .btn{width:auto!important;flex:1 1 0;min-width:0;min-height:46px}
  .product-setup-footer .btn-primary{flex:1.25 1 0}
  .model-review-summary{grid-template-columns:40px minmax(0,1fr) auto;padding:11px}
  .model-review-mark{width:40px;height:40px}
  .model-review-list>div{grid-template-columns:105px minmax(0,1fr);padding:9px 11px}
}

@media(max-width:420px){
  .product-setup-header .modal-subtitle{max-width:290px}
  .model-step strong{font-size:9px}
  .model-step-line{min-width:20px}
  .product-setup-body{padding:14px 13px}
  .device-type-selector{gap:7px}
  .device-type-option{padding:8px;gap:6px}
  .product-status-control{grid-template-columns:10px auto;gap:7px}
  .product-status-control small{grid-column:1/-1;justify-self:start;text-align:left;padding-left:18px}
  .model-review-summary{grid-template-columns:38px minmax(0,1fr)}
  .model-review-mark{width:38px;height:38px}
  .model-review-summary>.device-type-chip{grid-column:1/-1;justify-self:start;margin-left:49px}
  .model-review-list>div{grid-template-columns:92px minmax(0,1fr)}
  .product-setup-footer .btn{padding-inline:10px;font-size:11px}
}

/* P2B — Products: guided Model → Variant → Quantity → Scan → Stock workflow */
.product-flow-modal{z-index:1400}
.product-flow-success-dialog{width:min(480px,calc(100vw - 32px));padding:30px 28px 24px;text-align:center;position:relative;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(28,45,78,.22)}
.product-flow-close{position:absolute;top:16px;right:16px}
.product-flow-success-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:4px auto 18px;background:#e9f9ef;color:#0aa653;font-size:32px;font-weight:800}
.product-flow-success-dialog .eyebrow{display:block;margin-bottom:7px}
.product-flow-success-dialog h2{margin:0;color:#101828;font-size:24px;letter-spacing:-.45px}
.product-flow-success-dialog>p{margin:10px auto 0;max-width:360px;color:#667085;font-size:13px;line-height:1.55}
.product-flow-success-dialog>p strong{color:#344054}
.product-flow-next-card{margin:22px 0 16px;padding:15px 16px;border:1px solid #d7e6fb;border-radius:14px;background:#f6faff;display:flex;gap:12px;text-align:left;align-items:flex-start}
.product-flow-next-card>.icon{width:22px;height:22px;color:#1769e8;flex:0 0 auto;margin-top:1px}
.product-flow-next-card div{display:grid;gap:3px}
.product-flow-next-card strong{font-size:12px;color:#1d2939}
.product-flow-next-card span{font-size:11px;line-height:1.45;color:#667085}
.product-flow-success-actions{display:grid;gap:9px}
.product-flow-success-actions .btn{width:100%;min-height:46px;justify-content:center}
.quick-success-summary{display:grid;gap:0;margin:22px 0 16px;border:1px solid #e3eaf4;border-radius:14px;overflow:hidden;text-align:left}
.quick-success-summary>div{display:grid;gap:3px;padding:13px 15px;background:#fbfcfe}
.quick-success-summary>div+div{border-top:1px solid #e8edf4}
.quick-success-summary span{font-size:10px;color:#7b8798;text-transform:uppercase;letter-spacing:.55px;font-weight:750}
.quick-success-summary strong{font-size:12.5px;color:#1d2939}

.quick-variant-dialog{width:min(760px,calc(100vw - 32px));max-height:min(860px,calc(100dvh - 28px));overflow:hidden;display:flex;flex-direction:column;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(28,45,78,.24)}
.quick-variant-header{flex:0 0 auto;padding:18px 20px 16px}
.quick-variant-header h2{font-size:21px;letter-spacing:-.35px;margin:0}
.quick-variant-header .modal-subtitle{font-size:11.5px}
.quick-variant-form{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.quick-variant-scroll{min-height:0;overflow:auto;padding:18px 20px 22px;overscroll-behavior:contain}
.quick-variant-section{display:grid;gap:15px}
.quick-variant-section+.quick-variant-section{border-top:1px solid #e7edf5;margin-top:20px;padding-top:20px}
.quick-variant-section-heading{display:flex;align-items:flex-start;gap:10px}
.quick-variant-section-heading>span{width:26px;height:26px;border-radius:50%;background:#eaf3ff;color:#1769e8;display:grid;place-items:center;font-size:11px;font-weight:800;flex:0 0 auto}
.quick-variant-section-heading>div{display:grid;gap:2px}
.quick-variant-section-heading strong{font-size:13px;color:#1d2939}
.quick-variant-section-heading small{font-size:10.5px;color:#7b8798;line-height:1.4}
.quick-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.quick-variant-grid>.field{margin:0}
.quick-variant-grid .field>span,.quick-notes-section .field>span{font-size:11px;font-weight:760;color:#344054}
.quick-variant-grid .field>span b{color:#e5484d}
.quick-variant-grid .field>small{margin-top:6px;font-size:10px;color:#7b8798}
.quick-variant-grid input,.quick-variant-grid select,.quick-notes-section textarea{min-height:46px;border-radius:10px;background:#fff}
.quick-quantity-control{display:grid;grid-template-columns:44px 1fr 44px;min-height:46px;border:1px solid #d9e2ef;border-radius:10px;overflow:hidden;background:#fff}
.quick-quantity-control button{border:0;background:#f8fafc;color:#1769e8;font-size:20px;font-weight:700;cursor:pointer}
.quick-quantity-control button:first-child{border-right:1px solid #e2e8f0}
.quick-quantity-control button:last-child{border-left:1px solid #e2e8f0}
.quick-quantity-control input{border:0!important;border-radius:0!important;box-shadow:none!important;text-align:center;font-weight:800;min-width:0;padding-inline:8px}
.quick-identifier-mode{display:flex;width:max-content;max-width:100%;padding:4px;background:#f1f5f9;border-radius:10px;gap:3px}
.quick-identifier-mode button{min-height:36px;border:0;border-radius:8px;padding:0 13px;background:transparent;color:#667085;font-size:10.5px;font-weight:750;cursor:pointer}
.quick-identifier-mode button.active{background:#fff;color:#1769e8;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.quick-scan-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-radius:10px;background:#f7faff;border:1px solid #e1ebfa}
.quick-scan-progress strong{font-size:11px;color:#1769e8}
.quick-scan-progress span{font-size:10px;color:#7b8798}
.quick-unit-list{display:grid;gap:10px}
.quick-unit-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px;border:1px solid #dfe7f2;border-radius:13px;background:#fff}
.quick-unit-index{width:30px;height:30px;border-radius:9px;background:#edf5ff;color:#1769e8;display:grid;place-items:center;font-size:11px;font-weight:800}
.quick-unit-fields{display:grid;gap:10px;min-width:0}
.quick-identifier-field{margin:0!important}
.quick-identifier-field>span{font-size:10.5px;font-weight:750;color:#475467}
.quick-identifier-field>span b{color:#e5484d}
.quick-identifier-field>span small{font-size:9.5px;font-weight:600;color:#98a2b3}
.quick-identifier-field .identifier-input-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:7px;margin-top:5px}
.quick-identifier-field input{min-height:43px;border-radius:9px;font-size:12px;min-width:0}
.quick-scan-btn{min-height:43px;min-width:0;padding-inline:10px;justify-content:center;font-size:10.5px}
.quick-secondary-field{padding-top:1px}
.quick-notes-section{padding-bottom:2px}
.quick-notes-section textarea{resize:vertical;min-height:76px}
.quick-variant-error{margin-top:16px;padding:12px 14px;border:1px solid #f4c7c9;border-radius:11px;background:#fff4f4;color:#b4232c;font-size:11px;line-height:1.45}
.quick-variant-footer{flex:0 0 auto;padding:13px 20px max(13px,env(safe-area-inset-bottom));border-top:1px solid #e8edf4;background:#fff;display:flex;justify-content:flex-end;gap:9px}
.quick-variant-footer .btn{min-height:45px;justify-content:center}
.quick-variant-footer .btn-primary{min-width:210px}
.button-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;display:inline-block;animation:quickSpin .75s linear infinite;margin-right:7px}
@keyframes quickSpin{to{transform:rotate(360deg)}}

@media (max-width:900px){
  .quick-variant-dialog{width:min(680px,calc(100vw - 20px));max-height:calc(100dvh - 20px)}
  .quick-variant-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .product-flow-modal{padding:0;place-items:end center}
  .product-flow-success-dialog,.quick-variant-dialog{width:100%;max-width:none;border-radius:20px 20px 0 0;max-height:calc(100dvh - max(8px,env(safe-area-inset-top)))}
  .product-flow-success-dialog{padding:28px 18px max(18px,env(safe-area-inset-bottom))}
  .product-flow-success-icon{width:64px;height:64px;font-size:28px;margin-bottom:16px}
  .product-flow-success-dialog h2{font-size:21px}
  .product-flow-success-dialog>p{font-size:12px}
  .product-flow-next-card{margin-top:18px}
  .quick-variant-header{padding:15px 15px 13px}
  .quick-variant-header h2{font-size:18px}
  .quick-variant-scroll{padding:15px 14px 20px}
  .quick-variant-grid{grid-template-columns:1fr;gap:12px}
  .quick-variant-section{gap:13px}
  .quick-variant-section+.quick-variant-section{margin-top:17px;padding-top:17px}
  .quick-identifier-mode{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .quick-identifier-mode button{min-height:40px}
  .quick-scan-progress{align-items:flex-start;flex-direction:column;gap:3px}
  .quick-unit-row{grid-template-columns:30px minmax(0,1fr);padding:11px 10px;gap:8px}
  .quick-unit-index{width:28px;height:28px}
  .quick-identifier-field .identifier-input-row{grid-template-columns:minmax(0,1fr) 72px}
  .quick-identifier-field input,.quick-scan-btn{min-height:46px}
  .quick-variant-footer{padding:10px 12px max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:.78fr 1.35fr;gap:8px}
  .quick-variant-footer .btn,.quick-variant-footer .btn-primary{min-width:0;width:100%;min-height:48px;padding-inline:10px;font-size:11px}
  .shared-device-scanner{z-index:1600}
}
@media (max-width:390px){
  .quick-variant-header{padding-inline:12px}
  .quick-variant-scroll{padding-inline:11px}
  .quick-unit-row{padding-inline:8px}
  .quick-identifier-field .identifier-input-row{grid-template-columns:minmax(0,1fr) 66px;gap:5px}
  .quick-scan-btn{font-size:10px;padding-inline:6px}
}

/* P2-041 — Inventory date visibility for Owner and Branch users */
.inventory-filter-card{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
}
.inventory-filter-card .inventory-search{
  flex:2 1 280px;
  min-width:240px;
  width:auto;
  overflow:hidden;
}
.inventory-filter-card .inventory-search input{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  max-width:100%;
  padding-right:10px;
}
.inventory-filter-card>label:not(.inventory-search){flex:1 1 108px;min-width:104px}
.inventory-filter-card .inventory-date-filter{flex:1 1 126px;min-width:122px}
.inventory-filter-card .inventory-date-filter input{
  width:100%;
  height:43px;
  border:1px solid #dce2ec;
  border-radius:9px;
  background:#fff;
  color:#344054;
  padding:0 10px;
  font-size:11px;
  outline:0;
}
.inventory-filter-card .inventory-date-filter input:focus{border-color:#8cb8ff;box-shadow:0 0 0 3px #edf4ff}
.inventory-filter-card .inventory-apply,.inventory-filter-card .inventory-reset{flex:0 0 auto;min-width:68px}

.inventory-table{
  width:100%;
  min-width:0;
  table-layout:fixed;
}
.inventory-table .col-product{width:22%}
.inventory-table .col-specs{width:14%}
.inventory-table .col-stock{width:9%}
.inventory-table .col-location{width:12%}
.inventory-table .col-date{width:14%}
.inventory-table .col-status{width:9%}
.inventory-table .col-action{width:20%}
.inventory-date-cell{min-width:0;line-height:1.2}
.inventory-date-cell strong,.inventory-date-cell span{display:block}
.inventory-date-cell strong{font-size:10.8px;font-weight:800;color:#344054;white-space:nowrap}
.inventory-date-cell span{margin-top:3px;font-size:9.5px;font-weight:600;color:#7b8799;white-space:nowrap}

.inventory-unit-history{display:grid;gap:10px}
.inventory-unit-history-row{border:1px solid #e3e9f2;border-radius:13px;background:#fff;overflow:hidden}
.inventory-unit-history-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#f9fbff;border-bottom:1px solid #e9eef5}
.inventory-unit-history-head>div{display:flex;align-items:center;gap:10px;min-width:0}
.inventory-unit-history-head strong,.inventory-unit-history-head small{display:block}
.inventory-unit-history-head strong{font-size:11.5px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-unit-history-head small{font-size:9.5px;color:#667085;margin-top:3px}
.inventory-unit-index{width:28px;height:28px;border-radius:8px;background:#eaf2ff;color:var(--blue);display:grid;place-items:center;flex:0 0 28px;font-size:10px;font-weight:850}
.inventory-unit-history-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.inventory-unit-history-grid>div{min-width:0;padding:12px 14px;border-right:1px solid #edf0f5}
.inventory-unit-history-grid>div:last-child{border-right:0}
.inventory-unit-history-grid span,.inventory-unit-history-grid strong,.inventory-unit-history-grid small{display:block}
.inventory-unit-history-grid span{font-size:9px;font-weight:800;color:#8a94a6;text-transform:uppercase;letter-spacing:.25px}
.inventory-unit-history-grid strong{margin-top:5px;font-size:10.8px;font-weight:750;color:#344054;line-height:1.35}
.inventory-unit-history-grid small{margin-top:3px;font-size:9.5px;color:#7b8799;line-height:1.35}

@media(max-width:1180px){
  .inventory-filter-card .inventory-search{flex:1 0 100%;min-width:0}
  .inventory-filter-card>label:not(.inventory-search){flex:1 1 150px;min-width:132px}
  .inventory-filter-card .inventory-date-filter{flex:1 1 150px;min-width:132px}
  .inventory-unit-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-unit-history-grid>div:nth-child(2){border-right:0}
  .inventory-unit-history-grid>div:nth-child(-n+2){border-bottom:1px solid #edf0f5}
}
@media(max-width:760px){
  .inventory-filter-card{gap:8px;padding:11px}
  .inventory-filter-card .inventory-search{flex:1 0 100%}
  .inventory-filter-card>label:not(.inventory-search),.inventory-filter-card .inventory-date-filter{flex:1 1 calc(50% - 4px);min-width:0}
  .inventory-filter-card .inventory-apply,.inventory-filter-card .inventory-reset{flex:1 1 calc(50% - 4px);min-height:44px}
  .inventory-table{min-width:0!important}
  .inventory-table.is-responsive-table tbody{padding:0;background:transparent}
  .inventory-table.is-responsive-table tbody tr{border-radius:13px}
  .inventory-table.is-responsive-table tbody td:first-child{display:block;padding:13px!important}
  .inventory-table.is-responsive-table tbody td:first-child::before{display:none}
  .inventory-table.is-responsive-table .inventory-product-cell{align-items:center}
  .inventory-table.is-responsive-table .inventory-date-cell strong{font-size:11px}
  .inventory-table.is-responsive-table .inventory-row-actions{grid-template-columns:1fr 1fr}
  .inventory-unit-history-head{padding:11px 12px}
  .inventory-unit-history-grid{grid-template-columns:1fr}
  .inventory-unit-history-grid>div{border-right:0!important;border-bottom:1px solid #edf0f5!important;padding:10px 12px}
  .inventory-unit-history-grid>div:last-child{border-bottom:0!important}
}
@media(max-width:430px){
  .inventory-filter-card>label:not(.inventory-search),.inventory-filter-card .inventory-date-filter{flex-basis:100%}
  .inventory-date-cell strong,.inventory-date-cell span{white-space:normal}
}
.inventory-filter-card .inventory-apply,.inventory-filter-card .inventory-reset{width:auto}
.inventory-unit-modal-dialog{width:min(900px,100%)}
@media(max-width:760px){
  .inventory-filter-card .inventory-apply,.inventory-filter-card .inventory-reset{width:auto}
  .inventory-unit-modal-dialog{width:100%}
}


/* P2-042 — Inventory containment: no horizontal sliding / clean filter sizing */
@media (min-width: 761px){
  .inventory-table-wrap{
    overflow-x:hidden;
    overflow-y:auto;
  }
  .inventory-table{
    width:100%;
    min-width:0;
    table-layout:fixed;
  }
  .inventory-table th,
  .inventory-table td{
    min-width:0;
  }
  .inventory-product-cell,
  .inventory-product-copy,
  .inventory-location-cell,
  .inventory-stock-count{
    min-width:0;
  }
  .inventory-product-copy strong,
  .inventory-product-copy span,
  .inventory-specs-text,
  .inventory-location-cell strong,
  .inventory-location-cell span{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .inventory-product-copy strong,
  .inventory-product-copy span,
  .inventory-specs-text{
    white-space:nowrap;
  }
}

/* On tablet/smaller work areas, use the existing labelled-card table treatment
   instead of forcing a horizontally scrollable desktop grid. */
@media (min-width: 761px) and (max-width: 1100px){
  .inventory-table-wrap{
    overflow:visible;
    max-height:none;
    min-height:0;
  }
  .inventory-table.is-responsive-table{
    display:block;
    width:100%;
    min-width:0;
    background:transparent;
  }
  .inventory-table.is-responsive-table thead{display:none}
  .inventory-table.is-responsive-table tbody{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:10px;
    background:var(--app-bg);
  }
  .inventory-table.is-responsive-table tbody tr{
    display:block;
    min-width:0;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
  }
  .inventory-table.is-responsive-table tbody td{
    width:100%!important;
    display:grid;
    grid-template-columns:minmax(105px,.42fr) minmax(0,1fr);
    gap:12px;
    align-items:center;
    padding:10px 12px!important;
    border-bottom:1px solid #eef1f5!important;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .inventory-table.is-responsive-table tbody td::before{
    content:attr(data-label);
    color:#7b8799;
    font-size:9.5px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.25px;
  }
  .inventory-table.is-responsive-table tbody td:first-child{
    display:block;
    padding:13px 12px!important;
  }
  .inventory-table.is-responsive-table tbody td:first-child::before{display:none}
  .inventory-table.is-responsive-table tbody td:last-child{border-bottom:0!important}
  .inventory-table.is-responsive-table .inventory-row-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .inventory-table.is-responsive-table .inventory-row-actions .btn{
    width:100%;
    min-height:44px;
  }
}

/* P2-040 — Inventory actions: compact one-line desktop controls */
@media (min-width: 761px){
  .inventory-table .col-action{width:18%}
  .inventory-table td:last-child{white-space:nowrap}
  .inventory-row-actions{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:6px;
    width:100%;
    max-width:100%;
  }
  .inventory-row-actions .btn{
    flex:0 0 auto;
    width:auto;
    min-width:0;
    min-height:38px;
    height:38px;
    padding:0 11px;
    white-space:nowrap;
  }
  .inventory-row-actions .inventory-view-btn{padding-inline:10px}
  .inventory-row-actions .inventory-forward-btn{min-width:74px;padding-inline:12px}
}

/* Tablet/mobile cards keep both actions visible and touch-friendly. */
@media (max-width: 760px){
  .inventory-table.is-responsive-table .inventory-row-actions,
  .inventory-row-actions{
    width:100%;
    max-width:none;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
  }
  .inventory-row-actions .btn{
    width:100%;
    min-width:0;
    min-height:44px;
    white-space:nowrap;
  }
}


/* AUTH RESPONSIVE BRAND PATCH — show the Malbcoff mark when the desktop brand panel is hidden */
.auth-mobile-brand{display:none}
@media(max-width:900px){
  .auth-mobile-brand{display:flex;align-items:center;margin:0 0 22px}
  .auth-mobile-brand .brand-mark{width:48px;height:48px;border-radius:14px;margin:0;flex:0 0 auto;font-size:22px}
}
@media(max-width:600px){
  .auth-mobile-brand{margin-bottom:20px}
  .auth-mobile-brand .brand-mark{width:46px;height:46px;border-radius:13px;font-size:21px}
}

/* PRE-LIVE UI CLEANUP — production login spacing after demo/phase removal */
.auth-brand-panel .brand-mark{margin-bottom:22px}
.auth-brand-panel h1{margin-top:0}

/* v1.0.0 production readiness — user lifecycle + maintenance */
.users-page-heading{align-items:center}.user-management-head{align-items:center}.security-note{display:inline-flex;align-items:center;gap:6px;color:#52647b;font-size:11px;font-weight:750}.security-note .icon{width:16px;height:16px;color:var(--blue)}
.users-table td{vertical-align:middle}.users-table .table-subtext{display:block;margin-top:3px;color:var(--muted);font-size:10.5px}.user-role-pill{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:#f3f6fb;color:#475467;font-size:10.5px;font-weight:800}.user-role-pill.role-owner{background:#eef5ff;color:#1769e8}.user-role-pill.role-branch_manager{background:#f2efff;color:#6b52cf}.user-role-pill.role-inventory{background:#eaf8f0;color:#178a53}.user-role-pill.role-cashier{background:#fff6e5;color:#a76510}.user-password-pending{margin-left:5px;background:#fff7e8!important;color:#a86812!important}.user-last-login{font-size:11.5px;color:#475467}.user-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.user-row-actions form{display:inline-flex}.user-deactivate-btn{color:#b42318}.user-row-actions button:disabled{opacity:.45;cursor:not-allowed}
.user-account-dialog{width:min(620px,100%)}.user-reset-dialog{width:min(500px,100%)}.user-account-form{padding:18px 20px 20px}.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.user-form-full{grid-column:1/-1}.user-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin:18px -20px -20px;padding:14px 20px;border-top:1px solid var(--border);background:#fbfcfe}.user-account-form .field small{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-top:5px}
.maintenance-owner-chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;border:1px solid #f1d49d;border-radius:999px;background:#fff8e8;color:#9a620d;font-size:10.5px;font-weight:800}.maintenance-owner-chip .icon{width:15px;height:15px}.auth-secondary-link{display:block;text-align:center;margin-top:16px;color:var(--muted);font-size:11.5px;font-weight:700}.auth-secondary-link:hover{color:var(--blue)}
.maintenance-page{padding:24px}.maintenance-shell{width:min(560px,100%);padding:42px 36px;background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);text-align:center}.maintenance-shell .brand-mark{margin:0 auto 22px}.maintenance-shell h1{font-size:30px;letter-spacing:-.7px;margin:7px 0 10px}.maintenance-shell p{max-width:440px;margin:0 auto;color:var(--muted);line-height:1.65}.maintenance-actions{display:flex;justify-content:center;gap:9px;margin:26px 0 18px}.maintenance-shell>small{color:var(--muted-2);font-size:10.5px}
@media(max-width:900px){.user-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.users-table .user-row-actions{justify-content:flex-start}}
@media(max-width:680px){.users-page-heading{align-items:stretch}.users-page-heading>.btn{width:100%}.user-role-grid{grid-template-columns:1fr}.user-form-grid{grid-template-columns:1fr}.user-form-full{grid-column:auto}.user-account-form{padding:14px 15px 16px}.user-modal-actions{margin:16px -15px -16px;padding:12px 15px max(12px,env(safe-area-inset-bottom));flex-direction:column-reverse}.user-modal-actions .btn{width:100%}.maintenance-shell{padding:34px 20px}.maintenance-actions{display:grid;grid-template-columns:1fr}.maintenance-actions .btn{width:100%}.maintenance-shell h1{font-size:26px}.maintenance-owner-chip{display:none}}

/* System Admin / secure impersonation */
.system-admin-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.system-admin-guide{margin-top:18px}
.system-admin-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px}
.system-admin-steps>div{display:flex;gap:12px;align-items:flex-start;padding:15px;border:1px solid var(--border);border-radius:12px;background:#fbfcfe}
.system-admin-steps b{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue)}
.system-admin-steps span strong,.system-admin-steps span small{display:block}.system-admin-steps span small{color:var(--muted);margin-top:3px}
.system-admin-filter{grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(140px,.7fr)) auto}
.impersonation-banner{position:sticky;top:0;z-index:35;height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;background:#fff7e6;border-bottom:1px solid #f2cf86;color:#754c00}
.impersonation-banner>div{display:flex;align-items:center;gap:9px;min-width:0}.impersonation-banner>div>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.impersonation-banner .icon{width:18px}
.is-impersonating .topbar{top:46px}
.dropdown-return-form button{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:9px;padding:10px 12px;text-align:left;cursor:pointer;color:#344054}.dropdown-return-form button:hover{background:#f8faff}
.role-system_admin .topbar-search{display:none}
@media(max-width:900px){.system-admin-kpis{grid-template-columns:repeat(2,1fr)}.system-admin-steps{grid-template-columns:1fr}.system-admin-filter{grid-template-columns:1fr 1fr}.system-admin-filter .search-box{grid-column:1/-1}.impersonation-banner{padding:0 12px}}
@media(max-width:600px){.system-admin-kpis,.system-admin-filter{grid-template-columns:1fr}.impersonation-banner{height:50px}.is-impersonating .topbar{top:50px}.impersonation-banner>div>span{max-width:58vw}.impersonation-banner .btn{min-height:34px;padding:0 10px;font-size:11px}}


/* Receive Stock training-flow polish — quantity -> continuous Serial / IMEI scanning */
.receive-workflow-strip{display:grid;grid-template-columns:repeat(9,auto);align-items:center;gap:10px;margin:-4px 0 18px;padding:12px 14px;border:1px solid #dce7f5;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(31,62,104,.035);overflow-x:auto}
.receive-workflow-strip>div{display:flex;align-items:center;gap:9px;min-width:145px}.receive-workflow-strip>b{display:none}.receive-workflow-strip>i{font-style:normal;color:#9aa9bc;font-weight:800}.receive-workflow-strip div>b{width:26px;height:26px;border-radius:9px;background:#eaf3ff;color:#1769e8;display:grid;place-items:center;font-size:10px;flex:0 0 auto}.receive-workflow-strip strong,.receive-workflow-strip small{display:block;white-space:nowrap}.receive-workflow-strip strong{font-size:10.5px;color:#172033}.receive-workflow-strip small{font-size:9px;color:#7b8799;margin-top:1px}
.receive-scan-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 14px;padding:13px;border:1px solid #cfe0fb;border-radius:14px;background:#f8fbff}.receive-scan-stat{padding:10px 12px;border:1px solid #e3ecf8;border-radius:11px;background:#fff}.receive-scan-stat span,.receive-scan-stat strong{display:block}.receive-scan-stat span{font-size:9px;text-transform:uppercase;letter-spacing:.45px;color:#7a899d;font-weight:800}.receive-scan-stat strong{font-size:20px;line-height:1.2;color:#152033;margin-top:3px}.receive-scan-stat:nth-child(2) strong{color:#1769e8}.receive-scan-progress{grid-column:1/-1;height:7px;border-radius:999px;background:#e4ecf7;overflow:hidden}.receive-scan-progress>span{display:block;height:100%;border-radius:inherit;background:#1769e8;transition:width .18s ease}.receive-scan-overview>small{grid-column:1/-1;color:#64748b;font-size:10.5px;margin-top:-2px}
.receive-submit-group{display:flex;align-items:center;gap:12px}.receive-ready-note{font-size:10.5px;color:#7b8799}.receive-form-actions #reviewStockButton:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}.receive-form-actions #reviewStockButton.is-ready{box-shadow:0 8px 20px rgba(23,105,232,.18)}
.receive-identifiers .scanner-help{font-weight:650;color:#5f6f84}.receive-identifiers .identifier-progress{min-width:104px}
@media(max-width:900px){.receive-workflow-strip{grid-template-columns:repeat(9,max-content)}.receive-submit-group{width:100%;justify-content:flex-end}.receive-form-actions{align-items:center}.receive-scan-overview{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.receive-workflow-strip{margin-top:0;padding:10px}.receive-workflow-strip>div{min-width:128px}.receive-workflow-strip strong{font-size:10px}.receive-workflow-strip small{font-size:8.5px}.receive-scan-overview{grid-template-columns:1fr 1fr;padding:10px}.receive-scan-stat:nth-child(3){grid-column:1/-1}.receive-scan-progress,.receive-scan-overview>small{grid-column:1/-1}.receive-form-actions{align-items:stretch;flex-direction:column}.receive-form-actions>.btn{width:100%}.receive-submit-group{display:grid;grid-template-columns:1fr;width:100%}.receive-submit-group .btn{width:100%;min-height:48px}.receive-ready-note{text-align:center;order:2}.receive-identifiers .identifier-panel-actions{flex-wrap:wrap}.receive-identifiers .identifier-progress{order:-1}}

/* POS cart empty-state visibility fix: respect the HTML hidden attribute. */
.pos-cart-empty[hidden]{display:none!important}

/* Stock Monitoring — approved production reference */
.stock-monitoring-heading{align-items:flex-end;margin-bottom:18px}
.stock-monitoring-heading h1{font-size:27px;margin:4px 0 6px;letter-spacing:-.65px}
.stock-monitoring-heading p{font-size:12px;max-width:720px}
.stock-monitoring-export{min-height:38px;padding:0 14px;border-color:#9fc5ff;background:#fff;box-shadow:0 3px 10px rgba(23,105,232,.04)}
.stock-monitoring-export .icon{width:16px;height:16px}

.stock-monitoring-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
.stock-monitoring-kpi{min-width:0;display:flex;gap:11px;align-items:flex-start;padding:15px 16px;border:1px solid #dfe7f1;border-radius:13px;background:#fff;box-shadow:0 6px 18px rgba(30,64,175,.025)}
.stock-monitoring-kpi-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto;background:#eaf3ff;color:#1769e8}
.stock-monitoring-kpi-icon .icon{width:17px;height:17px}
.stock-monitoring-kpi>div>span,.stock-monitoring-kpi>div>strong,.stock-monitoring-kpi>div>small{display:block}
.stock-monitoring-kpi>div>span{font-size:10px;font-weight:800;color:#44546a;margin-bottom:4px}
.stock-monitoring-kpi>div>strong{font-size:25px;line-height:1;color:#1769e8;letter-spacing:-.04em}
.stock-monitoring-kpi>div>small{font-size:9.5px;line-height:1.35;color:#7b8797;margin-top:6px;white-space:normal}
.stock-monitoring-kpi.is-overall{background:#f4f8ff;border-color:#dce8fb}.stock-monitoring-kpi.is-overall .stock-monitoring-kpi-icon{background:#e8f2ff;color:#1769e8}
.stock-monitoring-kpi.is-in{background:#f4fbf7;border-color:#dcefe4}.stock-monitoring-kpi.is-in .stock-monitoring-kpi-icon{background:#e9f8ef;color:#1b9c5a}.stock-monitoring-kpi.is-in strong{color:#179452}
.stock-monitoring-kpi.is-out{background:#fff7f6;border-color:#f2dfdc}.stock-monitoring-kpi.is-out .stock-monitoring-kpi-icon{background:#fff0ee;color:#de4c45}.stock-monitoring-kpi.is-out strong{color:#d94841}
.stock-monitoring-kpi.is-sold{background:#fffaf0;border-color:#f3e7ca}.stock-monitoring-kpi.is-sold .stock-monitoring-kpi-icon{background:#fff3d8;color:#d4890f}.stock-monitoring-kpi.is-sold strong{color:#cb7c08}

.stock-monitoring-filter{display:grid;gap:10px;align-items:end;margin-bottom:14px;padding:12px;background:#fff;border:1px solid #dfe6ef;border-radius:12px;box-shadow:0 5px 16px rgba(31,62,104,.022)}
.stock-monitoring-filter.is-branch{grid-template-columns:150px 180px minmax(280px,1fr) auto auto}
.stock-monitoring-filter.is-owner{grid-template-columns:150px 180px 180px minmax(260px,1fr) auto auto}
.stock-monitoring-filter>label>span{display:block;font-size:10px;font-weight:800;color:#4a596d;margin:0 0 5px}
.stock-monitoring-filter input,.stock-monitoring-filter select{height:38px;border-radius:8px;border-color:#dce3ec;font-size:11px;background:#fff}
.stock-monitoring-filter .search-box{height:38px;margin:0;align-self:end;border-radius:8px;border-color:#dce3ec;background:#fff}
.stock-monitoring-filter .search-box .icon{width:16px;height:16px}
.stock-monitoring-filter .search-box input{height:36px;min-width:0;padding-right:8px}
.stock-monitoring-filter .btn{min-height:38px;border-radius:8px;padding:0 18px;font-size:11px}
.stock-monitoring-filter .filter-reset{height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;color:#667085;font-size:10.5px;font-weight:750}
.stock-monitoring-filter .filter-reset:hover{color:#1769e8}

.stock-monitoring-card{overflow:hidden;border-radius:13px;border-color:#dfe6ef;box-shadow:0 5px 18px rgba(31,62,104,.025)}
.stock-monitoring-table-wrap{overflow:auto;overscroll-behavior-inline:contain;max-width:100%}
.stock-monitoring-table{width:100%;min-width:720px;margin:0;border-collapse:collapse}
.stock-monitoring-owner-table{min-width:820px}
.stock-monitoring-table th,.stock-monitoring-table td{border-right:1px solid #edf1f5}
.stock-monitoring-table th:last-child,.stock-monitoring-table td:last-child{border-right:0}
.stock-monitoring-table thead th{padding:9px 12px;background:#fafbfd;color:#516075;font-size:9.5px;font-weight:800;border-bottom:1px solid #dfe6ef;white-space:nowrap}
.stock-monitoring-table thead th:first-child{min-width:280px}
.stock-monitoring-table tbody td{padding:7px 12px;font-size:10.5px;line-height:1.3;border-bottom:1px solid #edf1f5;background:#fff}
.stock-monitoring-table tbody tr:hover td{background:#fbfdff}
.stock-monitoring-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.stock-monitoring-model-cell{font-weight:620;color:#26364b;white-space:normal;min-width:280px}
.stock-monitoring-overall-head{color:#334f78!important}
.stock-monitoring-overall-cell{font-weight:800;color:#263f6c}

.stock-monitoring-brand-row th{padding:0!important;background:#f8fbff!important;border-bottom:1px solid #e2ebf7!important;text-align:left!important}
.stock-monitoring-brand-toggle{width:100%;min-height:34px;display:flex;align-items:center;gap:7px;padding:6px 11px;border:0;background:transparent;color:#1769e8;font:inherit;font-size:10.5px;font-weight:850;letter-spacing:.02em;text-align:left;cursor:pointer}
.stock-monitoring-brand-toggle:hover{background:#f1f7ff}
.stock-monitoring-brand-chevron{display:grid;place-items:center;width:16px;height:16px;color:#405a7d;transition:transform .16s ease}
.stock-monitoring-brand-chevron .icon{width:14px;height:14px}
.stock-monitoring-brand-toggle.is-collapsed .stock-monitoring-brand-chevron{transform:rotate(-90deg)}
.stock-monitoring-brand-logo{width:22px;height:22px;border-radius:6px;display:inline-grid;place-items:center;flex:0 0 auto}
.stock-monitoring-brand-logo img{max-width:16px;max-height:16px}
.stock-monitoring-total-row td{padding:7px 12px!important;background:#edf5ff!important;color:#1760c8!important;font-size:10px!important;font-weight:850!important;border-top:1px solid #d7e7fb!important;border-bottom:1px solid #d7e7fb!important}
.stock-monitoring-table tfoot th{padding:9px 12px;background:#e4efff;color:#16468d;font-size:10.5px;font-weight:900;border-top:2px solid #c8daf4;border-right:1px solid #d2e0f2}
.stock-monitoring-table tfoot th:last-child{border-right:0}
.stock-monitoring-model-row[hidden]{display:none!important}
.stock-monitoring-empty{min-height:250px;padding:34px 20px}
.stock-monitoring-empty .icon{color:#8ca4c4}

@media(max-width:1180px){
  .stock-monitoring-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stock-monitoring-filter.is-owner{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stock-monitoring-filter.is-owner .stock-monitoring-search{grid-column:span 2}
  .stock-monitoring-filter.is-branch{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stock-monitoring-filter.is-branch .stock-monitoring-search{grid-column:span 1}
}
@media(max-width:820px){
  .stock-monitoring-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .stock-monitoring-heading .stock-monitoring-export{align-self:flex-start}
  .stock-monitoring-filter.is-owner,.stock-monitoring-filter.is-branch{grid-template-columns:1fr 1fr}
  .stock-monitoring-filter.is-owner .stock-monitoring-search,.stock-monitoring-filter.is-branch .stock-monitoring-search{grid-column:1/-1}
  .stock-monitoring-filter .stock-monitoring-apply{width:100%}
  .stock-monitoring-table thead th:first-child,.stock-monitoring-model-cell{min-width:230px}
}
@media(max-width:560px){
  .stock-monitoring-heading h1{font-size:24px}
  .stock-monitoring-heading .stock-monitoring-export{width:100%}
  .stock-monitoring-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .stock-monitoring-kpi{padding:12px 11px;gap:8px;border-radius:11px}
  .stock-monitoring-kpi-icon{width:28px;height:28px;border-radius:8px}
  .stock-monitoring-kpi>div>strong{font-size:21px}
  .stock-monitoring-kpi>div>small{font-size:8.8px}
  .stock-monitoring-filter.is-owner,.stock-monitoring-filter.is-branch{grid-template-columns:1fr;padding:10px}
  .stock-monitoring-filter.is-owner .stock-monitoring-search,.stock-monitoring-filter.is-branch .stock-monitoring-search{grid-column:auto}
  .stock-monitoring-filter .stock-monitoring-reset{height:34px}
  .stock-monitoring-card{border-radius:11px}
  .stock-monitoring-table{min-width:700px}
  .stock-monitoring-owner-table{min-width:760px}
  .stock-monitoring-table thead th,.stock-monitoring-table tbody td{padding-left:10px;padding-right:10px}
}


/* P2-051 — Stock Monitoring filter-bar precision UI/UX refinement
   Keeps all existing filter names/behavior intact; presentation only. */
@media (min-width:1181px){
  .stock-monitoring-filter.is-branch{
    grid-template-columns:156px 184px minmax(360px,560px) 78px 58px;
    gap:12px;
    justify-content:start;
  }
  .stock-monitoring-filter.is-owner{
    grid-template-columns:156px 176px 176px minmax(340px,500px) 78px 58px;
    gap:12px;
    justify-content:start;
  }
}

.stock-monitoring-filter>label{
  min-width:0;
  margin:0;
}
.stock-monitoring-filter>label>span{
  margin-bottom:6px;
  line-height:1.2;
}
.stock-monitoring-filter input[type="date"],
.stock-monitoring-filter select{
  width:100%;
  min-width:0;
  height:40px;
  padding-inline:12px;
}
.stock-monitoring-filter input[type="date"]{
  color:#344054;
  font-variant-numeric:tabular-nums;
}
.stock-monitoring-filter input[type="date"]::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.72;
}
.stock-monitoring-filter .search-box{
  width:100%;
  min-width:0;
  height:40px;
  padding-left:12px;
  gap:7px;
}
.stock-monitoring-filter .search-box input{
  width:100%;
  min-width:0;
  height:38px;
  padding:0 10px 0 0;
  text-overflow:ellipsis;
}
.stock-monitoring-filter .search-box .icon{
  width:15px;
  height:15px;
  flex:0 0 auto;
}
.stock-monitoring-filter .btn{
  width:100%;
  min-width:0;
  min-height:40px;
  padding-inline:14px;
}
.stock-monitoring-filter .filter-reset{
  width:100%;
  min-width:0;
  height:40px;
  padding:0 6px;
}

@media (max-width:1180px) and (min-width:761px){
  .stock-monitoring-filter.is-branch,
  .stock-monitoring-filter.is-owner{
    gap:10px;
  }
  .stock-monitoring-filter input[type="date"],
  .stock-monitoring-filter select,
  .stock-monitoring-filter .search-box,
  .stock-monitoring-filter .btn{
    min-width:0;
  }
}

/* P2-009: custom RAM / Storage option for Add Variant */
.custom-spec-input[hidden],.custom-spec-hint[hidden]{display:none!important}
.quick-custom-spec-field .custom-spec-input:not([hidden]),.receive-custom-spec-field .custom-spec-input:not([hidden]){display:block;margin-top:8px;border-color:#b9d3fb;background:#fbfdff}
.quick-custom-spec-field .custom-spec-input:not([hidden]):focus,.receive-custom-spec-field .custom-spec-input:not([hidden]):focus{border-color:#6fa7fb;box-shadow:0 0 0 3px #edf4ff}
.quick-custom-spec-field .custom-spec-hint:not([hidden]),.receive-custom-spec-field .custom-spec-hint:not([hidden]){display:block;margin-top:5px;color:#667085;font-size:10px;line-height:1.4}

/* Accessory category drill-down — Product Master */
.accessory-category-card{
  position:relative;
  cursor:pointer;
}
.accessory-category-card-link{
  display:block;
  position:absolute;
  inset:0;
  z-index:3;
  border-radius:inherit;
  cursor:pointer;
}
.accessory-category-card > :not(.accessory-category-card-link){
  position:relative;
  z-index:2;
  pointer-events:none;
}
.accessory-category-card .accessory-category-actions{
  position:relative;
  z-index:4;
  pointer-events:auto;
}
.accessory-category-card .accessory-category-actions *{
  pointer-events:auto;
}
.accessory-category-card.selected{
  border-color:#8fbcff;
  background:#f7fbff;
  box-shadow:0 0 0 2px rgba(35,111,229,.08);
}
.accessory-category-card.selected .accessory-category-icon{
  background:#e7f1ff;
  color:#1769e8;
}
.accessory-category-card:hover{
  border-color:#b8d2fb;
  box-shadow:0 8px 22px rgba(31,72,126,.07);
}
.accessory-category-card:focus-within{
  outline:3px solid rgba(35,111,229,.2);
  outline-offset:2px;
}
.accessory-products-panel{
  margin:16px;
  border:1px solid var(--border,#dde6f1);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  scroll-margin-top:92px;
}
.accessory-products-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
  border-bottom:1px solid var(--border,#e4ebf3);
  background:#fbfdff;
}
.accessory-products-header h3{
  margin:3px 0;
  font-size:18px;
  color:#11213a;
}
.accessory-products-header p{
  margin:0;
  color:#728198;
  font-size:12px;
}
.accessory-product-list{display:grid;}
.accessory-product-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 130px 92px auto;
  align-items:center;
  gap:16px;
  min-height:72px;
  padding:12px 18px;
  border-bottom:1px solid #edf1f6;
}
.accessory-product-row:last-child{border-bottom:0;}
.accessory-product-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.accessory-product-icon{
  width:38px;
  height:38px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#f2edff;
  color:#7357e8;
  flex:0 0 auto;
}
.accessory-product-icon svg{width:18px;height:18px;}
.accessory-product-main strong{
  display:block;
  color:#13223a;
  font-size:13px;
  line-height:1.35;
}
.accessory-product-main span{
  display:block;
  margin-top:3px;
  color:#7a889c;
  font-size:11px;
  overflow-wrap:anywhere;
}
.accessory-product-stock{text-align:right;}
.accessory-product-stock small{
  display:block;
  color:#8390a2;
  font-size:10px;
}
.accessory-product-stock strong{
  display:block;
  margin-top:2px;
  color:#0f294d;
  font-size:16px;
}
.accessory-product-receive{
  white-space:nowrap;
  justify-self:end;
}
.accessory-products-empty{margin:20px;}
@media(max-width:900px){
  .accessory-product-row{grid-template-columns:minmax(0,1fr) 92px auto;}
  .accessory-product-receive{grid-column:1/-1;justify-self:stretch;}
}
@media(max-width:640px){
  .accessory-products-panel{margin:12px;}
  .accessory-products-header{align-items:flex-start;padding:15px;}
  .accessory-products-header .btn{flex:0 0 auto;}
  .accessory-product-row{grid-template-columns:1fr auto;gap:10px 12px;padding:14px;}
  .accessory-product-main{grid-column:1/-1;}
  .accessory-product-stock{text-align:left;}
  .accessory-product-row .status-pill{justify-self:end;}
  .accessory-product-receive{grid-column:1/-1;width:100%;}
}

/* Variant spelling consistency / typo-merge guard */
.variant-typo-warning{
  display:block;
  margin-top:5px;
  width:max-content;
  max-width:100%;
  padding:3px 7px;
  border:1px solid #f6d58b;
  border-radius:999px;
  background:#fff8e8;
  color:#9a6700;
  font-size:11px;
  font-weight:700;
  line-height:1.25;
}
.variant-merge-btn{
  white-space:nowrap;
}
.quick-variant-grid input[list],
#variantColorField input[list],
.variant-spec-grid input[list]{
  background-color:#fff;
}
@media (max-width:760px){
  .variant-typo-warning{width:auto;max-width:240px;white-space:normal;}
  .variant-merge-btn span{white-space:normal;text-align:left;}
}

/* P2-034 — Stock safety confirmation + System Admin adjustment */
.stock-confirm-dialog{width:min(720px,calc(100vw - 32px));max-height:90vh;overflow:auto}
.confirm-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.confirm-summary-grid>div{border:1px solid var(--border);border-radius:12px;background:#fbfcfe;padding:12px 13px;min-width:0}
.confirm-summary-grid span,.confirm-summary-grid strong,.confirm-summary-grid small{display:block}
.confirm-summary-grid span{font-size:10px;font-weight:750;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.confirm-summary-grid strong{font-size:13px;margin-top:4px;overflow-wrap:anywhere}
.confirm-imeis{border:1px solid #dbe7f7;border-radius:12px;background:#f7faff;padding:12px 13px;margin-top:12px}
.confirm-imeis strong,.confirm-imeis span{display:block}
.confirm-imeis strong{font-size:11.5px;color:#344054;margin-bottom:4px}.confirm-imeis span{font-size:11px;color:#667085;line-height:1.5;overflow-wrap:anywhere}
.stock-confirm-acknowledgement{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:12px 13px;border:1px solid #cfe0f7;border-radius:12px;background:#f8fbff;cursor:pointer}
.stock-confirm-acknowledgement input{width:18px;height:18px;margin-top:1px;accent-color:var(--blue);flex:0 0 auto}
.stock-confirm-acknowledgement span,.stock-confirm-acknowledgement strong,.stock-confirm-acknowledgement small{display:block}.stock-confirm-acknowledgement strong{font-size:12px;color:#344054}.stock-confirm-acknowledgement small{font-size:10.5px;color:var(--muted);margin-top:2px;line-height:1.4}
#systemStockAdjustModal .variant-adjust-reason{margin-top:14px}
#systemStockAdjustModal [data-system-adjust-devices]{margin-top:14px}
#systemStockAdjustModal [data-system-adjust-accessory]{margin-top:14px}
#systemStockAdjustModal .variant-adjust-units{margin-top:10px}
#systemStockAdjustModal [data-system-adjust-selected-count]{font-size:11px;color:var(--blue);white-space:nowrap}
@media(max-width:640px){.confirm-summary-grid{grid-template-columns:1fr}.stock-confirm-dialog{width:min(100%,calc(100vw - 20px))}.stock-confirm-acknowledgement{padding:11px}}

/* P2-047 — Inventory Devices / Accessories switch + accessory-safe actions */
.inventory-view-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  margin:-6px 0 16px;
}
.inventory-view-tab{
  min-width:92px;
  height:38px;
  padding:0 16px;
  border:1px solid #dce5f0;
  border-radius:10px;
  background:#fff;
  color:#475467;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  box-shadow:0 2px 5px rgba(16,24,40,.03);
  transition:.15s ease;
}
.inventory-view-tab:hover{border-color:#a9c9fb;color:var(--blue);background:#fbfdff}
.inventory-view-tab.active{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 6px 14px rgba(23,105,232,.18)}
.inventory-identifier-text{display:block;color:#344054;font-size:10.8px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accessory-stock-dialog{width:min(760px,100%)}
.accessory-stock-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.accessory-stock-summary-grid>div{border:1px solid #e6ebf2;border-radius:12px;background:#fbfcfe;padding:12px;min-width:0}
.accessory-stock-summary-grid span,.accessory-stock-summary-grid strong{display:block}
.accessory-stock-summary-grid span{font-size:9px;font-weight:800;color:#8a94a6;text-transform:uppercase;letter-spacing:.25px}
.accessory-stock-summary-grid strong{margin-top:5px;font-size:12px;color:#172033;overflow-wrap:anywhere}

@media (min-width:1101px){
  .inventory-table-devices .col-product{width:22%}
  .inventory-table-devices .col-specs{width:15%}
  .inventory-table-devices .col-stock{width:9%}
  .inventory-table-devices .col-location{width:13%}
  .inventory-table-devices .col-date{width:14%}
  .inventory-table-devices .col-status{width:9%}
  .inventory-table-devices .col-action{width:18%}

  .inventory-table-accessories .col-product{width:18%}
  .inventory-table-accessories .col-category{width:10%}
  .inventory-table-accessories .col-identifier{width:12%}
  .inventory-table-accessories .col-stock{width:8%}
  .inventory-table-accessories .col-location{width:11%}
  .inventory-table-accessories .col-date{width:11%}
  .inventory-table-accessories .col-status{width:7%}
  .inventory-table-accessories .col-action{width:23%}

  .inventory-table-accessories .inventory-row-actions{gap:4px;justify-content:flex-start}
  .inventory-table-accessories .inventory-row-actions .btn{height:36px;min-height:36px;padding-inline:9px;font-size:10px}
  .inventory-table-accessories .inventory-row-actions .inventory-view-btn{min-width:88px;padding-inline:8px}
  .inventory-table-accessories .inventory-row-actions .inventory-adjust-btn{min-width:54px}
  .inventory-table-accessories .inventory-row-actions .inventory-forward-btn{min-width:66px;padding-inline:10px}
  .inventory-table-devices .inventory-row-actions .inventory-forward-btn{margin-left:0}
}

@media (max-width:1100px){
  .inventory-view-tabs{margin-top:-2px}
  .inventory-table.is-responsive-table .inventory-row-actions-accessory{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .inventory-view-tabs{width:100%;margin:0 0 12px}
  .inventory-view-tab{flex:1;min-width:0;height:42px}
  .inventory-table.is-responsive-table .inventory-row-actions-accessory,
  .inventory-row-actions-accessory{grid-template-columns:1fr 1fr}
  .inventory-row-actions-accessory .inventory-forward-btn{grid-column:1/-1}
  .accessory-stock-summary-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:480px){
  .accessory-stock-summary-grid{grid-template-columns:1fr}
}

/* Accessory receiving now mirrors device quantity: one identifier entry per unit. */
.identifier-entry-accessory{align-items:start}
.identifier-entry-accessory .identifier-entry-number{margin-top:24px}
@media(max-width:760px){
  .identifier-entry-accessory{grid-column:1/-1}
}


/* P2-048 — Branch Manager stock correction + locked variant unlock */
.variant-unlock-actions{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid #d6e4f8;border-radius:11px;background:#f8fbff}
.variant-unlock-actions .btn{flex:0 0 auto;white-space:nowrap}
.variant-unlock-actions small{font-size:10.5px;line-height:1.45;color:#667085}
.variant-spec-lock-note.unlocked{border-color:#b7d4ff;background:#f0f6ff;color:#175cd3}
.stock-adjust-accessory-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}

@media (min-width:1101px){
  .inventory-table-devices .col-product{width:20%}
  .inventory-table-devices .col-specs{width:14%}
  .inventory-table-devices .col-stock{width:8%}
  .inventory-table-devices .col-location{width:12%}
  .inventory-table-devices .col-date{width:12%}
  .inventory-table-devices .col-status{width:8%}
  .inventory-table-devices .col-action{width:26%}
  .inventory-table-devices .inventory-row-actions{display:grid;grid-template-columns:minmax(90px,1fr) minmax(58px,.65fr) minmax(72px,.8fr);gap:5px;width:100%}
  .inventory-table-devices .inventory-row-actions .btn{width:100%;min-width:0;height:36px;min-height:36px;padding-inline:8px;font-size:10px;white-space:nowrap}
  .inventory-table-devices .inventory-row-actions .inventory-view-btn{padding-inline:7px}
  .inventory-table-devices .inventory-row-actions .inventory-forward-btn{min-width:0;padding-inline:8px}

  .inventory-table-accessories .col-product{width:17%}
  .inventory-table-accessories .col-category{width:9%}
  .inventory-table-accessories .col-identifier{width:11%}
  .inventory-table-accessories .col-stock{width:7%}
  .inventory-table-accessories .col-location{width:10%}
  .inventory-table-accessories .col-date{width:10%}
  .inventory-table-accessories .col-status{width:7%}
  .inventory-table-accessories .col-action{width:29%}
  .inventory-table-accessories .inventory-row-actions{display:grid;grid-template-columns:minmax(88px,1fr) minmax(58px,.65fr) minmax(70px,.8fr);gap:5px;width:100%}
  .inventory-table-accessories .inventory-row-actions .btn{width:100%;min-width:0;height:36px;min-height:36px;padding-inline:8px;font-size:10px;white-space:nowrap}
}
@media (max-width:1100px){
  .inventory-table.is-responsive-table .inventory-row-actions-device,
  .inventory-table.is-responsive-table .inventory-row-actions-accessory{grid-template-columns:repeat(3,minmax(0,1fr))}
  .inventory-table.is-responsive-table .inventory-row-actions-device .inventory-forward-btn,
  .inventory-table.is-responsive-table .inventory-row-actions-accessory .inventory-forward-btn{grid-column:auto}
}
@media (max-width:760px){
  .stock-adjust-accessory-grid{grid-template-columns:1fr}
  .variant-unlock-actions{align-items:stretch;flex-direction:column}
  .variant-unlock-actions .btn{width:100%}
  .inventory-table.is-responsive-table .inventory-row-actions-device,
  .inventory-table.is-responsive-table .inventory-row-actions-accessory,
  .inventory-row-actions-device,
  .inventory-row-actions-accessory{grid-template-columns:1fr 1fr}
  .inventory-row-actions-device .inventory-forward-btn,
  .inventory-row-actions-accessory .inventory-forward-btn{grid-column:1/-1}
}

/* P2-049 — Device adjustment unit selection + IMEI/Serial correction */
.stock-adjust-device-mode-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:12px}
#systemStockAdjustModal [data-system-device-remove],
#systemStockAdjustModal [data-system-device-correct]{margin-top:10px}
#systemStockAdjustModal .variant-unit-toolbar>span{font-size:11px;color:#667085;line-height:1.45}
.system-correct-unit-list .variant-adjust-unit{grid-template-columns:18px 38px minmax(0,1fr)}
.device-identifier-correction{margin-top:14px;border:1px solid #dbe7f7;border-radius:13px;background:#f8fbff;padding:14px}
.device-identifier-current{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #e1eaf6}
.device-identifier-current span{font-size:10px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.device-identifier-current strong{font-size:12px;color:#172033;overflow-wrap:anywhere;text-align:right}
.device-identifier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.device-identifier-grid .field{margin:0}
.device-identifier-help{display:block;margin-top:10px;color:#667085;font-size:10.5px;line-height:1.45}
#systemStockAdjustModal .variant-adjust-unit-copy small{white-space:normal;line-height:1.35}
@media(max-width:760px){
  .device-identifier-grid{grid-template-columns:1fr}
  .device-identifier-current{align-items:flex-start;flex-direction:column}
  .device-identifier-current strong{text-align:left}
}

/* Device Serial Correction */
.device-serial-correction{margin-top:14px}
.device-serial-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.device-serial-grid .field{margin:0}
.device-serial-grid input[readonly]{background:#f6f8fb;color:#596579;cursor:default}
.serial-correction-info{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:12px 13px;border:1px solid #cfe0f7;border-radius:12px;background:#f5f9ff;color:#365a8c}
.serial-correction-info:before{content:'i';width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border-radius:50%;background:var(--blue);color:#fff;font-size:12px;font-weight:850}
.serial-correction-info strong,.serial-correction-info span{display:block}
.serial-correction-info strong{font-size:11.5px;color:#245ca8;margin-bottom:2px}
.serial-correction-info span{font-size:10.5px;line-height:1.45;color:#526987}
#systemStockAdjustModal [data-system-device-correct] .variant-adjust-units{grid-template-columns:1fr}
#systemStockAdjustModal [data-system-device-correct] .variant-adjust-unit{padding:11px 12px}
#systemStockAdjustModal [data-system-device-correct] .variant-adjust-unit:has(input:checked){border-color:#82b1ff;box-shadow:0 0 0 2px rgba(31,111,235,.07)}
@media(max-width:640px){.device-serial-grid{grid-template-columns:1fr}.serial-correction-info{padding:11px}}

/* P2-051 — Branch Manager permanent device cleanup + compact action UX */
.btn-danger-outline{
  background:#fff;
  color:#c93434;
  border-color:#f0b8b8;
  box-shadow:none;
}
.btn-danger-outline:hover{
  background:#fff5f5;
  border-color:#e78e8e;
  color:#a92727;
}
.inventory-delete-btn{white-space:nowrap}

.inventory-delete-dialog{
  width:min(760px,calc(100vw - 32px));
  max-height:90vh;
  overflow:auto;
}
.inventory-delete-body{padding-top:16px}
.delete-eyebrow{color:#c93434}
.delete-summary-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,.9fr) minmax(0,.75fr);
  gap:10px;
  margin-bottom:14px;
}
.delete-summary-grid>div{
  min-width:0;
  padding:12px 13px;
  border:1px solid #e5eaf1;
  border-radius:12px;
  background:#fbfcfe;
}
.delete-summary-grid span,.delete-summary-grid strong{display:block}
.delete-summary-grid span{
  font-size:9.5px;
  font-weight:800;
  color:#7b8797;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.delete-summary-grid strong{
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
  color:#172033;
  overflow-wrap:anywhere;
}
.delete-warning-panel{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-bottom:14px;
  padding:12px 13px;
  border:1px solid #f2c2c2;
  border-radius:12px;
  background:#fff7f7;
}
.delete-warning-icon{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#d83b3b;
  color:#fff;
  font-weight:900;
  font-size:12px;
}
.delete-warning-panel strong,.delete-warning-panel span{display:block}
.delete-warning-panel strong{font-size:11.5px;color:#a82d2d}
.delete-warning-panel span{margin-top:3px;font-size:10.5px;line-height:1.45;color:#7b4b4b}
.delete-unit-section{
  padding:13px;
  border:1px solid #e3e9f2;
  border-radius:13px;
  background:#fff;
}
.delete-unit-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.delete-unit-toolbar strong,.delete-unit-toolbar span{display:block}
.delete-unit-toolbar strong{font-size:11.5px;color:#273246}
.delete-unit-toolbar span{margin-top:2px;font-size:10px;color:#7a8493}
.delete-unit-toolbar>b{font-size:10.5px;color:var(--blue);white-space:nowrap}
.delete-unit-list{grid-template-columns:1fr}
.delete-unit-option{padding:11px 12px}
.delete-unit-option:has(input:checked){border-color:#e28f8f;background:#fff7f7;box-shadow:0 0 0 2px rgba(202,52,52,.06)}
.delete-unit-option input{accent-color:#cf3434}
.delete-unit-option:has(input:checked) .variant-adjust-unit-index{background:#fdeaea;color:#b72f2f}
.delete-impact-card{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.delete-impact-card>div{
  padding:11px 12px;
  border:1px solid #e7ebf2;
  border-radius:11px;
  background:#fbfcfe;
}
.delete-impact-card span,.delete-impact-card strong{display:block}
.delete-impact-card span{font-size:9.5px;font-weight:800;color:#7b8797;text-transform:uppercase}
.delete-impact-card strong{margin-top:4px;font-size:15px;color:#172033}
.delete-impact-danger{border-color:#f3cccc!important;background:#fff8f8!important}
.delete-impact-danger strong{color:#c93434!important}
.delete-impact-safe{border-color:#cce9da!important;background:#f6fcf8!important}
.delete-impact-safe strong{color:#198754!important}
.delete-review-heading{margin-bottom:14px}
.delete-review-heading h3{font-size:17px;margin:4px 0 4px}
.delete-review-heading p{margin:0;color:#667085;font-size:11px}
.delete-review-units{
  margin-top:12px;
  padding:12px 13px;
  border:1px solid #f0c2c2;
  border-radius:12px;
  background:#fffafa;
}
.delete-review-units>strong{display:block;font-size:10.5px;color:#9e3030;margin-bottom:8px}
.delete-review-unit{padding:8px 0;border-top:1px solid #f6dddd}
.delete-review-unit:first-child{border-top:0;padding-top:0}
.delete-review-unit:last-child{padding-bottom:0}
.delete-review-unit b,.delete-review-unit span{display:block}
.delete-review-unit b{font-size:11.5px;color:#2c3442}
.delete-review-unit span{margin-top:2px;font-size:9.8px;color:#77808d;line-height:1.4}
.delete-confirm-ack{border-color:#f0caca;background:#fff9f9}
.delete-confirm-ack input{accent-color:#c93434}
.delete-device-editor-actions,.delete-device-review-actions{gap:8px}

/* Keep Inventory actions compact, readable, and fully visible. */
@media (min-width:1101px){
  .inventory-table-devices .col-product{width:18%}
  .inventory-table-devices .col-specs{width:13%}
  .inventory-table-devices .col-stock{width:7%}
  .inventory-table-devices .col-location{width:11%}
  .inventory-table-devices .col-date{width:11%}
  .inventory-table-devices .col-status{width:7%}
  .inventory-table-devices .col-action{width:33%}
  .inventory-table-devices .inventory-row-actions{
    display:grid;
    grid-template-columns:minmax(88px,1.05fr) minmax(58px,.68fr) minmax(58px,.68fr) minmax(70px,.8fr);
    gap:5px;
    width:100%;
    align-items:center;
  }
  .inventory-table-devices .inventory-row-actions .btn,
  .inventory-table-accessories .inventory-row-actions .btn{
    width:100%;
    min-width:0;
    height:36px;
    min-height:36px;
    padding-inline:7px;
    font-size:9.8px;
    white-space:nowrap;
    line-height:1;
  }
  .inventory-table-devices .inventory-view-btn,
  .inventory-table-accessories .inventory-view-btn{min-width:0;padding-inline:6px}
  .inventory-table-devices .inventory-forward-btn,
  .inventory-table-accessories .inventory-forward-btn{min-width:0;margin-left:0;padding-inline:8px;grid-column:auto}

  .inventory-table-accessories .col-product{width:16%}
  .inventory-table-accessories .col-category{width:8%}
  .inventory-table-accessories .col-identifier{width:10%}
  .inventory-table-accessories .col-stock{width:7%}
  .inventory-table-accessories .col-location{width:9%}
  .inventory-table-accessories .col-date{width:10%}
  .inventory-table-accessories .col-status{width:7%}
  .inventory-table-accessories .col-action{width:33%}
  .inventory-table-accessories .inventory-row-actions{
    display:grid;
    grid-template-columns:minmax(88px,1.05fr) minmax(58px,.68fr) minmax(58px,.68fr) minmax(70px,.8fr);
    gap:5px;
    width:100%;
    align-items:center;
  }
}
@media (max-width:1100px){
  .inventory-table.is-responsive-table .inventory-row-actions-device,
  .inventory-table.is-responsive-table .inventory-row-actions-accessory{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-table.is-responsive-table .inventory-row-actions-device .inventory-forward-btn,
  .inventory-table.is-responsive-table .inventory-row-actions-accessory .inventory-forward-btn{grid-column:auto}
}
@media (max-width:760px){
  .delete-summary-grid,.delete-impact-card{grid-template-columns:1fr}
  .inventory-delete-dialog{width:min(100%,calc(100vw - 20px))}
  .inventory-row-actions-device,
  .inventory-row-actions-accessory{grid-template-columns:1fr 1fr!important}
  .inventory-row-actions-device .inventory-forward-btn,
  .inventory-row-actions-accessory .inventory-forward-btn{grid-column:auto!important}
  .inventory-row-actions-device .btn,
  .inventory-row-actions-accessory .btn{min-height:42px}
}
@media (max-width:480px){
  .delete-unit-toolbar{flex-direction:column}
  .inventory-row-actions-device .inventory-view-btn,
  .inventory-row-actions-accessory .inventory-view-btn{grid-column:1/-1}
}


/* P2-041 — System Admin Deleted Records / database cleanup */
.system-admin-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.system-cleanup-kpis{margin-bottom:16px}
.system-cleanup-filter{display:grid;grid-template-columns:minmax(260px,1fr) 190px auto auto;gap:10px;align-items:center;margin-bottom:16px}
.system-cleanup-card,.system-cleanup-models,.system-cleanup-audit{margin-bottom:16px}
.system-cleanup-table th:nth-child(1){min-width:300px}.system-cleanup-table th:nth-child(2){min-width:190px}.system-cleanup-table th:nth-child(3){min-width:250px}.system-cleanup-table th:nth-child(4){min-width:210px}.system-cleanup-table th:nth-child(5){min-width:170px}
.cleanup-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(66px,1fr));gap:6px;max-width:280px}
.cleanup-reference-grid span{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border:1px solid var(--border);border-radius:9px;background:var(--surface-muted,#f8fafc);font-size:11px;color:var(--text-muted)}
.cleanup-reference-grid b{font-size:12px;color:var(--text)}
.cleanup-state{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.1}
.cleanup-state.ready{background:#eaf9ef;color:#18783d}.cleanup-state.protected{background:#fff4df;color:#9a5a00}.cleanup-state.removed{background:#fff0f0;color:#ba2b2b}.cleanup-state.compact{font-size:10px;padding:5px 8px}
.cleanup-state-note{display:block;margin-top:7px;max-width:260px;color:var(--text-muted);font-size:11px;line-height:1.35}
.cleanup-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 18px 18px}
.cleanup-model-item{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--border);border-radius:12px;padding:13px 14px;background:#fff}
.cleanup-model-item>div{min-width:0}.cleanup-model-item strong{display:block;font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cleanup-model-item span:not(.cleanup-state){display:block;margin-top:3px;font-size:11px;color:var(--text-muted)}
@media(max-width:1100px){.system-cleanup-filter{grid-template-columns:1fr 180px auto}.system-cleanup-filter .btn-ghost{grid-column:3}.cleanup-model-grid{grid-template-columns:1fr}}
@media(max-width:760px){.system-admin-heading-actions{width:100%;justify-content:stretch}.system-admin-heading-actions .btn{flex:1}.system-cleanup-filter{grid-template-columns:1fr}.system-cleanup-filter .btn-ghost{grid-column:auto}.cleanup-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}.cleanup-model-grid{padding:0 12px 12px}.cleanup-model-item{align-items:flex-start;flex-direction:column}.system-cleanup-table td[data-label="Action"] form,.system-cleanup-table td[data-label="Action"] .btn{width:100%}}

.pos-result-card.is-added{border-color:#16a34a;background:#f0fdf4}.pos-result-card.is-added .pos-result-add{color:#15803d;white-space:nowrap}

/* KPI drawer (Patch 2B): clickable owner KPI cards + shared right-side drawer */
.is-clickable{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.is-clickable:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(23,105,232,.12);border-color:#b9d3fb}
.is-clickable:focus-visible{outline:3px solid rgba(23,105,232,.45);outline-offset:2px}
body.kpi-drawer-open{overflow:hidden}
.kpi-drawer-backdrop{position:fixed;inset:0;z-index:1500;background:rgba(15,23,42,.38);opacity:0;transition:opacity .2s ease}
.kpi-drawer-backdrop.is-open{opacity:1}
.kpi-drawer{position:fixed;top:0;right:0;bottom:0;z-index:1510;width:min(460px,100vw);display:flex;flex-direction:column;background:#fff;border-left:1px solid var(--border);box-shadow:-18px 0 44px rgba(15,23,42,.16);transform:translateX(100%);transition:transform .22s ease;outline:none}
.kpi-drawer.is-open{transform:translateX(0)}
.kpi-drawer[hidden],.kpi-drawer-backdrop[hidden]{display:none}
.kpi-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 18px 8px}
.kpi-drawer-head h2{margin:2px 0 0;font-size:20px;letter-spacing:-.02em}
.kpi-drawer-close{width:36px;height:36px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#44546a;font-size:22px;line-height:1;cursor:pointer}
.kpi-drawer-close:hover{background:var(--blue-soft)}.kpi-drawer-close:focus-visible,.kpi-drawer-chip:focus-visible,.kpi-drawer-tab:focus-visible,.kpi-drawer-row:focus-visible,.kpi-drawer-link:focus-visible,.kpi-drawer-search input:focus-visible{outline:3px solid rgba(23,105,232,.45);outline-offset:1px}
.kpi-drawer-total{display:flex;align-items:baseline;gap:8px;padding:4px 18px 12px}
.kpi-drawer-total strong{font-size:34px;line-height:1;color:var(--blue);letter-spacing:-.04em}
.kpi-drawer-total span{color:var(--muted);font-size:12px;font-weight:700}
.kpi-drawer-tabs,.kpi-drawer-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 10px}
.kpi-drawer-tabs[hidden]{display:none}
.kpi-drawer-tab,.kpi-drawer-chip{border:1px solid var(--border);border-radius:999px;background:#fff;color:#44546a;font:inherit;font-size:12px;font-weight:700;padding:6px 12px;cursor:pointer}
.kpi-drawer-tab.is-active,.kpi-drawer-chip.is-active{background:var(--blue);border-color:var(--blue);color:#fff}
.kpi-drawer-search{display:block;padding:0 18px 8px}
.kpi-drawer-search input{width:100%;height:40px;border:1px solid var(--border);border-radius:11px;padding:0 12px;font:inherit;font-size:13px}
.kpi-drawer-meta{margin:0;padding:0 18px 8px;color:var(--muted);font-size:11px}
.kpi-drawer-body{flex:1;min-height:0;overflow-y:auto;padding:0 18px 24px;-webkit-overflow-scrolling:touch}
.kpi-drawer-empty{margin:24px 0;text-align:center;color:var(--muted);font-size:13px}
.kpi-drawer-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kpi-drawer-item{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}
.kpi-drawer-row{width:100%;display:flex;align-items:center;gap:10px;padding:11px 12px;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
.kpi-drawer-row:hover{background:var(--surface-soft)}
.kpi-drawer-name{flex:1;min-width:0}.kpi-drawer-name strong{display:block;font-size:13px;overflow-wrap:anywhere}.kpi-drawer-name small{display:block;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.kpi-drawer-qty{font-weight:800;color:var(--blue);font-size:15px}
.kpi-drawer-chevron{color:var(--muted-2);font-size:18px;line-height:1;transition:transform .15s ease}
.kpi-drawer-row[aria-expanded="true"] .kpi-drawer-chevron{transform:rotate(90deg)}
.kpi-drawer-detail{padding:0 12px 12px;display:grid;gap:8px}.kpi-drawer-detail[hidden]{display:none}
.kpi-drawer-entry{border-top:1px dashed var(--border);padding-top:8px}
.kpi-drawer-entry-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px}
.kpi-drawer-entry-qty{font-weight:800;color:var(--blue)}
.kpi-drawer-line{margin:3px 0 0;color:var(--muted);font-size:11.5px;overflow-wrap:anywhere}.kpi-drawer-line.is-muted{font-style:italic}
.kpi-drawer-link{color:var(--blue);font-weight:800;text-decoration:underline}
.kpi-drawer-units{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:3px}.kpi-drawer-units li{background:var(--surface-soft);border-radius:7px;padding:4px 8px;font-size:11px;overflow-wrap:anywhere}
.kpi-drawer-badge{border-radius:999px;padding:2px 9px;font-size:10px;font-weight:800;background:var(--amber-soft);color:#a8620a}
.kpi-drawer-badge.is-received{background:var(--green-soft);color:#14804d}.kpi-drawer-badge.is-cancelled{background:var(--red-soft);color:#b42323}
@media(max-width:600px){.kpi-drawer{width:100vw;border-left:0}.kpi-drawer-head{padding-top:14px}}
@media(prefers-reduced-motion:reduce){.kpi-drawer,.kpi-drawer-backdrop,.is-clickable,.kpi-drawer-chevron{transition:none}}

/* Patch 1R — Stock Monitoring: fully responsive (phone 360 / tablet 768 / desktop). Presentation only.
   Filter DOM order: Date, [Branch], Brand, Export, Search, Apply, Reset. */
.stock-monitoring-filter{min-width:0;max-width:100%}
.stock-monitoring-filter>*{min-width:0}
.stock-monitoring-filter input[type="date"],
.stock-monitoring-filter select,
.stock-monitoring-filter .search-box,
.stock-monitoring-filter .btn,
.stock-monitoring-filter .filter-reset{height:44px;min-height:44px}
.stock-monitoring-filter .search-box input{height:42px;font-size:13px}
.stock-monitoring-filter input[type="date"],
.stock-monitoring-filter select{font-size:13px}
.stock-monitoring-filter .btn{font-size:12px;white-space:nowrap}
.stock-monitoring-filter .filter-reset{width:auto;padding:0 14px}
.stock-monitoring-brand-toggle{min-height:44px}
.stock-monitoring-table-wrap:focus-visible{outline:3px solid rgba(23,105,232,.4);outline-offset:-3px}

/* Sticky first column (Model) inside the scrolling table container */
.stock-monitoring-table thead th:first-child,
.stock-monitoring-table tbody td:first-child,
.stock-monitoring-table tbody th:first-child,
.stock-monitoring-table tfoot th:first-child{position:sticky;left:0;z-index:2;box-shadow:inset -1px 0 0 #dfe6ef}
.stock-monitoring-table thead th:first-child{z-index:3}
.stock-monitoring-table tbody tr:hover td:first-child{background:#fbfdff}

/* Desktop (>=1181): one flexible row — the Search column takes the free space, nothing can overflow */
@media (min-width:1181px){
  .stock-monitoring-filter.is-owner{grid-template-columns:140px 150px 150px auto minmax(200px,1fr) auto auto;justify-content:stretch}
  .stock-monitoring-filter.is-branch{grid-template-columns:140px 160px auto minmax(200px,1fr) auto auto;justify-content:stretch}
}

/* Tablet (601-1180): 3-column grid, KPI cards 2 per row */
@media (max-width:1180px){
  .stock-monitoring-filter.is-owner,.stock-monitoring-filter.is-branch{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}
  .stock-monitoring-filter .stock-monitoring-search-field{grid-column:span 2}
  .stock-monitoring-filter.is-owner .stock-monitoring-apply{grid-column:span 2}
  .stock-monitoring-filter.is-branch .stock-monitoring-search-field{grid-column:1/-1}
  .stock-monitoring-filter.is-branch .stock-monitoring-apply{grid-column:span 2}
  .stock-monitoring-filter .stock-monitoring-reset{width:100%}
  .stock-monitoring-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  .stock-monitoring-filter input[type="date"],.stock-monitoring-filter select,.stock-monitoring-filter .search-box input{font-size:16px}
  .stock-monitoring-table{min-width:0}
  .stock-monitoring-table thead th{padding:11px 10px;font-size:11px}
  .stock-monitoring-table tbody td{padding:10px;font-size:12.5px;line-height:1.35}
  .stock-monitoring-total-row td{padding:10px!important;font-size:11.5px!important}
  .stock-monitoring-table tfoot th{padding:11px 10px;font-size:12px}
  .stock-monitoring-table thead th:first-child,.stock-monitoring-model-cell{min-width:180px;max-width:240px}
  .stock-monitoring-table .num{min-width:68px}
  .stock-monitoring-brand-toggle{font-size:12px;padding:8px 12px}
}

/* Phone (<=600): single-column KPI cards, 2-column filter grid, narrow sticky model column */
@media (max-width:600px){
  .stock-monitoring-kpis{grid-template-columns:1fr;gap:10px}
  .stock-monitoring-kpi{padding:14px;gap:12px}
  .stock-monitoring-kpi-icon{width:36px;height:36px}
  .stock-monitoring-kpi>div>span{font-size:12px}
  .stock-monitoring-kpi>div>strong{font-size:26px}
  .stock-monitoring-kpi>div>small{font-size:11.5px}
  .stock-monitoring-filter.is-owner,.stock-monitoring-filter.is-branch{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
  .stock-monitoring-filter .stock-monitoring-search-field,
  .stock-monitoring-filter.is-owner .stock-monitoring-search-field,
  .stock-monitoring-filter.is-branch .stock-monitoring-search-field{grid-column:1/-1}
  .stock-monitoring-filter.is-owner .stock-monitoring-apply,.stock-monitoring-filter.is-branch .stock-monitoring-apply{grid-column:auto}
  .stock-monitoring-filter.is-branch .stock-monitoring-export{grid-column:1/-1}
  .stock-monitoring-filter .stock-monitoring-reset{height:44px}
  .stock-monitoring-heading .stock-monitoring-scope{max-width:100%}
  .stock-monitoring-table thead th:first-child,.stock-monitoring-model-cell{min-width:136px;max-width:148px;width:140px}
  .stock-monitoring-table .num{min-width:62px}
  .stock-monitoring-table thead th,.stock-monitoring-table tbody td,.stock-monitoring-table tfoot th{padding-left:8px;padding-right:8px}
}

/* Patch 3 — Units vs Accessories sold (Dashboard, Sales Records, Stock Monitoring). Responsive: 1 col phone / 2 tablet. */
.stock-monitoring-kpi>div>small.stock-monitoring-kpi-split{margin-top:4px;color:#5d6b7e}
.stock-monitoring-kpi>div>small.stock-monitoring-kpi-split b{color:#cb7c08;font-weight:800}
.sales-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.sales-branch-card>small.sales-branch-split{margin-top:2px;padding-top:0;color:#475467;font-weight:650}
.sales-branch-card>small.sales-branch-split b{color:#111827}
.sales-records-table .sales-cell-sub{white-space:nowrap}
.kpi-grid.owner.owner-dash-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (min-width:1261px) and (max-width:1560px){
  .sales-filter-card{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sales-search-field{grid-column:span 2}
  .sales-filter-apply,.sales-filter-reset{width:100%}
}
@media (min-width:1561px){
  .sales-filter-card{grid-template-columns:minmax(240px,1.35fr) minmax(145px,.72fr) minmax(145px,.72fr) minmax(145px,.72fr) 145px 145px auto auto}
}
@media (max-width:1260px){
  .sales-filter-card{gap:12px}
  .sales-filter-apply{grid-column:span 1}
  .sales-filter-reset{grid-column:1/-1}
  .sales-filter-apply,.sales-filter-reset{min-height:44px;height:44px}
}
@media (max-width:1180px){
  .kpi-grid.owner.owner-dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:980px){
  .sales-kpi-grid,.sales-branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .kpi-grid.owner.owner-dash-kpis,.sales-kpi-grid,.sales-branch-grid{grid-template-columns:1fr}
  .sales-filter-card{grid-template-columns:1fr}
  .sales-search-field{grid-column:auto}
  .sales-filter-reset{grid-column:auto}
}
.sales-filter-apply,.sales-filter-reset{height:44px;min-height:44px}
.sales-records-table .btn-sm,.sales-pagination .btn-sm,.sales-detail-header .btn-sm{min-height:44px}
.quick-search input{min-height:44px}
.sales-records-heading .btn,body.page-dashboard .page-heading .btn{min-height:44px}
/* Patch 3: the mobile rule that set the table container to overflow:visible clipped the columns inside the card; scroll inside it instead */
.sales-records-table-wrap{overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}

/* Patch 4 — Dashboard KPI drawer additions: Sales Records link, 44px tap targets inside the drawer */
.kpi-drawer-viewlink{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0 18px 10px;border:1px solid #9fc5ff;border-radius:10px;background:#fff;color:var(--blue);font-size:13px;font-weight:800;text-decoration:none}
.kpi-drawer-viewlink[hidden]{display:none}
.kpi-drawer-viewlink:hover{background:var(--blue-soft)}
.kpi-drawer-viewlink:focus-visible{outline:3px solid rgba(23,105,232,.45);outline-offset:1px}
.kpi-drawer-close{width:44px;height:44px}
.kpi-drawer-tab,.kpi-drawer-chip{min-height:44px;padding:0 16px}
.kpi-drawer-search input{height:44px}
.kpi-drawer-row{min-height:48px}
.kpi-drawer-link{display:inline-block;padding:11px 0}
.kpi-drawer-chips,.kpi-drawer-tabs{padding-bottom:8px}
.kpi-drawer-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 2px}

/* Patch 5 — My Account (own display name). Responsive: single column, 44px controls, no horizontal scroll. */
.account-card{max-width:640px;padding:20px;margin-bottom:16px}
.account-form{display:grid;gap:14px}
.account-form .field{margin:0;min-width:0}
.account-form .field>span{display:block;margin-bottom:6px;font-size:12px;font-weight:800;color:#44546a}
.account-form .field>span b{color:#dc4c4c}
.account-form input[type="text"]{width:100%;min-height:44px;height:44px;padding:0 12px;font-size:16px;border:1px solid #dce3ed;border-radius:10px;background:#fff}
.account-form input[type="text"]:focus{border-color:#8ab8ff;box-shadow:0 0 0 3px #eef5ff;outline:0}
.account-hint{display:block;margin-top:6px;color:var(--muted);font-size:11.5px}
.account-save{min-height:44px;width:max-content;min-width:140px}
.account-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 0;padding-top:16px;border-top:1px solid var(--border)}
.account-meta>div{min-width:0}
.account-meta dt{font-size:10px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#667085;margin:0 0 4px}
.account-meta dd{margin:0;font-size:13px;font-weight:650;color:#26364b;overflow-wrap:anywhere}
@media (max-width:700px){
  .account-card{padding:16px}
  .account-meta{grid-template-columns:1fr}
  .account-save{width:100%}
}

/* Patch 6a — shared "saving" status card + connection banner (assets/js/safe-submit.js).
   Text >= 16px, 44px+ tap targets, high contrast, no horizontal overflow at 360px. */
/* Patch 6b: slim, non-blocking banner with three states: weak (amber), offline (red), back online (green). */
.net-banner{position:sticky;top:0;z-index:45;display:flex;align-items:center;gap:10px;padding:8px 16px;background:#fff0c2;color:#4d3500;border-bottom:2px solid #e0b43a;font-size:14px;font-weight:700;line-height:1.3}
.net-banner[hidden]{display:none}
.net-banner-dot{flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:#d98a00;box-shadow:0 0 0 4px rgba(217,138,0,.22)}
.net-banner.is-offline{background:#fde4e1;color:#6b1209;border-bottom-color:#e0786d}
.net-banner.is-offline .net-banner-dot{background:#c4281c;box-shadow:0 0 0 4px rgba(196,40,28,.2)}
.net-banner.is-back{background:#def5e5;color:#0f4a24;border-bottom-color:#5cb87a}
.net-banner.is-back .net-banner-dot{background:#1f9d4c;box-shadow:0 0 0 4px rgba(31,157,76,.2)}
.net-banner-text{min-width:0;overflow-wrap:anywhere}
body.net-weak .topbar{top:var(--net-banner-h,0px)}
body.net-weak .impersonation-banner{top:var(--net-banner-h,0px)}
body.net-weak.is-impersonating .topbar{top:calc(var(--net-banner-h,0px) + 46px)}
@media(max-width:600px){body.net-weak.is-impersonating .topbar{top:calc(var(--net-banner-h,0px) + 50px)}}

.save-status{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;margin:14px 0;padding:14px 16px;border:2px solid;border-radius:12px;font-size:16px;line-height:1.45;max-width:100%}
.save-status[hidden]{display:none}
.save-status:focus{outline:3px solid rgba(23,105,232,.45);outline-offset:2px}
.save-status-icon{flex:0 0 auto;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:18px;font-weight:900}
.save-status-body{flex:1 1 180px;min-width:0}
.save-status-title{display:block;font-size:17px}
.save-status-detail{margin:4px 0 0;overflow-wrap:anywhere}
.save-status-actions{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:10px}
.save-status.is-saving{background:#eef5ff;border-color:#8ab8ff;color:#123c78}
.save-status.is-saving .save-status-icon{background:#fff;color:#1769e8}
.save-status.is-success{background:#e8f8ee;border-color:#2e9e5f;color:#0b5d2e}
.save-status.is-success .save-status-icon{background:#1b7f46;color:#fff}
.save-status.is-error{background:#fdecec;border-color:#d64545;color:#8a1c1c}
.save-status.is-error .save-status-icon{background:#b42323;color:#fff}
.save-status-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;padding:0 20px;border:2px solid currentColor;border-radius:10px;background:#fff;color:inherit;font:inherit;font-size:16px;font-weight:800;line-height:1.2;text-decoration:none;cursor:pointer}
.save-status-btn:focus-visible{outline:3px solid rgba(23,105,232,.55);outline-offset:2px}
.save-status.is-success .save-status-btn.is-primary{background:#1b7f46;border-color:#1b7f46;color:#fff}
.save-status.is-error .save-status-btn.is-primary{background:#b42323;border-color:#b42323;color:#fff}
.save-status-btn.is-big{flex:1 1 100%;min-height:56px;font-size:18px}
.save-spinner{display:inline-block;width:20px;height:20px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:save-spin .8s linear infinite}
.save-spinner.is-inline{width:16px;height:16px;border-width:2px;vertical-align:-3px}
@keyframes save-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.save-spinner{animation-duration:2.4s}}
@media(max-width:480px){.save-status-actions .save-status-btn{flex:1 1 100%}}

/* Patch 2C — simpler Stock Monitoring branch table: one Transfer column, one Sold column, optional Other,
   colour cues (zeros dimmed), column hints, expand/collapse all, English in-transit box. Presentation only. */
.stock-monitoring-transit{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;font-size:15px;line-height:1.45}
.stock-monitoring-transit>div{flex:1 1 280px;min-width:0}
.stock-monitoring-transit strong{display:block;font-size:16px}
.stock-monitoring-transit .btn{min-height:44px;white-space:normal;text-align:center}
.stock-monitoring-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 14px;border-bottom:1px solid #edf1f5;background:#fbfcfe}
.stock-monitoring-hint{flex:1 1 260px;min-width:0;color:#5b6b80;font-size:14px;line-height:1.4}
.stock-monitoring-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px}
.stock-monitoring-toolbar-actions .btn{min-height:44px;padding:0 16px;font-size:14px}
@media(max-width:480px){.stock-monitoring-toolbar-actions{width:100%}.stock-monitoring-toolbar-actions .btn{flex:1 1 0}}

/* readable sizes: 14px+ everywhere in the branch table */
.stock-monitoring-branch-table thead th,
.stock-monitoring-branch-table tbody td,
.stock-monitoring-branch-table tfoot td{font-size:14px;line-height:1.35}
.stock-monitoring-branch-table .stock-monitoring-brand-toggle{font-size:14px}
.stock-monitoring-branch-table .stock-monitoring-total-row td{font-size:14px!important}
.stock-monitoring-branch-table .num{min-width:72px}
.stock-monitoring-branch-table td.stock-monitoring-sold-split{min-width:116px}
.stock-monitoring-branch-table thead th.stock-monitoring-model-head{text-align:left}

/* column hints (hover, keyboard focus, or tap) */
.stock-monitoring-th{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;border:0;border-bottom:1px dotted #8aa0bd;background:transparent;color:inherit;font:inherit;font-weight:800;cursor:help;white-space:nowrap}
.stock-monitoring-th::after{content:attr(data-tip);display:none;position:absolute;top:calc(100% - 4px);right:0;z-index:12;width:max-content;max-width:210px;padding:8px 10px;border-radius:8px;background:#16315c;color:#fff;font-size:14px;font-weight:600;line-height:1.35;white-space:normal;text-align:left;box-shadow:0 8px 22px rgba(15,32,66,.28)}
.stock-monitoring-th:hover::after,.stock-monitoring-th:focus-visible::after,.stock-monitoring-th.is-tip-open::after{display:block}
.stock-monitoring-th:focus-visible{outline:3px solid rgba(23,105,232,.45);outline-offset:2px;border-radius:4px}
.stock-monitoring-model-head .stock-monitoring-th::after,.stock-monitoring-branch-table thead th:nth-child(2) .stock-monitoring-th::after,.stock-monitoring-branch-table thead th:nth-child(3) .stock-monitoring-th::after{left:0;right:auto}

/* colour cues: zeros fade, real movement is bold and coloured */
.stock-monitoring-branch-table td.is-zero{color:#b3bdca;font-weight:500}
.stock-monitoring-branch-table td.is-nz{color:#26364b;font-weight:800}
.stock-monitoring-branch-table td.tone-in,.stock-monitoring-branch-table .tone-in{color:#157a43}
.stock-monitoring-branch-table td.tone-out,.stock-monitoring-branch-table .tone-out{color:#c53030}
.stock-monitoring-branch-table td.tone-sold{color:#a85a05}
.stock-monitoring-branch-table td i{font-style:normal;color:#9aa6b6;font-weight:500}
.stock-monitoring-branch-table td .tone-in,.stock-monitoring-branch-table td .tone-out{font-weight:800}
.stock-monitoring-branch-table td.stock-monitoring-sold-split span{display:block;white-space:nowrap}
.stock-monitoring-branch-table td.stock-monitoring-ending-cell{font-size:15px;font-weight:900;color:#123c78;background:#f1f6ff}
.stock-monitoring-branch-table td.stock-monitoring-ending-cell.is-zero{color:#9fb0c8;font-weight:700}
/* group + grand total rows keep their blue look, but zeros still fade and tones still show */
.stock-monitoring-branch-table .stock-monitoring-total-row td.is-zero,.stock-monitoring-branch-table .stock-monitoring-grand-row td.is-zero{color:#a6b5cb!important;font-weight:600!important}
.stock-monitoring-branch-table .stock-monitoring-total-row td.tone-in,.stock-monitoring-branch-table .stock-monitoring-grand-row td.tone-in{color:#127a41!important}
.stock-monitoring-branch-table .stock-monitoring-total-row td.tone-out,.stock-monitoring-branch-table .stock-monitoring-grand-row td.tone-out{color:#c53030!important}
.stock-monitoring-branch-table .stock-monitoring-total-row td .tone-in,.stock-monitoring-branch-table .stock-monitoring-grand-row td .tone-in{color:#127a41!important}
.stock-monitoring-branch-table .stock-monitoring-total-row td .tone-out,.stock-monitoring-branch-table .stock-monitoring-grand-row td .tone-out{color:#c53030!important}
.stock-monitoring-branch-table .stock-monitoring-total-row td.tone-sold,.stock-monitoring-branch-table .stock-monitoring-grand-row td.tone-sold{color:#a85a05!important}
.stock-monitoring-branch-table .stock-monitoring-total-row td.stock-monitoring-ending-cell{background:#dbe9ff!important;color:#0f3a7a!important;font-size:15px!important;font-weight:900!important}
.stock-monitoring-branch-table .stock-monitoring-total-row td.stock-monitoring-ending-cell.is-zero{color:#8ea3c2!important}
.stock-monitoring-grand-row td{padding:10px 12px;background:#e4efff;color:#16468d;font-weight:900;border-top:2px solid #c8daf4;border-right:1px solid #d2e0f2}
.stock-monitoring-grand-row td:last-child{border-right:0}
.stock-monitoring-branch-table .stock-monitoring-grand-row td.stock-monitoring-ending-cell{background:#cfe1ff;color:#0f3a7a;font-size:16px}
.stock-monitoring-table tfoot td:first-child{position:sticky;left:0;z-index:2;box-shadow:inset -1px 0 0 #d2e0f2}

@media(max-width:820px){
  .stock-monitoring-branch-table thead th,.stock-monitoring-branch-table tbody td,.stock-monitoring-branch-table tfoot td{font-size:14px}
  .stock-monitoring-branch-table .stock-monitoring-total-row td{font-size:14px!important}
}
.stock-monitoring-branch-table .stock-monitoring-brand-row th{font-size:14px}
.stock-monitoring-th{min-width:44px;justify-content:flex-end}
.stock-monitoring-model-head .stock-monitoring-th{justify-content:flex-start}

/* Patch 7 — Stock Monitoring tabs (Phones & Tablets | Accessories), 14px+ text and 44px tap targets on the page.
   Presentation only. Rules: see DESIGN.md "App rules (Patch 7)". */
.stock-monitoring-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.stock-monitoring-tab{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:1px solid #cfdcee;border-radius:10px;background:#fff;color:#33496b;font-size:16px;font-weight:800;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.stock-monitoring-tab:hover{background:#f1f7ff;border-color:#9fc5ff;color:#1769e8}
.stock-monitoring-tab:focus-visible{outline:3px solid rgba(23,105,232,.45);outline-offset:2px}
.stock-monitoring-tab.is-active{background:#1769e8;border-color:#1769e8;color:#fff;box-shadow:0 4px 12px rgba(23,105,232,.22)}
@media(max-width:560px){.stock-monitoring-tab{flex:1 1 0;min-width:0;padding:0 10px;font-size:15px}}

/* filter bar: readable text and 44px controls */
.stock-monitoring-filter>label>span{font-size:14px}
.stock-monitoring-filter input[type="date"],
.stock-monitoring-filter select{height:44px;font-size:14px}
.stock-monitoring-filter .search-box{height:44px}
.stock-monitoring-filter .search-box input{height:42px;font-size:14px}
.stock-monitoring-filter .btn{min-height:44px;font-size:14px}
.stock-monitoring-filter .filter-reset{height:44px;font-size:14px}
@media (min-width:1181px){
  .stock-monitoring-filter.is-branch{grid-template-columns:160px 190px minmax(320px,520px) 92px 72px}
  .stock-monitoring-filter.is-owner{grid-template-columns:160px 190px 190px minmax(300px,460px) 92px 72px}
}
.stock-monitoring-heading p{font-size:14px}
.stock-monitoring-export{min-height:44px;font-size:14px}

/* owner compare matrix: same 14px text and the same dimmed-zero / bold-value look as the branch table */
.stock-monitoring-owner-table thead th,
.stock-monitoring-owner-table tbody td,
.stock-monitoring-owner-table tfoot th{font-size:14px;line-height:1.35}
.stock-monitoring-owner-table .stock-monitoring-brand-toggle{min-height:44px;font-size:14px}
.stock-monitoring-owner-table .stock-monitoring-total-row td{font-size:14px!important}
.stock-monitoring-owner-table .num{min-width:72px}
.stock-monitoring-owner-table td.is-zero{color:#b3bdca;font-weight:500}
.stock-monitoring-owner-table td.is-nz{color:#26364b;font-weight:800}
.stock-monitoring-owner-table .stock-monitoring-total-row td.is-zero{color:#a6b5cb!important;font-weight:600!important}
.stock-monitoring-branch-table .stock-monitoring-brand-toggle{min-height:44px}

/* KPI cards: 14px text */
.stock-monitoring-kpi>div>span{font-size:14px}
.stock-monitoring-kpi>div>small{font-size:14px}
@media(max-width:560px){
  .stock-monitoring-kpis{grid-template-columns:1fr}
  .stock-monitoring-kpi>div>small{font-size:14px}
  .stock-monitoring-filter .stock-monitoring-reset{height:44px}
}

/* Patch 7 — filter bar: fields on the first row(s), Apply / Reset / Export always on their own row (no overflow at any width) */
@media (min-width:1181px){
  .stock-monitoring-filter.is-branch{grid-template-columns:170px 200px minmax(240px,1fr);justify-content:stretch}
  .stock-monitoring-filter.is-owner{grid-template-columns:170px 200px 200px minmax(240px,1fr);justify-content:stretch}
}
.stock-monitoring-filter .stock-monitoring-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.stock-monitoring-filter .stock-monitoring-actions .btn{width:auto;min-width:112px;min-height:44px;padding-inline:18px}
.stock-monitoring-filter .stock-monitoring-actions .stock-monitoring-export{min-width:0}
.stock-monitoring-filter .stock-monitoring-actions .filter-reset{width:auto;min-width:72px;height:44px;padding:0 14px;border-radius:8px}
@media(max-width:560px){
  .stock-monitoring-filter .stock-monitoring-actions .btn,
  .stock-monitoring-filter .stock-monitoring-actions .filter-reset{flex:1 1 100%;width:100%}
}
.stock-monitoring-brand-logo{width:28px;height:28px;font-size:14px}
.stock-monitoring-brand-logo img{max-width:20px;max-height:20px}

/* Patch 8 — Set Prices at checkout (assets/js/pos.js, pages/pos.php).
   Phones: full-height bottom sheet. 701px and up: centered panel. Text >= 14px, tap targets >= 44px. */
.price-sheet[hidden]{display:none}
.price-sheet{position:fixed;inset:0;z-index:90;display:flex;align-items:flex-end;justify-content:center}
.price-sheet-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.45)}
.price-sheet-panel{position:relative;display:flex;flex-direction:column;width:100%;height:calc(100vh - 12px);height:calc(100dvh - 12px);background:#fff;border-radius:16px 16px 0 0;box-shadow:0 -12px 40px rgba(16,24,40,.25);overflow:hidden;animation:price-sheet-up .22s ease-out}
@keyframes price-sheet-up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.price-sheet-panel{animation:none}}
.price-sheet-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 12px;border-bottom:1px solid var(--border)}
.price-sheet-head h2{margin:2px 0 2px;font-size:22px;line-height:1.2}
.price-sheet-head p{margin:0;font-size:14px;color:var(--muted)}
.price-sheet-close{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:12px;background:#f2f4f7;font-size:26px;line-height:1;cursor:pointer}
.price-sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 16px;display:grid;gap:12px;align-content:start}
.price-same-toggle{min-height:44px;width:100%;padding:0 14px;border:1px dashed #9cc0f5;border-radius:12px;background:var(--blue-soft);color:var(--blue);font-size:16px;font-weight:700;cursor:pointer}
.price-same-panel{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f8faff}
.price-same-panel[hidden]{display:none}
.price-same-field{display:grid;gap:6px}
.price-same-field>span:first-child{font-size:14px;font-weight:700;color:#344054}
.price-same-apply{min-height:48px;font-size:16px}
.price-rows{display:grid;gap:12px}
.price-row{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:14px;background:#fff}
.price-row.is-missing{border-color:#f1c7c7}
.price-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.price-row-name{min-width:0}
.price-row-name strong{display:block;font-size:15px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.price-row-name span{display:block;font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.price-row-qty{flex:0 0 auto;padding:4px 10px;border-radius:999px;background:#f2f4f7;font-size:14px;font-weight:700;color:#344054}
.price-mode{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cfd8e6;border-radius:12px;overflow:hidden;background:#f2f4f7}
.price-mode button{min-height:44px;border:0;background:transparent;font-size:14px;font-weight:700;color:#344054;cursor:pointer}
.price-mode button.is-active{background:var(--blue);color:#fff}
.price-input{display:grid;gap:6px}
.price-input-label{font-size:14px;font-weight:700;color:#344054}
.price-field{display:grid;gap:8px}
.price-input-box{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border:1px solid #cfd8e6;border-radius:10px;background:#fff}
.price-input-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #e3eeff}
.price-input-box b{flex:0 0 auto;font-size:16px;font-weight:600;line-height:1;color:#667085}
.price-input-box input{flex:1 1 auto;min-width:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;box-shadow:none;background:transparent;text-align:left;font-size:18px;font-weight:600;line-height:1.2;color:var(--text)}
.price-input-box input::placeholder{font-size:14px;font-weight:400;color:#98a2b3;opacity:1}
.price-input-box input.input-error{color:var(--red)}
.price-chip{justify-self:start;min-height:44px;padding:0 16px;border:1px solid #bfd8ff;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:15px;font-weight:700;cursor:pointer}
.price-chip[hidden]{display:none}
.price-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.price-line span{font-size:12px;color:var(--muted)}
.price-line strong{font-size:14px;font-weight:600;color:var(--text);white-space:nowrap;text-align:right}
.price-line strong.is-empty{font-weight:400;color:#98a2b3}
.price-line-detail{display:block;font-size:14px;color:var(--muted)}
.price-line-detail[hidden]{display:none}
.price-row-error{display:none;margin:0;font-size:14px;font-weight:700;color:#c0332b}
.price-row.is-missing:not(:focus-within) .price-row-error{display:block}
.price-sheet-foot{flex:0 0 auto;display:grid;gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#fbfcfe}
.price-grand{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.price-grand span{font-size:14px;font-weight:700;color:#344054}
.price-grand strong{font-size:22px;letter-spacing:-.3px;white-space:nowrap}
.price-confirm{min-height:48px;width:100%;font-size:16px;border-radius:12px}
.price-confirm:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.price-sheet button:focus-visible,.price-sheet input:focus-visible{outline:3px solid rgba(23,105,232,.55);outline-offset:2px}
.pos-cash-hint{margin:8px 0 0;padding:10px 12px;border-radius:10px;background:#fff3f3;border:1px solid #ffd4d4;color:#a53e3e;font-size:14px;font-weight:600}
.pos-cash-hint[hidden]{display:none}
@media(min-width:701px){
  .price-sheet{align-items:center}
  .price-sheet-panel{width:min(640px,calc(100% - 32px));height:auto;max-height:90vh;max-height:90dvh;border-radius:16px;box-shadow:0 28px 80px rgba(16,24,40,.25)}
  .price-sheet-head{padding:20px 24px 14px}
  .price-sheet-body{padding:16px 24px 20px}
  .price-sheet-foot{grid-template-columns:1fr minmax(200px,240px);align-items:center;gap:12px;padding:12px 24px 16px}
}
.price-sheet .eyebrow{font-size:14px;letter-spacing:.6px}

/* Patch 8B — checkout modal polish. Visual only. Scale: 16px padding, 12px gaps, 14px text.
   "Complete this transaction?" (before confirming) and the compact "Sale saved" state. */
.price-sheet .price-input-box input:focus-visible{outline:0} /* the box already shows the focus ring */
.pos-confirm-body{display:grid;gap:12px;padding:16px}
.pos-confirm-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0;font-size:14px;color:#667085}
.pos-confirm-row strong{min-width:0;color:#344054;font-weight:600;text-align:right;overflow-wrap:anywhere}
.pos-confirm-row.total{margin-top:0;padding-top:12px;border-top:1px dashed #dce2ea;font-size:14px;color:#111827}
.pos-confirm-row.total strong{flex:0 0 auto;font-size:18px;font-weight:700;color:#111827;white-space:nowrap;overflow-wrap:normal}
.pos-confirm-actions{padding:12px 16px max(16px,env(safe-area-inset-bottom));gap:12px}
.pos-confirm-actions .btn{min-height:44px;font-size:14px}
.pos-confirm-dialog .modal-header{padding:16px}
.pos-confirm-dialog .modal-subtitle{font-size:14px}
.pos-confirm-dialog .eyebrow{font-size:14px;letter-spacing:.6px}
.pos-confirm-dialog .icon-button{flex:0 0 auto;width:44px;height:44px;font-size:24px}
.pos-confirm-dialog.is-done>.modal-header,.pos-confirm-dialog.is-done>.pos-confirm-body,.pos-confirm-dialog.is-done>.pos-confirm-actions,.pos-confirm-dialog.is-done>.save-status{display:none}
.pos-done{display:grid;gap:16px;padding:16px}
.pos-done[hidden]{display:none}
.pos-done:focus{outline:0}
.pos-done-head{display:flex;align-items:center;gap:12px}
.pos-done-icon{flex:0 0 auto;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#1b7f46;color:#fff}
.pos-done-head h2{margin:0;font-size:18px;font-weight:700;line-height:1.2;color:#111827}
.pos-done-head p{margin:2px 0 0;font-size:14px;color:#667085;overflow-wrap:anywhere}
.pos-done-list{display:grid;gap:12px;margin:0;padding:12px 0 0;border-top:1px solid var(--border)}
.pos-done-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pos-done-list>div[hidden]{display:none}
.pos-done-list dt{margin:0;font-size:14px;color:#667085}
.pos-done-list dd{margin:0;font-size:14px;font-weight:600;color:#111827;text-align:right;white-space:nowrap}
.pos-done-list>div:first-child dd{font-size:18px;font-weight:700}
.pos-done-actions{display:grid}
.pos-done-actions .btn{width:100%;min-height:48px;font-size:16px;justify-content:center}

/* Stock Monitoring scale (2026-10-17) — one calm, readable scale for owner + branch views, both tabs.
   KPI number 24px · KPI label 13px muted · table text 14px · header 13px semibold · rows 44px · 12px gaps · nothing under 12px.
   Visual only. Last in the file on purpose: it replaces the older per-patch sizes above. */
.stock-monitoring-heading h1{font-size:24px;margin:4px 0 4px}
.stock-monitoring-heading p{font-size:14px;color:var(--muted)}
.stock-monitoring-kpis{gap:12px;margin:0 0 12px}
.stock-monitoring-kpi{gap:12px;padding:14px 16px;border-radius:14px;box-shadow:var(--shadow-sm)}
.stock-monitoring-kpi-icon{width:36px;height:36px;border-radius:10px}
.stock-monitoring-kpi>div>span{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:4px}
.stock-monitoring-kpi>div>strong{font-size:24px;font-weight:700;line-height:1.15}
.stock-monitoring-kpi>div>small{font-size:13px;line-height:1.35;color:var(--muted);margin-top:4px}
.stock-monitoring-kpi>div>small.stock-monitoring-kpi-split{margin-top:2px;color:var(--muted)}
.stock-monitoring-filter{gap:12px}
.stock-monitoring-filter>label>span{font-size:13px;font-weight:600;color:var(--muted);margin:0 0 4px}
.stock-monitoring-filter .stock-monitoring-actions{gap:12px}
.stock-monitoring-tabs{gap:12px;margin:0 0 12px}
.stock-monitoring-tab{min-height:44px;padding:0 20px;font-size:14px;font-weight:600;border-radius:10px}
@media(max-width:560px){.stock-monitoring-tab{font-size:14px}}
.stock-monitoring-toolbar{gap:8px 12px}
.stock-monitoring-hint{font-size:13px;color:var(--muted)}
.stock-monitoring-toolbar-actions .btn{font-size:14px}
.stock-monitoring-transit{font-size:14px}
.stock-monitoring-transit strong{font-size:14px}
/* table */
.stock-monitoring-table thead th,
.stock-monitoring-branch-table thead th,
.stock-monitoring-owner-table thead th{padding:6px 12px;font-size:13px;font-weight:600;line-height:1.3;color:#516075;text-align:right}
.stock-monitoring-table thead th:first-child,
.stock-monitoring-table thead th.stock-monitoring-model-head{text-align:left}
.stock-monitoring-th{font-size:13px;font-weight:600}
.stock-monitoring-th::after{font-size:13px}
.stock-monitoring-table tbody td,
.stock-monitoring-branch-table tbody td,
.stock-monitoring-owner-table tbody td,
.stock-monitoring-branch-table tfoot td,
.stock-monitoring-owner-table tfoot th{height:44px;padding:6px 12px;font-size:14px;line-height:1.35}
.stock-monitoring-table .num{text-align:right}
.stock-monitoring-table tbody td.is-nz,
.stock-monitoring-branch-table td.is-nz,
.stock-monitoring-owner-table td.is-nz{font-weight:600}
.stock-monitoring-brand-toggle,
.stock-monitoring-branch-table .stock-monitoring-brand-toggle,
.stock-monitoring-owner-table .stock-monitoring-brand-toggle{min-height:44px;padding:6px 12px;font-size:14px;font-weight:600}
.stock-monitoring-branch-table .stock-monitoring-brand-row th{font-size:14px}
.stock-monitoring-brand-logo{width:24px;height:24px;font-size:12px}
.stock-monitoring-brand-logo img{max-width:18px;max-height:18px}
.stock-monitoring-total-row td,
.stock-monitoring-branch-table .stock-monitoring-total-row td,
.stock-monitoring-owner-table .stock-monitoring-total-row td{height:44px;padding:6px 12px!important;font-size:14px!important;font-weight:600}
.stock-monitoring-branch-table td.stock-monitoring-ending-cell,
.stock-monitoring-branch-table .stock-monitoring-total-row td.stock-monitoring-ending-cell,
.stock-monitoring-branch-table .stock-monitoring-grand-row td.stock-monitoring-ending-cell{font-size:14px!important;font-weight:700!important}
.stock-monitoring-grand-row td,
.stock-monitoring-table tfoot th{height:44px;padding:6px 12px;font-size:14px;font-weight:700}
.stock-monitoring-overall-cell{font-weight:700}
.stock-monitoring-branch-table td.stock-monitoring-sold-split{min-width:96px}
.stock-monitoring-empty strong{font-size:16px}
.stock-monitoring-empty span{font-size:14px}
@media(max-width:820px){
  .stock-monitoring-table thead th,.stock-monitoring-branch-table thead th,.stock-monitoring-owner-table thead th{padding:6px 10px;font-size:13px}
  .stock-monitoring-table tbody td,.stock-monitoring-branch-table tbody td,.stock-monitoring-owner-table tbody td,.stock-monitoring-branch-table tfoot td,.stock-monitoring-owner-table tfoot th{padding:6px 10px;font-size:14px}
  .stock-monitoring-total-row td,.stock-monitoring-branch-table .stock-monitoring-total-row td,.stock-monitoring-owner-table .stock-monitoring-total-row td{padding:6px 10px!important;font-size:14px!important}
  .stock-monitoring-grand-row td,.stock-monitoring-table tfoot th{padding:6px 10px;font-size:14px}
}
@media(max-width:560px){
  .stock-monitoring-heading h1{font-size:22px}
  .stock-monitoring-kpis{gap:12px}
  .stock-monitoring-kpi{padding:12px 14px;gap:12px}
  .stock-monitoring-kpi-icon{width:32px;height:32px}
  .stock-monitoring-kpi>div>strong{font-size:22px}
  .stock-monitoring-kpi>div>span,.stock-monitoring-kpi>div>small{font-size:13px}
  .stock-monitoring-filter.is-owner,.stock-monitoring-filter.is-branch{gap:12px}
}
/* Shared drawer: no text under 12px (same drawer on Dashboard and Stock Monitoring) */
.kpi-drawer-name small,.kpi-drawer-badge,.kpi-drawer-meta,.kpi-drawer-units li{font-size:12px}
.kpi-drawer-line{font-size:13px}
.kpi-drawer-name strong,.kpi-drawer-empty,.kpi-drawer-search input{font-size:14px}
.kpi-drawer-tab,.kpi-drawer-chip{font-size:13px}
.kpi-drawer-total span{font-size:13px}
.kpi-drawer-entry-top{font-size:13px}

/* Patch 6c-1 — offline outbox for stock actions (assets/js/outbox.js): topbar badge, Outbox panel, pending hint,
   banner messages, "Saved on this device" card, owner Needs Action page + Dashboard card.
   Text >= 14px, tap targets >= 44px, no horizontal overflow at 360px. */
.save-status.is-queued{background:#eef5ff;border-color:#5b9bf0;color:#123c78}
.save-status.is-queued .save-status-icon{background:#1769e8;color:#fff}
.save-status.is-queued .save-status-btn.is-primary{background:#1769e8;border-color:#1769e8;color:#fff}

.net-banner.is-sending{background:#e8f1ff;color:#123c78;border-bottom-color:#8ab8ff}
.net-banner.is-sending .net-banner-dot{background:#1769e8;box-shadow:0 0 0 4px rgba(23,105,232,.2)}
.net-banner.is-sent{background:#def5e5;color:#0f4a24;border-bottom-color:#5cb87a}
.net-banner.is-sent .net-banner-dot{background:#1f9d4c;box-shadow:0 0 0 4px rgba(31,157,76,.2)}
.net-banner.is-needs,.net-banner.is-paused{background:#fff0c2;color:#4d3500;border-bottom-color:#e0b43a}
.net-banner-text{flex:1 1 auto}
.net-banner-action{flex:0 0 auto;margin:-8px 0 -8px auto;min-height:44px;min-width:44px;padding:0 14px;border:2px solid currentColor;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.net-banner-action[hidden]{display:none}
.net-banner-action:focus-visible{outline:3px solid rgba(23,105,232,.55);outline-offset:2px}

.outbox-badge{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid #8ab8ff;border-radius:10px;background:#eef5ff;color:#123c78;font:inherit;font-size:14px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer}
.outbox-badge[hidden]{display:none}
.outbox-badge:hover{background:#dfeeff}
.outbox-badge:focus-visible{outline:3px solid rgba(23,105,232,.55);outline-offset:2px}
.outbox-badge.is-needs{background:#fff0c2;border-color:#e0b43a;color:#4d3500}
.outbox-badge.is-paused{background:#fde4e1;border-color:#e0786d;color:#6b1209}
.outbox-badge-alert{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#b42323;color:#fff;font-size:14px;font-weight:800}
.outbox-badge-alert[hidden]{display:none}
@media(max-width:520px){.outbox-badge{padding:0 9px}}

.outbox-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 14px;padding:10px 14px;border:1px solid #8ab8ff;border-radius:12px;background:#eef5ff;color:#123c78;font-size:14px;font-weight:700;line-height:1.4}
.outbox-hint[hidden]{display:none}
.outbox-hint-text{flex:1 1 220px;min-width:0}
.outbox-hint-link{min-height:44px;padding:0 14px;border:2px solid currentColor;border-radius:10px;background:#fff;color:inherit;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.outbox-hint-link:focus-visible{outline:3px solid rgba(23,105,232,.55);outline-offset:2px}

.outbox-panel{position:fixed;inset:0;z-index:200;display:flex;align-items:flex-end;justify-content:center}
.outbox-panel[hidden]{display:none}
.outbox-panel.is-confirm{z-index:210;align-items:center}
.outbox-backdrop{position:absolute;inset:0;border:0;padding:0;background:rgba(16,24,40,.45);cursor:pointer}
.outbox-sheet{position:relative;display:flex;flex-direction:column;gap:12px;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;background:#fff;color:#1d2939;box-shadow:0 -10px 40px rgba(16,24,40,.25);font-size:14px;line-height:1.45}
.outbox-sheet.is-small{border-radius:16px;max-width:440px;margin:16px;width:calc(100% - 32px)}
.outbox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.outbox-title-box{min-width:0}
.outbox-title{margin:0;font-size:20px;line-height:1.25}
.outbox-sub{margin:2px 0 0;color:#5b6b80;font-size:14px}
.outbox-close{flex:0 0 auto;min-height:44px;min-width:44px;padding:0 14px;border:1px solid #cfdcee;border-radius:10px;background:#fff;color:#33496b;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.outbox-status{margin:0;padding:10px 12px;border-radius:10px;background:#eef5ff;color:#123c78;font-size:14px;font-weight:700}
.outbox-status[hidden]{display:none}
.outbox-actions{display:flex;gap:10px}
.outbox-send{flex:1 1 auto;min-height:48px;padding:0 18px;border:0;border-radius:10px;background:#1769e8;color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.outbox-send[hidden]{display:none}
.outbox-send:disabled{opacity:.6;cursor:default}
.outbox-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.outbox-empty{margin:0;padding:18px 12px;border:1px dashed #cfdcee;border-radius:12px;color:#5b6b80;text-align:center;font-size:14px}
.outbox-empty[hidden]{display:none}
.outbox-note{margin:0;color:#5b6b80;font-size:14px}
.outbox-item{padding:12px 14px;border:1px solid #d9e2ef;border-radius:12px;background:#fbfcfe}
.outbox-item.is-needs_action{border-color:#e0b43a;background:#fffaf0}
.outbox-item.is-sent{border-color:#5cb87a;background:#f1fbf4}
.outbox-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.outbox-item-type{font-size:15px}
.outbox-chip{flex:0 0 auto;padding:4px 10px;border-radius:999px;background:#e6edf7;color:#33496b;font-size:14px;font-weight:800}
.outbox-chip.is-sending{background:#dbe9ff;color:#123c78}
.outbox-chip.is-sent{background:#d3f0dc;color:#0b5d2e}
.outbox-chip.is-needs_action{background:#fde7b0;color:#4d3500}
.outbox-item p{margin:4px 0 0;overflow-wrap:anywhere}
.outbox-item-summary{font-weight:700}
.outbox-item-time,.outbox-item-note{color:#5b6b80}
.outbox-item-reason{color:#8a1c1c}
.outbox-item-confirm{font-weight:700}
.outbox-item-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.outbox-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 16px;border:2px solid #9fb4d3;border-radius:10px;background:#fff;color:#1d2939;font:inherit;font-size:14px;font-weight:800;text-decoration:none;cursor:pointer}
.outbox-btn.is-primary{border-color:#1769e8;background:#1769e8;color:#fff}
.outbox-btn.is-danger{border-color:#b42323;background:#b42323;color:#fff}
.outbox-btn:focus-visible,.outbox-send:focus-visible,.outbox-close:focus-visible{outline:3px solid rgba(23,105,232,.55);outline-offset:2px}
.outbox-lines{margin:6px 0 0;padding-left:18px}
.outbox-lines li{margin:2px 0;overflow-wrap:anywhere}
.outbox-confirm-text{margin:0}
@media(max-width:480px){.outbox-item-actions .outbox-btn{flex:1 1 100%}}
@media(min-width:768px){.outbox-panel{align-items:center}.outbox-sheet{border-radius:18px;max-height:86vh}}

.needs-action-card{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:14px 16px;border:1px solid #e0b43a;border-radius:14px;background:#fff7dc;color:#4d3500;text-decoration:none}
.needs-action-card:hover{background:#fff0c2}
.needs-action-card:focus-visible{outline:3px solid rgba(23,105,232,.55);outline-offset:2px}
.needs-action-card-icon{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e0b43a;color:#fff}
.needs-action-card-icon .icon{width:22px}
.needs-action-card-copy{flex:1 1 auto;min-width:0}
.needs-action-card-copy strong{display:block;font-size:16px}
.needs-action-card-copy small{display:block;font-size:14px}
.needs-action-card-go{flex:0 0 auto}
.needs-action-card-go .icon{width:18px}
.needs-action-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:12px}
.needs-action-item{display:flex;flex-direction:column;gap:8px;padding:16px;font-size:14px;line-height:1.45}
.needs-action-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.needs-action-type{display:block;color:#5b6b80;font-size:14px;font-weight:700}
.needs-action-summary{display:block;font-size:16px;overflow-wrap:anywhere}
.needs-action-chip{flex:0 0 auto;padding:4px 10px;border-radius:999px;background:#e6edf7;color:#33496b;font-size:14px;font-weight:800}
.needs-action-reason{margin:0;padding:10px 12px;border-radius:10px;background:#fdecec;color:#8a1c1c;overflow-wrap:anywhere}
.needs-action-details{margin:0;color:#33496b;overflow-wrap:anywhere}
.needs-action-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0}
.needs-action-meta div{min-width:0}
.needs-action-meta dt{color:#5b6b80;font-size:14px}
.needs-action-meta dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.needs-action-resolve{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.needs-action-resolve .field{margin:0}
.needs-action-resolve .field>span{font-size:14px}
.needs-action-resolve input{min-height:44px;font-size:14px}
.needs-action-resolve .btn{min-height:44px;font-size:14px}
.needs-action-resolved{margin:0;color:#0b5d2e;font-weight:700;overflow-wrap:anywhere}
.needs-action-empty{padding:22px 18px;text-align:center}
.needs-action-empty strong{display:block;font-size:16px}
.needs-action-empty p{margin:4px 0 0;color:#5b6b80;font-size:14px}
@media(max-width:480px){.needs-action-meta{grid-template-columns:1fr}.needs-action-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.outbox-sheet{scroll-behavior:auto}}

/* Patch 6c-2 — offline sales: "Payment received" step, "Sale saved on this device", "In a queued sale", queue warnings.
   Visual only; reuses the Patch 8B done state and the Patch 6c-1 outbox look. All text 14px or larger, all tap targets 44px or larger. */
.pos-confirm-dialog.is-asking>.modal-header,.pos-confirm-dialog.is-asking>.pos-confirm-body,.pos-confirm-dialog.is-asking>.pos-confirm-actions,.pos-confirm-dialog.is-asking>.save-status,.pos-confirm-dialog.is-asking>.pos-done{display:none}
.pos-offline-ask{display:grid;gap:12px;padding:16px}
.pos-offline-ask[hidden]{display:none}
.pos-offline-ask:focus{outline:0}
.pos-offline-ask-head{display:flex;align-items:flex-start;gap:12px}
.pos-offline-ask-icon{flex:0 0 auto;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#b7791f;color:#fff;font-size:14px;font-weight:800;line-height:1}
.pos-offline-ask-head h2{margin:0;font-size:18px;font-weight:700;line-height:1.2;color:#111827}
.pos-offline-ask-head p{margin:2px 0 0;font-size:14px;color:#667085}
.pos-offline-ask-note{margin:0;padding:12px;border:1px solid #e0b43a;border-radius:10px;background:#fff7dc;color:#4d3500;font-size:14px;line-height:1.45}
.pos-offline-ask-check{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 12px;border:2px solid #9fb4d3;border-radius:10px;background:#fff;color:#111827;font-size:16px;font-weight:700;cursor:pointer}
.pos-offline-ask-check input{flex:0 0 auto;width:24px;height:24px;margin:0;accent-color:#1769e8}
.pos-offline-ask-actions{display:grid;gap:12px}
.pos-offline-ask-actions .btn{width:100%;min-height:48px;font-size:14px;justify-content:center}
@media(min-width:480px){.pos-offline-ask-actions{grid-template-columns:1fr 1.6fr}}
.pos-done-note{margin:0;font-size:14px;line-height:1.45;color:#667085;text-align:center}
.pos-done-note[hidden]{display:none}
.pos-result-card.is-queued{border-style:dashed;border-color:#e0b43a;background:#fffaf0;cursor:not-allowed}
.pos-result-card.is-queued .pos-result-add{color:#8a5a00;white-space:normal}
.pos-result-card.has-queued .pos-result-add,.pos-result-card.has-queued [data-stock]{font-size:14px;line-height:1.35}
.outbox-hint-copy{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:2px}
.outbox-hint-copy .outbox-hint-text{flex:0 1 auto}
.outbox-hint-warn{color:#8a1c1c;font-size:14px;font-weight:800}
.outbox-hint-warn[hidden]{display:none}
.outbox-hint.is-warn{border-color:#e0b43a;background:#fff7dc;color:#4d3500}
.outbox-warn{margin:0;padding:10px 12px;border-radius:10px;background:#fdecec;color:#8a1c1c;font-size:14px;font-weight:800}
.outbox-warn[hidden]{display:none}
.outbox-item-real{color:#0b5d2e}
.sales-offline-tag{color:#8a5a00;font-size:14px;font-weight:700}
.sales-records-table .sales-offline-tag{white-space:normal}

/* BUG Tablet Login: login form safe on tablets (768-1024, both orientations). 16px inputs stop the iPad Safari zoom-on-focus, 48px targets, nothing can sit on top of the form. */
.auth-card{position:relative;z-index:1}
.auth-card .field input{font-size:16px;min-height:48px}
.auth-card .btn-block{min-height:48px;font-size:16px;touch-action:manipulation}
.auth-card .alert{font-size:14px;line-height:1.45}
.login-debug{margin:18px 0 0;padding:10px 12px;border:1px dashed #9aa6b8;border-radius:10px;background:#f4f6fa;color:#33405a;font:12px/1.5 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-all}
/* Inventory cleanup and stock availability: shared 14px / 44px scale. */
.deleted-inventory-card{min-width:0;margin-bottom:16px}
.deleted-inventory-card .card-header{align-items:flex-start}
.deleted-inventory-card .card-header p{max-width:900px;font-size:14px;line-height:1.5}
.deleted-unit-filters{display:grid;grid-template-columns:2fr 1.3fr 1fr 1fr auto auto;gap:12px;align-items:end;padding:16px}
.deleted-unit-filters .field{min-width:0;margin:0}
.deleted-unit-filters input,.deleted-unit-filters select{width:100%;min-width:0;min-height:44px;font-size:14px}
.deleted-unit-filters .field>span,.deleted-unit-table .table-subtext,.deleted-unit-table .cleanup-reference-grid,.deleted-unit-table .cleanup-state{font-size:14px}
.deleted-unit-toolbar,.deleted-unit-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;font-size:14px}
.deleted-unit-toolbar label,.deleted-unit-select{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.deleted-unit-select{justify-content:center;min-width:44px}
.deleted-unit-toolbar input,.deleted-unit-select input{width:20px;height:20px;accent-color:var(--blue)}
.deleted-unit-table td{font-size:14px;overflow-wrap:anywhere;white-space:normal}
.deleted-inventory-card .cleanup-reference-grid{display:grid;grid-template-columns:repeat(2,max-content);gap:6px;justify-content:start}
.deleted-inventory-card .cleanup-reference-grid span{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:1.4}
.deleted-inventory-card .cleanup-reference-grid b{font-size:14px}
.deleted-inventory-card .deleted-unit-table .btn{min-height:44px;font-size:14px}
.system-cleanup-audit .data-table :is(th,td),.system-cleanup-audit .data-table .table-subtext{font-size:14px!important}
.data-table .inventory-deleted-identifier{font-size:14px!important}
.transfer-proof-unit.is-deleted .transfer-proof-line,.transfer-proof-unit.is-deleted .status-pill{font-size:14px}
.transfer-proof-unit.is-deleted .transfer-proof-line span{white-space:normal;overflow-wrap:anywhere}
@media(max-width:767px){.tab-row.transfer-tabs{max-width:100%;margin-inline:0;padding-inline:0}}
.deleted-inventory-card .btn,.unit-purge-dialog .btn{min-height:44px;font-size:14px;white-space:normal}
.deleted-unit-pagination{justify-content:center}
.unit-purge-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--border,#e4e9f2);border-radius:14px;box-shadow:0 16px 60px #10182840;overflow:auto;color:var(--text,#101828);font-size:14px}
.unit-purge-dialog::backdrop{background:#10182880}
.unit-purge-dialog h2{font-size:20px;margin:0 0 12px}
.unit-purge-dialog p{line-height:1.5}
.unit-purge-dialog ul{max-height:200px;overflow:auto;overflow-wrap:anywhere;padding-left:20px}
.unit-purge-dialog .field input{min-height:44px;font-size:14px}
.unit-purge-dialog .field>span{font-size:14px}
.deleted-inventory-card .deleted-unit-table td,.deleted-inventory-card .deleted-unit-table .table-subtext,.deleted-inventory-card .deleted-unit-table .cleanup-reference-grid span{font-size:14px}
.deleted-inventory-card .deleted-unit-table tbody tr td::before{font-size:14px}
.deleted-inventory-card .deleted-unit-table .table-subtext{font-size:14px!important}
.deleted-unit-table th:nth-child(1){min-width:56px;width:56px}
.deleted-unit-table th:nth-child(2){min-width:220px}
.deleted-unit-table th:nth-child(3){min-width:120px}
.deleted-unit-table th:nth-child(4){min-width:160px}
.deleted-unit-table th:nth-child(5){min-width:170px}
.deleted-unit-table th:nth-child(6){min-width:180px}
.unit-purge-dialog [hidden]{display:none!important}
.unit-purge-dialog .modal-actions{padding:12px 0 0;flex-wrap:wrap}
.stock-state-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.stock-state-chip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1px solid #e4e9f2;border-radius:999px;background:#fff;color:#667085;font-size:14px;font-weight:600;text-decoration:none}
.stock-state-chip.is-active{background:#eef5ff;border-color:#1769e8;color:#1769e8}
.stock-state-chip:focus-visible,.deleted-inventory-card :is(a,button,input,select):focus-visible{outline:3px solid #1769e880;outline-offset:2px}
.stock-out-label{display:block;color:#a54747;font-size:14px;font-weight:400;line-height:1.35;white-space:normal}
@media(max-width:1100px){.deleted-unit-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .deleted-unit-filters{grid-template-columns:minmax(0,1fr)}
 .deleted-unit-toolbar{align-items:stretch;flex-direction:column}
 .deleted-unit-table,.deleted-unit-table tbody,.deleted-unit-table tr,.deleted-unit-table td{display:block!important;width:100%!important;min-width:0!important;max-width:100%;box-sizing:border-box}
 .deleted-unit-table thead{display:none}
 .deleted-unit-table tr{padding:12px;border-bottom:1px solid #e4e9f2}
 .deleted-unit-table td{padding:6px 0!important;border:0!important;text-align:left!important}
 .deleted-unit-table td::before{content:attr(data-label);display:block;position:static!important;width:auto!important;font-size:14px;font-weight:600;color:#667085;margin-bottom:4px}
 .deleted-unit-table td[data-label="Select"]::before{display:none}
 .deleted-inventory-card .table-wrap{overflow:visible}
 .unit-purge-dialog{padding:16px}
 .unit-purge-dialog .modal-actions .btn{flex:1}
}
