/* El Piurano — espacio de trabajo adaptable, sin anchuras mínimas de página. */
:root{--header-height:68px;--dock-height:64px}html,body,#app,.shell,.main{width:100%;min-width:0}body{overflow-x:clip}.shell{display:block}.main{min-height:100dvh}svg{flex-shrink:0;vertical-align:middle}[hidden]{display:none!important}button{touch-action:manipulation}button:focus-visible{outline:3px solid #e9762270;outline-offset:2px}h1,h2,h3,p{overflow-wrap:anywhere}main{width:100%;min-width:0}.page-head>*,.grid2>*,.formgrid>*,.report-list>*,.filters>*{min-width:0;max-width:100%}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.grid2{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.card,.stat{min-width:0;max-width:100%}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-list{grid-template-columns:repeat(3,minmax(0,1fr))}.table-wrap{width:100%;min-width:0;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.filters{min-width:0}.filters input{flex:1 1 230px;min-width:0}.filters select{flex:1 1 150px;width:0;min-width:0}.filters label{flex:0 1 200px}input,select,textarea,label{min-width:0;max-width:100%}label{overflow-wrap:anywhere}select{text-overflow:ellipsis;padding-right:24px}.tabs{max-width:100%;min-width:0;overscroll-behavior-x:contain}.tabs button{flex-shrink:0}.card-head{flex-wrap:wrap}.stat .value{overflow-wrap:anywhere}.bar-col{min-width:0}.bar-col span{max-width:100%;overflow-wrap:anywhere;text-align:center}.alert-item>div{min-width:0}.alert-item i{flex-shrink:0}.login-form{min-width:0}.login-form form{max-width:100%;min-width:0}.login{grid-template-columns:repeat(2,minmax(0,1fr))}dialog{width:min(820px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}#modal-form{min-width:0}#toast{width:max-content;max-width:calc(100% - 24px);overflow-wrap:anywhere;font-size:.875rem;z-index:200}.line-entry{grid-template-columns:minmax(0,3fr) repeat(2,minmax(60px,1fr)) 44px}.line-entry:has([data-k=factor]){grid-template-columns:minmax(0,3fr) repeat(4,minmax(50px,1fr)) 44px}.line-entry>*{min-width:0}.notice,.banner{overflow-wrap:anywhere}.form-actions{flex-wrap:wrap}.mobile-cart{display:none!important}
/* Cabecera y navegación: el menú no ocupa columnas del contenido. */
.app-header{height:var(--header-height);min-height:var(--header-height);position:sticky;top:0;z-index:30;background:var(--nav);color:#fff;border-bottom:1px solid #ffffff12;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;max-width:100%}.header-identity,.header-tools{display:flex;align-items:center;gap:14px;min-width:0}.header-identity{flex:1}.header-tools{flex-shrink:0;gap:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:10px;min-width:44px;min-height:44px;flex-shrink:0}.app-header .icon-button{background:#ffffff0d;border:1px solid #ffffff1c;color:#d7e1ea}.header-brand{display:flex;align-items:center;gap:9px;flex-shrink:0;font-size:1rem;font-weight:800;letter-spacing:.02em;line-height:1.2}.header-brand img{width:34px;height:38px}.header-brand small{display:block;color:#a9bdcd;font-weight:400;font-size:.7rem;margin-top:4px;letter-spacing:0}.header-divider{height:28px;width:1px;background:#ffffff20;flex-shrink:0}.header-title{font-size:.9rem;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#c8d6e1}.branch-pill{padding:7px 10px;border:1px solid #ffffff25;border-radius:7px;font-size:.75rem;font-weight:700;color:#f3b785}.connection{display:flex;align-items:center;gap:6px;color:#9fd5b8;font-size:.75rem;white-space:nowrap}.connection i{width:6px;height:6px;background:#75c398;border-radius:50%}.connection.is-offline{color:#ffc17d}.connection.is-offline i{background:#ffc17d}.header-action{display:flex;align-items:center;gap:7px;background:#ffffff0d;border:1px solid #ffffff20;color:#dce7ef;font-size:.8rem;padding:9px 12px;min-height:42px}.app-header .avatar{width:36px;height:36px;min-height:36px;min-width:36px;padding:0;border-radius:50%;font-weight:750}.drawer-scrim{position:fixed;inset:0;z-index:90;background:#0b1f34a6;backdrop-filter:blur(3px)}.nav-drawer{position:fixed;inset:0 auto 0 0;width:min(310px,calc(100% - 38px));height:100dvh;background:var(--nav);color:#fff;z-index:100;display:flex;flex-direction:column;box-shadow:15px 0 60px #00142440;overflow-y:auto;overscroll-behavior:contain;padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom))}.drawer-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:16px}.drawer-heading .brand{margin:0;font-size:1.05rem;gap:9px}.drawer-heading .brand img{width:38px}.drawer-heading .brand small{font-size:.7rem}.drawer-heading .icon-button{background:#ffffff0b;color:#b9cbd8}.nav-drawer nav button{min-height:46px}.nav-drawer nav button>span:last-child{min-width:0}.nav-drawer .sidebar-foot{margin:25px 10px 0;padding-top:20px;border-top:1px solid #ffffff16;display:flex;flex-direction:column;gap:10px;color:#a4b8c9;font-size:.8rem}.sidebar-foot strong{color:#fff;font-size:.9rem}.sidebar-foot small{font-size:.7rem;line-height:1.6}.drawer-logout{background:#ffffff0a;color:#b9cbd8}.menu-open{overflow:hidden}.menu-open .main{pointer-events:none}
/* POS inspirado en la distribución de Market: categorías, catálogo, venta. */
.pos-page{overflow:hidden}.pos-content{padding:0;max-width:none;height:calc(100dvh - var(--header-height));overflow:hidden}.pos-workspace{display:grid;grid-template-columns:184px minmax(0,1fr) 350px;width:100%;height:100%;min-width:0;min-height:0}.pos-workspace>section{min-width:0;min-height:0}.category-rail{display:flex;flex-direction:column;background:#fff;border-right:1px solid #e0e7ed;overflow:hidden}.rail-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:14px 14px 10px;font-size:.7rem;font-weight:750;letter-spacing:.1em;color:#8b98a4}.rail-heading .icon-button{background:#fff0e5;color:#d57027;min-width:34px;min-height:34px;padding:7px}.category-list{padding:5px 10px;overflow-y:auto;min-height:0;flex:1}.category-list button{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%;text-align:left;background:transparent;color:#576d7e;padding:12px 10px;font-size:.8rem;font-weight:550;min-height:47px;border:1px solid transparent;margin-bottom:5px}.category-list button>span{flex:1;min-width:0;overflow-wrap:anywhere}.category-list button svg{width:16px}.category-list button b{font-size:.67rem;border-radius:20px;padding:3px 6px;background:#f0f4f7;color:#7d8d99}.category-list button.selected{background:#fff3e9;border-color:#f5d7be;color:#ba5b17}.category-list button.selected b{background:var(--accent);color:#fff}.rail-foot{padding:18px 14px;border-top:1px solid #edf0f3;display:flex;gap:8px;align-items:center;color:#d17731;font-size:.75rem;font-weight:750}.rail-foot small{display:block;color:#8a99a5;font-size:.63rem;font-weight:400;line-height:1.5;margin-top:4px}.pos-catalog{display:flex;flex-direction:column;overflow:hidden;background:#f2f5f8}.pos-toolbar{display:flex;align-items:center;gap:10px;padding:16px 18px 12px;background:#fff;min-width:0;flex-shrink:0}.pos-search{display:flex;align-items:center;gap:10px;border:1px solid #dbe3e9;border-radius:10px;background:#f8fafb;padding:0 12px;flex:1;min-width:0}.pos-search>svg{color:#8193a2;width:18px}.pos-search input{border:0;background:transparent;padding:13px 0;font-size:.875rem;min-width:0;flex:1;outline:none}.pos-search input:focus{outline:none}.pos-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #e9762215}.pos-search kbd{font-size:.65rem;background:#eaf0f4;color:#718594;border-radius:4px;padding:3px 5px;flex-shrink:0}.filter-toggle{display:flex;align-items:center;gap:5px;background:#fff;color:#5b7182;border:1px solid #dbe3e9;font-size:.8rem;padding:11px;flex-shrink:0}.filter-toggle.selected{background:#fff0e5;border-color:#efbe9a;color:#bd611d}.pos-filter-panel{padding:14px 18px;background:#fff;border-bottom:1px solid #e1e8ee;max-height:40dvh;overflow-y:auto;flex-shrink:0}.pos-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.pos-filter-grid label{font-size:.75rem}.pos-filter-grid select{font-size:.8rem}.pos-tickets{display:flex;align-items:center;gap:7px;padding:0 18px 12px;background:#fff;min-width:0;flex-shrink:0;border-bottom:1px solid #e4eaf0}.ticket-list{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;min-width:0;max-width:100%;overscroll-behavior-x:contain}.ticket-list button{display:flex;gap:7px;align-items:center;white-space:nowrap;flex-shrink:0;background:#f0f4f7;color:#698092;font-size:.75rem;min-height:34px;padding:7px 12px;border-radius:7px}.ticket-list button.active{background:var(--nav);color:#fff}.ticket-list button span{display:inline-grid;place-items:center;font-size:.64rem;min-width:17px;height:17px;border-radius:4px;background:#ffffff25}.new-ticket{display:flex;align-items:center;justify-content:center;width:34px;min-width:34px;min-height:34px;padding:7px;background:#fff0e5;color:#c16b26;border:1px solid #f5dcc8;border-radius:7px}.new-ticket svg{width:17px;height:17px}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;min-width:0;flex-shrink:0}.catalog-heading>div:first-child{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}.catalog-heading strong{font-size:.8rem;overflow-wrap:anywhere}.catalog-heading span{font-size:.7rem;color:#8998a5}.stock-switch{display:flex;align-items:center;gap:4px;flex-shrink:0}.stock-switch button{background:#fff;color:#6e8190;border:1px solid #dfe6ec;border-radius:6px;padding:6px 9px;min-height:30px;font-size:.68rem;font-weight:500;white-space:nowrap}.stock-switch button.active{background:var(--nav);border-color:var(--nav);color:#fff}.catalog-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:2px 18px 20px;scrollbar-width:thin}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;align-content:start;min-width:0}.product{display:flex;flex-direction:column;padding:12px;background:#fff;color:#253f53;border:1px solid #e3e9ef;border-radius:12px;cursor:pointer;position:relative;min-width:0;width:100%;text-align:left;font-weight:400;box-shadow:0 2px 5px #10273a02;transition:border-color .15s,box-shadow .15s}.product:hover{border-color:#eeb587;box-shadow:0 4px 15px #142b4009}.product-top{display:flex;justify-content:space-between;align-items:flex-start;gap:5px;min-width:0}.product .price{color:#c96921;background:#fff4eb;font-weight:750;font-size:.9rem;line-height:1.2;padding:6px 7px;border:1px solid #f8e3d1;border-radius:6px;overflow-wrap:anywhere;margin:0}.product-voltage{font-size:.6rem;line-height:1.4;background:#f1f4f7;color:#8393a0;padding:5px;border-radius:5px;white-space:nowrap;margin-top:2px}.product .part{height:95px;width:100%;display:flex;align-items:center;justify-content:center;color:#b27b52;margin:9px 0;background:radial-gradient(ellipse,#fff2e5 0,transparent 70%)}.part svg{width:60px;height:60px;max-width:100%}.product-code{display:flex;flex-direction:column;gap:4px;color:#8394a1;font-size:.63rem;line-height:1.4;overflow-wrap:anywhere}.product-code span{font-size:.65rem;color:#a3aeb7}.product h3{font-size:.8rem;font-weight:650;line-height:1.4;margin:8px 0 12px;min-height:2.8em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:auto;width:100%}.stock-tag{border-radius:5px;background:#e9f5ee;color:#3c8961;font-size:.64rem;padding:5px 6px;line-height:1.2}.stock-tag.sold-out{background:#fff0e9;color:#c7774b}.product-add{width:25px;height:25px;display:grid;place-items:center;color:#bf671f;background:#fff0e4;border-radius:6px;font-size:1rem;font-weight:600}.product .product-location{margin-top:8px;color:#9aa7b1;font-size:.6rem;overflow-wrap:anywhere;line-height:1.5}.catalog-empty{grid-column:1/-1;text-align:center;padding:45px 20px;color:#8799a7}.catalog-empty>svg{width:35px;height:35px}.catalog-empty h3{font-size:1rem;color:#5a7387}.catalog-empty p{font-size:.875rem}.mobile-categories,.pos-mobile-dock,.mobile-only{display:none}
.sale-panel{display:flex;flex-direction:column;background:#fff;border-left:1px solid #dfe6ec;overflow:hidden}.sale-heading{padding:17px 18px 13px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.sale-heading>div{display:flex;align-items:center;gap:9px;min-width:0}.sale-heading h2{margin:0;font-size:.95rem}.sale-heading svg{color:#ce702b}.sale-heading .icon-button{background:transparent;color:#94a3ae;min-width:34px;min-height:34px;padding:6px}.sale-heading .icon-button svg{width:17px;color:inherit}.item-count{font-size:.65rem;border-radius:6px;background:#f0f4f7;padding:4px 6px;color:#7b8f9e}.sale-customer{padding:0 18px 14px;border-bottom:1px solid #edf0f4;flex-shrink:0}.sale-customer label{font-size:.75rem}.sale-customer select{font-size:.8rem;min-height:40px;padding:9px 27px 9px 11px}.sale-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.sale-lines{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 18px;scrollbar-width:thin}.sale-line{padding:15px 0;border-bottom:1px solid #edf0f4;min-width:0}.sale-line-title{display:flex;gap:9px;justify-content:space-between;align-items:flex-start}.sale-line-title>div{min-width:0}.sale-line-title strong{font-size:.8rem;line-height:1.4;display:block;overflow-wrap:anywhere}.sale-line-title small{font-size:.65rem;color:#899aa7;display:block;margin-top:5px}.remove-item{min-height:30px;width:30px;min-width:30px;padding:6px;background:transparent;color:#b1bdc6}.remove-item svg{width:15px;height:15px}.sale-line-controls{display:flex;align-items:flex-end;gap:8px;margin-top:13px;min-width:0}.quantity-stepper{display:flex;align-items:center;border:1px solid #dfe6eb;border-radius:7px;overflow:hidden;flex-shrink:0;height:34px}.quantity-stepper button{background:#f6f8fa;color:#6f8494;min-height:32px;padding:0;width:26px;min-width:26px;font-size:1rem;border-radius:0}.quantity-stepper input{width:40px;min-width:0;padding:0 2px;min-height:32px;border:0;text-align:center;font-size:.75rem;border-radius:0;appearance:textfield;-moz-appearance:textfield}.quantity-stepper input::-webkit-inner-spin-button,.unit-price input::-webkit-inner-spin-button{-webkit-appearance:none}.unit-price{display:flex;flex-direction:column;gap:3px;font-size:.6rem;flex:0 1 72px;min-width:45px;color:#92a2ae;font-weight:400}.unit-price input{font-size:.75rem;min-height:34px;padding:7px;margin:0;width:100%;border-radius:6px}.line-total{font-size:.8rem;margin-left:auto;white-space:nowrap;padding-bottom:8px}.cart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;height:100%;text-align:center;color:#a6b2bc;padding:25px 10px}.cart-empty>div{width:55px;height:55px;border-radius:15px;background:#f2f5f8;display:grid;place-items:center;margin-bottom:17px;color:#bfccd6}.cart-empty>div svg{width:28px;height:28px}.cart-empty strong{font-size:.9rem;color:#6d8293}.cart-empty p{font-size:.75rem;max-width:230px;line-height:1.6}.sale-footer{padding:14px 18px 12px;background:#fbfcfe;border-top:1px solid #e3e9ef;flex-shrink:0;min-width:0}.sale-footer .totals{margin:0 0 12px}.sale-footer .totals>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.75rem;color:#8797a4;padding:4px 0}.sale-footer .totals .grand{font-size:.95rem;font-weight:700;color:#263f53;border-top:1px solid #e4eaf0;padding-top:13px;margin-top:9px}.grand strong{color:#ce6c22;font-size:1.35rem;letter-spacing:-.02em}.payment-method{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.7rem;font-weight:500;margin-bottom:12px;min-width:0}.payment-method select{font-size:.75rem;width:64%;min-height:36px;margin:0;padding:8px 24px 8px 9px}.checkout-actions{display:grid;grid-template-columns:85px minmax(0,1fr);gap:8px}.checkout-actions button{font-size:.8rem;min-height:44px;padding:10px}.sale-disclaimer{font-size:.6rem;text-align:center;color:#a0aeb9;margin:9px 0 0}.pos-mobile-dock button{min-height:44px}
@media(min-width:1500px){.pos-workspace{grid-template-columns:215px minmax(0,1fr) 385px}.products{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}.product h3{font-size:.875rem}.sale-line-title strong{font-size:.875rem}}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid2{grid-template-columns:minmax(0,1fr)}.report-list{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-workspace{grid-template-columns:160px minmax(0,1fr) 320px}.products{grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:10px}.pos-toolbar,.catalog-heading{padding-left:13px;padding-right:13px}.catalog-scroll{padding-left:13px;padding-right:13px}.header-title,.header-divider{display:none}.category-list{padding:5px 6px}.catalog-heading{align-items:flex-start;flex-wrap:wrap}.sale-line-controls{gap:6px}.line-total{font-size:.75rem}.sale-heading,.sale-customer,.sale-lines,.sale-footer{padding-left:14px;padding-right:14px}}
@media(max-width:900px){.pos-workspace{grid-template-columns:minmax(0,1fr) 320px}.category-rail{display:none}.mobile-categories{display:flex;gap:7px;overflow-x:auto;min-width:0;padding:10px 13px 0;flex-shrink:0;scrollbar-width:none;overscroll-behavior-x:contain}.mobile-categories::-webkit-scrollbar{display:none}.mobile-categories button{display:flex;align-items:center;gap:6px;flex-shrink:0;white-space:nowrap;font-size:.72rem;font-weight:500;min-height:34px;background:#fff;color:#718696;border:1px solid #dfe7ed;padding:7px 10px;border-radius:7px}.mobile-categories button.selected{background:#fff0e4;color:#be631e;border-color:#efc6a8}.mobile-categories b{font-size:.6rem;border-radius:4px;background:#f2f4f6;padding:2px 4px;font-weight:500}.pos-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.queue-action span{display:none}.header-tools{gap:9px}.app-header{padding:0 16px}.login{grid-template-columns:minmax(0,1fr)}.login-hero{display:none}.login-form{min-height:100dvh}}
@media(max-width:700px){:root{--header-height:60px}.app-header{height:var(--header-height);min-height:var(--header-height);padding:0 12px;gap:8px}.header-identity{gap:9px}.header-brand{font-size:.83rem;gap:6px}.header-brand img{width:26px;height:34px}.header-brand small{font-size:.58rem;margin-top:3px}.app-header .menu-toggle{width:38px;min-width:38px;min-height:38px;padding:8px}.header-tools{gap:8px}.branch-pill,.cash-action{display:none}.connection{font-size:.62rem;gap:4px}.connection i{width:5px;height:5px}.app-header .avatar{width:30px;height:30px;min-width:30px;min-height:30px;font-size:.75rem}.queue-action{display:none}main{padding:20px 14px}.page-head{flex-direction:column;align-items:stretch;gap:14px}.page-head .actions{width:100%}.page-head .actions button{flex:1 1 auto;font-size:.8rem;padding:11px}h1{font-size:1.5rem;line-height:1.25}.stats{gap:10px}.stat,.card{padding:16px}.stat .value{font-size:1.5rem}.stat .label{font-size:.78rem}.stat small{font-size:.7rem}.formgrid{grid-template-columns:minmax(0,1fr)}.report-list{grid-template-columns:minmax(0,1fr)}.filters{gap:9px}.filters input{flex-basis:100%}.filters select{flex-basis:calc(50% - 5px)}.filters label{flex:1 1 calc(50% - 5px)}.bar-chart{gap:6px}.bar-col>span:first-child{font-size:.55rem}.line-entry,.line-entry:has([data-k=factor]){grid-template-columns:repeat(3,minmax(0,1fr))}.line-entry select{grid-column:1/-1}.line-entry button{grid-column:3;justify-self:end;width:44px}.line-entry input{font-size:.875rem;padding:10px 8px}dialog{padding:20px 16px;border-radius:12px}dialog h2{font-size:1.1rem}.form-actions button{flex:1}.pos-content{padding:0;height:calc(100dvh - var(--header-height))}.pos-workspace{display:flex;flex-direction:column;position:relative;padding-bottom:calc(var(--dock-height) + env(safe-area-inset-bottom));height:100%;min-height:0}.pos-catalog{flex:1;min-height:0;width:100%}.sale-panel{display:none;width:100%;flex:1;min-height:0;border:0}.pos-workspace[data-pane="cart"] .pos-catalog{display:none}.pos-workspace[data-pane="cart"] .sale-panel{display:flex}.pos-toolbar{padding:12px 12px 10px;gap:8px}.pos-search{padding:0 10px;gap:8px}.pos-search input{padding:13px 0;font-size:16px;min-height:46px}.pos-search kbd{display:none}.filter-toggle{min-height:46px;padding:10px;font-size:.75rem;flex-shrink:0}.filter-toggle svg{width:18px}.pos-tickets{padding:0 12px 10px}.ticket-list{flex:1}.ticket-list button{min-height:36px;font-size:.75rem}.new-ticket{width:36px;min-width:36px;min-height:36px}.mobile-categories{padding:10px 12px 0}.catalog-heading{padding:12px;font-size:.8rem;align-items:center;flex-wrap:wrap;gap:9px}.catalog-heading>div:first-child{gap:6px}.catalog-heading strong{font-size:.75rem}.catalog-heading span{font-size:.65rem}.stock-switch{gap:3px}.stock-switch button{font-size:.65rem;padding:6px 8px;min-height:32px}.catalog-scroll{padding:0 12px 14px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{padding:11px;border-radius:11px}.product .price{font-size:.85rem;padding:6px}.product-voltage{font-size:.57rem;padding:4px}.product .part{height:78px;margin:8px 0}.part svg{width:53px;height:53px}.product h3{font-size:.78rem;line-height:1.45;margin:8px 0 11px;min-height:2.9em}.product-code{font-size:.62rem}.stock-tag{font-size:.62rem}.product .product-location{font-size:.58rem}.pos-filter-panel{max-height:43dvh;padding:12px}.pos-filter-grid{gap:10px}.pos-filter-grid select{font-size:16px;min-height:44px}.pos-filter-grid label{font-size:.75rem}.sale-heading{padding:15px 16px 11px}.sale-heading h2{font-size:1rem}.sale-customer{padding:0 16px 12px}.sale-customer label{font-size:.75rem}.sale-customer select{font-size:16px;min-height:44px}.sale-options{gap:10px;margin-top:10px}.sale-lines{padding:0 16px}.sale-line-title strong{font-size:.875rem}.sale-line-title small{font-size:.7rem}.sale-line-controls{gap:10px}.quantity-stepper{height:40px}.quantity-stepper button{min-height:38px;width:32px;min-width:32px}.quantity-stepper input{font-size:16px;width:45px;min-height:38px}.unit-price{flex-basis:82px;font-size:.65rem}.unit-price input{font-size:16px;min-height:40px;padding:8px}.line-total{font-size:.875rem;padding-bottom:10px}.sale-footer{padding:12px 16px}.sale-footer .totals{margin-bottom:9px}.sale-footer .totals>div{font-size:.75rem}.sale-footer .totals .grand{font-size:.95rem;padding-top:10px}.grand strong{font-size:1.3rem}.payment-method{font-size:.72rem;margin-bottom:9px}.payment-method select{font-size:16px;min-height:40px}.checkout-actions{grid-template-columns:85px minmax(0,1fr)}.checkout-actions button{min-height:46px;font-size:.875rem}.sale-disclaimer{font-size:.6rem;margin-top:7px}.pos-mobile-dock{position:absolute;bottom:0;left:0;right:0;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:8px;height:calc(var(--dock-height) + env(safe-area-inset-bottom));padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dfe6ec;z-index:12;box-shadow:0 -5px 18px #17364d06}.pos-mobile-dock button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;background:#f0f4f7;color:#6f8596;font-size:.75rem;padding:9px 8px;min-height:44px}.pos-mobile-dock button.active{background:var(--nav);color:#fff}.pos-mobile-dock button:nth-child(2){background:#fff0e3;color:#bf611d}.pos-mobile-dock button:nth-child(2).active{background:var(--accent);color:#fff}.pos-mobile-dock svg{width:18px;height:18px}.pos-mobile-dock span{white-space:nowrap}.pos-mobile-dock b{font-size:.6rem;padding:2px 4px;border-radius:4px;background:#ffffff70;color:#ad5d1d;margin-left:3px}.pos-mobile-dock strong{font-size:.75rem;margin-left:auto;white-space:nowrap}.mobile-only{display:block}.cart-empty{min-height:150px;padding:16px 10px}.cart-empty>div{width:45px;height:45px;margin-bottom:12px}.cart-empty p{font-size:.8rem}.cart-empty .secondary{font-size:.8rem}.pos-page #toast{bottom:calc(var(--dock-height) + env(safe-area-inset-bottom) + 10px)}}
@media(max-width:359px){.header-brand small{display:none}.header-brand{font-size:.78rem}.header-brand img{width:23px}.header-identity{gap:7px}.header-tools{gap:6px}.connection{font-size:.58rem}.product{padding:9px}.product-top{gap:3px}.product .price{font-size:.76rem;padding:5px}.product-voltage{font-size:.5rem;padding:3px}.product h3{font-size:.72rem}.stock-tag{font-size:.58rem}.product-add{width:22px;height:22px}.filter-toggle span{display:none}.filter-toggle{width:44px;justify-content:center}.catalog-heading{gap:7px;padding-top:10px;padding-bottom:10px}.stock-switch button{font-size:.61rem;padding:6px 7px}.sale-line-controls{gap:7px}.quantity-stepper button{width:28px;min-width:28px}.quantity-stepper input{width:36px}.unit-price{flex-basis:66px;min-width:42px}.line-total{font-size:.75rem}.sale-customer,.sale-lines,.sale-footer{padding-left:12px;padding-right:12px}.sale-options{gap:8px}.sale-options select{padding-left:7px}.pos-mobile-dock{gap:6px}.pos-mobile-dock button{font-size:.68rem;gap:5px}.pos-mobile-dock strong{font-size:.68rem}.pos-mobile-dock svg{width:16px}.stat .value{font-size:1.3rem}.pos-filter-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-height:700px) and (max-width:700px){.sale-customer{padding-bottom:9px}.sale-options{margin-top:7px}.sale-heading{padding-top:10px;padding-bottom:8px}.sale-footer{padding-top:9px;padding-bottom:9px}.sale-footer .totals>div{padding:2px 0}.sale-footer .totals .grand{padding-top:7px;margin-top:6px}.sale-disclaimer{display:none}.sale-customer select{min-height:40px}.cart-empty{min-height:120px}.cart-empty p{margin:8px 0}.cart-empty>div{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.shell{display:none!important}dialog{width:100%;max-width:none;max-height:none;overflow:visible!important}dialog .print-content{display:block}}
@media(max-height:700px) and (max-width:700px){.sale-panel{overflow-y:auto;overscroll-behavior:contain}.sale-panel .sale-lines{flex:0 0 auto;overflow:visible;min-height:80px}.sale-footer{margin-top:auto}.sale-panel .cart-empty{height:auto;min-height:110px}}
@media(max-height:600px) and (min-width:701px){.pos-page{overflow-y:auto}.pos-content{height:auto;min-height:620px}.pos-workspace{height:620px}}
.ticket-pill{display:flex;align-items:stretch;flex-shrink:0;border-radius:7px;overflow:hidden;background:#f0f4f7}.ticket-pill.current{background:var(--nav)}.ticket-list .ticket-pill>button[role="tab"]{border-radius:0;padding-right:6px}.ticket-list .ticket-close{padding:5px;min-width:26px;width:26px;justify-content:center;border-radius:0;background:transparent;color:#8fa1ae}.ticket-pill.current .ticket-close{color:#a5bac9}.ticket-close svg{width:12px;height:12px}
@media(min-width:520px) and (max-width:700px){.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
