/* DRAXEEN Ferretería. All overrides are scoped to this edition. */
body.hardware-mode .hl-app{width:min(1320px,96vw);max-width:1320px;height:94dvh;max-height:94dvh;padding:24px;border:1px solid var(--h-border);border-radius:20px;background:var(--h-bg);color:var(--h-ink);overflow:auto;overscroll-behavior:contain}
body.hardware-mode .hl-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
body.hardware-mode .hl-heading h1{font-size:clamp(24px,3vw,36px);margin:4px 0}body.hardware-mode .hl-heading p{color:var(--h-muted);margin:0}
body.hardware-mode .hl-heading>button,body.hardware-mode .hl-editor header>button{min-width:44px;min-height:44px;border-radius:12px;font-size:28px;background:white;border:1px solid var(--h-border)}
body.hardware-mode .hl-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}body.hardware-mode .hl-tabs button{min-height:46px;padding:10px 16px;background:white;border:1px solid var(--h-border);border-radius:12px;font-weight:700;color:var(--h-ink)}body.hardware-mode .hl-tabs button.active{background:var(--h-teal);color:white;border-color:var(--h-teal)}
body.hardware-mode .hl-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}body.hardware-mode .hl-toolbar>input{flex:1;min-width:200px;min-height:48px;border:1px solid var(--h-border);background:white;border-radius:12px;padding:12px;font-size:16px}body.hardware-mode .hl-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}
body.hardware-mode .hl-status{min-height:24px;color:var(--h-muted);font-size:14px;margin:12px 0}body.hardware-mode .hl-error,body.hardware-mode .hl-editor [role=alert]{color:#ab2334}
body.hardware-mode .hl-intro{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:16px 0}body.hardware-mode .hl-intro h2{font-size:22px;margin:0}body.hardware-mode .hl-intro span,body.hardware-mode .hl-help,body.hardware-mode .hl-footer{color:var(--h-muted);font-size:14px}
body.hardware-mode .hl-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;align-items:start}body.hardware-mode .hl-record{background:white;padding:20px;border:1px solid var(--h-border);border-radius:16px;min-width:0;overflow-wrap:anywhere}body.hardware-mode .hl-record>header{display:flex;align-items:center;gap:10px;justify-content:space-between}body.hardware-mode .hl-record h3{font-size:19px;margin:0 0 8px}body.hardware-mode .hl-record p{margin:10px 0}body.hardware-mode .hl-record small{display:block;color:var(--h-muted)}
body.hardware-mode .hl-badge{display:inline-block;padding:6px 10px;border-radius:8px;background:#e1f5ef;color:#096454;font-weight:700;font-size:14px}body.hardware-mode .hl-record dl{display:flex;gap:20px;margin:15px 0}body.hardware-mode .hl-record dt{font-size:14px;color:var(--h-muted)}body.hardware-mode .hl-record dd{font-weight:800;font-size:24px;margin:0}body.hardware-mode .hl-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}body.hardware-mode .hl-app .ho-button,body.hardware-mode .hl-editor .ho-button{min-height:44px;white-space:normal}
body.hardware-mode .hl-lines{list-style:none;padding:0;margin:16px 0}body.hardware-mode .hl-lines li{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--h-border)}body.hardware-mode .hl-lines b{white-space:nowrap}body.hardware-mode .hl-stops{padding-left:24px}body.hardware-mode .hl-stops>li{padding:12px 0;border-bottom:1px solid var(--h-border)}body.hardware-mode .hl-incident{background:#fff3df;color:#85530d;border-radius:8px;padding:8px}
body.hardware-mode .hl-record details{border-top:1px solid var(--h-border);padding-top:12px;color:var(--h-muted);font-size:14px}body.hardware-mode .hl-record summary{min-height:32px;cursor:pointer}body.hardware-mode .hl-empty{grid-column:1/-1;padding:40px 20px;text-align:center;background:white;border-radius:16px;border:1px dashed var(--h-border)}body.hardware-mode .hl-footer{display:block;margin-top:24px;line-height:1.6}
body.hardware-mode .hl-editor{width:min(800px,94vw);max-width:800px;max-height:92dvh;overflow:auto}body.hardware-mode .hl-editor input,body.hardware-mode .hl-editor select,body.hardware-mode .hl-editor textarea{min-height:46px;font-size:16px}body.hardware-mode .hl-editor header{display:flex;align-items:center;justify-content:space-between;gap:12px}body.hardware-mode .hl-check{display:flex;align-items:center;gap:10px}body.hardware-mode .hl-check input[type=checkbox]{width:24px;height:24px;min-height:24px;flex:none}body.hardware-mode .hl-pick-product,body.hardware-mode .hl-route-stop{padding:14px;margin:12px 0;background:var(--h-bg);border:1px solid var(--h-border);border-radius:12px}body.hardware-mode .hl-line-editor{display:grid;grid-template-columns:2fr 1fr 44px;align-items:end;gap:10px;margin:12px 0}body.hardware-mode .hl-line-editor>button{height:46px;border:1px solid var(--h-border);border-radius:10px;font-size:24px}body.hardware-mode .hl-route-stop{display:grid;grid-template-columns:1fr 100px;gap:12px}body.hardware-mode .hl-route-stop label:nth-last-child(-n+2){grid-column:1/-1}
@media(max-width:600px){body.hardware-mode .hl-app{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:16px;margin:0}body.hardware-mode .hl-toolbar>div{width:100%}body.hardware-mode .hl-toolbar>div>button{flex:1}body.hardware-mode .hl-record{padding:16px}body.hardware-mode .hl-tabs{gap:6px}body.hardware-mode .hl-tabs button{flex:1 1 40%;padding:10px}body.hardware-mode .hl-editor{width:100vw;max-width:100vw;max-height:96dvh}body.hardware-mode .hl-line-editor{grid-template-columns:1fr 84px 44px;gap:6px}}
#h-sidebar-nav,#h-mobile-nav,.h-owned{display:none}
body.hardware-mode{--h-ink:#102642;--h-muted:#587087;--h-teal:#007f79;--h-border:#dce8ef;--h-bg:#f3f8fc}
body.hardware-mode #sidebar{background:linear-gradient(160deg,#0d2c43,#061f36);border:0}
body.hardware-mode #sidebar nav>#h-sidebar-nav{display:block}
body.hardware-mode #sidebar nav>#r-sidebar-nav,
body.hardware-mode #sidebar nav>#nav-dashboard,
body.hardware-mode #sidebar nav>#nav-ventas,
body.hardware-mode #sidebar nav>#nav-inventario,
body.hardware-mode #sidebar nav>#nav-clientes,
body.hardware-mode #sidebar nav>#nav-cotizaciones,
body.hardware-mode #sidebar nav>#nav-devoluciones,
body.hardware-mode #sidebar .ad-nav-label{display:none!important}
body.hardware-mode #h-sidebar-nav>p{padding:20px 13px 9px;color:#99b8cb;font-size:11px;letter-spacing:.09em;font-weight:700}
body.hardware-mode #h-sidebar-nav button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:11px 14px;margin:2px 0;border-radius:9px;color:#d9e7f1;text-align:left;font-size:14px;font-weight:600;line-height:1.4}
body.hardware-mode #h-sidebar-nav button i{width:18px;text-align:center;color:#c1e4e8}
body.hardware-mode #h-sidebar-nav button.active{color:white;background:linear-gradient(90deg,#007a80,#00576d);box-shadow:inset 3px 0 #1de0cc}
body.hardware-mode #h-sidebar-nav button:hover{background-color:#ffffff0c}
body.hardware-mode #h-sidebar-nav [hidden],body.hardware-mode #h-mobile-nav [hidden]{display:none!important}
body.hardware-operating main{background:var(--h-bg)}
body.hardware-operating .h-owned{display:block}
body.hardware-operating #desktop-header{border-bottom:1px solid var(--h-border);box-shadow:none}
body.hardware-operating #desktop-header #ui-brand-name{display:none!important}
body.hardware-operating #desktop-header>div:first-child{min-width:0}
body.hardware-operating #desktop-header #ad-context{gap:12px;min-width:0}
body.hardware-operating #desktop-header #ad-context select{max-width:220px}
body.hardware-operating #desktop-header #ad-context label:last-child select{max-width:180px}
body.hardware-operating #desktop-header #network-badge{max-width:175px;font-size:10px;line-height:1.4}
body.hardware-operating #desktop-header #ui-current-user{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
body.hardware-operating #desktop-header #ui-current-role{font-size:10px;white-space:nowrap}
body.hardware-operating #view-hardware,
body.hardware-operating #view-ventas,
body.hardware-operating #view-inventario,
body.hardware-operating #view-creditos,
body.hardware-operating #view-clientes,
body.hardware-operating #view-cotizaciones,
body.hardware-operating #view-devoluciones{color:var(--h-ink);font-family:"Segoe UI",Arial,system-ui,sans-serif}
body.hardware-operating .h-page{max-width:1600px;padding:10px 4px 28px;margin:auto}
body.hardware-operating .h-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:23px}
body.hardware-operating .h-heading h1{font-family:inherit;font-size:32px;line-height:1.2;font-weight:800;letter-spacing:-.8px;margin:4px 0 8px}
body.hardware-operating .h-heading p{font-size:15px;color:var(--h-muted);line-height:1.6;margin:0}
body.hardware-operating .h-eyebrow{font-size:11px;font-weight:800;letter-spacing:.1em;color:#007b77}
body.hardware-operating .h-heading-actions{display:flex;gap:9px;flex-wrap:wrap;padding-top:8px}
body.hardware-operating .h-button,
body.hardware-mode .h-more-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border-radius:9px;background:linear-gradient(100deg,#009b8c,#008b98);color:#fff;border:1px solid transparent;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer;text-decoration:none;transition:background .15s}
body.hardware-operating .h-button:hover{background:#007e78}
body.hardware-operating .h-button.secondary{background:#fff;color:#245471;border-color:var(--h-border)}
body.hardware-operating .h-button.secondary:hover{background:#eef8f8;border-color:#9fcfcf}
body.hardware-operating .h-button:disabled{opacity:.55;cursor:default}
body.hardware-operating .h-card{background:white;border:1px solid var(--h-border);border-radius:13px;padding:19px;min-width:0;box-shadow:0 3px 14px #163b5b03}
body.hardware-operating .h-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px;flex-wrap:wrap}
body.hardware-operating .h-card h2{font-family:inherit;font-size:18px;font-weight:750;line-height:1.4;margin:0}
body.hardware-operating .h-card p{font-size:14px;color:var(--h-muted);line-height:1.6}
body.hardware-operating .h-card-heading>span{font-size:12px;color:var(--h-muted)}
body.hardware-operating .h-link{border:0;background:transparent;color:#0876ba;font-size:13px;font-weight:650;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:5px 0;text-align:left}
body.hardware-operating .h-link:hover{color:#005960;text-decoration:underline}
body.hardware-operating .h-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:20px}
body.hardware-operating .h-metric{border:1px solid var(--h-border);background:white;padding:17px 14px;border-radius:12px;display:flex;align-items:center;gap:12px;min-width:0}
body.hardware-operating .h-metric>div{min-width:0}
body.hardware-operating .h-metric p{font-size:13px;color:#40566f;line-height:1.4;font-weight:650;margin:0 0 5px}
body.hardware-operating .h-metric strong{display:block;font-size:23px;letter-spacing:-.6px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}
body.hardware-operating .h-metric small{display:block;margin-top:6px;color:var(--h-muted);font-size:12px;line-height:1.45}
body.hardware-operating .h-symbol{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;flex-shrink:0;background:#ddf8f1;color:#008473;font-size:21px}
body.hardware-operating .h-symbol.blue{color:#0784d6;background:#e4f4ff}
body.hardware-operating .h-symbol.orange{color:#b65a05;background:#fff0dd}
body.hardware-operating .h-symbol.purple{color:#7644c4;background:#f1eaff}
body.hardware-operating .h-symbol.rose{color:#bd354c;background:#ffedf0}
body.hardware-operating .h-home-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.43fr);gap:18px;align-items:start}
body.hardware-operating .h-quick-sale{grid-column:1;grid-row:1/span 2}
body.hardware-operating .h-recent-sales{grid-column:2;grid-row:1}
body.hardware-operating .h-week{grid-column:2;grid-row:2}
body.hardware-operating .h-best-sellers{grid-column:1}
body.hardware-operating .h-stock-alerts{grid-column:2}
body.hardware-operating .h-search{display:flex;align-items:center;gap:10px;min-width:0;background:#f8fbfd;border:1px solid var(--h-border);border-radius:9px;padding:5px 6px 5px 13px;margin-bottom:13px}
body.hardware-operating .h-search>i{color:#36566c;font-size:20px}
body.hardware-operating .h-search input{width:100%;min-width:0;background:transparent;outline:none;border:0;padding:8px 0;font-size:14px;color:var(--h-ink)}
body.hardware-operating .h-search input::placeholder{color:#758c9f}
body.hardware-operating .h-search .h-button{min-height:39px;padding:8px 16px}
body.hardware-operating .h-categories,
body.hardware-operating .h-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 15px}
body.hardware-operating .h-categories button,
body.hardware-operating .h-tabs button{border:1px solid var(--h-border);border-radius:8px;min-height:39px;padding:8px 12px;font-size:13px;line-height:1.4;color:#425c72;background:#f8fbfd;font-weight:600}
body.hardware-operating .h-categories button.active,
body.hardware-operating .h-tabs button.active{background:#008b82;color:white;border-color:#008b82}
body.hardware-operating .h-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
body.hardware-operating .h-product{position:relative;min-width:0;border:1px solid #e1ebf1;border-radius:10px;background:linear-gradient(#fff,#f7fbfe);overflow:hidden}
body.hardware-operating .h-product-photo{height:90px;display:grid;place-items:center;padding:8px;background:#fbfdfe}
body.hardware-operating .h-product-photo img{max-width:100%;height:100%;width:100%;object-fit:contain}
body.hardware-operating .h-product-placeholder{display:grid;place-items:center;width:100%;height:100%;color:#1d9695;background:radial-gradient(ellipse,#e2f6f3 0,transparent 70%);font-size:40px}
body.hardware-operating .h-product-copy{padding:10px 10px 13px;min-height:122px}
body.hardware-operating .h-product-copy>small{font-size:10px;color:#637d91;display:block;margin-bottom:4px}
body.hardware-operating .h-product h3{font-size:13px;font-weight:700;line-height:1.4;color:var(--h-ink);margin:0 0 6px;overflow-wrap:anywhere}
body.hardware-operating .h-product-copy>strong{display:block;font-size:15px;line-height:1.4;font-weight:800;margin-bottom:7px}
body.hardware-operating .h-stock{font-size:11px;font-weight:700;border-radius:5px;color:#00694f;background:#e2f8ee;display:inline-flex;align-items:center;gap:5px;padding:4px 6px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
body.hardware-operating .h-stock.low{background:#fff0dd;color:#985000}
body.hardware-operating .h-stock.out{background:#ffe9ed;color:#a52c46}
body.hardware-operating .h-add{display:grid;place-items:center;position:absolute;right:9px;top:8px;border:0;background:#009f90;color:white;border-radius:50%;width:32px;height:32px;font-size:14px;box-shadow:0 3px 8px #007d7330}
body.hardware-operating .h-add:disabled{background:#dce6ed;color:#64798b;box-shadow:none;cursor:default}
body.hardware-operating .h-catalog-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:13px}
body.hardware-operating .h-catalog-foot>span{font-size:12px;color:var(--h-muted)}
body.hardware-operating .h-list-row{display:flex;align-items:center;width:100%;gap:11px;padding:13px 0;border-bottom:1px solid #edf2f6;min-width:0;text-align:left}
body.hardware-operating .h-list-row:last-child{border-bottom:0}
body.hardware-operating .h-list-row>span:nth-child(2){min-width:0;flex:1}
body.hardware-operating .h-list-row strong{display:block;font-size:13px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
body.hardware-operating .h-list-row small{display:block;margin-top:4px;font-size:12px;color:var(--h-muted);line-height:1.4}
body.hardware-operating .h-list-row>b{font-size:13px;font-weight:750;white-space:normal;text-align:right;max-width:110px}
body.hardware-operating .h-list-row .h-symbol{width:34px;height:34px;font-size:17px;border-radius:9px}
body.hardware-operating .h-thumb{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0}
body.hardware-operating .h-thumb img{width:100%;height:100%;object-fit:contain}
body.hardware-operating .h-thumb .h-product-placeholder{font-size:25px}
body.hardware-operating .h-low-text{color:#a82d41!important}
body.hardware-operating .h-week-chart{height:145px;display:flex;align-items:stretch;gap:8px;margin-top:22px;border-bottom:1px solid #dce8f0}
body.hardware-operating .h-week-chart>div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;padding-bottom:24px}
body.hardware-operating .h-week-chart b{font-size:10px;color:#48697f;font-weight:600;white-space:nowrap;position:absolute;top:-16px;opacity:0}
body.hardware-operating .h-week-chart>div:hover b{opacity:1}
body.hardware-operating .h-week-chart span{width:65%;height:max(3px,var(--h-bar));max-height:110px;background:linear-gradient(#2ccfe1,#1badeb);border-radius:4px 4px 0 0}
body.hardware-operating .h-week-chart span.negative{background:#c54f61}
body.hardware-operating .h-week-chart small{font-size:11px;color:var(--h-muted);position:absolute;bottom:2px}
body.hardware-operating .h-top-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.hardware-operating .h-top-product{min-width:0;background:#f7fbfe;border:1px solid #e2edf4;border-radius:9px;padding:10px}
body.hardware-operating .h-top-product>div{height:66px;margin-bottom:9px}
body.hardware-operating .h-top-product img{width:100%;height:100%;object-fit:contain}
body.hardware-operating .h-top-product strong{display:block;font-size:12px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
body.hardware-operating .h-top-product small{display:block;font-size:11px;color:var(--h-muted);margin-top:6px}
body.hardware-operating .h-empty{padding:24px 12px;color:var(--h-muted);text-align:center;font-size:14px;line-height:1.7;grid-column:1/-1}
body.hardware-operating .h-good-state{padding:18px 6px;text-align:center;color:#006c5f}
body.hardware-operating .h-good-state>i{display:block;font-size:30px;margin:6px 0 13px}
body.hardware-operating .h-good-state strong{font-size:14px}
body.hardware-operating .h-source{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:22px 0 0;color:#516c81;font-size:12px;line-height:1.6}
body.hardware-operating .h-mobile-shortcuts{display:none}
body.hardware-operating .h-cart-shortcut{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:12px 15px;margin-top:16px;border:0;border-radius:10px;background:linear-gradient(100deg,#009e8f,#008e9a);color:white;font-size:14px;text-align:left}
body.hardware-operating .h-cart-shortcut>span{flex:1}
body.hardware-operating .h-cart-shortcut>strong{font-size:14px}
body.hardware-operating [hidden]{display:none!important}
body.hardware-operating .h-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Existing POS engine, scoped visual layout. Original ids and handlers are retained. */
body.hardware-operating #view-ventas{height:auto!important}
body.hardware-operating #view-ventas>.flex{height:auto!important;align-items:flex-start}
body.hardware-operating #view-ventas>.flex>div:first-child{min-width:0;gap:15px}
body.hardware-operating #view-ventas>.flex>div:first-child>div:first-child{box-shadow:none;border-radius:11px;position:static}
body.hardware-operating #pos-search{font-size:15px;font-weight:500;min-height:42px}
body.hardware-operating .pos-terminal-link{font-size:12px;min-height:36px;color:#2f697a}
body.hardware-operating #pos-workstation{padding:13px;margin-bottom:14px;background:white;border:1px solid var(--h-border);border-radius:10px;font-size:12px}
body.hardware-operating #pos-workstation small{font-size:12px}
body.hardware-operating #pos-workstation summary{min-height:36px;line-height:36px;color:#246175}
body.hardware-operating #pos-products-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.hardware-operating #pos-products-grid>div{height:205px;border-radius:10px;box-shadow:none;transform:none!important}
body.hardware-operating #pos-products-grid>div>div:first-child{height:94px;border-bottom:0;background:#fcfdff}
body.hardware-operating #pos-products-grid>div>div:last-child{padding:10px;background:#f8fbfe}
body.hardware-operating #pos-products-grid h4{font-size:14px;line-height:1.4;min-height:38px;font-weight:700}
body.hardware-operating #pos-products-grid>div>div:last-child>div:first-child>p{font-size:10px;color:#58718a}
body.hardware-operating #pos-products-grid>div>div:last-child>div:last-child>p{font-size:16px;color:#17334e}
body.hardware-operating #pos-products-grid>div>div:last-child>div:last-child>span{font-size:12px;padding:3px 6px}
body.hardware-operating #cart-panel{width:350px;height:auto!important;max-height:none;border-radius:12px;box-shadow:none;position:sticky;top:0}
body.hardware-operating #cart-panel>div:first-child{background:#fff;color:var(--h-ink);border-bottom:1px solid var(--h-border)}
body.hardware-operating #cart-panel h3{font-family:inherit;font-size:18px;font-weight:750}
body.hardware-operating #cart-items{min-height:180px;max-height:420px;background:#fff}
body.hardware-operating #cart-items>div{box-shadow:none}
body.hardware-operating #cart-items p.text-xs{font-size:13px;line-height:1.45}
body.hardware-operating #cart-items button{min-width:32px;min-height:36px}
body.hardware-operating #cart-items input{font-size:14px;min-height:36px}
body.hardware-operating #cart-save-status{font-size:12px;color:#526c80;background:#f6fbfd;padding:9px 13px}
body.hardware-operating #cart-total{font-size:29px;color:#057c75}
body.hardware-operating #btn-checkout{font-size:17px;font-weight:750;min-height:48px;padding:12px;background:linear-gradient(100deg,#009b8c,#008b98);box-shadow:none}
body.hardware-operating #cart-panel>div:last-child>.grid button{font-size:12px;min-height:51px}
body.hardware-operating #cart-panel .cart-discount{font-size:12px;color:#365c72}
/* Inventory cards are a projection of the existing paged inventory table. */
body.hardware-operating #view-inventario{height:auto!important}
body.hardware-operating #view-inventario .h-inventory-container{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;height:auto;background:transparent;padding:0;border:0;box-shadow:none;max-width:1600px}
body.hardware-operating .h-inventory-toolbar{grid-column:1/-1;margin-bottom:0;align-items:center}
body.hardware-operating .h-inventory-toolbar h2{font-family:inherit;font-size:30px;line-height:1.3}
body.hardware-operating .h-inventory-toolbar>div:first-child>h2{display:none}
body.hardware-operating .h-inventory-title{font-size:30px;line-height:1.25;font-weight:800;letter-spacing:-.6px;margin-bottom:7px}
body.hardware-operating .h-inventory-toolbar p{font-size:14px;color:var(--h-muted);font-weight:400}
body.hardware-operating .h-inventory-toolbar input{font-size:14px;font-weight:400;min-height:44px}
body.hardware-operating .h-inventory-toolbar button{font-size:13px;min-height:44px;border-radius:8px}
body.hardware-operating #h-inventory-overview{grid-column:1/-1}
body.hardware-operating #h-inventory-overview .h-metrics{margin-bottom:0}
body.hardware-operating .h-native-inventory{display:none}
body.hardware-operating .h-inventory-aside{display:flex;flex-direction:column;gap:17px;min-width:0;align-self:start}
body.hardware-operating .h-inventory-aside>.h-card>h2{margin-bottom:12px}
body.hardware-operating .h-inventory-aside .h-button{width:100%;margin-top:12px;font-size:13px}
body.hardware-operating .h-inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.hardware-operating .h-inventory-product{border:1px solid #e0ebf2;border-radius:10px;overflow:hidden;background:#f8fbfe;min-width:0}
body.hardware-operating .h-inventory-photo{height:105px;display:grid;place-items:center;background:#fff}
body.hardware-operating .h-inventory-photo button{width:100%;height:100%;border:0;background:transparent}
body.hardware-operating .h-inventory-photo .inventory-photo{width:100%;height:100%;max-height:100px;object-fit:contain;padding:8px;box-sizing:border-box;border:0;background:white;border-radius:0}
body.hardware-operating .h-inventory-photo .inventory-photo-empty{color:#278b9a;display:grid;place-items:center;font-size:32px}
body.hardware-operating #view-inventario .h-inventory-photo .inventory-photo-button{width:100%;height:100%;min-width:0;padding:0;border:0;box-shadow:none;background:transparent;transform:none}
body.hardware-operating #view-inventario .h-inventory-photo .inventory-photo{width:100%;height:100%;max-height:100px;min-width:0;object-fit:contain;padding:7px;background:transparent;border-radius:0}
body.hardware-operating .h-inventory-details{margin-top:7px;line-height:1.5}
body.hardware-operating .h-inventory-details>summary{font-size:12px;color:#275e76;min-height:34px;line-height:34px;cursor:pointer}
body.hardware-operating .h-inventory-details>small{font-size:12px!important;line-height:1.6;color:#506d80;display:block}
body.hardware-operating .h-inventory-product-copy{padding:12px}
body.hardware-operating .h-inventory-product-copy>p{font-size:14px;line-height:1.45;font-weight:700;margin:0 0 5px;color:var(--h-ink)}
body.hardware-operating .h-inventory-product-copy>small{font-size:11px;color:var(--h-muted);display:block;margin-bottom:7px;overflow-wrap:anywhere}
body.hardware-operating .h-inventory-product-copy>strong{font-size:15px;display:block;margin-bottom:8px}
body.hardware-operating .h-inventory-stock>span{font-size:12px;padding:4px 7px;display:inline-block;animation:none}
body.hardware-operating .h-inventory-stock>small{font-size:12px!important;line-height:1.6;color:#506d80;margin-top:7px}
body.hardware-operating .h-inventory-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
body.hardware-operating .h-inventory-actions button{font-size:12px;min-height:40px;border:1px solid #d8e6ef;color:#175571;background:white;padding:7px 8px;border-radius:7px}
body.hardware-operating #inventory-tools-bar{border:1px solid var(--h-border);border-radius:10px;background:#fff;padding:10px;margin-bottom:17px}
body.hardware-operating #inventory-tools-bar button{font-size:13px;min-height:40px;color:#265f74}
body.hardware-operating #inventory-pagination{margin-top:18px}
/* Cartera uses the existing extract, abonos and receipt actions. */
body.hardware-operating #view-creditos{height:auto!important}
body.hardware-operating #h-debt-overview{margin-bottom:20px}
body.hardware-operating #view-creditos>.flex>div:first-child{display:none}
body.hardware-operating #view-creditos>.flex{height:auto;display:block}
body.hardware-operating #view-creditos>.flex>div:last-child{width:100%;height:auto;min-height:260px;box-shadow:none}
body.hardware-operating #account-statement-view{height:auto}
body.hardware-operating #statement-history{max-height:none;overflow:visible}
body.hardware-operating #account-statement-empty{padding:45px 20px;font-size:14px;color:#6e8294}
body.hardware-operating .h-debt-filters{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
body.hardware-operating .h-debt-filters .h-search{min-width:230px;margin:0;flex:1;max-width:340px}
body.hardware-operating .h-debt-table-head,
body.hardware-operating .h-debt-row{display:grid;grid-template-columns:minmax(160px,1.5fr) 1fr 1fr 100px 105px;gap:12px;align-items:center;padding:16px 10px;border-bottom:1px solid #e6edf3;min-width:0}
body.hardware-operating .h-debt-table-head{font-size:12px;color:#546e86;background:#f8fbfe;padding-block:11px}
body.hardware-operating .h-debt-row{font-size:13px;line-height:1.5}
body.hardware-operating .h-debt-row>div{min-width:0}
body.hardware-operating .h-debt-row strong{font-weight:700;display:block;overflow-wrap:anywhere}
body.hardware-operating .h-debt-row small{display:block;font-size:12px;color:var(--h-muted);margin-top:5px}
body.hardware-operating .h-debt-row>b{font-size:14px;overflow-wrap:anywhere}
body.hardware-operating .h-debt-row .h-stock{justify-self:start}
/* Cotizaciones and devoluciones retain their existing data and workflows. */
body.hardware-operating #view-cotizaciones .qt-heading h1,
body.hardware-operating #view-devoluciones .op-heading h1{font-family:inherit;font-size:30px;font-weight:800;line-height:1.25;color:var(--h-ink)}
body.hardware-operating #view-cotizaciones .qt-card,
body.hardware-operating #view-devoluciones .op-card{border-color:var(--h-border);border-radius:12px;box-shadow:none}
body.hardware-operating #view-cotizaciones h2,
body.hardware-operating #view-devoluciones h2{font-family:inherit;font-size:18px;color:var(--h-ink);font-weight:750}
body.hardware-operating #view-cotizaciones .qt-actions button,
body.hardware-operating #view-devoluciones .op-button,
body.hardware-operating #view-devoluciones .op-btn{font-size:14px;min-height:44px;border-radius:8px}
body.hardware-operating #view-cotizaciones .qt-kind button.selected,
body.hardware-operating #view-cotizaciones #qt-save,
body.hardware-operating #view-devoluciones .op-btn:not(.op-secondary){background:linear-gradient(100deg,#009b8c,#008b98);border-color:#00948d;color:#fff}
body.hardware-operating #view-cotizaciones input,
body.hardware-operating #view-cotizaciones select,
body.hardware-operating #view-devoluciones input,
body.hardware-operating #view-devoluciones select{font-size:14px;min-height:42px;border-color:#cbdce7}
body.hardware-operating #view-cotizaciones .qt-history button,
body.hardware-operating #view-devoluciones .op-return-row{font-size:13px}
body.hardware-operating #view-devoluciones .op-tabs{flex-wrap:wrap;overflow:visible}
body.hardware-operating #view-devoluciones .op-tabs button{font-size:13px;min-height:42px}
body.hardware-mode .h-more-dialog{width:min(600px,94vw);max-height:88dvh;border:1px solid #d7e6ef;border-radius:16px;background:#fff;color:#15334c;padding:21px;box-shadow:0 20px 70px #092a4255;font-family:"Segoe UI",Arial,system-ui,sans-serif;overflow:auto}
body.hardware-mode .h-more-dialog::backdrop{background:#0a233c88;backdrop-filter:blur(3px)}
body.hardware-mode .h-more-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}
body.hardware-mode .h-more-dialog small{font-size:11px;letter-spacing:.08em;color:#008579;font-weight:700}
body.hardware-mode .h-more-dialog h2{font-size:23px;font-weight:800;margin:4px 0}
body.hardware-mode .h-more-dialog [data-h-close]{font-size:25px;background:#f3f7fa;color:#365a70;width:44px;height:44px;padding:0}
body.hardware-mode .h-more-links{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body.hardware-mode .h-more-links>button{display:flex;gap:12px;min-width:0;min-height:56px;text-align:left;justify-content:flex-start;background:#f7fbfd;color:#245570;border:1px solid #deebf1;font-size:14px}
body.hardware-mode .h-more-links>button>span{flex:1}
body.hardware-mode .h-more-links>button>i:last-child{font-size:11px;color:#7c97a8}
body.hardware-operating :is(button,input,select,a,[role=button]):focus-visible,
body.hardware-mode .h-more-dialog button:focus-visible{outline:3px solid #1ba6bd;outline-offset:3px}
@media(min-width:768px) and (max-width:1200px){
 body.hardware-operating .h-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.hardware-operating #pos-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.hardware-operating #view-ventas>.flex{flex-direction:column}
 body.hardware-operating #cart-panel{width:100%;position:static}
 body.hardware-operating #view-inventario .h-inventory-container{grid-template-columns:1fr}
 body.hardware-operating .h-inventory-aside{display:grid;grid-template-columns:1fr 1fr}
 body.hardware-operating .h-debt-table-head,body.hardware-operating .h-debt-row{grid-template-columns:minmax(130px,1.3fr) 1fr 1fr 90px}
 body.hardware-operating .h-debt-table-head>span:last-child{display:none}
 body.hardware-operating .h-debt-row>.h-link{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:1000px){
 body.hardware-operating .h-home-layout{grid-template-columns:minmax(0,1fr)}
 body.hardware-operating .h-home-layout>.h-card{grid-column:auto;grid-row:auto}
 body.hardware-operating .h-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.hardware-operating .h-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
 body.hardware-mode #mobile-bottom-nav{display:none!important}
 body.hardware-mode #h-mobile-nav{display:flex;justify-content:space-around;position:fixed;inset:auto 0 0;z-index:65;min-height:calc(66px + env(safe-area-inset-bottom));padding:5px 7px env(safe-area-inset-bottom);background:#fff;border-top:1px solid #e0ebf2;box-shadow:0 -4px 20px #1938500b}
 body.hardware-mode #h-mobile-nav button{flex:1;min-width:0;min-height:52px;border:0;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#546f85;font-size:11px;font-weight:700;padding:5px 3px}
 body.hardware-mode #h-mobile-nav button i{font-size:20px}
 body.hardware-mode #h-mobile-nav button.active{background:#e6f8f3;color:#007568}
 body.hardware-operating #mobile-topbar{background:#092b43;color:white;border-bottom:0}
 body.hardware-operating .mobile-brand{color:#fff}
 body.hardware-operating .mobile-brand-copy small{color:#b5cddc}
 body.hardware-operating .mobile-brand-mark{background:#d9faf3;color:#008578}
 body.hardware-operating .h-page{padding:2px 0 16px}
 body.hardware-operating .h-heading{margin:7px 0 18px;gap:12px;flex-wrap:wrap}
 body.hardware-operating .h-heading h1{font-size:25px;letter-spacing:-.5px}
 body.hardware-operating .h-heading p{font-size:14px}
 body.hardware-operating .h-heading-actions{width:100%;padding:0}
 body.hardware-operating .h-heading-actions>*{flex:1}
 body.hardware-operating #view-hardware .h-heading{display:none}
 body.hardware-operating .h-mobile-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:3px 0 16px}
 body.hardware-operating .h-mobile-shortcuts .h-button{font-size:14px;padding-inline:10px}
 body.hardware-operating .h-metrics{gap:9px;margin-bottom:16px}
 body.hardware-operating #view-hardware .h-metrics{display:none}
 body.hardware-operating .h-metric{padding:13px 10px;gap:8px;align-items:flex-start;flex-direction:column}
 body.hardware-operating .h-metric strong{font-size:21px;letter-spacing:-.5px}
 body.hardware-operating .h-metric p{font-size:12px}
 body.hardware-operating .h-metric small{font-size:11px}
 body.hardware-operating .h-metric .h-symbol{width:31px;height:31px;font-size:17px;border-radius:9px}
 body.hardware-operating .h-card{padding:15px 12px;border-radius:12px}
 body.hardware-operating .h-card h2{font-size:17px}
 body.hardware-operating .h-card-heading{gap:8px;margin-bottom:12px}
 body.hardware-operating .h-product-grid{display:flex;flex-direction:column;gap:0}
 body.hardware-operating .h-product{display:flex;align-items:center;gap:10px;background:#fff;border:0;border-bottom:1px solid #e5eef4;border-radius:0;padding:10px 0;min-height:83px}
 body.hardware-operating .h-product-photo{height:58px;width:59px;flex-shrink:0;padding:2px;background:transparent}
 body.hardware-operating .h-product-placeholder{font-size:32px}
 body.hardware-operating .h-product-copy{padding:0;min-height:0;flex:1;min-width:0}
 body.hardware-operating .h-product-copy>small{display:none}
 body.hardware-operating .h-product h3{font-size:14px;margin-bottom:4px}
 body.hardware-operating .h-product-copy>strong{font-size:15px;margin-bottom:4px}
 body.hardware-operating .h-product .h-stock{font-size:10px;padding:2px 5px}
 body.hardware-operating .h-add{position:static;width:39px;height:39px;font-size:15px;flex-shrink:0;margin-left:3px}
 body.hardware-operating .h-categories{gap:6px}
 body.hardware-operating .h-categories button{font-size:11px;padding:7px 9px;min-height:37px}
 body.hardware-operating .h-search{gap:8px;padding-left:10px}
 body.hardware-operating .h-search input{font-size:16px}
 body.hardware-operating .h-search .h-button{font-size:12px;padding:8px 10px}
 body.hardware-operating .h-list-row{gap:9px}
 body.hardware-operating .h-top-grid{grid-template-columns:1fr 1fr}
 body.hardware-operating .h-top-product>div{height:75px}
 body.hardware-operating .h-home-layout{gap:16px}
 body.hardware-operating #pos-mobile-mode{margin-bottom:14px}
 body.hardware-operating #pos-mobile-mode button{min-height:44px;font-size:13px}
 body.hardware-operating #view-ventas>.flex>div:first-child>div:first-child{padding:9px}
 body.hardware-operating #pos-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.hardware-operating #pos-products-grid>div{height:205px}
 body.hardware-operating #pos-products-grid h4{font-size:13px}
 body.hardware-operating #view-ventas #cart-panel{width:100%;position:static;height:auto!important;overflow:visible}
 body.hardware-operating #view-ventas #cart-items{max-height:none;min-height:150px}
 body.hardware-operating #cart-items input{width:45px!important}
 body.hardware-operating #cart-items button{min-width:32px}
 body.hardware-operating .h-inventory-toolbar{display:block}
 body.hardware-operating #view-inventario.active{display:flex;flex-direction:column}
 body.hardware-operating #view-inventario #inventory-tools-bar{order:2;margin:16px 0 0}
 body.hardware-operating #view-inventario #inventory-pagination{order:1}
 body.hardware-operating #view-inventario .h-inventory-container{order:0}
 body.hardware-operating #h-inventory-overview{display:none}
 body.hardware-operating .h-inventory-toolbar>div:last-child{margin-top:14px;display:flex;flex-wrap:wrap}
 body.hardware-operating .h-inventory-toolbar h2{font-size:25px}
 body.hardware-operating .h-inventory-title{font-size:25px}
 body.hardware-operating .h-inventory-toolbar input{font-size:16px;width:100%}
 body.hardware-operating .h-inventory-toolbar button{flex:1;padding:10px 12px;white-space:normal;font-size:13px}
 body.hardware-operating #view-inventario .h-inventory-container{display:flex;flex-direction:column;gap:16px}
 body.hardware-operating .h-inventory-container>*{width:100%}
 body.hardware-operating .h-inventory-grid{display:flex;flex-direction:column;gap:0}
 body.hardware-operating .h-inventory-product{display:flex;align-items:flex-start;gap:10px;padding:13px 0;border:0;border-bottom:1px solid #e2edf3;border-radius:0;background:white}
 body.hardware-operating .h-inventory-photo{width:62px;height:70px;flex-shrink:0}
 body.hardware-operating .h-inventory-product-copy{padding:0;flex:1;min-width:0}
 body.hardware-operating .h-inventory-actions button{min-height:42px}
 body.hardware-operating .h-inventory-aside{display:flex}
 body.hardware-operating .h-debt-filters{display:block}
 body.hardware-operating .h-debt-filters .h-search{max-width:none;min-width:0;margin-bottom:12px}
 body.hardware-operating .h-debt-table-head{display:none}
 body.hardware-operating .h-debt-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px 0}
 body.hardware-operating .h-debt-row>div{grid-column:1;grid-row:1}
 body.hardware-operating .h-debt-row>span:nth-child(2){grid-column:1;grid-row:3;font-size:12px;color:#6a7f90}
 body.hardware-operating .h-debt-row>b{grid-column:2;grid-row:1}
 body.hardware-operating .h-debt-row>.h-stock{grid-column:2;grid-row:2;justify-self:end}
 body.hardware-operating .h-debt-row>.h-link{grid-column:1;grid-row:2;justify-content:flex-start;font-size:12px;min-height:34px}
 body.hardware-operating #account-statement-view>div:first-child{padding:15px;flex-wrap:wrap;gap:12px}
 body.hardware-operating #statement-name{font-size:22px}
 body.hardware-operating #statement-phone{font-size:13px}
 body.hardware-operating #statement-debt{font-size:25px}
 body.hardware-operating #statement-history{padding:15px}
 body.hardware-operating #view-cotizaciones .qt-heading h1,
 body.hardware-operating #view-devoluciones .op-heading h1{font-size:25px}
 body.hardware-operating #view-cotizaciones input,
 body.hardware-operating #view-cotizaciones select,
 body.hardware-operating #view-devoluciones input,
 body.hardware-operating #view-devoluciones select{font-size:16px}
 body.hardware-operating #view-devoluciones .op-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 body.hardware-operating #view-devoluciones .op-tabs button{padding:9px 6px;font-size:12px;white-space:normal}
 body.hardware-mode .h-more-dialog{padding:17px}
 body.hardware-mode .h-more-links{grid-template-columns:1fr}
}
@media(max-width:359px){
 body.hardware-operating .h-metrics{grid-template-columns:1fr}
 body.hardware-operating .h-debt-row{grid-template-columns:1fr}
 body.hardware-operating .h-debt-row>*{grid-column:1!important;grid-row:auto!important;justify-self:start!important}
 body.hardware-operating #cart-items>div{flex-wrap:wrap;gap:10px}
}
@media(prefers-reduced-motion:reduce){body.hardware-operating *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Home-only composition based on the approved hardware reference. */
.h-home-global-search{display:none}
body.hardware-home{background:#f1f8fd}
body.hardware-home #sidebar{width:190px;flex-basis:190px;background:linear-gradient(160deg,#052b43 0%,#031c34 80%)}
body.hardware-home #sidebar>div:first-child{padding:22px 17px 18px}
body.hardware-home #sidebar>div:first-child p,
body.hardware-home #sidebar>div:last-child{display:none}
body.hardware-home #ui-brand-logo{font-size:23px;letter-spacing:-.7px;gap:7px;white-space:nowrap}
body.hardware-home #ui-brand-logo .ad-logo{width:27px;height:30px}
body.hardware-home #sidebar nav{padding:4px 9px 18px}
body.hardware-home #h-sidebar-nav>p:first-child{display:none}
body.hardware-home #h-sidebar-nav>p{font-size:10px;padding:17px 13px 8px}
body.hardware-home #h-sidebar-nav button{min-height:36px;padding:8px 12px;font-size:13px;gap:10px;margin:2px 0;font-weight:500;border-radius:7px}
body.hardware-home #h-sidebar-nav button.active{font-weight:700;background:linear-gradient(90deg,#006a76,#004d64);box-shadow:inset 3px 0 #18d6c6}
body.hardware-home #h-sidebar-nav button i{font-size:13px;width:16px}
body.hardware-home #sidebar .nav-btn{min-height:36px;padding:8px 12px;font-size:12px;gap:10px}
body.hardware-home #desktop-header{height:66px;min-height:66px;padding:10px 19px;background:#fff;border-bottom:1px solid #e1edf5;gap:16px}
body.hardware-home #desktop-header>div:first-child{gap:12px;flex:1;min-width:0}
body.hardware-home #desktop-header>div:last-child{gap:12px;flex:0 0 auto}
body.hardware-home #desktop-header #ad-context{display:flex;flex:none;width:auto}
body.hardware-home #desktop-header #ad-context label:has(#ad-company-switch){display:none}
body.hardware-home #desktop-header #ad-context label:last-child{margin:0;max-width:190px;min-width:0;background:#fff;border:1px solid #e0eaf3;border-radius:7px}
body.hardware-home #desktop-header #ad-context select{font-size:12px;max-width:155px;min-height:36px;min-width:0;font-weight:600;padding:6px 10px;background:transparent}
body.hardware-home #desktop-header #ad-context label>i{font-size:13px;color:#12344f}
body.hardware-home #desktop-header #network-badge{font-size:8px;max-width:125px;padding:5px 8px;line-height:1.35}
body.hardware-home #desktop-header #ui-current-user{font-size:12px;max-width:130px}
body.hardware-home #desktop-header #ui-current-role{font-size:9px}
body.hardware-home #desktop-header .h-home-global-search{display:flex;align-items:center;gap:9px;flex:1;min-width:120px;max-width:600px;min-height:36px;padding:5px 12px;border:1px solid #deebf4;border-radius:7px;background:#fbfdff;color:#7490a7}
body.hardware-home #h-header-search input{border:0;outline:none;background:transparent;width:100%;min-width:0;font-size:12px;font-weight:400;line-height:1.4;color:#19364c;padding:3px 0}
body.hardware-home #h-header-search input::placeholder{color:#748ba3}
body.hardware-home main>.flex-1.overflow-auto{padding:18px!important;background:linear-gradient(140deg,#f4faff,#eef7fc);}
body.hardware-home #view-hardware{font-family:Arial,"Segoe UI",sans-serif}
body.hardware-home #view-hardware .h-page{padding:0;max-width:1500px;margin:0 auto;width:100%;min-width:0}
body.hardware-home #view-hardware .h-home-layout{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(255px,1fr);grid-template-rows:auto auto auto;gap:14px;align-items:stretch}
body.hardware-home #view-hardware .h-card{padding:15px;border:1px solid #e7f0f6;border-radius:10px;box-shadow:0 3px 13px #17487004;background:#fff;min-width:0}
body.hardware-home #view-hardware .h-card-heading{gap:8px;margin-bottom:12px;min-height:23px;flex-wrap:nowrap}
body.hardware-home #view-hardware .h-card h2{font-family:inherit;font-size:17px;font-weight:750;line-height:1.3;letter-spacing:-.4px}
body.hardware-home #view-hardware .h-link{font-size:11px;color:#078fda;min-height:26px;font-weight:600;white-space:nowrap;gap:6px}
body.hardware-home #view-hardware .h-quick-sale{grid-column:1;grid-row:1;position:relative}
body.hardware-home #view-hardware .h-recent-sales{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:8px}
body.hardware-home #view-hardware .h-recent-sales .h-card-heading{margin-bottom:0}
body.hardware-home #view-hardware .h-home-stat-strip{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1.22fr 1fr 1fr 1fr;gap:10px;min-width:0}
body.hardware-home #view-hardware .h-best-sellers{grid-column:1;grid-row:3}
body.hardware-home #view-hardware .h-stock-alerts{grid-column:2;grid-row:3}
body.hardware-home #view-hardware .h-quick-sale>.h-search{height:39px;padding:0 0 0 10px;border:1px solid #dfebf4;border-radius:6px;gap:9px;background:#fff;margin-bottom:12px}
body.hardware-home #view-hardware .h-search>i{font-size:25px;color:#173653;letter-spacing:-3px;flex-shrink:0;width:32px}
body.hardware-home #view-hardware .h-search input{font-family:inherit;font-size:12px;line-height:1.4;font-weight:400;padding:9px 0;min-width:0}
body.hardware-home #view-hardware .h-search>.h-button{height:39px;min-height:39px;padding:8px 20px;font-family:inherit;font-size:13px;border-radius:6px;background:linear-gradient(115deg,#00b09b,#009b94);box-shadow:0 2px 5px #009d9914;min-width:97px;flex-shrink:0;transform:translateX(1px)}
body.hardware-home #view-hardware .h-catalog-filters{position:absolute;right:15px;top:17px;z-index:3;max-width:80%;color:#5b809b;font-size:11px}
body.hardware-home #view-hardware .h-catalog-filters>summary{list-style:none;cursor:pointer;min-height:26px;display:flex;align-items:center;justify-content:flex-end;gap:5px}
body.hardware-home #view-hardware .h-catalog-filters[open]{background:#fff;border:1px solid #dceaf2;border-radius:8px;padding:8px 10px;box-shadow:0 7px 20px #21486314;top:10px}
body.hardware-home #view-hardware .h-categories{margin:8px 0 0;justify-content:flex-end;max-width:330px}
body.hardware-home #view-hardware .h-categories button{min-height:32px;font-size:11px;padding:5px 8px}
body.hardware-home #view-hardware .h-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
body.hardware-home #view-hardware .h-product{border:1px solid #e2edf4;border-radius:7px;background:linear-gradient(140deg,#fcfeff,#f7fbfe);padding:0;height:129px;min-height:0;display:block;position:relative;transition:border-color .15s,box-shadow .15s}
body.hardware-home #view-hardware .h-product:hover{border-color:#a8dadb;box-shadow:0 3px 10px #008c8b0c}
body.hardware-home #view-hardware .h-product-photo{height:78px;padding:5px 8px;background:transparent;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
body.hardware-home #view-hardware .h-product-photo img{height:100%;width:100%;max-height:100%;max-width:100%;min-height:0;object-fit:contain;mix-blend-mode:multiply;flex-shrink:1}
body.hardware-home #view-hardware .h-product-copy{padding:2px 9px 7px;min-height:0}
body.hardware-home #view-hardware .h-product-copy>small{display:none}
body.hardware-home #view-hardware .h-product h3{font-size:12px;font-weight:500;line-height:1.3;color:#173049;letter-spacing:-.15px;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.hardware-home #view-hardware .h-product-copy>strong{font-size:13px;font-weight:750;line-height:1.25;margin:0;color:#0b2540;letter-spacing:-.1px}
body.hardware-home #view-hardware .h-product .h-stock{position:absolute;left:5px;top:5px;padding:2px 4px;font-size:8px;line-height:1.25;gap:3px;pointer-events:none;background:#e7faf3;color:#08735d;border:1px solid #cfecdf}
body.hardware-home #view-hardware .h-product .h-stock.out{background:#fff1f3e8;color:#a63048;border-color:#f5dfe4}
body.hardware-home #view-hardware .h-product .h-stock.low{background:#fff3e0;color:#985000;border-color:#f5e8c8}
body.hardware-home #view-hardware .h-product .h-add{position:absolute;inset:0;width:100%;height:100%;border-radius:7px;background:transparent;color:transparent;box-shadow:none;font-size:0;margin:0;border:0;z-index:1}
body.hardware-home #view-hardware .h-product .h-add>i{display:none}
body.hardware-home #view-hardware .h-product .h-add:disabled{background:transparent;color:transparent;opacity:1;cursor:not-allowed}
body.hardware-home #view-hardware .h-catalog-foot{margin-top:9px;min-height:15px;gap:6px}
body.hardware-home #view-hardware .h-catalog-foot>span{font-size:10px;color:#6c859a}
body.hardware-home #view-hardware .h-catalog-foot>.h-button{background:transparent;border:0;box-shadow:none;padding:0;min-height:20px;font-size:10px;color:#2f7e9a;font-weight:500}
body.hardware-home #view-hardware .h-catalog-foot>.h-button>i{font-size:9px}
body.hardware-home #view-hardware .h-list-row{border:1px solid #e5edf5;border-radius:7px;padding:12px 10px;gap:9px;background:linear-gradient(105deg,#fff,#fcfdff);min-height:61px;flex-shrink:0}
body.hardware-home #view-hardware .h-list-row strong{font-size:12px;font-weight:700;line-height:1.35}
body.hardware-home #view-hardware .h-list-row small{font-size:11px;line-height:1.3;color:#6b8298;margin-top:4px}
body.hardware-home #view-hardware .h-list-row>b{font-size:13px;letter-spacing:-.4px;font-weight:750;white-space:nowrap;max-width:none}
body.hardware-home #view-hardware .h-list-row .h-symbol{width:34px;height:36px;font-size:20px;color:#00a290;background:#e5faf5;border-radius:6px}
body.hardware-home #view-hardware .h-home-stat{padding:15px 12px;border:1px solid #e7eff5;border-radius:10px;background:#fff;box-shadow:0 3px 12px #15496703;display:flex;align-items:center;justify-content:center;gap:11px;min-width:0;min-height:99px}
body.hardware-home #view-hardware .h-home-stat>div{min-width:0}
body.hardware-home #view-hardware .h-home-stat p{font-size:11px;font-weight:600;color:#27435c;line-height:1.35;margin:0 0 6px}
body.hardware-home #view-hardware .h-home-stat strong{font-size:23px;font-weight:750;letter-spacing:-.8px;line-height:1.15;color:#0d2641;display:block;overflow-wrap:anywhere}
body.hardware-home #view-hardware .h-stat-symbol{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:24px;background:#e6f5ff;color:#0f9fe9;box-shadow:inset 0 0 0 5px #f4fbff}
body.hardware-home #view-hardware .h-stat-symbol.orange{background:#fff0e4;color:#fc8815;box-shadow:inset 0 0 0 5px #fff8f1}
body.hardware-home #view-hardware .h-stat-symbol.purple{background:#f0eaff;color:#8f50e6;box-shadow:inset 0 0 0 5px #faf7ff}
body.hardware-home #view-hardware .h-home-sales-stat{padding:13px 14px;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:9px}
body.hardware-home #view-hardware .h-home-sales-stat p{font-size:12px;margin:0 0 5px;font-weight:700}
body.hardware-home #view-hardware .h-home-sales-stat strong{font-size:25px;font-weight:800}
body.hardware-home #view-hardware .h-mini-chart{height:29px;display:flex;align-items:flex-end;gap:7px}
body.hardware-home #view-hardware .h-mini-chart>div{flex:1;display:flex;align-items:flex-end;height:100%;min-width:0}
body.hardware-home #view-hardware .h-mini-chart span{display:block;width:100%;height:max(3px,var(--h-bar));max-height:29px;border-radius:2px 2px 0 0;background:linear-gradient(130deg,#62e8dc,#24b8ef)}
body.hardware-home #view-hardware .h-mini-chart span.negative{background:#d35b75}
body.hardware-home #view-hardware .h-mini-chart small{display:none}
body.hardware-home #view-hardware .h-top-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
body.hardware-home #view-hardware .h-top-product{padding:8px;background:linear-gradient(140deg,#fff,#f7fbfe);border:1px solid #e4eef5;border-radius:7px;min-width:0}
body.hardware-home #view-hardware .h-top-product>div{height:49px;margin-bottom:6px}
body.hardware-home #view-hardware .h-top-product img{object-fit:contain;mix-blend-mode:multiply}
body.hardware-home #view-hardware .h-top-product strong{font-size:11px;line-height:1.4;font-weight:500;color:#29465f}
body.hardware-home #view-hardware .h-top-product small{font-size:12px;font-weight:750;color:#15344b;margin-top:4px}
body.hardware-home #view-hardware .h-stock-alerts .h-card-heading{margin-bottom:8px}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row{border:0;border-radius:0;background:transparent;min-height:40px;padding:3px 0;gap:7px}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row strong{font-size:11px;font-weight:600}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row small{font-size:10px;margin-top:1px}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row>b{font-size:11px;display:flex;align-items:center;gap:4px;color:#c14451!important}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row .h-thumb{width:27px;height:33px}
body.hardware-home #view-hardware .h-stock-alerts .h-thumb img{mix-blend-mode:multiply;object-fit:contain}
body.hardware-home #view-hardware .h-alert-rank{width:20px;height:20px;border-radius:50%;background:#f0f5fa;color:#516c83;display:grid;place-items:center;font-size:10px;font-weight:700;flex-shrink:0}
body.hardware-home #view-hardware .h-recent-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:265px;padding:18px;text-align:center;border:1px dashed #deebf4;border-radius:8px;background:linear-gradient(#fbfdff,#f6fbfe);flex:1}
body.hardware-home #view-hardware .h-recent-empty>i{font-size:31px;color:#50baa9;background:#e7f8f3;border-radius:15px;padding:17px}
body.hardware-home #view-hardware .h-recent-empty strong{font-size:14px;font-weight:600;color:#234c65}
body.hardware-home #view-hardware .h-recent-empty p{font-size:12px;line-height:1.7;color:#6b8295;margin:0;max-width:190px}
body.hardware-home #view-hardware .h-sales-empty{grid-column:1/-1;display:flex;align-items:center;gap:17px;min-height:112px;padding:16px;border:1px dashed #e0eaf4;border-radius:8px;background:linear-gradient(110deg,#fbfdff,#f6fcfd)}
body.hardware-home #view-hardware .h-sales-empty>i{font-size:29px;color:#29b1c6;background:#e9f9fc;padding:15px;border-radius:13px;flex-shrink:0}
body.hardware-home #view-hardware .h-sales-empty strong{font-size:13px;font-weight:600;line-height:1.4;color:#31566e}
body.hardware-home #view-hardware .h-sales-empty p{font-size:12px;line-height:1.6;color:#7890a5;margin:5px 0 0}
body.hardware-home #view-hardware .h-source{font-size:10px;line-height:1.4;margin-top:13px;gap:5px;color:#7090a1}
body.hardware-home #view-hardware .h-cart-shortcut{min-height:42px;margin-top:10px;font-size:12px;padding:10px 13px;border-radius:7px}
@media(min-width:768px) and (max-width:1100px){
 body.hardware-home #sidebar{width:165px;flex-basis:165px}
 body.hardware-home #sidebar>div:first-child{padding-inline:13px}
 body.hardware-home #ui-brand-logo{font-size:20px}
 body.hardware-home #ui-brand-logo .ad-logo{width:23px}
 body.hardware-home main>.flex-1.overflow-auto{padding:12px!important}
 body.hardware-home #desktop-header{padding-inline:12px;gap:9px}
 body.hardware-home #desktop-header #network-badge{display:none}
 body.hardware-home #desktop-header #ui-current-user,
 body.hardware-home #desktop-header #ui-current-role{display:none}
 body.hardware-home #desktop-header #ad-context label:last-child select{max-width:125px}
 body.hardware-home #view-hardware .h-home-layout{grid-template-columns:minmax(0,1.8fr) minmax(190px,1fr);gap:10px}
 body.hardware-home #view-hardware .h-card{padding:12px}
 body.hardware-home #view-hardware .h-card h2{font-size:15px}
 body.hardware-home #view-hardware .h-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 body.hardware-home #view-hardware .h-product{height:119px}
 body.hardware-home #view-hardware .h-product-photo{height:72px;padding:6px 4px}
 body.hardware-home #view-hardware .h-product-copy{padding:2px 5px 5px}
 body.hardware-home #view-hardware .h-product h3{font-size:10px}
 body.hardware-home #view-hardware .h-product-copy>strong{font-size:11px}
 body.hardware-home #view-hardware .h-product .h-stock{font-size:7px}
 body.hardware-home #view-hardware .h-search>i{font-size:20px;width:23px}
 body.hardware-home #view-hardware .h-search input{font-size:11px}
 body.hardware-home #view-hardware .h-search>.h-button{min-width:72px;padding-inline:9px;font-size:12px}
 body.hardware-home #view-hardware .h-home-stat-strip{gap:8px;grid-template-columns:1.15fr 1fr 1fr 1fr}
 body.hardware-home #view-hardware .h-home-stat{padding:12px 9px;gap:8px;align-items:flex-start;flex-direction:column}
 body.hardware-home #view-hardware .h-home-stat p{font-size:10px}
 body.hardware-home #view-hardware .h-home-stat strong{font-size:20px}
 body.hardware-home #view-hardware .h-stat-symbol{width:31px;height:31px;font-size:18px}
 body.hardware-home #view-hardware .h-list-row{padding:10px 7px;gap:6px;flex-wrap:wrap}
 body.hardware-home #view-hardware .h-list-row>b{font-size:11px}
 body.hardware-home #view-hardware .h-list-row strong{font-size:10px}
 body.hardware-home #view-hardware .h-list-row small{font-size:10px}
 body.hardware-home #view-hardware .h-list-row .h-symbol{width:25px;height:28px;font-size:15px}
 body.hardware-home #view-hardware .h-recent-empty{padding:12px;min-height:258px}
 body.hardware-home #view-hardware .h-sales-empty{padding:12px;gap:12px}
}
@media(max-width:767px){
 body.hardware-home #sidebar{width:246px;flex-basis:auto}
 body.hardware-home main>.flex-1.overflow-auto{padding:13px 13px 22px!important}
 body.hardware-home #view-hardware{font-family:Arial,"Segoe UI",sans-serif}
 body.hardware-home #view-hardware .h-mobile-shortcuts{margin:2px 0 12px}
 body.hardware-home #view-hardware .h-home-layout{display:flex;flex-direction:column;gap:12px}
 body.hardware-home #view-hardware .h-card{padding:13px;border-radius:10px;width:100%}
 body.hardware-home #view-hardware .h-card h2{font-size:16px;letter-spacing:-.3px}
 body.hardware-home #view-hardware .h-card-heading{margin-bottom:11px}
 body.hardware-home #view-hardware .h-product-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
 body.hardware-home #view-hardware .h-product{height:86px;min-height:0;padding:7px 49px 7px 3px;display:flex;align-items:center;gap:11px;border:0;border-bottom:1px solid #e2edf4;border-radius:0;background:transparent}
 body.hardware-home #view-hardware .h-product-photo{height:64px;width:64px;flex:0 0 64px;padding:2px}
 body.hardware-home #view-hardware .h-product-copy{padding:0;min-width:0;flex:1}
 body.hardware-home #view-hardware .h-product h3{font-size:13px;line-height:1.4;margin-bottom:4px;padding-right:0}
 body.hardware-home #view-hardware .h-product-copy>strong{font-size:14px;line-height:1.3}
 body.hardware-home #view-hardware .h-product .h-stock{position:static;font-size:9px;padding:2px 4px;margin-top:4px;width:max-content}
 body.hardware-home #view-hardware .h-product .h-add{position:absolute;inset:calc(50% - 22px) 0 auto auto;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;display:grid;place-items:center;background:#00a294;color:white;font-size:13px;box-shadow:none}
 body.hardware-home #view-hardware .h-product .h-add>i{display:block}
 body.hardware-home #view-hardware .h-product .h-add:disabled{background:#e7edf2;color:#91a2ad;opacity:1}
 body.hardware-home #view-hardware .h-search input{font-size:16px}
 body.hardware-home #view-hardware .h-search>.h-button{min-width:76px;padding-inline:12px;font-size:12px}
 body.hardware-home #view-hardware .h-search>i{font-size:23px;width:27px}
 body.hardware-home #view-hardware .h-catalog-filters{top:14px;right:13px}
 body.hardware-home #view-hardware .h-catalog-foot>span,
 body.hardware-home #view-hardware .h-catalog-foot>.h-button{font-size:11px}
 body.hardware-home #view-hardware .h-home-stat-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;order:1}
 body.hardware-home #view-hardware .h-home-stat{min-height:106px;padding:13px 11px;justify-content:flex-start;gap:9px;align-items:center}
 body.hardware-home #view-hardware .h-home-stat p{font-size:11px}
 body.hardware-home #view-hardware .h-home-stat strong{font-size:21px}
 body.hardware-home #view-hardware .h-stat-symbol{width:34px;height:34px;font-size:20px;box-shadow:none!important}
 body.hardware-home #view-hardware .h-home-sales-stat{align-items:stretch}
 body.hardware-home #view-hardware .h-quick-sale{order:0}
 body.hardware-home #view-hardware .h-recent-sales{order:2}
 body.hardware-home #view-hardware .h-best-sellers{order:3}
 body.hardware-home #view-hardware .h-stock-alerts{order:4}
 body.hardware-home #view-hardware .h-recent-empty{min-height:150px;padding:16px}
 body.hardware-home #view-hardware .h-recent-empty>i{font-size:25px;padding:13px}
 body.hardware-home #view-hardware .h-list-row{min-height:64px;padding:11px}
 body.hardware-home #view-hardware .h-list-row strong{font-size:13px}
 body.hardware-home #view-hardware .h-list-row small{font-size:12px}
 body.hardware-home #view-hardware .h-list-row>b{font-size:13px}
 body.hardware-home #view-hardware .h-top-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.hardware-home #view-hardware .h-top-product>div{height:75px}
 body.hardware-home #view-hardware .h-top-product strong{font-size:12px}
 body.hardware-home #view-hardware .h-stock-alerts .h-list-row{min-height:47px}
 body.hardware-home #view-hardware .h-stock-alerts .h-list-row strong{font-size:12px}
 body.hardware-home #view-hardware .h-stock-alerts .h-list-row small{font-size:11px}
 body.hardware-home #view-hardware .h-stock-alerts .h-thumb{width:35px;height:35px}
 body.hardware-home #view-hardware .h-source{font-size:11px;line-height:1.5}
}
@media(max-width:359px){
 body.hardware-home #view-hardware .h-home-stat{flex-direction:column;align-items:flex-start;min-height:116px}
 body.hardware-home #view-hardware .h-home-stat strong{font-size:20px}
 body.hardware-home #view-hardware .h-search>.h-button{min-width:65px;padding-inline:9px}
 body.hardware-home #view-hardware .h-search input{font-size:14px}
 body.hardware-home #view-hardware .h-catalog-filters>summary{font-size:10px}
}


/* Ferretería: las miniaturas de alertas nunca salen de su fila. */
body.hardware-home #view-hardware .h-stock-alerts .h-thumb{display:flex;align-items:center;justify-content:center;overflow:hidden;min-width:0;min-height:0;flex:0 0 35px;width:35px;height:35px}
body.hardware-home #view-hardware .h-stock-alerts .h-thumb img{display:block;flex:none;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row>span:not(.h-thumb):not(.h-alert-rank){min-width:0;flex:1;text-align:left}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row strong{overflow-wrap:anywhere}
body.hardware-home #view-hardware .h-stock-alerts .h-list-row>b{flex-shrink:0;margin-left:auto}
body.hardware-home #view-hardware .h-top-product>div{overflow:hidden;display:flex;align-items:center;justify-content:center}
body.hardware-home #view-hardware .h-top-product img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}

/* Product editor: Ferretería only. Existing controls and handlers are retained. */
body.hardware-mode #modal-add-product{padding:20px;background:#071e36a8;backdrop-filter:blur(7px)}
body.hardware-mode #modal-add-product .hpf-panel{width:100%;max-width:1040px;max-height:calc(100dvh - 40px);border-radius:20px;border:1px solid #e5edf4;background:#f5f8fb;box-shadow:0 28px 90px #00152e45;color:#16334c;font-family:"Segoe UI",Arial,sans-serif}
body.hardware-mode #modal-add-product .hpf-header{background:white;padding:19px 24px;border-bottom:1px solid #e5edf4;gap:18px}
body.hardware-mode #modal-add-product .hpf-heading{display:flex;align-items:center;gap:13px;min-width:0}
body.hardware-mode #modal-add-product .hpf-heading-icon{width:48px;height:48px;display:grid;place-items:center;flex:none;font-size:23px;background:#e4faf4;color:#009d8b;border:1px solid #c9eee5;border-radius:14px}
body.hardware-mode #modal-add-product .hpf-eyebrow{font-size:10px;font-weight:750;letter-spacing:1.3px;color:#008875;display:block;margin-bottom:4px}
body.hardware-mode #modal-add-product #modal-prod-title{font-size:24px;line-height:1.2;font-weight:750;letter-spacing:-.7px;color:#102b45;margin:0}
body.hardware-mode #modal-add-product #modal-prod-title>i{display:none}
body.hardware-mode #modal-add-product .hpf-subtitle{font-size:12px;line-height:1.5;color:#6c8094;margin:5px 0 0}
body.hardware-mode #modal-add-product .hpf-header>button{width:38px;height:38px;min-height:38px;border-radius:11px;border:1px solid #e1e9f0;color:#668098;background:#f8fafc;font-size:25px;display:grid;place-items:center;flex:none}
body.hardware-mode #modal-add-product .hpf-body{padding:20px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
body.hardware-mode #modal-add-product .hpf-body>*{margin:0!important}
body.hardware-mode #modal-add-product .hpf-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:19px;align-items:start}
body.hardware-mode #modal-add-product .hpf-aside{display:grid;gap:15px;min-width:0}
body.hardware-mode #modal-add-product .hpf-photo-card{background:white;border:1px solid #e2ebf2;border-radius:14px;padding:16px;min-width:0}
body.hardware-mode #modal-add-product .hpf-photo-card>h4{font-size:13px;font-weight:700;color:#18394f;margin:0 0 4px}
body.hardware-mode #modal-add-product .hpf-muted{font-size:11px;color:#718699;line-height:1.5;margin:0 0 14px}
body.hardware-mode #modal-add-product #dropzone-area{height:auto;min-height:178px;max-width:100%;border:1.5px dashed #abd8d1;border-radius:12px;background:linear-gradient(140deg,#f3fcf9,#f3f8fc);padding:24px 10px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;transition:border-color .15s,background .15s;overflow:hidden}
body.hardware-mode #modal-add-product #dropzone-area:hover{border-color:#00a995;background:#ecfaf6}
body.hardware-mode #modal-add-product #dropzone-area:focus-within{outline:3px solid #57cfc588;outline-offset:3px}
body.hardware-mode #modal-add-product #dropzone-area>i{font-size:29px;color:#00a38d;background:#ddf6ef;border-radius:12px;padding:13px;margin:0}
body.hardware-mode #modal-add-product #dropzone-area>p{font-size:11px;font-weight:500;color:#557b86;line-height:1.7;margin:0;max-width:160px;pointer-events:none}
body.hardware-mode #modal-add-product #inp-prod-img{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
body.hardware-mode #modal-add-product #prod-preview{max-width:100%;max-height:150px;object-fit:contain}
body.hardware-mode #modal-add-product #product-photo-previews{position:relative;z-index:1;width:100%;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body.hardware-mode #modal-add-product #product-photo-previews:empty{display:none}
body.hardware-mode #modal-add-product #product-photo-previews img{max-width:100%;width:100%;height:72px;object-fit:contain;border-radius:8px}
body.hardware-mode #modal-add-product #product-photo-previews button{font-size:10px;min-height:32px}
body.hardware-mode #modal-add-product .hpf-unit-tip{background:#eaf5f7;border:1px solid #d9e9ee;padding:16px;border-radius:13px;color:#476e7e}
body.hardware-mode #modal-add-product .hpf-unit-tip>i{display:block;font-size:21px;color:#008f93;margin-bottom:11px}
body.hardware-mode #modal-add-product .hpf-unit-tip>strong{display:block;font-size:12px;font-weight:700;color:#315970;margin-bottom:6px}
body.hardware-mode #modal-add-product .hpf-unit-tip>p{font-size:11px;line-height:1.8;margin:0}
body.hardware-mode #modal-add-product .hpf-fields{display:grid;gap:13px;min-width:0}
body.hardware-mode #modal-add-product .hpf-section{background:white;border:1px solid #e2eaf2;border-radius:14px;padding:16px;min-width:0}
body.hardware-mode #modal-add-product .hpf-section-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
body.hardware-mode #modal-add-product .hpf-section-head>i{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eaf8f5;color:#009782;font-size:14px;flex:none}
body.hardware-mode #modal-add-product .hpf-section-head h4{font-size:14px;line-height:1.4;font-weight:750;margin:0;color:#16364f}
body.hardware-mode #modal-add-product .hpf-section-head p{font-size:11px;line-height:1.5;margin:3px 0 0;color:#71869a}
body.hardware-mode #modal-add-product .hpf-grid{display:grid;gap:12px;min-width:0}
body.hardware-mode #modal-add-product .hpf-identity-grid{grid-template-columns:1.15fr 1.1fr .9fr}
body.hardware-mode #modal-add-product .hpf-identity-grid>.hpf-field:first-child{grid-column:1/-1}
body.hardware-mode #modal-add-product .hpf-pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.hardware-mode #modal-add-product .hpf-stock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.hardware-mode #modal-add-product .hpf-field{min-width:0}
body.hardware-mode #modal-add-product .hpf-field label,
body.hardware-mode #modal-add-product .hpf-disclosure-body label{display:block;font-size:11px;line-height:1.5;letter-spacing:0;text-transform:none;font-weight:650;color:#4c657b;margin:0 0 6px}
body.hardware-mode #modal-add-product .hpf-field input,
body.hardware-mode #modal-add-product .hpf-field select,
body.hardware-mode #modal-add-product .hpf-disclosure-body input,
body.hardware-mode #modal-add-product .hpf-disclosure-body select{display:block;width:100%;max-width:100%;min-width:0;min-height:43px;border:1px solid #dce6ee;border-radius:9px;background:#fbfcfe;color:#17374d;font-family:inherit;font-size:13px;font-weight:550;padding:10px 11px;line-height:1.4;text-align:left;box-shadow:0 1px 2px #103c5603;outline:none;transition:background .15s,border-color .15s,box-shadow .15s}
body.hardware-mode #modal-add-product .hpf-field label>input{margin-top:6px}
body.hardware-mode #modal-add-product .hpf-field input::placeholder,
body.hardware-mode #modal-add-product .hpf-disclosure-body input::placeholder{color:#91a4b3;font-weight:400}
body.hardware-mode #modal-add-product .hpf-field input:focus,
body.hardware-mode #modal-add-product .hpf-field select:focus,
body.hardware-mode #modal-add-product .hpf-disclosure-body input:focus,
body.hardware-mode #modal-add-product .hpf-disclosure-body select:focus{border-color:#00a894;background:#fff;box-shadow:0 0 0 3px #00a89418}
body.hardware-mode #modal-add-product #inp-prod-price{border-color:#b9e6dc;color:#007e6c;background:#f3fcf8;font-weight:750}
body.hardware-mode #modal-add-product #inp-prod-cost{color:#294b64;background:#f7fafc}
body.hardware-mode #modal-add-product #inp-prod-min{border-color:#eee0c9;background:#fffaf3;color:#8c5f21}
body.hardware-mode #modal-add-product .hpf-field-note{font-size:10px;line-height:1.6;margin:9px 0 0;color:#7d8fa0}
body.hardware-mode #modal-add-product .hpf-extras{display:grid;gap:9px}
body.hardware-mode #modal-add-product .hpf-disclosure{border:1px solid #dfe8f0;background:#fff;border-radius:12px;min-width:0;overflow:hidden}
body.hardware-mode #modal-add-product .hpf-disclosure>summary{display:flex;align-items:center;gap:11px;cursor:pointer;padding:13px 15px;list-style:none;min-height:60px}
body.hardware-mode #modal-add-product .hpf-disclosure>summary::-webkit-details-marker{display:none}
body.hardware-mode #modal-add-product .hpf-disclosure>summary>i:first-child{color:#21898d;font-size:17px;width:23px;text-align:center}
body.hardware-mode #modal-add-product .hpf-disclosure>summary>span{min-width:0;flex:1}
body.hardware-mode #modal-add-product .hpf-disclosure>summary strong{font-size:12px;line-height:1.4;font-weight:650;color:#34566c;display:block}
body.hardware-mode #modal-add-product .hpf-disclosure>summary small{font-size:10px;line-height:1.5;color:#8395a4;display:block;margin-top:2px}
body.hardware-mode #modal-add-product .hpf-disclosure>summary>i:last-child{font-size:10px;color:#7f98a6;transition:transform .15s}
body.hardware-mode #modal-add-product .hpf-disclosure[open]>summary>i:last-child{transform:rotate(180deg)}
body.hardware-mode #modal-add-product .hpf-disclosure-body{padding:15px;border-top:1px solid #e9eff5;background:#fcfdff;min-width:0}
body.hardware-mode #modal-add-product #product-barcode-fields{min-width:0;font-size:12px}
body.hardware-mode #modal-add-product #product-barcode-fields h4{font-size:13px;font-weight:700;margin:17px 0 6px;color:#35566c}
body.hardware-mode #modal-add-product #product-barcode-fields p,
body.hardware-mode #modal-add-product #product-sector-fields>p{font-size:11px;line-height:1.8;color:#6f8799;margin:0 0 13px}
body.hardware-mode #modal-add-product #product-barcode-fields label>input{margin-top:6px}
body.hardware-mode #modal-add-product .pack-row{display:grid!important;grid-template-columns:minmax(100px,1.2fr) minmax(110px,1.3fr) minmax(75px,.8fr) auto;align-items:center;gap:7px!important;padding:10px;border:1px solid #e1ebf3;border-radius:10px;background:white;margin:10px 0!important}
body.hardware-mode #modal-add-product .pack-row input{width:100%!important;font-size:12px;padding:10px 8px}
body.hardware-mode #modal-add-product .pack-row>button{border:1px solid #f1dce0;border-radius:8px;min-height:40px;padding:8px;color:#aa5265;background:#fff7f9;font-size:11px}
body.hardware-mode #modal-add-product #add-pack{font-size:12px;min-height:40px;border:1px solid #cde8e1;color:#00816f;padding:9px 13px;background:#effaf6;border-radius:8px;font-weight:650}
body.hardware-mode #modal-add-product #product-sector-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px;min-width:0;border:0;padding:0;margin:0}
body.hardware-mode #modal-add-product #product-sector-fields>legend{display:none}
body.hardware-mode #modal-add-product #product-sector-fields>p{grid-column:1/-1;margin:0}
body.hardware-mode #modal-add-product #product-sector-fields>label{margin:0;min-width:0}
body.hardware-mode #modal-add-product #product-sector-fields input,
body.hardware-mode #modal-add-product #product-sector-fields select{margin-top:5px}
body.hardware-mode #modal-add-product .hpf-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 23px;margin:0;background:white;border-top:1px solid #e0e9f1;box-shadow:0 -5px 20px #183e5703}
body.hardware-mode #modal-add-product .hpf-footer-note{font-size:11px;color:#8a9baa}
body.hardware-mode #modal-add-product .hpf-actions{display:flex;align-items:center;gap:10px}
body.hardware-mode #modal-add-product .hpf-cancel{min-height:44px;border:1px solid #dce6ed;border-radius:10px;background:white;color:#557186;padding:11px 20px;font-size:13px;font-weight:650}
body.hardware-mode #modal-add-product .hpf-save{display:flex;align-items:center;justify-content:center;gap:9px;width:auto;min-height:44px;border:1px solid #009c88;border-radius:10px;background:linear-gradient(115deg,#00a98e,#009bb1);color:white;font-size:13px;font-weight:700;padding:11px 23px;box-shadow:0 4px 10px #009e8e1c;transform:none}
body.hardware-mode #modal-add-product .hpf-save:hover{filter:brightness(.97)}
body.hardware-mode #modal-add-product button:focus-visible,
body.hardware-mode #modal-add-product summary:focus-visible{outline:3px solid #18b6a86b;outline-offset:3px}
@media(max-width:850px){
 body.hardware-mode #modal-add-product .hpf-layout{grid-template-columns:180px minmax(0,1fr);gap:13px}
 body.hardware-mode #modal-add-product .hpf-body{padding:15px}
 body.hardware-mode #modal-add-product .hpf-photo-card{padding:12px}
 body.hardware-mode #modal-add-product .hpf-section{padding:14px}
 body.hardware-mode #modal-add-product .hpf-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.hardware-mode #modal-add-product .hpf-identity-grid>.hpf-field:last-child{grid-column:1/-1}
 body.hardware-mode #modal-add-product .hpf-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.hardware-mode #modal-add-product .hpf-pricing-grid>.hpf-field:last-child{grid-column:1/-1}
 body.hardware-mode #modal-add-product .pack-row{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
 body.hardware-mode #modal-add-product{padding:0;align-items:stretch}
 body.hardware-mode #modal-add-product .hpf-panel{max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 body.hardware-mode #modal-add-product .hpf-header{padding:16px;gap:10px}
 body.hardware-mode #modal-add-product .hpf-heading{gap:10px}
 body.hardware-mode #modal-add-product .hpf-heading-icon{width:39px;height:39px;font-size:19px;border-radius:11px}
 body.hardware-mode #modal-add-product .hpf-eyebrow{font-size:8px;letter-spacing:1px}
 body.hardware-mode #modal-add-product #modal-prod-title{font-size:21px;letter-spacing:-.5px}
 body.hardware-mode #modal-add-product .hpf-subtitle{font-size:11px;max-width:220px}
 body.hardware-mode #modal-add-product .hpf-header>button{width:36px;height:36px;min-height:36px}
 body.hardware-mode #modal-add-product .hpf-body{padding:13px;scrollbar-gutter:auto}
 body.hardware-mode #modal-add-product .hpf-layout{display:flex;flex-direction:column;gap:13px}
 body.hardware-mode #modal-add-product .hpf-aside{width:100%;display:block}
 body.hardware-mode #modal-add-product .hpf-unit-tip{display:none}
 body.hardware-mode #modal-add-product .hpf-photo-card{padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 125px;gap:4px 12px;align-items:center}
 body.hardware-mode #modal-add-product .hpf-photo-card>h4{font-size:13px;align-self:end;margin:0}
 body.hardware-mode #modal-add-product .hpf-photo-card>.hpf-muted{font-size:11px;align-self:start;margin:0}
 body.hardware-mode #modal-add-product #dropzone-area{grid-column:2;grid-row:1/3;min-height:95px;padding:9px 7px;gap:6px}
 body.hardware-mode #modal-add-product #dropzone-area>i{font-size:18px;padding:7px;border-radius:8px}
 body.hardware-mode #modal-add-product #dropzone-area>p{font-size:9px;line-height:1.5;max-width:108px}
 body.hardware-mode #modal-add-product #product-photo-previews{grid-template-columns:minmax(0,1fr)}
 body.hardware-mode #modal-add-product .hpf-fields{width:100%;gap:11px}
 body.hardware-mode #modal-add-product .hpf-section{padding:14px;border-radius:12px}
 body.hardware-mode #modal-add-product .hpf-section-head{margin-bottom:13px;gap:9px;align-items:flex-start}
 body.hardware-mode #modal-add-product .hpf-section-head h4{font-size:14px}
 body.hardware-mode #modal-add-product .hpf-section-head p{font-size:11px}
 body.hardware-mode #modal-add-product .hpf-grid{gap:12px 10px}
 body.hardware-mode #modal-add-product .hpf-field label,
 body.hardware-mode #modal-add-product .hpf-disclosure-body label{font-size:12px}
 body.hardware-mode #modal-add-product .hpf-field input,
 body.hardware-mode #modal-add-product .hpf-field select,
 body.hardware-mode #modal-add-product .hpf-disclosure-body input,
 body.hardware-mode #modal-add-product .hpf-disclosure-body select{font-size:16px;min-height:46px;padding:11px 10px}
 body.hardware-mode #modal-add-product .hpf-stock-grid>.hpf-field:nth-child(n+3){grid-column:1/-1}
 body.hardware-mode #modal-add-product .hpf-disclosure>summary{padding:13px;min-height:65px}
 body.hardware-mode #modal-add-product .hpf-disclosure>summary strong{font-size:13px}
 body.hardware-mode #modal-add-product .hpf-disclosure>summary small{font-size:11px}
 body.hardware-mode #modal-add-product .hpf-disclosure-body{padding:13px}
 body.hardware-mode #modal-add-product #product-sector-fields{grid-template-columns:minmax(0,1fr)}
 body.hardware-mode #modal-add-product .hpf-footer{padding:12px 14px calc(12px + env(safe-area-inset-bottom));gap:0}
 body.hardware-mode #modal-add-product .hpf-footer-note{display:none}
 body.hardware-mode #modal-add-product .hpf-actions{width:100%;gap:9px}
 body.hardware-mode #modal-add-product .hpf-cancel{min-height:47px;padding:12px 16px;font-size:13px}
 body.hardware-mode #modal-add-product .hpf-save{flex:1;min-height:47px;padding:12px;font-size:14px}
}
@media(max-width:359px){
 body.hardware-mode #modal-add-product .hpf-identity-grid,
 body.hardware-mode #modal-add-product .hpf-pricing-grid,
 body.hardware-mode #modal-add-product .hpf-stock-grid{grid-template-columns:minmax(0,1fr)}
 body.hardware-mode #modal-add-product .hpf-photo-card{grid-template-columns:minmax(0,1fr) 110px;gap:4px 8px}
 body.hardware-mode #modal-add-product .hpf-header{padding:13px}
 body.hardware-mode #modal-add-product .hpf-heading-icon{display:none}
 body.hardware-mode #modal-add-product .hpf-subtitle{max-width:210px}
}

/* Ferretería: filtros completos y proveedor SQL, aislados de otras ediciones. */
body.hardware-mode .h-category-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin:12px 0;color:#23445b;font-size:14px;font-weight:650;background:#fff;border:1px solid #dbe7ef;border-radius:12px}
body.hardware-mode .h-category-filter select{min-height:44px;min-width:220px;max-width:100%;padding:8px 12px;border:1px solid #cbdde7;border-radius:9px;background:#f7fbfd;color:#15364c}
body.hardware-mode #h-categories{display:flex;flex-wrap:wrap;overflow:visible;gap:7px}
body.hardware-mode #modal-add-product .hpf-small-button{min-height:40px;padding:8px 12px;border:1px solid #a9d9d0;border-radius:9px;color:#075c53;background:#effbf7;font-weight:650;font-size:13px}
body.hardware-mode #modal-add-product .hpf-supplier{display:grid;gap:8px;grid-column:1/-1;padding:12px;border:1px solid #dbe9ef;border-radius:12px}
body.hardware-mode #modal-add-product .hpf-supplier small{font-size:12px;line-height:1.5}
@media(max-width:600px){body.hardware-mode .h-category-filter{display:grid;gap:7px}body.hardware-mode .h-category-filter select{width:100%;min-width:0}}
body.hardware-mode #h-inventory-category-box{grid-column:1/-1;align-self:start;margin:0}
