@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{font-family:Inter,'Segoe UI',Arial,sans-serif;color:#182333;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.sidebar{position:fixed;inset:0 auto 0 0;width:58px;background:#0d0f12;color:#fff;z-index:5;transition:width .32s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;overflow:hidden;box-shadow:2px 0 15px #1112}.sidebar:hover{width:248px}.brand{display:flex;align-items:center;gap:13px;white-space:nowrap;font-size:17px;letter-spacing:-.5px;font-weight:800;padding:17px 8px 24px}.brand b{color:#b8f000}.mark{width:42px;height:42px;flex-shrink:0;background:linear-gradient(145deg,#b8f000,#6da706);color:#111;display:grid;place-items:center;border-radius:11px;font-weight:800;font-size:24px}.nav{display:flex;flex-direction:column;gap:7px;padding:0 7px}.navitem{width:234px;display:flex;align-items:center;gap:14px;background:transparent;border:0;color:#c8d0d7;text-align:left;padding:12px 10px;border-radius:10px;font-weight:600;font-size:13px}.navitem:hover{background:#20262e;color:white}.navitem.active{background:#252d12;color:#d4fb72;box-shadow:inset 3px 0 #b8f000}.navicon{width:24px;text-align:center;font-size:19px;flex-shrink:0}.sidebarbottom{margin-top:auto;display:flex;align-items:center;gap:18px;padding:20px 19px;font-size:10px;white-space:nowrap;color:#a2adb5;font-weight:700}.dot{width:9px;height:9px;background:#b8f000;border-radius:50%;flex-shrink:0}.main{margin-left:58px;min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 29px;background:white;border-bottom:1px solid #e1e6ec}.topbar h1{margin:6px 0 0;font-size:24px;letter-spacing:-.7px}.topbar small{color:#637386;font-size:11px;font-weight:700;letter-spacing:.7px}.separator{margin:0 9px;color:#d0d6dd}.topright{display:flex;align-items:center;gap:14px}.dev-pill{font-size:11px;color:#80581a;background:#fff7df;padding:9px 13px;border-radius:9px;border:1px solid #f4df99;font-weight:700}.topright select{width:235px;padding:11px;background:#f7f9fb;border:1px solid #dfe5ec;border-radius:10px;font-weight:600;color:#182333}.content{padding:25px 29px;max-width:1600px;margin:auto}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat{background:white;border:1px solid #dfe5ec;border-top:4px solid #1d75ff;border-radius:12px;padding:19px 20px;min-height:105px;box-shadow:0 1px 4px #0d0f120b}.stat.green{border-top-color:#16a34a}.stat.red{border-top-color:#ef4444}.stat.blue{border-top-color:#1d75ff}.stat span{display:block;font-size:12px;font-weight:650;color:#607083}.stat strong{display:block;font-size:30px;letter-spacing:-1px;margin-top:9px}.panel{background:white;border:1px solid #dfe5ec;border-radius:12px;box-shadow:0 1px 3px #0d0f120c;margin-bottom:20px;overflow:hidden}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid #e5eaf0}.panelhead h2{margin:0;font-size:15px}.panel>p,.panel>.register-state{padding:10px 20px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{background:#f7f9fc;text-align:left;color:#6a7887;font-size:10px;text-transform:uppercase;letter-spacing:.6px;padding:14px 16px;white-space:nowrap}td{padding:14px 16px;border-top:1px solid #e9edf2;white-space:nowrap}tr:hover td{background:#fafbfd}.pill{display:inline-block;font-weight:700;font-size:11px;padding:6px 10px;border-radius:7px}.pill.ok{background:#e5f7ec;color:#0b8549}.pill.bad{background:#fee8e8;color:#b42327}.btn{border:1px solid #d7dde6;background:white;color:#182333;padding:10px 14px;font-size:12px;border-radius:9px;font-weight:750;transition:all .15s}.btn:hover,.small:hover{filter:brightness(.96);transform:translateY(-1px)}.btn.primary{background:#1d75ff;color:#fff;border-color:#1d75ff}.btn.danger{background:#bf2d38;color:#fff;border-color:#bf2d38}.btn.outline,.small.outline{background:white;color:#27374a;border:1px solid #d0d8e3}.btn.full{width:100%;margin-top:9px}.small{padding:7px 10px;border:1px solid #cee0ff;background:#eaf2ff;color:#095bd8;font-size:11px;font-weight:750;border-radius:7px}.empty{text-align:center;padding:35px 10px;color:#8291a1}.muted{color:#738295;font-size:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid2 .panel{min-height:180px}.planbig{font-size:52px;font-weight:800;color:#095be1;margin:23px 20px 0}.grid2 .panel>p{padding:0 20px}.dashactions{display:flex;gap:9px;margin:25px 20px}.register-state h3{font-size:18px}.notice{padding:14px 17px;border:1px solid #bad9ff;border-radius:9px;color:#095bd8;background:#eff6ff;margin-bottom:18px;font-size:12px;font-weight:650}.low{color:#b42327;font-weight:800}.saleslayout{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:20px;align-items:start}.saleslayout>.panel{min-height:69vh}.search{width:calc(100% - 36px);margin:15px 18px;padding:13px;border:1px solid #d8e1ea;border-radius:9px}.productgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:0 18px 18px;max-height:60vh;overflow:auto}.productcard{display:flex;flex-direction:column;text-align:left;gap:7px;background:white;border:1px solid #e1e7ef;border-radius:11px;padding:13px;min-height:169px;font-size:12px}.productcard:hover{border-color:#1d75ff;box-shadow:0 3px 14px #1d75ff20}.productcard:disabled{opacity:.46;cursor:not-allowed}.producticon{height:53px;border-radius:8px;background:linear-gradient(135deg,#ecf3ff,#f2ffe6);display:grid;place-items:center;color:#1d75ff;font-size:31px}.productcard small,.productcard span{color:#607083;font-size:10px}.productcard strong{font-size:14px;color:#095bd8}.cartbody{padding:14px;min-height:280px;max-height:48vh;overflow:auto}.cartline{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:center;border-bottom:1px solid #edf0f3;padding:13px 0;font-size:11px}.cartline small{display:block;color:#748293;margin-top:5px}.qty{display:flex;align-items:center;gap:8px}.qty button,.trash{border:0;background:#eaf1fc;border-radius:6px;width:22px;height:24px}.trash{background:#feeaea;color:#bf2d38}.cartfooter{padding:15px;border-top:1px solid #e5eaf0}.cartfooter>div{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700}.cartfooter strong{font-size:23px;color:#095bd8}.overlay{position:fixed;inset:0;background:#1218229e;z-index:20;display:grid;place-items:center;padding:15px}.modal{background:white;width:min(680px,100%);border-radius:13px;box-shadow:0 20px 80px #0004;max-height:95vh;overflow:auto}.modalhead{display:flex;justify-content:space-between;align-items:center;background:#161d25;color:white;padding:16px 20px}.modalhead h2{margin:0;font-size:17px}.close{background:transparent;border:0;color:white;font-size:29px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:22px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700}.field input,.field select{border:1px solid #d3dce6;border-radius:8px;padding:12px;outline:none}.field input:focus,.field select:focus{border-color:#1d75ff;box-shadow:0 0 0 3px #1d75ff21}.modalfooter{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid #ecf0f3}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.saleslayout{grid-template-columns:1fr}.saleslayout>.panel{min-height:0}}@media(max-width:700px){.topbar{padding:15px;align-items:flex-start;flex-direction:column}.topright{width:100%;flex-wrap:wrap}.content{padding:16px}.stats{gap:9px}.stat{padding:13px;min-height:90px}.stat strong{font-size:23px}.grid2,.formgrid{grid-template-columns:1fr}.topright select{width:100%}.dev-pill{font-size:10px}.productgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.saleslayout{gap:8px}}

/* V0.3: rail 58 px, iconos centrados, expansión sin recortar botones */
.sidebar .nav{padding:0 5px}.sidebar .navitem{width:238px;min-height:46px;padding:11px 12px;gap:17px}.sidebar .navicon{width:26px;min-width:26px;display:inline-grid;place-items:center;font-size:20px}.sidebar:not(:hover) .navitem{width:48px;padding:11px 10px}.sidebar:not(:hover) .brand{padding-left:8px}.sidebar .navlabel{white-space:nowrap}.sidebar{overflow-x:hidden;overflow-y:hidden}.sidebar .nav{overflow-y:auto;overflow-x:hidden;min-height:0}.slotbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:17px;background:white;padding:12px 15px;border:1px solid #dfe5ec;border-radius:12px}.slotbar>span{font-size:11px;font-weight:800;color:#657489;letter-spacing:.5px;margin-right:8px}.slot{border:1px solid #d9e2ec;color:#41546d;padding:9px 15px;border-radius:9px;background:#f8fafc;font-size:12px;font-weight:700}.slot.selected{background:#252d12;color:#d4fb72;border-color:#b8f000;box-shadow:inset 3px 0 #b8f000}.receipt{padding:21px;font-size:13px}.receipt p{border-bottom:1px solid #e8edf2;padding-bottom:10px}.productcard:focus-visible,.slot:focus-visible,.navitem:focus-visible{outline:3px solid #1d75ff;outline-offset:2px}@media(max-width:700px){.sidebar{width:52px}.main{margin-left:52px}.sidebar:not(:hover) .navitem{width:44px;padding:10px 8px}.slotbar{gap:6px;padding:9px}.slot{padding:8px 10px}}

/* V0.4 dashboard comercial y navegación coherente */
.sidebar .navicon{font-size:19px}.sidebar .navitem{transition:background .15s,color .15s}.sidebar .navitem.active .navicon{color:#c8f43a}.sidebar .navitem:hover .navicon{color:#b8f000}.sidebar .nav{scrollbar-width:thin;scrollbar-color:#36404a transparent}
.dashintro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;background:linear-gradient(115deg,#17212c,#26374a);color:white;border-radius:14px;padding:20px 23px;box-shadow:0 8px 22px #18233318}.dashintro h2{font-size:25px;margin:5px 0;letter-spacing:-.8px}.dashintro p{font-size:12px;color:#c2cfdd;margin:5px 0}.dashoverline{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#b8f000}.dashintro .dashactions{margin:0;flex-wrap:wrap;justify-content:end}.dashmain{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:19px}.dashmain .panel{min-height:320px}.dashlower{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.dashlower .panel{min-height:260px}.dashchart{display:flex;align-items:stretch;gap:13px;height:224px;margin:22px 25px 4px;justify-content:space-around}.chartitem{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;color:#657489;font-size:11px;text-transform:capitalize}.chartitem strong{font-size:11px;color:#273c57;font-weight:750;white-space:nowrap}.charttrack{height:166px;width:100%;max-width:57px;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #dce4ef;background:linear-gradient(to top,#f2f7ff,transparent);border-radius:6px 6px 0 0}.chartbar{width:60%;background:linear-gradient(0deg,#1d75ff,#72acff);border-radius:6px 6px 0 0;min-height:3px}.chartlegend{font-size:11px;color:#6a7887;display:flex;align-items:center;gap:7px;padding:12px 25px}.legenddot{height:9px;width:9px;border-radius:3px;background:#1d75ff}.cashoverview{padding:18px 20px}.cashoverview h3{font-size:25px;margin:12px 0 3px;letter-spacing:-.5px}.cashoverview p{color:#788696;font-size:12px;margin:3px 0 20px}.minirow{display:flex;justify-content:space-between;border-top:1px solid #edf0f4;padding:10px 0;font-size:12px;color:#657489}.minirow b{color:#182333}.dashlist{padding:12px 17px}.rankrow,.alertrow,.activityrow{display:flex;gap:11px;align-items:center;padding:13px 2px;border-bottom:1px solid #edf0f4;min-width:0;font-size:12px}.rankrow:last-child,.alertrow:last-child,.activityrow:last-child{border:0}.rankrow>div,.alertrow>div,.activityrow>div{min-width:0;flex:1}.rankrow b,.alertrow b,.activityrow b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rankrow small,.alertrow small,.activityrow small{display:block;color:#8390a0;font-size:10px;margin-top:4px}.rankrow strong,.activityrow strong{font-size:12px;white-space:nowrap;color:#095be1}.ranknumber{display:grid;place-items:center;flex:none;width:27px;height:27px;background:#eff5ff;color:#095bd8;border-radius:8px;font-weight:800}.alertrow>i{color:#e69720;font-size:18px}.activityicon{width:27px;height:27px;border-radius:8px;background:#eaf7ef;color:#0b8549;display:grid;place-items:center;font-size:19px}.dashzero{padding:27px 10px;text-align:center;color:#728399;font-size:12px}.dashzero i{color:#0b8549}.dashlower .btn.full{width:calc(100% - 34px);margin:0 17px 16px}@media(max-width:1200px){.dashmain{grid-template-columns:1fr}.dashlower{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.dashintro{flex-direction:column;align-items:flex-start}.dashintro .dashactions{justify-content:flex-start}.dashlower{grid-template-columns:1fr}.dashchart{gap:5px;margin:20px 10px}.chartitem strong{font-size:9px}}

/* V0.5 carrito, selección de presentaciones y precios */
.cart-edit{border:0;background:transparent;color:#095bd8;font-size:11px;font-weight:700;padding:5px 0;text-align:left}.cart-edit:hover{text-decoration:underline}.pos-summary-row{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;font-size:12px}.cartfooter .pos-hint{font-size:11px;color:#667a91;line-height:1.5;margin:4px 0 10px}.pos-product-heading{grid-column:1/-1;display:flex;flex-direction:column;gap:5px;background:#f3f8ff;padding:13px;border:1px solid #dae7fa;border-radius:9px}.pos-product-heading span{font-size:11px;color:#65768b}.cartline{grid-template-columns:minmax(0,1fr) auto auto auto}.cartline>div:first-child{min-width:0}.cartline b{overflow-wrap:anywhere}.cartline small{line-height:1.4}@media(max-width:700px){.cartline{grid-template-columns:minmax(0,1fr) auto;gap:7px}.cartline>.qty{grid-column:1}.cartline>.trash{grid-column:2;grid-row:2}}

/* Reportes V1.0 */
.report-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px;padding:14px;background:var(--surface,#fff);border:1px solid #dfe5ec;border-radius:10px}.report-filters label{display:grid;gap:5px;font-weight:650;font-size:13px}.report-filters input{padding:9px;border:1px solid #cad3df;border-radius:8px;background:transparent;color:inherit}.report-figures{padding:12px 18px}.report-figures p{display:flex;justify-content:space-between;border-bottom:1px solid #e1e6ec;padding:8px 0}.receipt{padding:20px;max-height:65vh;overflow:auto}.receipt table{border-collapse:collapse}.receipt th,.receipt td{padding:7px;border-bottom:1px solid #dfe5ec}

/* Configuración centralizada V1.2 */
.config-tabs,.config-subtabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;padding:9px;border:1px solid #e1e6ec;border-radius:11px;background:#fff}.config-tab{border:1px solid #dfe5ec;background:#f7f9fb;padding:10px 13px;border-radius:9px;color:#182333;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer}.config-tab.selected{border-color:#b8f000;background:#252d12;color:#d4fb72}.config-tab:hover{border-color:#1d75ff}.receipt{padding:20px;max-width:420px;margin:auto;text-align:center;border:1px dashed #cdd6df;background:white;border-radius:10px}.receipt hr{border:0;border-top:1px dashed #cdd6df}.config-subtabs{background:#fafbfd}

/* V1.3: identidad comercial y logotipo por tenant */
.logo-editor{grid-column:1/-1;display:grid;grid-template-columns:170px 1fr;gap:18px;background:#f7f9fb;border:1px dashed #cdd6df;border-radius:11px;padding:16px}.logo-preview{min-height:126px;background:#fff;border:1px solid #e1e6ec;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#8190a2}.company-logo{display:block;object-fit:contain;max-width:160px;max-height:100px;margin:0 auto 12px}.company-logo-detail{max-width:200px;max-height:120px;margin:10px auto 20px}.logo-preview .company-logo{max-width:150px;max-height:110px;margin:0}.logo-preview i{font-size:32px}.logo-actions{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:9px}.logo-actions small{color:#526174;line-height:1.5}.logo-upload{cursor:pointer;display:inline-flex;align-items:center}.receipt .company-logo{max-width:145px;max-height:95px;margin:0 auto 12px}@media(max-width:600px){.logo-editor{grid-template-columns:1fr}.logo-actions{align-items:stretch}}

/* V1.7 · Documentos comerciales multilínea */
.order-lines{grid-column:1/-1;display:grid;gap:12px;max-height:52vh;overflow-y:auto}.order-line{display:grid;grid-template-columns:minmax(175px,2fr) repeat(3,minmax(100px,1fr)) auto;gap:10px;align-items:end;background:var(--surface,#f8fafc);padding:12px;border:1px solid #dfe5ec;border-radius:11px}.order-line .field{min-width:0}.order-line input,.order-line select{max-width:100%}#addOrderLine{justify-self:start}@media(max-width:800px){.order-line{grid-template-columns:repeat(2,minmax(0,1fr))}.order-line .field:first-child{grid-column:1/-1}}

/* V6.4 · Rediseño integral del módulo Ventas Market POS */
.pos-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:24px 26px;margin-bottom:18px;background:linear-gradient(135deg,#121a24,#23354a 55%,#2c4e6b);color:#fff;border-radius:18px;box-shadow:0 12px 30px #17212c1f}.pos-overline{display:inline-block;font-size:11px;letter-spacing:1.2px;font-weight:800;color:#c9f05d;margin-bottom:8px}.pos-hero h2{margin:0 0 10px;font-size:30px;letter-spacing:-.9px}.pos-hero p{margin:0;max-width:700px;color:#cfdae5;line-height:1.55}.pos-hero-metrics{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.pos-hero-metrics span{background:#ffffff14;border:1px solid #ffffff1c;color:#e8eef6;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:600}.pos-hero-metrics b{font-size:14px;color:#fff}.pos-hero-side{display:grid;gap:14px;min-width:min(420px,100%)}.hero-badge{display:flex;align-items:center;gap:12px;background:#ffffff14;border:1px solid #ffffff20;border-radius:15px;padding:14px 15px}.hero-badge i{font-size:26px;color:#d8ff67}.hero-badge strong{display:block;font-size:15px}.hero-badge small{color:#d2deea;font-size:12px}.pos-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pos-action{display:flex;align-items:center;gap:11px;justify-content:flex-start;border:1px solid #d5dce51f;background:#ffffff12;color:#fff;border-radius:14px;padding:13px 14px;font-weight:700;font-size:13px;text-align:left}.pos-action i{font-size:18px;color:#d8ff67}.pos-action.primary{background:#b8f000;color:#1b250c;border-color:#b8f000}.pos-action.primary i{color:#1b250c}.pos-action.danger-lite{background:#7d23301f}.pos-action:hover{transform:translateY(-1px);background:#ffffff18}.sale-mode-tabs{display:flex;gap:10px;margin-bottom:14px}.sale-mode-tab{border:1px solid #dfe5ec;background:#fff;padding:12px 16px;border-radius:12px;display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:750;color:#304257}.sale-mode-tab i{font-size:17px;color:#0c64e8}.sale-mode-tab.selected{background:#1d2733;color:#fff;border-color:#1d2733;box-shadow:0 8px 18px #0f16200f}.sale-mode-tab.selected i{color:#c9f05d}.pos-pending-banner{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#fff7de;border:1px solid #f0d482;border-radius:14px;padding:15px 17px;margin-bottom:14px}.pos-pending-banner strong{display:block;color:#7b5613;margin-bottom:4px}.pos-pending-banner p{margin:0;color:#826c3e;font-size:12px}.saleslayout-modern{grid-template-columns:minmax(0,1fr) 430px;align-items:start}.saleslayout-modern>.panel,.sale-cart-panel{min-height:72vh}.pos-toolbar{display:flex;align-items:end;gap:14px;padding:16px 18px 14px;border-bottom:1px solid #e8edf2;background:#fafcfe}.searchbox{position:relative;display:flex;align-items:center;flex:1;min-width:0}.searchbox>i{position:absolute;left:14px;color:#7e8da0;font-size:16px}.search-modern{width:100%;margin:0;padding:14px 44px 14px 42px;border-radius:12px;border:1px solid #d8e1ea;background:#fff}.search-modern:focus{outline:none;border-color:#1d75ff;box-shadow:0 0 0 4px #1d75ff12}.search-clear{position:absolute;right:8px;display:none;border:0;background:#eef4fa;color:#617487;border-radius:9px;width:32px;height:32px}.search-clear.visible{display:grid;place-items:center}.sale-filter{display:grid;gap:6px;min-width:220px;font-size:12px;font-weight:700;color:#53657a}.sale-filter select{padding:14px 12px;border:1px solid #d8e1ea;border-radius:12px;background:#fff}.productgrid-modern{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;max-height:calc(100vh - 340px);padding:18px}.productcard-modern{padding:0;overflow:hidden;min-height:290px;border-radius:16px;border:1px solid #dfe7ef;background:#fff;box-shadow:0 6px 16px #11223a08}.productcard-modern:hover{border-color:#1d75ff;box-shadow:0 12px 24px #1d75ff1a;transform:translateY(-2px)}.productcard-media{position:relative;height:168px;background:linear-gradient(180deg,#f7fafc,#edf4fb)}.product-image{width:100%;height:100%;object-fit:cover;display:block}.product-thumb-fallback{display:grid;place-items:center;background:linear-gradient(135deg,#eaf2ff,#f2ffe6);color:#1d75ff}.productcard-modern .product-thumb-fallback{height:100%;font-size:52px}.stock-pill{position:absolute;top:12px;right:12px;background:#eaf7ef;color:#0b8549;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800;border:1px solid #bde6cb}.stock-pill.warn{background:#fff0f0;color:#c33441;border-color:#f0c5cb}.productcard-body{display:grid;gap:10px;padding:16px}.productcard-top{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#6a7d93;text-transform:uppercase;letter-spacing:.4px}.productcard-body b{font-size:15px;line-height:1.4;color:#182333;min-height:42px}.productcard-price{font-size:24px;font-weight:800;letter-spacing:-.5px;color:#0b64e8}.productcard-meta{display:flex;justify-content:space-between;gap:10px;color:#66798f;font-size:11px}.sale-cart-panel{background:#fff;border:1px solid #dfe5ec;border-radius:16px;box-shadow:0 4px 15px #1222350a;overflow:hidden;position:sticky;top:16px}.sale-cart-header{display:flex;justify-content:space-between;gap:12px;padding:18px 18px 16px;border-bottom:1px solid #ecf1f5;background:linear-gradient(180deg,#fbfdff,#f3f8fc)}.sale-cart-header h3{margin:0 0 5px;font-size:17px}.sale-cart-header p{margin:0;font-size:12px;color:#6f8094}.sale-cart-total{text-align:right}.sale-cart-total span{display:block;font-size:11px;color:#6f8094}.sale-cart-total strong{font-size:25px;color:#0b64e8;letter-spacing:-.6px}.cartbody-modern{padding:12px 15px;max-height:48vh}.cartline-modern{grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:12px;padding:12px 0;font-size:12px}.cartline-visual{width:54px;height:54px;border-radius:12px;overflow:hidden;border:1px solid #e0e7ef;background:#f6f9fc}.cart-thumb{width:100%;height:100%;object-fit:cover;display:block}.cartline-main small{line-height:1.45;color:#6c8098}.qty-modern{background:#f3f7fc;border-radius:12px;padding:3px 4px;gap:10px}.qty-modern button,.qty-inline button{width:28px;height:28px;border-radius:9px;background:#fff;border:1px solid #d4ddeb;box-shadow:0 1px 2px #0d0f1208}.cartline-total{font-size:13px;color:#182333}.cart-empty{display:grid;place-items:center;text-align:center;gap:8px;padding:35px 16px;color:#74869a}.cart-empty i{font-size:44px;color:#0b64e8}.cart-empty span{font-size:12px;line-height:1.45}.cartfooter-modern{display:grid;gap:12px;padding:16px;border-top:1px solid #ecf1f5;background:#fbfdff}.cart-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cart-stats article{background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:12px}.cart-stats span{display:block;font-size:11px;color:#6c8098;margin-bottom:4px}.cart-stats strong{font-size:16px;color:#22344a}.cart-actions{display:grid;gap:8px}.quick-sales-layout{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:20px}.quick-main .panel{min-height:72vh}.quick-toolbar{display:flex;gap:12px;align-items:end;padding:16px 18px 12px;border-bottom:1px solid #e8edf2;background:#fafcfe}.quick-searchbox{flex:1}.quick-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px}.quick-suggestion{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #dce5ee;background:#fff;border-radius:14px;padding:10px 11px}.quick-suggestion.active,.quick-suggestion:hover{border-color:#1d75ff;box-shadow:0 8px 18px #1d75ff14}.quick-suggestion-thumb{width:56px;height:56px;border-radius:12px;overflow:hidden;flex:none}.quick-suggestion-thumb.product-thumb-fallback{font-size:22px}.quick-suggestion b{display:block;font-size:13px;color:#203348}.quick-suggestion small{color:#6d7f94;font-size:11px;line-height:1.4}.quick-tablewrap{padding:0 18px 18px}.quick-table{font-size:12px}.quick-table th{font-size:10px}.quick-line-item{display:flex;align-items:center;gap:10px}.quick-table-thumb{width:42px;height:42px;border-radius:10px;overflow:hidden;flex:none}.qty-inline{display:inline-flex;align-items:center;gap:8px;background:#f4f8fc;border-radius:11px;padding:4px 6px}.quick-footer-note{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-top:1px solid #e8edf2;background:#fbfdff;color:#607286;font-size:12px}.quick-side{display:grid;gap:16px;align-content:start}.quick-keypad{background:#fff;border:1px solid #dfe5ec;border-radius:16px;padding:18px;box-shadow:0 4px 15px #1222350a}.quick-keypad h3{margin:0 0 6px}.quick-keypad p{margin:0 0 14px;color:#6c8098;font-size:12px}.quick-keypad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.quick-key{border:1px solid #dbe3ec;background:#f9fbfd;border-radius:14px;padding:14px 0;font-size:20px;font-weight:800;color:#24374d}.quick-key:hover{background:#fff;border-color:#1d75ff;color:#0b64e8}.checkout-summary-card,.checkout-note,.field.full,.pos-modal-product.full{grid-column:1/-1}.checkout-summary-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#f8fbff;border:1px solid #dce7f4;border-radius:14px;padding:16px}.checkout-summary-card.compact{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:4px}.checkout-summary-card span{display:block;font-size:11px;color:#607489;margin-bottom:4px}.checkout-summary-card strong{font-size:20px;color:#0b64e8}.checkout-block{display:contents}.checkout-note{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #dce7f4;background:#f8fbff;border-radius:12px;font-size:12px;color:#5f738a}.checkout-note i{font-size:16px;color:#0b64e8;margin-top:1px}.pos-modal-product{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center;padding:4px 0 6px}.product-modal-thumb{width:120px;height:120px;object-fit:cover;border-radius:16px;border:1px solid #dce4ec;overflow:hidden}.pos-modal-product h3{margin:5px 0 8px;font-size:23px;line-height:1.2}.pos-modal-product p{margin:0;color:#687c92;font-size:12px}.mini-kicker{font-size:11px;font-weight:800;letter-spacing:.9px;color:#0b64e8}.product-modal-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.product-modal-tags span{background:#eef5ff;border:1px solid #d6e5fb;border-radius:999px;padding:8px 10px;font-size:11px;font-weight:700;color:#25405f}.receipt{max-width:520px}@media(max-width:1320px){.saleslayout-modern,.quick-sales-layout{grid-template-columns:1fr}.sale-cart-panel{position:static}.pos-hero{flex-direction:column}.pos-hero-side{min-width:0;width:100%}}@media(max-width:860px){.pos-shortcuts{grid-template-columns:1fr}.pos-toolbar,.quick-toolbar{flex-direction:column;align-items:stretch}.sale-filter{min-width:0}.productgrid-modern{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.quick-suggestions{grid-template-columns:1fr}.checkout-summary-card,.checkout-summary-card.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-modal-product{grid-template-columns:1fr}.product-modal-thumb{width:100%;height:180px}.cartline-modern{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"img main total" "img qty remove"}.cartline-modern .cartline-visual{grid-area:img}.cartline-modern .cartline-main{grid-area:main}.cartline-modern .qty-modern{grid-area:qty}.cartline-modern .cartline-total{grid-area:total;justify-self:end}.cartline-modern .trash{grid-area:remove;justify-self:end}}@media(max-width:640px){.pos-hero{padding:18px}.pos-hero h2{font-size:24px}.sale-mode-tabs{flex-wrap:wrap}.cart-stats{grid-template-columns:1fr}.quick-key{padding:12px 0;font-size:18px}.checkout-summary-card,.checkout-summary-card.compact{grid-template-columns:1fr}.sale-cart-header{flex-direction:column;align-items:flex-start}.sale-cart-total{text-align:left}.saleslayout-modern>.panel,.sale-cart-panel,.quick-main .panel{min-height:0}}
/* V6.5 · Procesamiento de cobros divididos */
.checkout-split-toggle{display:flex;gap:8px}.checkout-switch{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;background:#f3f8fd;border:1px solid #dbe7f3;font-size:13px;font-weight:650}.checkout-switch input{accent-color:#1675ef;width:18px;height:18px}.checkout-split-fields:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px;background:#f6fbff;border:1px solid #bcd7f4;border-radius:14px}.checkout-split-remaining{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:9px;background:#e5f4ff;color:#28537f}.checkout-split-remaining strong{font-size:18px;color:#095bd8}.checkout-split-fields[hidden]{display:none!important}@media(max-width:700px){.checkout-split-fields:not([hidden]){grid-template-columns:1fr}}

/* V7.0 compact sales */
.main:has(.pos-compact-header){height:100dvh;overflow:hidden;display:flex;flex-direction:column}.main:has(.pos-compact-header) .topbar{padding:7px 14px;min-height:52px;flex-shrink:0}.main:has(.pos-compact-header) .topbar small{display:none}.main:has(.pos-compact-header) .topbar h1{font-size:16px;margin:0}.main:has(.pos-compact-header) .topright{gap:7px}.main:has(.pos-compact-header) .topright select{width:190px;padding:6px;font-size:11px}.main:has(.pos-compact-header) .dev-pill{padding:6px;font-size:10px}.main:has(.pos-compact-header) .content{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;max-width:none;width:100%;padding:5px 10px 7px}.main:has(.pos-compact-header) .notice{margin-bottom:5px;padding:6px}.pos-compact-header{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:38px;flex-shrink:0;margin-bottom:5px}.pos-title{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#172334;font-size:19px}.pos-title i{font-size:20px;color:#2469ec}.pos-compact-header .pos-shortcuts{display:flex;grid-template-columns:none;justify-content:flex-end;flex-wrap:wrap;gap:5px}.pos-compact-header .pos-action{font-size:11px;padding:7px 9px;gap:5px;border-radius:7px;background:#fff;color:#263a52;border:1px solid #d9e1ec;box-shadow:0 1px 3px #0000000a}.pos-compact-header .pos-action i{font-size:13px;color:#1263db}.pos-compact-header .pos-action.primary{background:#159b81;color:white;border-color:#159b81}.pos-compact-header .pos-action.primary i{color:white}.pos-compact-header .pos-action.danger-lite{background:#bf2639;color:#fff;border-color:#bf2639}.pos-compact-header .pos-action.danger-lite i{color:#fff}.main:has(.pos-compact-header) .sale-mode-tabs{margin-bottom:4px;gap:4px;flex-shrink:0;border-bottom:1px solid #dfe6ee}.main:has(.pos-compact-header) .sale-mode-tab{padding:7px 12px;border:0;border-radius:0;background:transparent;font-size:11px;box-shadow:none;color:#4c607a}.main:has(.pos-compact-header) .sale-mode-tab.selected{border-bottom:2px solid #a4d900;color:#172334}.main:has(.pos-compact-header) .slotbar{padding:3px 5px;margin-bottom:5px;border:0;background:transparent;border-radius:0;gap:5px}.main:has(.pos-compact-header) .slotbar>span{display:none}.main:has(.pos-compact-header) .slot{padding:6px 10px;font-size:11px;border-radius:5px}.main:has(.pos-compact-header) .slot.selected{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:none}.main:has(.pos-compact-header) .saleslayout-modern,.main:has(.pos-compact-header) .quick-sales-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 345px;gap:8px;align-items:stretch}.main:has(.pos-compact-header) .saleslayout-modern>.panel,.main:has(.pos-compact-header) .quick-main>.panel{height:100%;min-height:0;display:flex;flex-direction:column;margin-bottom:0;border-radius:8px}.main:has(.pos-compact-header) .saleslayout-modern>.panel .panelhead{display:none}.main:has(.pos-compact-header) .pos-toolbar{padding:6px;gap:7px}.main:has(.pos-compact-header) .search-modern{padding:10px 38px 10px 36px;font-size:12px;border-radius:7px}.main:has(.pos-compact-header) .sale-filter{min-width:148px;width:148px;gap:0}.main:has(.pos-compact-header) .sale-filter span{display:none}.main:has(.pos-compact-header) .sale-filter select{padding:10px 7px;border-radius:7px;font-size:12px}.main:has(.pos-compact-header) .productgrid-modern{flex:1;min-height:0;max-height:none;overflow-y:auto;align-content:start;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;padding:8px}.main:has(.pos-compact-header) .productcard-modern{padding:0;overflow:hidden;min-height:198px;gap:0;border-radius:8px;box-shadow:none}.main:has(.pos-compact-header) .productcard-media{height:108px;background:#fafafa;overflow:hidden}.main:has(.pos-compact-header) .product-image{object-fit:contain;padding:4px;max-width:100%;max-height:100%}.main:has(.pos-compact-header) .productcard-body{padding:7px 7px 8px;gap:4px;text-align:center}.main:has(.pos-compact-header) .productcard-top{display:none}.main:has(.pos-compact-header) .productcard-body b{font-size:12px;min-height:31px;line-height:1.25}.main:has(.pos-compact-header) .productcard-price{font-size:14px}.main:has(.pos-compact-header) .productcard-meta{display:none}.stock-pill,.main:has(.pos-compact-header) .stock-pill{background:#c6f335;color:#1d3009;border:1px solid #93cb00;padding:4px 7px;font-size:11px;font-weight:800;box-shadow:0 2px 6px #1d300923}.stock-pill.warn,.main:has(.pos-compact-header) .stock-pill.warn{background:#d5f677;color:#243906;border-color:#a4d138}.stock-pill.sold-out,.main:has(.pos-compact-header) .stock-pill.sold-out{background:#ee6268;color:#fff;border-color:#d94450}.main:has(.pos-compact-header) .sale-cart-panel{height:100%;min-height:0;display:flex;flex-direction:column;border-radius:8px;position:static}.main:has(.pos-compact-header) .sale-cart-header{padding:8px 10px;min-height:34px;border-bottom:1px solid #e0e5ed;background:#fff;flex-shrink:0}.pos-cart-reference .sale-cart-header h3{font-size:12px;margin:0}.pos-cart-reference .sale-cart-header h3 i{color:#2265e6}.pos-cart-reference .sale-cart-header h3 small{font-weight:500;color:#76879a}.pos-cart-customer{flex-shrink:0;padding:9px 10px 5px}.pos-cart-customer>label{display:block;font-size:11px;font-weight:800;margin-bottom:5px}.pos-customer-controls{display:flex;gap:5px}.pos-customer-controls select{flex:1;min-width:0;padding:9px;border:1px solid #ccd7e4;border-radius:7px;font-size:12px;background:#fff}.pos-customer-controls button{padding:0 12px;border:1px solid #ccdaeb;border-radius:7px;background:#fff;color:#2563eb;font-size:20px}.main:has(.pos-compact-header) .cartbody-modern{flex:1;min-height:0;max-height:none;overflow:auto;padding:7px 10px}.pos-cart-item{padding:8px;margin-bottom:5px;border:1px solid #dde4ef;border-radius:8px}.pos-cart-item-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;align-items:start}.pos-cart-item-thumb{width:52px;height:52px;border-radius:10px;overflow:hidden;border:1px solid #dce5ef;background:#fff}.pos-cart-item-thumb .cart-thumb,.pos-cart-item-thumb .product-thumb-fallback{width:100%;height:100%}.pos-cart-item-thumb .cart-thumb{object-fit:contain;padding:2px}.pos-cart-item-thumb .product-thumb-fallback{font-size:20px}.pos-cart-item-top,.pos-cart-item-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px}.pos-cart-item-top b{font-size:11px;min-width:0}.pos-cart-item-top .trash{width:21px;height:21px}.pos-cart-item-meta{font-size:10px;color:#718094;margin:2px 0 5px;line-height:1.35}.pos-cart-item-bottom strong{font-size:12px;color:#0c62d9}.pos-cart-item .cart-edit{font-size:10px;padding:4px 0 0}.qty-compact{display:inline-flex;align-items:center;background:#f3f7fc;border-radius:10px;padding:2px 4px;gap:8px}.qty-compact button{width:24px;height:24px;border-radius:8px;background:#fff;border:1px solid #d4ddeb}.pos-cart-empty{text-align:center;color:#72869c;margin:auto;padding:15px}.pos-cart-empty i{font-size:38px;color:#1d75ff}.pos-cart-empty p{margin:8px 0 3px;font-weight:600}.pos-cart-empty span{font-size:11px}.main:has(.pos-compact-header) .pos-cart-footer{padding:9px 10px;flex-shrink:0;display:block;background:#fff}.pos-discount-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;font-size:11px;color:#607188;font-weight:700}.pos-discount-heading select{border:1px solid #dce4ee;border-radius:5px;padding:4px;background:#fff}#posDiscount{width:100%;padding:9px;border:1px solid #dce4ee;border-radius:7px;margin-bottom:8px}.pos-cart-math{border-top:1px solid #e7edf5;padding-top:6px}.pos-cart-math>div{display:flex;justify-content:flex-end;gap:14px;font-size:11px;padding:4px 0}.pos-cart-math>div span{min-width:87px;text-align:right}.pos-cart-math>div b{color:#145de0;min-width:90px;text-align:right}.pos-cart-math .pos-final-total{border-top:1px dashed #cbd5e1;margin-top:5px;padding-top:9px;font-weight:800;font-size:15px}.pos-final-total strong{color:#0a5fe7;font-size:22px}.pos-cart-footer>.btn.full{width:100%;margin:5px 0 0;padding:11px;background:#246cf4}.pos-cart-link-actions{display:flex;justify-content:center;gap:15px;margin-top:8px}.pos-cart-link-actions button{border:0;background:transparent;color:#1260de;font-size:11px}.pos-cart-link-actions button:last-child{color:#ce2938}.main:has(.pos-compact-header) .quick-main,.main:has(.pos-compact-header) .quick-main>.panel{min-height:0;height:100%}.main:has(.pos-compact-header) .quick-side{height:100%;min-height:0;overflow:auto}@media(max-width:1150px),(max-height:680px){.main:has(.pos-compact-header){height:auto;min-height:100vh;overflow:visible}.main:has(.pos-compact-header) .content{overflow:visible}.main:has(.pos-compact-header) .saleslayout-modern,.main:has(.pos-compact-header) .quick-sales-layout{grid-template-columns:1fr;display:grid}.main:has(.pos-compact-header) .saleslayout-modern>.panel{min-height:430px}.main:has(.pos-compact-header) .sale-cart-panel{min-height:520px}.pos-compact-header{align-items:flex-start;flex-wrap:wrap}.pos-compact-header .pos-shortcuts{justify-content:flex-start}}


/* V7.2 - ergonomía del catálogo y altura útil del carrito; sin cambios de negocio */
@media (min-width:1151px) and (min-height:681px){
  .main:has(.pos-compact-header) .saleslayout-modern{height:100%;min-height:0;overflow:hidden;align-items:stretch}
  .main:has(.pos-compact-header) .saleslayout-modern>.panel{min-height:0;min-width:0;overflow:hidden}
  .main:has(.pos-compact-header) .saleslayout-modern>.panel .productgrid-modern{height:100%;min-height:0;overscroll-behavior:contain}
  .main:has(.pos-compact-header) .saleslayout-modern>.pos-cart-reference{height:100%;min-height:0;max-height:100%;overflow:hidden;align-self:stretch}
  .main:has(.pos-compact-header) .pos-cart-reference .pos-cart-items{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .main:has(.pos-compact-header) .pos-cart-reference .pos-cart-footer{flex:0 0 auto;position:relative;z-index:1}
}
.main:has(.pos-compact-header) .pos-toolbar{padding:7px 9px;gap:9px;flex-shrink:0}
.main:has(.pos-compact-header) .pos-toolbar .searchbox{min-height:42px}
.main:has(.pos-compact-header) .pos-toolbar .search-modern{height:42px;font-size:13px;padding:9px 39px 9px 37px}
.main:has(.pos-compact-header) .pos-toolbar .sale-filter select{height:42px;padding:8px 9px;font-size:12px}
.main:has(.pos-compact-header) .productgrid-modern{grid-template-columns:repeat(8,minmax(0,1fr));gap:9px;padding:9px}
.main:has(.pos-compact-header) .productcard-modern{min-width:0;min-height:205px;display:flex;flex-direction:column}
.main:has(.pos-compact-header) .productcard-media{height:113px;flex:0 0 113px}
.main:has(.pos-compact-header) .productcard-body{flex:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:5px;padding:8px 5px 9px}
.main:has(.pos-compact-header) .productcard-body b{font-size:12px;font-weight:750;line-height:1.25;min-height:30px;max-width:100%;overflow-wrap:anywhere}
.main:has(.pos-compact-header) .productcard-price{font-size:15px;font-weight:850;line-height:1.2}
/* En resoluciones menores, conservar tarjetas legibles antes que forzar ocho columnas estrechas. */
@media (min-width:1151px) and (max-width:1439px){
  .main:has(.pos-compact-header) .productgrid-modern{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (max-width:1150px){
  .main:has(.pos-compact-header) .productgrid-modern{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));max-height:65vh}
  .main:has(.pos-compact-header) .saleslayout-modern>.panel{height:auto}
  .main:has(.pos-compact-header) .sale-cart-panel{height:auto;max-height:80vh}
}

/* V7.4 — ajustes finos catálogo y carrito */
.main:has(.pos-compact-header) .productcard-media{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
}
.main:has(.pos-compact-header) .productcard-media .product-image,
.main:has(.pos-compact-header) .productcard-media .product-thumb-fallback{
  width:100%;
  height:100%;
}
.main:has(.pos-compact-header) .productcard-media .product-image{
  object-fit:cover;
  object-position:center center;
  padding:0;
  transform:scale(1.08);
}
.main:has(.pos-compact-header) .productcard-body{
  padding:8px 7px 10px;
  gap:4px;
}
.main:has(.pos-compact-header) .productcard-body b{
  min-height:32px;
}
.main:has(.pos-compact-header) .productcard-category{
  font-size:11px;
  color:#7d8a99;
  line-height:1.15;
  min-height:14px;
  text-align:center;
}
.main:has(.pos-compact-header) .productcard-meta{
  display:none;
}
.main:has(.pos-compact-header) .pos-cart-math{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}
.main:has(.pos-compact-header) .pos-cart-math > div{
  display:grid;
  grid-template-columns:max-content max-content;
  justify-content:end;
  align-items:baseline;
  column-gap:16px;
  width:max-content;
  margin-left:auto;
}
.main:has(.pos-compact-header) .pos-cart-math > div span,
.main:has(.pos-compact-header) .pos-cart-math > div b,
.main:has(.pos-compact-header) .pos-cart-math > div strong{
  text-align:right;
}
.main:has(.pos-compact-header) .pos-cart-math > div span{
  min-width:92px;
}
.main:has(.pos-compact-header) .pos-cart-math > div b{
  min-width:96px;
}
.main:has(.pos-compact-header) .pos-cart-math .pos-final-total{
  margin-top:8px;
  padding-top:12px;
  border-top:2px dashed #ccd8ea;
}
.main:has(.pos-compact-header) .pos-final-total strong{
  min-width:118px;
}


/* =======================================================================
   MARCA REVERSIBLE: V7.5-CARRITO-ALTO
   Revertir: aplicar market-pos-revertir-v7.5-a-v7.4.zip
   SOLO PRESENTACIÓN: el carrito se alinea a la zona superior y los importes
   y botones aumentan 3px respecto al CSS V7.4.
   ======================================================================= */
@media (min-width:1151px) and (min-height:681px) {
  .main:has(.pos-compact-header) .content {
    position:relative;
  }
  /* Mantiene el espacio horizontal del catálogo, sin mover sus tarjetas. */
  .main:has(.pos-compact-header) .saleslayout-modern > .pos-cart-reference {
    position:absolute;
    top:39px;
    right:10px;
    bottom:7px;
    width:345px;
    height:auto;
    min-height:0;
    max-height:none;
    margin:0;
    z-index:2;
    display:flex;
    flex-direction:column;
  }
  .main:has(.pos-compact-header) .saleslayout-modern > .pos-cart-reference .pos-cart-items {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
  }
  .main:has(.pos-compact-header) .saleslayout-modern > .pos-cart-reference .pos-cart-footer {
    flex:0 0 auto;
  }
}
/* Aumento de 3px de cada tamaño ya establecido en V7.4. */
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-math > div {
  font-size:14px;
}
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-math > div b {
  font-size:14px;
}
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-math > .pos-final-total {
  font-size:18px;
}
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-math > .pos-final-total span {
  font-size:18px;
}
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-math > .pos-final-total strong {
  font-size:25px;
}
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-footer > .btn.full {
  font-size:15px;
}
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-link-actions button {
  font-size:14px;
}

/* V7.6-CORREGIDA: acciones coloreadas y carrito junto a fila de acciones; conserva V7.5 */
@media (min-width:1151px) and (min-height:681px){
 .main:has(.pos-compact-header) .content{position:relative}
 .main:has(.pos-compact-header) .pos-compact-header{padding-right:353px;min-height:40px}
 .main:has(.pos-compact-header) .pos-compact-header .pos-title{font-size:16px}
 .main:has(.pos-compact-header) .pos-compact-header .pos-shortcuts{min-width:0;flex-wrap:nowrap;gap:4px}
 .main:has(.pos-compact-header) .pos-compact-header .pos-action{padding:9px 6px;gap:4px;font-size:10px;white-space:nowrap}
 .main:has(.pos-compact-header) .saleslayout-modern>.pos-cart-reference{top:0;bottom:7px;right:10px}
}
.main:has(.pos-compact-header) .pos-compact-header .pos-action{color:#fff;background:#148f80;border-color:#148f80}
.main:has(.pos-compact-header) .pos-compact-header .pos-action i{color:inherit}
.main:has(.pos-compact-header) .pos-compact-header .pos-action:nth-child(2){background:#286ef2;border-color:#286ef2}
.main:has(.pos-compact-header) .pos-compact-header .pos-action:nth-child(3){background:#64748b;border-color:#64748b}
.main:has(.pos-compact-header) .pos-compact-header .pos-action:nth-child(4){background:#f5b52c;border-color:#f5b52c;color:#352500}
.main:has(.pos-compact-header) .pos-compact-header .pos-action:nth-child(5){background:#bb2938;border-color:#bb2938;color:#fff}
.main:has(.pos-compact-header) .pos-compact-header .pos-action:nth-child(6){background:#9ee315;border-color:#9ee315;color:#223b05}
.main:has(.pos-compact-header) .pos-compact-header .pos-action:hover{filter:brightness(.93)}
/* Mostrar fiscalidad en el resumen del carrito sin duplicar el impuesto. */
.main:has(.pos-compact-header) .pos-cart-reference .pos-cart-math{align-items:flex-end}

/* V7.6-CORREGIDA: ticket interno */
.receipt-modal{width:min(390px,95vw)}.receipt-commercial{margin:12px auto;padding:16px;max-width:315px;border:1px dashed #ced8e4;text-align:center;font-size:12px;line-height:1.5}.receipt-commercial h2{font-size:16px;margin:8px 0}.receipt-commercial .company-logo{max-width:145px;max-height:65px;object-fit:contain}.receipt-commercial hr{border:0;border-top:1px dashed #b7c1d0;margin:10px 0}.receipt-commercial .receipt-items{width:100%;text-align:left;border-collapse:collapse}.receipt-commercial .receipt-items th,.receipt-commercial .receipt-items td{padding:5px 3px;border-bottom:1px dotted #dae0e8;white-space:normal}.receipt-commercial .receipt-items th:last-child,.receipt-commercial .receipt-items td:last-child{text-align:right}.receipt-commercial .receipt-money{display:flex;justify-content:space-between;gap:8px;padding:5px 1px;text-align:left}.receipt-commercial .receipt-total{font-size:16px;font-weight:850;border-top:1px dashed #bbc4d0;padding-top:12px}

/* V7.7-VENTA-RAPIDA: estructura exclusiva, sin tocar Venta Clásica */
.main:has(.pos-compact-header) .quick-sales-v77{display:grid;grid-template-columns:minmax(0,1fr) 395px;gap:10px;min-height:0;height:100%}.quick-sales-v77 .quick-main{min-height:0}.quick-work-area{height:100%;display:flex;flex-direction:column;min-height:0;background:white;border:1px solid #e1e7ef;border-radius:11px;overflow:hidden}.quick-search-panel{padding:10px;background:#fafcff;flex:none;position:relative;z-index:2}.quick-search-caption{font-weight:800;font-size:12px;display:block;margin-bottom:7px}.quick-search-wrap{position:relative}.quick-search-wrap>input{width:100%;height:44px;border:2px solid #276cff;border-radius:8px;outline:2px solid #d5e5ff;padding:9px 13px;font-size:14px}.quick-search-results{position:absolute;z-index:10;top:100%;left:0;right:0;background:#fff;box-shadow:0 8px 28px #142b4640;max-height:260px;overflow-y:auto;border:1px solid #dde6f0;border-radius:5px}.quick-search-results[hidden]{display:none}.quick-search-results button{display:block;width:100%;text-align:left;padding:9px 12px;border:0;border-bottom:1px solid #edf0f4;background:#fff}.quick-search-results button.quick-selected,.quick-search-results button:hover{background:#e5f0ff}.quick-search-results strong,.quick-search-results small{display:block}.quick-search-results small{font-size:11px;color:#64748b;margin-top:4px}.quick-key-hint{color:#94a3b8;font-size:10px;margin-top:5px}.quick-list-scroll{flex:1;min-height:0;overflow:auto}.quick-pos-table{width:100%;border-collapse:collapse}.quick-pos-table th{padding:9px 7px;font-size:10px}.quick-pos-table td{padding:9px 7px;white-space:normal}.quick-pos-table .quick-table-thumb{width:35px;height:35px;object-fit:contain}.quick-price-tag{display:block;margin-top:4px;color:#145fe8;border:1px solid #bed7ff;border-radius:6px;background:#eff6ff;font-size:10px;padding:4px 7px;font-weight:700}.quick-remove{border:0;color:#db3348;background:none;font-size:21px}.quick-blank td{text-align:center;padding:28px 10px;color:#8b9aae}.quick-blank i{font-size:25px}.quick-bottom-totals{flex:none;padding:9px 16px;background:#f8fafc;border-top:1px solid #e4ebf5}.quick-bottom-totals>div{display:flex;justify-content:flex-end;gap:18px;padding:3px 0;font-size:12px}.quick-bottom-totals>div span{min-width:105px;text-align:right}.quick-bottom-totals>div b{min-width:95px;text-align:right}.quick-bottom-totals .quick-grand-total{border-top:2px dashed #cbd5e1;margin-top:7px;padding-top:10px;align-items:center;font-size:17px}.quick-grand-total strong:last-child{color:#14b851;font-size:25px}.quick-sales-v77 .quick-side{height:100%;display:flex;flex-direction:column;overflow:hidden;gap:7px}.quick-cashier-fields,.quick-keypad-box{background:#fff;border-radius:13px;border:1px solid #e5ebf3;padding:12px;flex:none}.quick-cashier-fields label{display:block;font-weight:750;font-size:12px;margin-bottom:8px}.quick-cashier-fields input,.quick-cashier-fields select{width:100%;height:38px;border:1px solid #d6e1ee;border-radius:8px;padding:7px;background:#fff}.quick-client-line{display:flex;gap:6px;margin-top:5px}.quick-client-line button{border:1px solid #d6e1ee;background:white;color:#1d75ff;border-radius:7px;padding:0 12px}.quick-fields-duo{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-fields-duo small{display:block;color:#71869d;font-size:11px;font-weight:400}.quick-fields-duo small b{color:#00a851}.quick-discounts{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:9px}.quick-discounts button{background:white;border:0;padding:7px;color:#4c617a}.quick-discounts button.active{color:#1765e8;background:#eaf3ff;border-radius:5px;font-weight:800}.quick-keypad-box{flex:1;min-height:0;display:flex;flex-direction:column}.quick-keypad-top{display:flex;justify-content:space-around;margin-bottom:8px}.quick-keypad-top button{border:0;background:none;color:#158deb;font-weight:700;font-size:12px}.quick-keypad-top button:first-child{color:#ea4c54}.quick-cash-grid{display:grid;grid-template-columns: minmax(0, 3fr) minmax(0, 1.8fr);gap:10px;flex:1;min-height:0}.quick-sales-v77 .quick-keypad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:6px;margin:0}.quick-sales-v77 .quick-key{background:#edf5ff;border:1px solid #bdd8ff;border-radius:8px;color:#1155e5;font-weight:800;font-size:23px;padding:6px}.quick-sales-v77 .quick-key-clear{color:#e52d37;background:#fff1f1;border-color:#ffc4c4}.quick-charge{background:linear-gradient(145deg,#20c767,#12a745);color:white;border:none;border-radius:11px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;box-shadow:0 4px 12px #16aa5530}.quick-charge i{font-size:32px}.quick-charge strong{font-size:18px}.quick-charge span{font-size:13px;color:#e6fff0}.quick-price-dialog{max-width:385px}.quick-price-modal{padding:16px}.quick-price-modal>p{font-weight:750}.quick-price-modal>button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:13px;border:1px solid #d9e4f1;border-radius:8px;background:white;margin:7px 0}.quick-price-modal>button:hover{background:#f0f6ff;border-color:#2975ff}@media(max-width:1250px){.main:has(.pos-compact-header) .quick-sales-v77{grid-template-columns:1fr;height:auto}.quick-sales-v77 .quick-work-area{min-height:480px}.quick-sales-v77 .quick-side{overflow:visible;min-height:680px}}


/* V7.8-ENCABEZADO-UNICO — reversible; solo vista Ventas. */
.main:has(.pos-compact-header) .pos-compact-header[hidden]{display:none!important}
.main:has(.pos-compact-header) .topbar{
 display:flex;align-items:center;gap:12px;min-width:0;
}
.main:has(.pos-compact-header) .topbar>div:first-child{flex:0 0 auto}
.main:has(.pos-compact-header) .pos-topbar-actions{flex:1 1 auto;min-width:0;display:flex;justify-content:center;overflow-x:auto;scrollbar-width:thin}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-shortcuts{display:flex;flex-wrap:nowrap;grid-template-columns:none;gap:5px;min-width:max-content}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action{white-space:nowrap;font-size:10px;gap:5px;padding:8px 9px;min-height:32px;border-radius:6px;border-width:1px;box-shadow:none}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action i{font-size:12px;color:inherit}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(1){background:#148f80;border-color:#148f80;color:#fff}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(2){background:#286ef2;border-color:#286ef2;color:#fff}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(3){background:#64748b;border-color:#64748b;color:#fff}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(4){background:#f5b52c;border-color:#f5b52c;color:#352500}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(5){background:#bb2938;border-color:#bb2938;color:#fff}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(6){background:#9ee315;border-color:#9ee315;color:#223b05}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:hover{filter:brightness(.94)}
.main:has(.pos-compact-header) .topright{flex:0 0 auto}
@media(max-width:1300px){
 .main:has(.pos-compact-header) .topbar{gap:6px}
 .main:has(.pos-compact-header) .pos-topbar-actions{justify-content:flex-start}
 .main:has(.pos-compact-header) .topright select{width:145px}
}
@media(max-width:900px){
 .main:has(.pos-compact-header) .topbar{flex-wrap:wrap}
 .main:has(.pos-compact-header) .pos-topbar-actions{order:3;flex-basis:100%;width:100%;}
 .main:has(.pos-compact-header) .topright{margin-left:auto}
}

/* V7.9-TEXTOS-MAS-3PX — SOLO encabezado de Ventas y Venta Rápida */
/* Se conservan todas las medidas de cajas, colores, espacios y operaciones de V7.8. */
.main:has(.pos-compact-header) .topbar h1{font-size:19px}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action{font-size:13px}
.main:has(.pos-compact-header) .notice{font-size:15px}
.main:has(.pos-compact-header) .sale-mode-tab{font-size:14px}
.main:has(.pos-compact-header) .slot{font-size:14px}
.main:has(.pos-compact-header) .slotbar>span{font-size:14px}
/* Texto de Venta Rápida: aumentos individuales de exactamente 3 px. */
.main:has(.pos-compact-header) .quick-sales-v77 .quick-search-caption{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-search-wrap>input{font-size:17px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-search-results button{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-search-results small{font-size:14px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-key-hint{font-size:13px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-pos-table{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-pos-table th{font-size:13px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-price-tag{font-size:13px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-blank td{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-bottom-totals>div{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-bottom-totals .quick-grand-total{font-size:20px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-grand-total strong:last-child{font-size:28px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-cashier-fields label{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-cashier-fields input,
.main:has(.pos-compact-header) .quick-sales-v77 .quick-cashier-fields select{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-fields-duo small{font-size:14px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-discounts button{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-keypad-top button{font-size:15px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-key{font-size:26px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-charge strong{font-size:21px}
.main:has(.pos-compact-header) .quick-sales-v77 .quick-charge span{font-size:16px}


/* V7.10-MODAL-PRESENTACIONES-VISIBLES — revertible: remove this block */
.pos-add-product-modal{width:min(760px,calc(100vw - 30px));border-radius:15px;overflow:hidden}
.pos-add-product-modal .modalhead{background:linear-gradient(110deg,#1760e5,#367cf0);padding:18px 24px}
.pos-add-product-modal .modalhead h2{font-size:21px;font-weight:800}
.pos-add-product-modal .formgrid{padding:24px;column-gap:20px;row-gap:18px;align-items:start}
.pos-add-product-modal .pos-modal-product{grid-template-columns:145px minmax(0,1fr);gap:20px}
.pos-add-product-modal .product-modal-thumb{width:145px;height:145px;object-fit:contain;background:#fff;border:1px solid #dce7f6;border-radius:16px}
.pos-add-product-modal .pos-modal-product h3{font-size:23px}
.pos-modal-section{min-width:0}
.pos-modal-label{display:block;font-size:14px;font-weight:800;color:#132644;margin-bottom:10px}
.pos-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}
.pos-choice-card{display:flex;align-items:center;gap:13px;cursor:pointer;border:1px solid #ccd9eb;border-radius:11px;padding:17px 14px;background:#fff;min-width:0;min-height:87px}
.pos-choice-card:has(input:checked){background:#edf4ff;border:2px solid #1768ff;padding:16px 13px;box-shadow:0 0 0 2px #206aff14}
.pos-choice-card input{appearance:none;width:24px;height:24px;border:2px solid #aebdce;border-radius:50%;background:#fff;margin:0;flex:none;display:grid;place-items:center}
.pos-choice-card input:checked{border-color:#1768ff}
.pos-choice-card input:checked:after{content:'';width:12px;height:12px;border-radius:50%;background:#1768ff}
.pos-choice-text{display:flex;flex-direction:column;gap:4px;min-width:0}.pos-choice-text b{font-size:15px;color:#12284e}.pos-choice-text small{font-size:12px;color:#4e678c;line-height:1.3}.pos-choice-text strong{font-size:19px;color:#075be4}
.pos-modal-price-qty{display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr);gap:24px}
.pos-price-grid{grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:10px}
.pos-price-choice{padding:12px;min-height:82px}.pos-price-choice:has(input:checked){padding:11px}
.pos-quantity-stepper{height:82px;border:1px solid #cdd9e9;border-radius:11px;display:flex;align-items:center;justify-content:space-between;padding:8px;gap:5px}
.pos-quantity-stepper button{font-size:24px;width:43px;height:50px;border:0;background:#eef3fa;color:#075bef;border-radius:9px;font-weight:800}
.pos-quantity-stepper input{width:65px;text-align:center;font-size:21px;font-weight:800;color:#152549;border:0;min-width:0;outline:none;appearance:textfield}
.pos-quantity-stepper input::-webkit-inner-spin-button,.pos-quantity-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.pos-stock-summary{border:1px solid #d4e5ff;border-radius:13px;padding:17px 19px;background:#eef6ff;display:flex;align-items:center;gap:18px}.pos-stock-summary>i{font-size:26px;color:#1768ff;background:#dceafe;border-radius:11px;padding:12px}.pos-stock-summary span{display:block;font-size:13px;color:#52749b;margin-bottom:3px}.pos-stock-summary strong{font-size:22px;font-weight:850;color:#075beb}
.pos-add-product-modal .modalfooter{padding:18px 24px}.pos-add-product-modal .modalfooter .btn{padding:12px 20px;font-size:14px}.pos-add-product-modal .modalfooter .btn.primary{background:#1264f5}
@media(max-width:660px){.pos-add-product-modal .pos-modal-product{grid-template-columns:90px minmax(0,1fr)}.pos-add-product-modal .product-modal-thumb{height:90px;width:90px}.pos-modal-price-qty{grid-template-columns:1fr}.pos-choice-grid{grid-template-columns:1fr 1fr}.pos-add-product-modal .formgrid{padding:15px;gap:12px}.pos-choice-card{padding:10px;min-height:75px}.pos-choice-card:has(input:checked){padding:9px}.pos-stock-summary strong{font-size:17px}}


/* V7.11-PRECIO-EQUIVALENTE — quitar este bloque para revertir solamente el aspecto */
.pos-equivalent-price-modal{width:min(900px,calc(100vw - 28px))}
.pos-equivalent-price-modal .pos-choice-grid:not(.pos-price-grid){grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.pos-equivalent-price-modal .pos-presentation-choice{min-height:107px}
.pos-equivalent-price-modal .pos-presentation-choice .pos-choice-text{flex:1}
.pos-equivalent-price-modal .pos-presentation-amount{font-size:21px;line-height:1.25;font-weight:850;color:#075bea;font-variant-numeric:tabular-nums}
.pos-equivalent-price-modal .pos-unit-equivalent{font-size:12px;font-weight:750;color:#11633a;background:#e4f8ed;padding:5px 8px;border-radius:7px;line-height:1.3;align-self:flex-start}
.pos-equivalent-price-modal .pos-price-choice .pos-choice-text small{font-size:12px;color:#11633a;font-weight:750}
.pos-equivalent-price-modal .pos-price-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:1px solid #b9e8d1;background:#effbf5;border-radius:12px;padding:14px 16px}
.pos-equivalent-price-modal .pos-price-summary>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.pos-equivalent-price-modal .pos-price-summary>div+div{border-left:1px solid #acd8c3;padding-left:12px}
.pos-equivalent-price-modal .pos-price-summary small{font-size:12px;color:#4c6870}
.pos-equivalent-price-modal .pos-price-summary strong{font-size:19px;color:#12643c;font-weight:850;overflow-wrap:anywhere}
.pos-equivalent-price-modal #posSelectedTotal{color:#075bea;font-size:24px;font-variant-numeric:tabular-nums}
@media(max-width:680px){.pos-equivalent-price-modal .pos-price-summary{grid-template-columns:1fr}.pos-equivalent-price-modal .pos-price-summary>div+div{border:0;border-top:1px solid #acd8c3;padding:9px 0 0}.pos-equivalent-price-modal .pos-choice-grid:not(.pos-price-grid){grid-template-columns:1fr}}

.checkout-modal{width:min(940px,calc(100vw - 36px));border-radius:18px;overflow:hidden;display:flex;flex-direction:column;max-height:min(92vh,900px)}
.checkout-modal .modalhead{background:linear-gradient(135deg,#0d6efd,#4092ff 55%,#79b3ff);padding:18px 24px;flex:none}
.checkout-modal .modalhead h2{font-size:22px;font-weight:800}
.checkout-modal #modalForm{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.checkout-modal .formgrid{padding:24px;column-gap:18px;row-gap:18px;background:#f8fbff;flex:1;min-height:0;overflow:auto;align-content:start}
.checkout-modal .modalfooter{padding:16px 24px;background:#fff;border-top:1px solid #dfe8f2;box-shadow:0 -10px 24px #10233d12;position:sticky;bottom:0;z-index:5;flex:none}
.checkout-modal .modalfooter .btn{padding:12px 18px;font-size:14px}
.checkout-summary-card-strong{background:linear-gradient(135deg,#eff6ff,#f9fcff);border-color:#bfd7fb;box-shadow:inset 0 1px 0 #ffffffb3}
.checkout-summary-card-strong div{background:#fff;border:1px solid #d9e8fb;border-radius:14px;padding:14px}
.checkout-modal .checkout-kpi-total{background:#e8f2ff;border:2px solid #7fb3ff;box-shadow:0 5px 16px #2572d122}
.checkout-modal .checkout-kpi-total strong{font-size:28px;line-height:1.2}
.checkout-top-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}
.checkout-top-fields .field{min-width:0}
.checkout-credit-card{display:grid;gap:16px;padding:18px;border:1px solid #c8def8;border-radius:18px;background:#fff;box-shadow:0 8px 22px #1252a80a}
.checkout-credit-head{display:flex;align-items:center;gap:12px;color:#0b64e8;font-size:16px;font-weight:800}
.checkout-credit-head i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eaf3ff;font-size:18px}
.checkout-credit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.checkout-client-finder{display:grid;gap:10px}
.checkout-client-label{font-size:12px;font-weight:800;color:#45617d;text-transform:uppercase;letter-spacing:.5px}
.checkout-client-finder>input[type="text"]{width:100%;border:1px solid #cddbee;border-radius:12px;padding:13px 14px;background:#f9fbfe;outline:none}
.checkout-client-finder>input[type="text"]:focus{border-color:#1d75ff;box-shadow:0 0 0 4px #1d75ff14;background:#fff}
.checkout-client-summary{padding:11px 13px;border-radius:12px;background:#eef6ff;border:1px solid #d5e6ff;color:#24507f;font-size:12px;font-weight:700}
.checkout-client-results{display:grid;gap:8px;max-height:210px;overflow:auto;padding-right:3px}
.checkout-client-option{border:1px solid #d9e3ef;background:#fff;border-radius:12px;padding:12px 13px;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px}
.checkout-client-option strong,.checkout-client-option small{display:block}
.checkout-client-option strong{color:#203348;font-size:13px}
.checkout-client-option small{color:#6f8399;font-size:11px}
.checkout-client-option.active,.checkout-client-option:hover{border-color:#1d75ff;background:#edf4ff;box-shadow:0 8px 18px #1d75ff12}
.checkout-client-empty{padding:14px;border:1px dashed #d7e1ed;border-radius:12px;background:#f8fbff;text-align:center;color:#71859b;font-size:12px}
.checkout-split-card{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border:1px solid #d7e3f1;border-radius:16px;background:#fff;box-shadow:0 4px 14px #163a6308}
.checkout-split-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.checkout-split-head strong{display:block;font-size:15px;color:#183555}
.checkout-split-head small{display:block;font-size:12px;color:#71849a;margin-top:3px}
.checkout-split-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 220px;gap:12px;align-items:stretch}
.checkout-split-remaining{display:flex;flex-direction:column;justify-content:center;gap:7px;border:1px solid #d7e4f6;border-radius:14px;background:#eef5ff;padding:12px 14px;min-width:0}
.checkout-split-remaining span{font-size:12px;color:#587191}
.checkout-split-remaining strong{font-size:26px;color:#0b64e8;line-height:1.1}
.checkout-credit-workspace{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:stretch}
.checkout-credit-client-card,.checkout-credit-workspace>.checkout-credit-card{border:1px solid #cbdff8;background:#fff;border-radius:16px;padding:17px;min-width:0;box-shadow:0 5px 14px #175cb00b}
.checkout-credit-client-card h3,.checkout-schedule h3{font-size:16px;color:#0965e0;margin:0 0 5px}
.checkout-credit-client-card p{margin:0 0 16px;color:#6b7d96;font-size:12px}
.checkout-credit-workspace .checkout-credit-card{display:flex;flex-direction:column;gap:12px}
.checkout-credit-workspace .checkout-credit-head{font-size:16px}
.checkout-credit-workspace .checkout-credit-grid{gap:12px}
.checkout-credit-workspace .checkout-calc-btn{margin-top:auto;width:100%;padding:13px;font-size:14px}
.checkout-credit-workspace .checkout-client-finder{position:relative}
.checkout-credit-workspace .checkout-client-results[hidden]{display:none!important}
.checkout-credit-workspace .checkout-client-results:not([hidden]){position:absolute;top:92px;left:0;right:0;z-index:6;max-height:180px;overflow:auto;background:white;border:1px solid #cbdcf5;padding:6px;border-radius:12px;box-shadow:0 10px 28px #16375d23}
.checkout-credit-workspace .checkout-client-summary{margin-top:6px}
.checkout-schedule{grid-column:1/-1;border:1px solid #c9dff7;background:#fff;border-radius:15px;padding:16px}
.checkout-schedule #checkoutScheduleRows{color:#62758e;font-size:12px}
.checkout-schedule #checkoutScheduleRows>p{margin:9px 0}
.checkout-schedule-table{width:100%;border-collapse:collapse;text-align:center;background:#fff;margin-top:10px}
.checkout-schedule-table th,.checkout-schedule-table td{padding:9px 8px;border-bottom:1px solid #e0e8f3}
.checkout-schedule-table th{background:#eff6ff;color:#385b82}
.receipt-modal-market{width:min(360px,92vw);border-radius:16px;overflow:hidden;background:#f7f8fb;display:flex;flex-direction:column;max-height:min(92vh,840px)}
.receipt-preview-head{background:#fff;color:#15253b;padding:14px 16px;border-bottom:1px solid #e4e9f1;flex:none}
.receipt-preview-head h2{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:800}
.receipt-preview-head .close{color:#5d6f85;font-size:30px}
.receipt-preview-shell{padding:10px 10px 6px;background:#f7f8fb;flex:1;min-height:0;overflow:auto}
.receipt-preview-actions{padding:14px 12px 16px;background:#fff;border-top:1px solid #e4e9f1;justify-content:center;position:sticky;bottom:0;z-index:4;box-shadow:0 -10px 24px #10182812;flex:none}
.receipt-preview-actions .btn{min-width:64px}
.receipt-preview-actions .btn.primary{background:#2a74f5;border-color:#2a74f5}
.receipt-market{display:flex;justify-content:center}
.receipt-paper{width:100%;max-width:292px;background:#fff;border:1px dashed #c9d2df;border-radius:14px;padding:16px 14px 12px;box-shadow:0 6px 18px #1018280d;color:#243445}
.receipt-business-logo{max-width:148px;max-height:56px;object-fit:contain;display:block;margin:0 auto 8px}
.receipt-paper h3{margin:0 0 4px;text-align:center;font-size:18px;line-height:1.2}
.receipt-business-line{text-align:center;font-size:12px;line-height:1.35;color:#4a5f77}
.receipt-divider{border-top:1px dashed #c6cfdb;margin:10px 0}
.receipt-doc-title,.receipt-doc-number{text-align:center}
.receipt-doc-title{font-size:14px;font-weight:800;letter-spacing:.4px}
.receipt-doc-number{font-size:13px;font-weight:700;margin-top:3px}
.receipt-meta{display:grid;gap:4px;font-size:11px;line-height:1.35;color:#33485f}
.receipt-items-compact{width:100%;border-collapse:collapse;font-size:11px}
.receipt-items-compact th,.receipt-items-compact td{padding:4px 2px;border-bottom:1px dotted #d7dde7;white-space:normal}
.receipt-items-compact th{font-size:10px;color:#6a7d92;text-transform:uppercase}
.receipt-items-compact th:nth-child(1),.receipt-items-compact td:nth-child(1){text-align:center;width:38px}
.receipt-items-compact th:nth-child(3),.receipt-items-compact td:nth-child(3),.receipt-items-compact th:nth-child(4),.receipt-items-compact td:nth-child(4){text-align:right;width:62px}
.receipt-totals{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:12px}
.receipt-totals span{color:#475c74}.receipt-totals b{color:#12263d}
.receipt-grand-total{font-size:16px;font-weight:850;padding-top:5px}
.receipt-payment-title{text-align:center;font-size:12px;font-weight:800;letter-spacing:.5px;margin-bottom:4px}
.receipt-thanks{text-align:center;font-weight:800;font-size:13px;margin-bottom:4px}
.receipt-qr-wrap{text-align:center;padding-top:6px}
.receipt-qr{display:block;width:112px;height:112px;margin:0 auto 4px;border-radius:6px}
.receipt-qr-wrap small{display:block;font-size:11px;color:#62758b}
@media(max-width:860px){.checkout-top-fields{grid-template-columns:1fr}.checkout-split-fields{grid-template-columns:1fr}.checkout-split-remaining strong{font-size:22px}.checkout-credit-grid{grid-template-columns:1fr}.checkout-modal .formgrid{padding:16px}}
@media(max-width:730px){.checkout-credit-workspace{grid-template-columns:1fr}.checkout-modal .checkout-kpi-total strong{font-size:23px}}

/* V7.16 — ÚNICAMENTE la fotografía del catálogo en Venta Clásica.
   Mantiene intactos ocho productos/fila, dimensiones de la tarjeta,
   etiqueta de stock, nombre, precio y categoría. */
.main:has(.pos-compact-header) .productcard-modern .productcard-media {
  height: 98px;
  flex: 0 0 98px;
  overflow: hidden;
}
.main:has(.pos-compact-header) .productcard-modern .productcard-media .product-image {
  width: 92%;
  height: 92%;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: none;
}
.main:has(.pos-compact-header) .productcard-modern .productcard-media .product-thumb-fallback {
  width: 92%;
  height: 92%;
  transform: none;
}

/* Market POS V7.17 - inventario visual y clásico */
.inv-top-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin:0 0 14px}.inv-top-actions .btn{font-size:13px}.inv-catalog-panel{background:#fff;border:1px solid #dce5f1;border-radius:15px;padding:15px;margin-top:10px;box-shadow:0 7px 22px #15233409}.inv-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.inv-summary>span{background:#edf5ff;border:1px solid #bfdaff;border-radius:24px;padding:9px 13px;color:#175ac5;font-weight:650}.inv-summary small{color:#728299}.inv-filters{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.1fr 1fr auto auto;align-items:center;gap:8px;background:#f8fafc;padding:12px;border:1px solid #e0e7f1;border-radius:10px;margin-bottom:14px}.inv-filters input,.inv-filters select{width:100%;min-width:0;border:1px solid #d4dfec;border-radius:9px;padding:12px 11px;background:#fff;color:#233549;font-size:13px}.inv-filters input:focus,.inv-filters select:focus{outline:2px solid #8bbaff}.inv-modes{display:flex;gap:4px;border:1px solid #d6e3ee;padding:4px;border-radius:10px;background:#fff}.inv-modes button{border:0;border-radius:7px;padding:8px 9px;background:transparent;color:#59708f;font-size:12px;white-space:nowrap}.inv-modes button.selected{background:#e6f3ff;color:#0666cd;font-weight:800}.inv-reset{background:#eff5ff;border:1px solid #aecbff;border-radius:10px;padding:12px 15px;color:#1460d5;font-weight:800}.inv-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:12px}.inv-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #dfe7f1;border-radius:14px;background:#fff;min-width:0}.inv-card-media{position:relative;height:138px;background:#f6f8fa;overflow:hidden}.inv-product-img{width:100%;height:100%;object-fit:cover;object-position:center}.inv-card .product-thumb-fallback{height:100%;display:grid;place-items:center;color:#6592c9;font-size:44px}.inv-stock-count{position:absolute;right:8px;top:8px;background:#10a9e8;border-radius:100px;color:#fff;padding:5px 9px;font-size:13px;font-weight:800;box-shadow:0 3px 8px #004d8126}.inv-card-content{padding:12px;display:grid;gap:7px;flex:1;align-content:start}.inv-card-content b{font-size:14px;line-height:1.3;min-height:36px}.inv-card-content small{font-size:11px;color:#667a94;min-height:26px;line-height:1.4}.inv-state{border-radius:6px;font-size:11px;font-weight:800;padding:4px 8px;display:inline-flex;max-width:100%;align-items:center}.inv-state.normal{background:#e6faf0;border:1px solid #a2dec0;color:#0b8c56}.inv-state.bajo{background:#fff6df;border:1px solid #ebd195;color:#ad7305}.inv-state.agotado{background:#fff0f0;border:1px solid #f3b6b6;color:#bf3232}.inv-card-actions{border-top:1px solid #edf0f4;padding:8px;display:flex;justify-content:space-evenly;gap:4px}.inv-icon{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:7px;background:#fff;border:1px solid #cddbe9;color:#2877e7;cursor:pointer}.inv-icon:hover{background:#eaf3ff;border-color:#6eacff}.inv-classic-table{width:100%;border-collapse:collapse}.inv-classic-table th{background:#f5f8fc;color:#516781;font-size:11px;text-transform:uppercase;letter-spacing:.4px}.inv-classic-table td,.inv-classic-table th{padding:11px 12px;border-bottom:1px solid #e1e9f3;text-align:left}.inv-product-cell{display:flex;align-items:center;gap:10px;min-width:190px}.inv-small-img{width:39px;height:43px;object-fit:contain;border-radius:7px;border:1px solid #e2e8f0}.inv-product-cell strong{font-size:12px}.inv-link{border:0;background:transparent;color:#1876f8;cursor:pointer}.inv-qty{padding:5px 12px;border-radius:6px;background:#edf4ff;color:#0a66e8;font-weight:700}.inv-row-actions{white-space:nowrap}.inv-empty{padding:28px;color:#6e8095}.inv-edit-visual{grid-column:1/-1;display:flex;align-items:center;gap:14px;border:1px solid #e1e9f3;border-radius:12px;padding:12px}.inv-edit-image{width:82px;height:82px;object-fit:contain;border-radius:9px;background:#f6f8fc}.inv-edit-visual span{font-size:12px;color:#6e8095;max-width:330px}@media(max-width:1300px){.inv-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.inv-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.inv-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V7.18 — Ficha comercial integral del producto (Market POS) */
.market-product-modal{width:min(980px,95vw);max-height:90vh;display:flex;flex-direction:column;overflow:hidden}
.market-product-modal .modalhead{background:linear-gradient(105deg,#e1f2ff,#f4faff);color:#095382;border-bottom:1px solid #96d6ff;flex-shrink:0}
.market-product-modal #modalForm{display:flex;flex-direction:column;overflow:hidden;min-height:0;flex:1}
.market-product-modal .formgrid{display:block;padding:0;overflow-y:auto;flex:1;min-height:0;background:#fff}
.market-product-modal .modalfooter{flex-shrink:0;background:#fff;box-shadow:0 -5px 20px #223a5417;position:relative;z-index:2}
.market-product-tabs{display:flex;gap:8px;flex-wrap:wrap;background:#f7fbff;border-bottom:1px solid #d6e6f4;padding:10px 22px}
.market-product-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#536881;font:inherit;font-weight:750;padding:12px 14px;cursor:pointer}
.market-product-tabs button.active{color:#0568d4;border-bottom-color:#078df0}
.market-product-tab{padding:22px 26px 28px}
.market-product-tab[hidden]{display:none!important}
.market-product-section-label{color:#046cbb;font-size:14px;font-weight:850;text-transform:uppercase;letter-spacing:.4px;padding-bottom:9px;margin-bottom:18px;border-bottom:2px solid #95dcff}
.market-product-general{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(220px,1fr);gap:22px}
.market-product-data,.market-product-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.market-product-wide{grid-column:1/-1}
.market-product-data .field,.market-product-fields .field,.market-product-packs .field{min-width:0}
.market-product-data textarea{width:100%;border:1px solid #d8e1ed;border-radius:9px;padding:12px;resize:vertical;font:inherit}
.market-product-photo{display:flex;flex-direction:column;align-items:stretch;gap:13px;border:1px dashed #91d8ff;border-radius:14px;padding:15px;background:#f2faff;text-align:center}
.market-product-photo>strong{color:#03699f}
#marketProductPreview{height:205px;background:#e3f2fc;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.market-product-preview-image{width:100%;height:100%;object-fit:contain}
.market-product-image-pick{cursor:pointer;padding:10px;border-radius:9px;background:#fff;color:#087cd3;font-weight:750}
.market-product-photo small{color:#64748b}
.market-product-packs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.market-product-packs>div{border:1px solid #b9dfff;border-radius:13px;background:#f8fcff;padding:17px;display:grid;gap:12px}
.market-product-packs h3{margin:0;color:#0967b4;font-size:16px}
.market-product-help,.market-product-inventory-note{margin-top:18px;color:#517087;padding:13px 15px;background:#e9f7ff;border:1px solid #b4e4ff;border-radius:10px}
.market-product-readonly{border:1px solid #bde2ff;border-radius:10px;background:#f1f8ff;padding:13px;display:grid;gap:8px}
.market-product-readonly b{color:#076fe5;font-size:19px}
@media(max-width:700px){.market-product-general,.market-product-data,.market-product-fields,.market-product-packs{grid-template-columns:1fr}.market-product-tab{padding:14px}.market-product-tabs{padding:8px}.market-product-tabs button{font-size:12px;padding:9px}}
/* V7.19 — fichas comerciales especializadas de inventario */
.inv-special{border:1px solid #dbe5ef;background:#fff;border-radius:16px;padding:18px;margin-top:12px}.inv-special-head{margin-bottom:16px}.inv-special-head h2{margin:0 0 5px;font-size:19px;color:#102a47}.inv-special-head small{color:#607893}.inv-special-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.inv-special-kpis article{border:1px solid #dce6f1;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:5px;border-top:3px solid #327cf2}.inv-special-kpis article span{font-size:12px;color:#627a93}.inv-special-kpis article strong{font-size:23px;color:#103256}.inv-special-kpis article small{color:#71859c}.inv-special-kpis .green{border-top-color:#18a66c}.inv-special-kpis .amber{border-top-color:#eea019}.inv-special-kpis .red{border-top-color:#ec505a}.inv-special-filter{display:flex;gap:10px;margin-bottom:15px}.inv-special-filter input{min-width:160px;flex:1}.inv-special-filter input,.inv-special-filter select{border:1px solid #d7e3f0;border-radius:9px;padding:10px;background:#fff;font-size:13px}.inv-special .tablewrap{max-height:58vh;overflow:auto}.inv-special th{white-space:nowrap}.inv-label-columns{display:grid;grid-template-columns: minmax(270px, .9fr) minmax(0,1.1fr);gap:18px}.inv-label-columns>div{min-width:0}.inv-label-columns h3{font-size:15px;margin:0 0 12px}.inv-label-options{border:1px solid #dce7f4;border-radius:12px;max-height:390px;overflow:auto}.inv-label-options label{display:flex;align-items:center;gap:12px;padding:11px;border-bottom:1px solid #edf1f7;font-size:12px}.inv-label-options label span{flex:1;font-weight:650}.inv-label-options label small{color:#6c819c}.inv-label-settings{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px;font-size:12px}.inv-label-settings input[type=number]{width:65px;padding:8px;border:1px solid #d6e3ef;border-radius:8px}.inv-label-preview{border:1px dashed #c9d6e8;border-radius:12px;background:#f7faff;padding:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:430px;overflow:auto}.inv-print-label{background:white;border:1px dashed #bfcede;border-radius:7px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px;text-align:center;font-size:11px;min-width:0}.inv-print-label .inv-code39{width:100%;height:56px}.inv-print-label strong{overflow-wrap:anywhere}.inv-print-label small{font-size:9px;color:#617993}.inv-detail-modal{max-height:88vh;overflow:hidden;display:flex;flex-direction:column}.inv-detail-grid{padding:20px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;overflow:auto}.inv-detail-grid div{background:#f6f9fc;border:1px solid #dce6f0;border-radius:10px;padding:11px;display:flex;flex-direction:column;gap:6px}.inv-detail-grid small{font-size:11px;color:#72859b}.inv-detail-grid strong{font-size:13px;overflow-wrap:anywhere}@media(max-width:900px){.inv-special-kpis{grid-template-columns:repeat(2,1fr)}.inv-label-columns{grid-template-columns:1fr}.inv-label-preview{grid-template-columns:repeat(2,1fr)}}

/* V7.20 — rediseño integral ficha de producto */
.market-product-modal.reference{width:min(1040px,96vw);max-height:92vh;border-radius:16px}
.market-product-modal.reference .modalhead{background:#f8fbff;border-bottom:1px solid #8ed0ff;padding:14px 18px}
.market-product-modal.reference .modalhead h2{font-size:18px;color:#0d4f86;display:flex;align-items:center;gap:10px;margin:0}
.market-product-modal.reference .modalhead h2::before{content:"\F3AF";font-family:'bootstrap-icons';font-size:18px;color:#1e86df}
.market-product-tabs-reference{padding:0 18px;background:#f8fbff;border-bottom:1px solid #cfe3f5;gap:14px}
.market-product-tabs-reference button{padding:14px 6px 11px;border-bottom-width:2px;color:#617089;display:flex;align-items:center;gap:7px}
.market-product-tabs-reference button.active{color:#0576d7;border-bottom-color:#08a2ff}
.market-product-tab{padding:18px 24px 24px;background:#fffdfb}
.market-product-reference-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,.95fr);gap:16px;align-items:start}
.market-product-ident-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.market-product-pricing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.market-product-inventory-top{display:grid;grid-template-columns:1.05fr 1.4fr 1.05fr auto;gap:14px;align-items:end}
.market-span-3{grid-column:1/-1}
.market-textarea-field{display:block}
.market-textarea-field textarea{width:100%;min-height:108px;border:1px solid #d7dee9;border-radius:10px;padding:12px 14px;font:inherit;color:#334155;resize:vertical;background:#fff}
.market-product-section-label{display:flex;align-items:center;gap:7px;color:#0968ad;font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.3px;border-bottom:2px solid #73c7ff;padding-bottom:9px;margin-bottom:14px}
.market-product-section-label i{font-size:14px}
.market-product-photo-card{border:1px dashed #8cd2ff;border-radius:14px;padding:14px;background:#f5fbff;display:flex;flex-direction:column;gap:12px}
.market-product-photo-title{display:flex;align-items:center;gap:8px;color:#0b6797;font-weight:800;text-transform:uppercase}
.market-product-photo-box{display:grid;place-items:center;min-height:198px;border:1px solid #cfe1f0;border-radius:10px;background:#ddebF7;overflow:hidden;padding:12px;text-align:center;color:#607085}
.market-product-photo-box .product-thumb-fallback{width:100%;height:100%;display:grid;place-items:center;font-size:16px;color:#64748b;gap:8px}
.market-product-photo-box .product-thumb-fallback i{font-size:42px;color:#9baec4}
.market-product-photo-box .product-thumb-fallback span{font-size:14px}
.market-product-preview-image{width:100%;height:100%;object-fit:contain}
.market-product-image-pick{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:1px solid #dce8f4;border-radius:10px;padding:11px 12px;color:#1380de;font-weight:800;cursor:pointer}
.market-product-photo-card small{color:#64748b;text-align:center}
.market-product-note-inline{display:flex;align-items:center;gap:10px;margin:14px 0 20px}
.market-product-pack-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:8px}
.market-pack-card{border:1px solid #c3def8;border-radius:14px;background:#f7fbff;padding:16px}
.market-pack-card h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#0864ad;font-size:16px}
.market-pack-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.market-product-pack-foot{font-size:13px;color:#6b7280;margin:14px 0 0}
.market-switch-field{display:flex;align-items:center;gap:10px;padding:13px 14px;border-radius:10px;background:#fff;border:1px solid #d7dee9;min-height:48px}
.market-switch-field input{appearance:none;-webkit-appearance:none;width:36px;height:20px;border-radius:999px;background:#b8c7d8;position:relative;cursor:pointer;transition:.2s}
.market-switch-field input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:.2s}
.market-switch-field input:checked{background:#1fa0ea}
.market-switch-field input:checked::after{left:18px}
.market-switch-field span{color:#475569;font-weight:700}
.market-product-lot-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 10px}
.market-product-lot-toolbar strong{display:block;color:#374151}
.market-product-lot-toolbar small{color:#6b7280}
.market-product-lot-wrap{border:1px solid #dce5ef;border-radius:12px;overflow:hidden;background:#fff}
.market-product-lot-wrap.disabled{opacity:.65}
.market-product-lot-table{width:100%;border-collapse:collapse}
.market-product-lot-table th{background:#d8eaf7;color:#064777;font-size:12px;letter-spacing:.4px;text-align:left;padding:12px 14px}
.market-product-lot-table td{padding:12px 14px;border-top:1px solid #e5edf4;vertical-align:middle}
.market-product-lot-table input{width:100%;border:1px solid #d7dee9;border-radius:9px;padding:10px 11px;font:inherit;background:#fff}
.market-lot-cell{display:flex;align-items:center;gap:8px}
.market-lot-remove{width:28px;height:28px;border:0;border-radius:8px;background:#fee2e2;color:#b91c1c;font-size:18px;line-height:1;cursor:pointer;flex:0 0 auto}
.market-lot-empty{text-align:center;color:#6b7280;padding:22px 14px}
.market-product-simple-stock{margin-top:14px;border:1px solid #dce5ef;border-radius:12px;padding:14px;background:#f8fbff}
.market-product-fefo{display:flex;align-items:center;gap:8px;color:#7c6f68;font-size:13px;margin:14px 0 0}
.market-product-modal.reference .field input[readonly]{background:#f8fafc;color:#475569;font-weight:700}
@media(max-width:1024px){.market-product-reference-layout,.market-product-pricing-grid,.market-product-inventory-top,.market-product-ident-grid,.market-pack-fields{grid-template-columns:1fr 1fr}.market-product-pack-grid{grid-template-columns:1fr}}
@media(max-width:720px){.market-product-tab{padding:14px}.market-product-reference-layout,.market-product-pricing-grid,.market-product-inventory-top,.market-product-ident-grid,.market-pack-fields{grid-template-columns:1fr}.market-switch-field{justify-content:flex-start}.market-product-lot-toolbar{flex-direction:column;align-items:stretch}.market-product-tabs-reference{padding:0 12px}.market-product-tabs-reference button{font-size:12px}}

/* Gráfico de evolución: valores visuales diferenciados, no financieros */
.chartitem-example .chartbar{background:linear-gradient(0deg,#9db9df,#c7dbf7);border:1px dashed #689ace;opacity:.95}
.legenddot-example{background:#bfd6f3;border:1px dashed #689ace;margin-left:9px}
.chart-demo-notice{margin:0 22px 13px;color:#63778f;font-size:11px;line-height:1.35}

/* V7.21-DASHBOARD-MEJORA-INTEGRAL */
.dash-hero-v2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.9fr);gap:18px;align-items:stretch;margin-bottom:18px;background:linear-gradient(115deg,#152435,#223952 55%,#1a2d44);color:#fff;border-radius:18px;padding:22px 24px;box-shadow:0 14px 30px #12223517;border:1px solid #203449}
.dash-hero-copy h2{margin:6px 0 10px;font-size:24px;letter-spacing:-.8px}.dash-hero-copy p{margin:0;color:#d0dbe7;font-size:13px;line-height:1.5;max-width:720px}.dash-hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.dash-hero-meta span{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;background:#ffffff12;border:1px solid #ffffff1c;font-size:12px;font-weight:700;color:#eff6ff}.dash-hero-side{display:grid;gap:12px;align-content:space-between}.dash-hero-highlight{display:grid;gap:5px;background:#ffffff10;border:1px solid #ffffff22;border-radius:16px;padding:16px 17px;backdrop-filter:blur(6px)}.dash-hero-highlight span{font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#b8f000}.dash-hero-highlight strong{font-size:30px;letter-spacing:-1px}.dash-hero-highlight small{font-size:12px;color:#d8e3ee;line-height:1.45}.dash-hero-v2 .dashactions{display:flex;flex-wrap:wrap;gap:9px;margin:0}.dash-hero-v2 .dashactions .btn{min-width:142px}

.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.dash-kpi{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #dfe5ec;border-radius:16px;padding:18px 18px 16px;box-shadow:0 6px 16px #13203308;position:relative;overflow:hidden}.dash-kpi::after{content:'';position:absolute;inset:auto 0 0 0;height:4px;background:#2b6fff}.dash-kpi.green::after{background:#16a34a}.dash-kpi.red::after{background:#ef4444}.dash-kpi.slate::after{background:#64748b}.dash-kpi-icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;font-size:22px;flex:none}.dash-kpi.blue .dash-kpi-icon{background:#edf4ff;color:#1d75ff}.dash-kpi.green .dash-kpi-icon{background:#ebf9f0;color:#129544}.dash-kpi.red .dash-kpi-icon{background:#fff0f0;color:#c33441}.dash-kpi.slate .dash-kpi-icon{background:#eef2f7;color:#475569}.dash-kpi-copy{min-width:0}.dash-kpi-copy span{display:block;font-size:12px;font-weight:750;color:#5f7287}.dash-kpi-copy strong{display:block;font-size:31px;line-height:1.1;letter-spacing:-1px;margin:7px 0 6px;color:#15273c}.dash-kpi-copy small{display:block;font-size:12px;line-height:1.45;color:#6f8196}

.dash-grid-v2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.95fr);gap:19px}.dash-grid-main,.dash-grid-v2>.panel{min-width:0}.dash-lower-v2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.dash-grid-v2 .panel{border-radius:16px;box-shadow:0 6px 18px #12223508}.dash-grid-v2 .panelhead{padding:16px 18px}.dash-grid-v2 .panelhead h2{font-size:16px;color:#1a2e45}

.dash-chart-shell{padding:16px 18px 18px}.dash-chart-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.dash-chart-summary article{border:1px solid #deebfa;background:linear-gradient(180deg,#fafdff,#f4f8fe);border-radius:14px;padding:14px 15px}.dash-chart-summary span{display:block;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#5f7895}.dash-chart-summary strong{display:block;font-size:22px;letter-spacing:-.7px;color:#13499d;margin-top:6px}.dash-chart-summary small{display:block;margin-top:5px;font-size:12px;color:#6f8196;line-height:1.45}.dash-chart-v2{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;align-items:stretch}.dash-chart-scale{display:flex;flex-direction:column;justify-content:space-between;padding:4px 0 28px}.dash-chart-scale span{font-size:11px;color:#73859a;font-weight:700}.dash-chart-plot{display:flex;align-items:stretch;gap:13px;height:250px;justify-content:space-around;padding-top:4px}.dash-chart-plot .chartitem{position:relative}.dash-chart-plot .charttrack{height:182px;max-width:58px;width:100%;background:repeating-linear-gradient(to top,#edf3fb,#edf3fb 1px,transparent 1px,transparent 25%);border:1px solid #e2eaf3;border-bottom-color:#d4deea;border-radius:10px 10px 0 0;overflow:hidden}.dash-chart-plot .chartbar{width:66%;background:linear-gradient(180deg,#7bb1ff,#1d75ff);box-shadow:0 10px 20px #1d75ff21}.dash-chart-plot .chartitem-example .chartbar{background:linear-gradient(180deg,#d7e7ff,#9fc0ff);border:1px dashed #88abeb}.dash-chart-plot .chartitem strong{font-size:12px;color:#243a56}.dash-chart-plot .chartitem small{font-size:10px;color:#8a98ab}.chartlegend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0 0;font-size:11px;color:#69788a}.legenddot{height:10px;width:10px;border-radius:4px;background:#1d75ff}.legenddot-example{background:#aac8fa}.chart-demo-notice{margin:10px 0 0;font-size:11.5px;line-height:1.55;color:#76879a}

.cashoverview-modern{padding:18px}.cashoverview-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.cashoverview-modern h3{font-size:30px;margin:12px 0 4px;letter-spacing:-.8px;color:#15283b}.cashoverview-modern p{margin:0;color:#728396;font-size:12px;line-height:1.55}.cash-summary-badge{display:grid;place-items:center;gap:7px;min-width:116px;padding:14px 10px;border-radius:15px;background:linear-gradient(180deg,#f6fbff,#eef5fd);border:1px solid #dbe8f8;color:#1b5fc9;text-align:center}.cash-summary-badge i{font-size:26px}.cash-summary-badge span{font-size:11px;font-weight:800;line-height:1.35}.cashoverview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.cashoverview-grid article{border:1px solid #e2e9f1;border-radius:13px;padding:13px 14px;background:#fbfdff}.cashoverview-grid span{display:block;font-size:11px;font-weight:750;color:#667b92}.cashoverview-grid strong{display:block;font-size:19px;color:#1a2e45;margin-top:7px}

.dashlist-modern{padding:10px 16px 16px}.rankrow,.alertrow,.activityrow{padding:13px 0;border-bottom:1px solid #edf1f5;display:flex;gap:12px;align-items:center}.rankrow:last-child,.alertrow:last-child,.activityrow:last-child{border-bottom:0}.ranknumber{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#eaf2ff;color:#1d75ff;font-weight:800;flex:none}.rankrow>div,.alertrow>div,.activityrow>div{min-width:0;flex:1}.rankrow b,.alertrow b,.activityrow b{display:block;color:#1a2e45;font-size:13px}.rankrow small,.alertrow small,.activityrow small{display:block;margin-top:3px;font-size:11px;color:#75869a}.rankrow strong,.activityrow strong{font-size:13px;color:#0a56c3;white-space:nowrap}.alerticon,.activityicon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none}.alerticon{background:#fff4e5;color:#d97706}.activityrow .activityicon{background:#e9f8ef;color:#15914a}.activityrow.outcome .activityicon{background:#fff0f0;color:#cb3945}.activityrow.outcome strong{color:#c33441}.dashzero{min-height:180px;display:grid;place-items:center;gap:10px;text-align:center;color:#75869a;font-size:13px;padding:22px 14px;line-height:1.5}.dashzero i{font-size:28px;color:#1d75ff}.dashzero.success i{color:#16a34a}

@media(max-width:1320px){.dash-grid-v2{grid-template-columns:1fr}.dash-hero-v2{grid-template-columns:1fr}.dash-lower-v2{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.dash-kpis,.dash-chart-summary,.dash-lower-v2,.cashoverview-grid{grid-template-columns:1fr 1fr}.dash-chart-v2{grid-template-columns:1fr}.dash-chart-scale{display:none}}
@media(max-width:700px){.dash-kpis,.dash-chart-summary,.dash-lower-v2,.cashoverview-grid{grid-template-columns:1fr}.dash-hero-v2{padding:18px}.dash-hero-copy h2{font-size:22px}.dash-hero-meta{gap:8px}.dash-hero-meta span{width:100%;justify-content:flex-start}.dash-hero-v2 .dashactions .btn{min-width:0;flex:1}.dash-kpi-copy strong{font-size:27px}.dash-chart-plot{height:230px;gap:8px}.dash-chart-plot .charttrack{max-width:44px}.cashoverview-top{flex-direction:column}.cash-summary-badge{width:100%;grid-template-columns:auto 1fr;justify-content:start;place-items:center start;text-align:left}.cashoverview-modern h3{font-size:26px}}


/* V7.22-DASHBOARD-REFERENCIA — ajuste integral para acercar la vista a la maqueta aprobada */
.dash-v3-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:14px}
.dash-v3-toolbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.dash-v3-toolbar-actions .btn{min-width:140px}
.dash-v3-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(420px,.95fr);gap:24px;align-items:center;overflow:hidden;background:linear-gradient(120deg,#0b295f,#0f3f8f 58%,#0b2b63);border-radius:20px;padding:28px 28px;box-shadow:0 18px 32px rgba(11,41,95,.16);margin-bottom:18px}
.dash-v3-hero::before{content:'';position:absolute;inset:-20% auto auto 28%;width:380px;height:220px;background:radial-gradient(circle at center,rgba(83,140,255,.38),rgba(83,140,255,0));pointer-events:none}
.dash-v3-hero::after{content:'\f1c6';font-family:'bootstrap-icons';position:absolute;right:34%;top:16px;font-size:120px;line-height:1;color:rgba(94,141,255,.18);pointer-events:none}
.dash-v3-hero-copy{position:relative;z-index:1}
.dash-v3-hero-copy h2{margin:0 0 6px;font-size:28px;line-height:1.15;color:#fff;letter-spacing:-.8px}
.dash-v3-hero-copy p{margin:0;font-size:14px;color:#d8e7ff;line-height:1.5;max-width:560px}
.dash-v3-hero-metrics{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dash-v3-hero-metrics article{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:16px 15px}
.dash-v3-hero-metrics i{grid-row:1 / span 2;font-size:20px;color:#26efd0}
.dash-v3-hero-metrics strong{display:block;font-size:18px;line-height:1;color:#fff}
.dash-v3-hero-metrics span{display:block;font-size:12px;color:#e3edff}
.dash-v3-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.dash-v3-kpi{background:#fff;border:1px solid #e0e8f1;border-radius:18px;padding:16px 16px 14px;display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:flex-start;box-shadow:0 8px 18px rgba(16,42,74,.06)}
.dash-v3-kpi-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:27px;box-shadow:0 12px 22px rgba(29,117,255,.12)}
.dash-v3-kpi.blue .dash-v3-kpi-icon{background:linear-gradient(135deg,#2d7eff,#135be3);color:#fff}
.dash-v3-kpi.green .dash-v3-kpi-icon{background:linear-gradient(135deg,#38d178,#0aaf52);color:#fff}
.dash-v3-kpi.violet .dash-v3-kpi-icon{background:linear-gradient(135deg,#9563ff,#7240eb);color:#fff}
.dash-v3-kpi.red .dash-v3-kpi-icon{background:linear-gradient(135deg,#ff6b7b,#ef334f);color:#fff}
.dash-v3-kpi-copy{min-width:0}
.dash-v3-kpi-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.dash-v3-kpi-head span{font-size:13px;font-weight:750;color:#5b6f87}
.dash-v3-kpi-copy strong{display:block;font-size:26px;line-height:1.1;letter-spacing:-.8px;color:#142b49;margin-bottom:6px}
.dash-v3-kpi-copy small{display:block;font-size:12px;color:#6e8298;line-height:1.45}
.dash-v3-delta{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.dash-v3-delta.up{background:#e9faef;color:#0fa650}
.dash-v3-delta.down{background:#fff0f0;color:#df334b}
.dash-v3-delta.neutral{background:#eef4ff;color:#42648d}
.dash-v3-main-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(350px,.8fr);gap:18px}
.dash-v3-left{min-width:0;display:grid;gap:18px}
.dash-v3-main-grid>.panel,.dash-v3-left>.panel,.dash-v3-bottom-grid>.panel{min-width:0;border-radius:18px;box-shadow:0 8px 20px rgba(14,38,67,.06)}
.dash-v3-main-grid .panelhead{padding:14px 16px;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;gap:12px;align-items:center}
.dash-v3-main-grid .panelhead h2{font-size:17px;color:#162d4a}
.dash-v3-range-switch{display:flex;gap:8px}
.dash-v3-range-switch button{border:1px solid #d9e5f2;background:#f3f7fd;color:#5c7088;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:800}
.dash-v3-range-switch button.active{background:#1d75ff;border-color:#1d75ff;color:#fff;box-shadow:0 8px 18px rgba(29,117,255,.18)}
.dash-v3-chart-wrap{padding:14px 16px 16px}
.dash-v3-chart-intro{margin:0 0 14px;font-size:13px;color:#67809a}
.dash-v3-chart-grid{display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px;align-items:stretch}
.dash-v3-chart-scale{display:flex;flex-direction:column;justify-content:space-between;padding:4px 0 28px}
.dash-v3-chart-scale span{font-size:12px;font-weight:700;color:#7288a1}
.dash-v3-chart-area{overflow:hidden}
.dash-v3-chart-bars{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;min-height:300px;padding:0 6px 0 0}
.dash-v3-bar-item{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px}
.dash-v3-bar-item strong{font-size:12px;color:#1d3454;white-space:nowrap}
.dash-v3-bar-track{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;height:164px;background:repeating-linear-gradient(to top,#e8eff8,#e8eff8 1px,transparent 1px,transparent 25%);border:1px solid #dfe7f0;border-bottom-color:#cfdae8;border-radius:10px 10px 0 0;overflow:hidden}
.dash-v3-bar-fill{width:68%;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#b8d2ff,#1d75ff);box-shadow:0 12px 24px rgba(29,117,255,.18)}
.dash-v3-bar-item.example .dash-v3-bar-fill{background:linear-gradient(180deg,#dfeaff,#9fc2ff)}
.dash-v3-bar-item span{font-size:12px;font-weight:700;color:#536a83;text-transform:capitalize}
.dash-v3-bar-item small{font-size:11px;color:#7a8ea5}
.dash-v3-chart-legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;font-size:12px;color:#607791}
.dash-v3-chart-legend span{display:inline-flex;gap:7px;align-items:center}
.dash-v3-chart-legend span:first-child i{color:#1d75ff}
.dash-v3-chart-legend span:last-child i{color:#aac8fa}
.dash-v3-chart-note{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:12px 14px;border-radius:12px;background:#f2f7ff;color:#4b6788;font-size:12px;line-height:1.5}
.dash-v3-chart-note i{color:#1d75ff;margin-top:1px}
.dash-v3-bottom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dash-v3-table{width:100%;border-collapse:collapse}
.dash-v3-table th,.dash-v3-table td{padding:11px 12px;border-bottom:1px solid #edf2f7;font-size:13px;color:#233a58;text-align:left;vertical-align:middle}
.dash-v3-table thead th{font-size:12px;color:#5f738d;background:#f7faff;font-weight:800}
.dash-v3-table tbody tr:last-child td{border-bottom:0}
.dash-v3-product-cell{display:flex;align-items:center;gap:10px;min-width:0}
.dash-v3-product-cell>div{min-width:0}
.dash-v3-product-cell b,.dash-v3-activity-table b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#132b49}
.dash-v3-product-cell small,.dash-v3-activity-table small{display:block;font-size:11px;color:#7890a8;margin-top:4px}
.dash-v3-rank{width:28px;height:28px;border-radius:10px;background:#edf4ff;color:#1963e6;font-weight:800;display:grid;place-items:center;flex:none}
.dash-v3-thumb{width:42px;height:42px;border-radius:10px;object-fit:cover;background:#f1f5fa;flex:none;border:1px solid #e1e8f0}
.dash-v3-thumb.product-thumb-fallback{display:grid;place-items:center;color:#5f7895}
.dash-v3-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:240px;padding:18px;text-align:center;color:#4f6b5f;background:linear-gradient(180deg,#fbfffc,#f2fcf6)}
.dash-v3-empty-state.success strong{font-size:29px;color:#1b6e42;opacity:.13;line-height:1}
.dash-v3-empty-state.success{border:1px solid #e3f3e8;border-radius:14px}
.dash-v3-empty-icon{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:#e7f7ee;color:#24a060;font-size:40px}
.dash-v3-empty-state strong{font-size:22px;color:#157045;opacity:1}
.dash-v3-empty-state span{font-size:15px;color:#2f7c55}
.dash-v3-alert-list{padding:8px 14px 16px}
.dash-v3-alert-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf2f7}
.dash-v3-alert-row:last-child{border-bottom:0}
.dash-v3-alert-row b{display:block;color:#142c4b}
.dash-v3-alert-row small{display:block;font-size:11px;color:#7890a8;margin-top:4px}
.dash-v3-cash-box{padding:16px}
.dash-v3-cash-head h3{margin:12px 0 6px;font-size:26px;letter-spacing:-.8px;color:#142a47}
.dash-v3-cash-head p{margin:0;color:#6f8499;font-size:14px}
.dash-v3-cash-metrics{display:grid;grid-template-columns:1fr;gap:0;margin:18px 0;border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7}
.dash-v3-cash-metrics article{display:flex;justify-content:space-between;gap:10px;padding:12px 0;color:#4a637d}
.dash-v3-cash-metrics article strong{color:#152d4b}
.dash-v3-cash-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dash-v3-cash-actions .btn{justify-content:center;border-radius:14px;padding:13px 12px;font-weight:800;border:0}
.btn.soft.success{background:#eefaf1;color:#12964a}
.btn.soft.danger{background:#fff1f1;color:#e13c4f}
.btn.soft.info{background:#eef5ff;color:#1d75ff}
.dash-v3-activity-table td:first-child{width:52px}
.dash-v3-activity-badge{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;font-size:18px}
.dash-v3-activity-badge.sale{background:#eaf8ef;color:#0e9a4b}
.dash-v3-activity-badge.purchase{background:#f2ecff;color:#7848ea}
.dash-v3-activity-badge.expense{background:#fff1f1;color:#e34551}
@media(max-width:1400px){.dash-v3-hero{grid-template-columns:1fr}.dash-v3-main-grid{grid-template-columns:1fr}.dash-v3-cash-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){.dash-v3-kpis,.dash-v3-bottom-grid,.dash-v3-hero-metrics{grid-template-columns:1fr 1fr}.dash-v3-chart-grid{grid-template-columns:1fr}.dash-v3-chart-scale{display:none}.dash-v3-chart-bars{min-height:260px}}
@media(max-width:760px){.dash-v3-toolbar{justify-content:stretch}.dash-v3-toolbar-actions{width:100%;justify-content:stretch}.dash-v3-toolbar-actions .btn{flex:1;min-width:0}.dash-v3-kpis,.dash-v3-bottom-grid,.dash-v3-hero-metrics,.dash-v3-cash-actions{grid-template-columns:1fr}.dash-v3-kpi-head{flex-direction:column;align-items:flex-start}.dash-v3-kpi{grid-template-columns:1fr}.dash-v3-kpi-icon{width:52px;height:52px}.dash-v3-hero{padding:22px 18px}.dash-v3-hero-copy h2{font-size:24px}.dash-v3-chart-bars{gap:8px}.dash-v3-bar-track{height:145px}.dash-v3-main-grid .panelhead{flex-direction:column;align-items:flex-start}.dash-v3-range-switch{width:100%}.dash-v3-range-switch button{flex:1}}

/* V7.25 POS - Imagen de referencia elegida: solo apariencia visual del módulo de ventas */
.main:has(.pos-compact-header){background:#f3f7fc}
.main:has(.pos-compact-header) .topbar{background:#fff;border-bottom:1px solid #e3eaf4;box-shadow:0 3px 12px #163c7410;padding:9px 17px;min-height:60px;gap:18px}
.main:has(.pos-compact-header) .topbar h1{font-size:19px;font-weight:850;color:#142b4b;letter-spacing:-.2px}
.main:has(.pos-compact-header) .pos-topbar-actions{justify-content:center;overflow:visible}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-shortcuts{gap:9px}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action{font-size:12px!important;font-weight:800!important;padding:10px 14px!important;border-radius:10px!important;box-shadow:0 5px 13px #1d75ff0a!important;min-height:39px!important;letter-spacing:0}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(1){background:linear-gradient(135deg,#378aff,#1469f4)!important;color:#fff;border:1px solid #2a76fa!important}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(2){background:#f1f6fe!important;color:#075ecf!important;border-color:#d8e7fb!important}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(3){background:#f1f5fb!important;color:#355071!important;border-color:#e1e9f3!important}
.main:has(.pos-compact-header) .pos-topbar-actions .pos-action:nth-child(4){background:#f6f9fd!important;color:#344f70!important;border-color:#dfe8f2!important}
.main:has(.pos-compact-header) .topright select{border:1px solid #d9e4f2;background:#fff;border-radius:10px;font-size:11px;color:#1d3659}
.main:has(.pos-compact-header) .content{background:#f3f7fc;padding:8px 11px 8px;gap:0}
.main:has(.pos-compact-header) .notice{background:#eff6ff;border:1px solid #d4e7ff;border-radius:9px;color:#1358ba;font-size:12px;padding:6px 9px}
.main:has(.pos-compact-header) .sale-mode-tabs{border-bottom:1px solid #e1e9f4;margin:0 0 5px;padding:0 4px;gap:12px}
.main:has(.pos-compact-header) .sale-mode-tab{font-size:13px!important;font-weight:800;padding:11px 14px!important;color:#546c90;display:flex;align-items:center;gap:9px}
.main:has(.pos-compact-header) .sale-mode-tab i{font-size:17px;color:#6b8dac}
.main:has(.pos-compact-header) .sale-mode-tab.selected{color:#0869e6;border-bottom:3px solid #1f75ff}
.main:has(.pos-compact-header) .sale-mode-tab.selected i{color:#0869e6}
.main:has(.pos-compact-header) .slotbar{padding:6px 6px;margin-bottom:4px;gap:8px}
.main:has(.pos-compact-header) .slot{padding:8px 15px;font-size:12px!important;font-weight:800;border-radius:9px;border:1px solid #d9e4f3;background:#f9fbff;color:#405a7d;box-shadow:0 2px 5px #18395a08}
.main:has(.pos-compact-header) .slot.selected{background:linear-gradient(135deg,#388bff,#166ef2);color:#fff;border-color:#2577ff;box-shadow:0 5px 12px #2577ff30}
.main:has(.pos-compact-header) .saleslayout-modern{gap:12px}
.main:has(.pos-compact-header) .saleslayout-modern>.panel{background:#fff;border:1px solid #e1e9f4;border-radius:12px;box-shadow:0 8px 22px #1f41630b;overflow:hidden}
.main:has(.pos-compact-header) .pos-toolbar{padding:9px 10px;background:#f9fbfe;border-bottom:1px solid #edf2f9;gap:10px}
.main:has(.pos-compact-header) .search-modern{padding:11px 40px 11px 40px;font-size:13px;border:1px solid #d2e0f1;border-radius:10px;color:#1c3552;background:#fff}
.main:has(.pos-compact-header) .search-modern:focus{border-color:#327ff5;box-shadow:0 0 0 3px #dceaff}
.main:has(.pos-compact-header) .sale-filter{width:172px;min-width:172px}
.main:has(.pos-compact-header) .sale-filter select{padding:11px;border:1px solid #d2e0f1;border-radius:9px;background:#fff;color:#2b486c;font-size:12px;font-weight:700}
.main:has(.pos-compact-header) .productgrid-modern{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:8px;background:#f6f9fe}
.main:has(.pos-compact-header) .productcard-modern{background:#fff;border:1px solid #e0e9f3;box-shadow:0 3px 9px #1d3c5d0b;border-radius:11px;min-height:190px;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}
.main:has(.pos-compact-header) .productcard-modern:not(:disabled):hover{transform:translateY(-2px);border-color:#77adff;box-shadow:0 7px 17px #1b60be1e}
.main:has(.pos-compact-header) .productcard-modern .productcard-media{height:110px;flex:0 0 110px;background:linear-gradient(180deg,#fff,#fdfefe);padding:4px;overflow:hidden;position:relative}
.main:has(.pos-compact-header) .productcard-modern .productcard-media .product-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;padding:0;transform:none}
.main:has(.pos-compact-header) .productcard-modern .productcard-media .product-thumb-fallback{width:100%;height:100%;display:grid;place-items:center}
.main:has(.pos-compact-header) .stock-pill{background:#d5f9dd;border:0;color:#157c36;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:850;box-shadow:none;right:5px;top:5px}
.main:has(.pos-compact-header) .stock-pill.warn{background:#fff1c3;color:#906218}
.main:has(.pos-compact-header) .productcard-body{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:8px 7px 10px;text-align:center;flex:1}
.main:has(.pos-compact-header) .productcard-body b{font-size:12px;line-height:1.3;min-height:32px;font-weight:800;color:#182e4f}
.main:has(.pos-compact-header) .productcard-price{font-size:16px;font-weight:900;color:#0064ea;line-height:1.25;margin-top:1px}
.main:has(.pos-compact-header) .productcard-category{font-size:11px;color:#7a8da5;line-height:1.25}
.main:has(.pos-compact-header) .sale-cart-panel{border-radius:12px;background:#fff;border:1px solid #e1e9f4;box-shadow:0 8px 24px #1d3c5d0b}
.main:has(.pos-compact-header) .sale-cart-header{padding:12px 13px;min-height:46px;border-bottom:1px solid #e4edf8;background:#fff}
.main:has(.pos-compact-header) .pos-cart-reference .sale-cart-header h3{font-size:14px;font-weight:850;color:#1b3454}
.main:has(.pos-compact-header) .pos-cart-reference .sale-cart-header h3 i{color:#126df0;font-size:17px;margin-right:7px}
.main:has(.pos-compact-header) .pos-cart-customer{padding:12px 12px 8px}
.main:has(.pos-compact-header) .pos-cart-customer>label{font-size:12px;font-weight:800;color:#3a5474}
.main:has(.pos-compact-header) .pos-customer-controls select,.main:has(.pos-compact-header) .pos-customer-controls button{border-radius:9px;border-color:#d7e3f2;min-height:38px}
.main:has(.pos-compact-header) .pos-cart-empty i{font-size:54px;color:#74a4e7}
.main:has(.pos-compact-header) .pos-cart-empty p{font-size:17px;color:#657d9b;font-weight:850}
.main:has(.pos-compact-header) .pos-cart-empty span{font-size:12px;color:#8699af}
.main:has(.pos-compact-header) .pos-cart-footer{padding:12px 12px 9px;background:#fff}
.main:has(.pos-compact-header) .pos-discount-heading{font-size:12px;color:#566e8d;margin-bottom:7px}
.main:has(.pos-compact-header) #posDiscount{border:1px solid #d7e4f4;border-radius:9px;padding:10px 11px;font-size:14px}
.main:has(.pos-compact-header) .pos-cart-math{border-top:1px solid #e5edf6;padding-top:9px}
.main:has(.pos-compact-header) .pos-cart-math>div{font-size:13px;font-weight:750;color:#3c5575}
.main:has(.pos-compact-header) .pos-cart-math>div b{font-weight:850;color:#005fea}
.main:has(.pos-compact-header) .pos-cart-math>.pos-final-total{border-top:2px dashed #d4e3f5;padding-top:10px;margin-top:8px}
.main:has(.pos-compact-header) .pos-cart-math>.pos-final-total span{font-size:18px;color:#243a56;font-weight:900}
.main:has(.pos-compact-header) .pos-cart-math>.pos-final-total strong{font-size:24px;color:#0066ed;font-weight:900}
.main:has(.pos-compact-header) .pos-cart-footer>.btn.full{background:linear-gradient(115deg,#277eff,#0966eb);border:0;color:#fff;border-radius:10px;min-height:44px;font-size:14px;font-weight:850;box-shadow:0 5px 14px #1966dd21}
.main:has(.pos-compact-header) .pos-cart-link-actions button{font-weight:750;font-size:12px}
@media(max-width:1250px){.main:has(.pos-compact-header) .pos-topbar-actions .pos-shortcuts{gap:4px}.main:has(.pos-compact-header) .pos-topbar-actions .pos-action{padding:8px!important;font-size:11px!important}.main:has(.pos-compact-header) .productgrid-modern{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:800px){.main:has(.pos-compact-header) .productgrid-modern{grid-template-columns:repeat(3,minmax(0,1fr))}.main:has(.pos-compact-header) .topbar{flex-wrap:wrap}.main:has(.pos-compact-header) .pos-topbar-actions{overflow-x:auto;justify-content:flex-start}}


/* V7.26 — categoría completamente visible en tarjetas POS; cambio exclusivo de CSS */
.main:has(.pos-compact-header) .productgrid-modern .productcard-modern{
  min-height:218px;
  height:auto;
}
.main:has(.pos-compact-header) .productgrid-modern .productcard-body{
  flex:1 0 auto;
  padding-bottom:13px;
}
.main:has(.pos-compact-header) .productgrid-modern .productcard-category{
  display:block;
  flex:0 0 auto;
  width:100%;
  min-height:16px;
  line-height:1.45;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:break-word;
}


/* V7.27 — Botones fijos y tarjetas 10 % más compactas en «Agregar al carrito».
   Bloque aislado y reversible. No altera otros modales ni cálculos. */
.pos-add-product-modal.pos-equivalent-price-modal{
  display:flex;
  flex-direction:column;
  height:auto;
  max-height:min(92dvh,900px);
  overflow:hidden;
}
.pos-add-product-modal.pos-equivalent-price-modal>.modalhead{flex:0 0 auto;position:relative;z-index:2}
.pos-add-product-modal.pos-equivalent-price-modal>#modalForm{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
.pos-add-product-modal.pos-equivalent-price-modal #modalForm>.formgrid{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  align-content:start;
  scrollbar-gutter:stable;
}
.pos-add-product-modal.pos-equivalent-price-modal #modalForm>.modalfooter{
  flex:0 0 auto;
  position:relative;
  z-index:3;
  background:#fff;
  padding:14px 24px;
  border-top:1px solid #e1e8f2;
  box-shadow:0 -6px 18px #142b4b0c;
}
/* Solo las tarjetas de presentación y precio: reducción aproximada del 10 %. */
.pos-add-product-modal.pos-equivalent-price-modal .pos-presentation-choice{
  min-height:96px;
  padding:14px 13px;
  gap:12px;
}
.pos-add-product-modal.pos-equivalent-price-modal .pos-presentation-choice:has(input:checked){
  padding:13px 12px;
}
.pos-add-product-modal.pos-equivalent-price-modal .pos-price-choice{
  min-height:74px;
  padding:11px;
  gap:11px;
}
.pos-add-product-modal.pos-equivalent-price-modal .pos-price-choice:has(input:checked){padding:10px}
.pos-add-product-modal.pos-equivalent-price-modal .pos-choice-grid:not(.pos-price-grid){gap:10px}
.pos-add-product-modal.pos-equivalent-price-modal .pos-price-grid{gap:9px}
@media(max-width:660px){
  .pos-add-product-modal.pos-equivalent-price-modal{max-height:calc(100dvh - 20px)}
  .pos-add-product-modal.pos-equivalent-price-modal #modalForm>.modalfooter{padding:12px 15px}
}

/* V7.28 — Procesar venta: distribución aprobada, solo UI y buscador */
.checkout-modal{width:min(1100px,calc(100vw - 32px));max-height:min(94vh,940px)}
.checkout-modal .formgrid{display:block;padding:16px 22px 18px;overflow-y:auto;overflow-x:hidden}
.checkout-modal .checkout-kpi-strip{margin-bottom:14px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.checkout-v28-columns{display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);gap:16px;align-items:start}
.checkout-v28-left,.checkout-v28-right{min-width:0}
.checkout-v28-left{background:#fff;border:1px solid #dce8f5;border-radius:15px;padding:17px;display:grid;gap:13px;align-content:start}
.checkout-v28-right{display:grid;gap:12px;align-content:start}
.checkout-v28-title,.checkout-card-heading{display:flex;align-items:center;gap:10px;color:#183359;font-weight:800;font-size:16px;padding-bottom:10px;border-bottom:1px solid #e7eef7}
.checkout-v28-title i,.checkout-card-heading i{color:#126bfb;font-size:20px}
.checkout-v28-left .checkout-top-row{display:grid;grid-template-columns:1fr;gap:10px;min-width:0}
.checkout-v28-left .checkout-top-row .field{min-width:0}
.checkout-v28-left .checkout-bottom-grid{display:grid;grid-template-columns:1fr;gap:10px;padding-top:11px;border-top:1px dashed #dce8f5}
.checkout-v28-left .checkout-bottom-grid .field{min-width:0}
.checkout-v28-help{display:flex;gap:10px;background:#eff5ff;border-radius:12px;padding:12px;font-size:12px;color:#537098;line-height:1.5}
.checkout-v28-help i{color:#1d75ff;font-size:16px}
.checkout-v28-right .checkout-credit-layout{display:grid;grid-template-columns:1fr;gap:12px}
.checkout-v28-right .checkout-cash-panel{display:grid;grid-template-columns:1fr}
.checkout-v28-right .checkout-client-card,.checkout-v28-right .checkout-credit-card,.checkout-v28-right .checkout-credit-schedule{border:1px solid #d5e5f8;border-radius:15px;background:#fff;padding:15px;min-width:0}
.checkout-v28-right .checkout-client-card{position:relative}
.checkout-v28-right .checkout-client-hint{color:#647b94;margin:9px 0 9px;font-size:12px}
.checkout-v28-right .checkout-card-heading{padding-bottom:0;border:0}
.checkout-v28-right .checkout-client-change{margin-left:auto;font-size:11px;padding:8px 10px}
.checkout-v28-right .checkout-client-finder-v28{position:relative}
.checkout-v28-right .checkout-client-finder-v28[hidden],.checkout-v28-right .checkout-client-summary[hidden],.checkout-v28-right .checkout-client-change[hidden],.checkout-v28-right .checkout-client-hint[hidden],.checkout-v28-right #checkoutClientResults[hidden]{display:none!important}
.checkout-v28-right .checkout-client-finder-v28 .field{width:100%}
.checkout-v28-right #checkoutClientResults:not([hidden]){position:absolute;left:0;right:0;top:100%;z-index:11;background:#fff;border:1px solid #cddff9;border-radius:12px;padding:6px;box-shadow:0 16px 32px #142d4a2b;max-height:195px;overflow-y:auto;display:grid;gap:4px}
.checkout-v28-right .checkout-client-summary{display:flex;align-items:center;gap:12px;padding:13px;background:#eef5ff;border:1px solid #d5e6fd;border-radius:12px;margin-top:11px}
.checkout-v28-right .checkout-client-avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;background:#448dff;border-radius:50%;color:white;font-size:20px}
.checkout-v28-right .checkout-client-text{min-width:0;display:grid;gap:4px;flex:1}
.checkout-v28-right .checkout-client-text strong{font-size:13px;color:#173151}
.checkout-v28-right .checkout-client-text small{font-size:11px;color:#647b94}
.checkout-v28-right .checkout-client-active{font-size:11px;color:#147f49;background:#dff7e8;border-radius:99px;padding:5px 9px}
.checkout-v28-right .checkout-credit-head{margin:0 0 13px}
.checkout-v28-right .checkout-credit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.checkout-v28-right .checkout-credit-card{display:block}
.checkout-v28-right .checkout-calc-btn,.checkout-v28-right .checkout-calc-btn.btn,.checkout-v28-right #checkoutCalculateSchedule{margin-top:12px;width:100%}
.checkout-v28-right .checkout-credit-card-title{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:9px}
.checkout-v28-right .checkout-credit-card-title strong{font-size:15px;color:#163a69}
.checkout-v28-right .checkout-credit-card-title small{font-size:11px;color:#5e7691}
.checkout-v28-right .checkout-credit-schedule .tablewrap{max-height:160px;overflow:auto}
.checkout-modal .modalfooter{position:relative;bottom:auto;flex:none;z-index:15}
@media(max-width:770px){.checkout-v28-columns{grid-template-columns:1fr}.checkout-modal .checkout-kpi-strip{grid-template-columns:1fr 1fr}.checkout-modal .formgrid{padding:12px}.checkout-v28-left{padding:13px}.checkout-v28-right .checkout-credit-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.checkout-v28-right .checkout-credit-grid{grid-template-columns:1fr}}

/* V7.29 · Modalidades de venta, etiquetas y cobro en Caja */
.label-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.label-cash-panel,.label-settings{background:#fff;border:1px solid #dbe5f1;border-radius:17px;padding:22px;box-shadow:0 8px 28px rgba(24,46,75,.05)}
.label-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.label-title h2,.label-settings h2{margin:0 0 7px;color:#1d3156}.label-title p,.label-settings p{color:#607088;margin:5px 0 18px}
.label-pill{background:#e9f2ff;color:#135cbd;border:1px solid #b5d4ff;padding:10px 16px;border-radius:14px;font-weight:800;white-space:nowrap}
.label-search{display:flex;align-items:end;gap:12px;padding:16px;background:#f5f8fe;border:1px solid #e0e9f5;border-radius:12px;margin:14px 0}.label-search label{font-weight:700;flex:1}.label-search input{display:block;width:100%;height:45px;margin-top:6px;font-size:19px;font-weight:750;letter-spacing:1px}
.label-list{display:grid;gap:9px;max-height:55vh;overflow:auto}.label-entry{display:grid;grid-template-columns:minmax(170px,1fr) auto auto auto;gap:16px;align-items:center;border:1px solid #e2e8f2;border-radius:12px;padding:11px 13px;background:#fff}.label-entry>div{display:grid;gap:3px}.label-entry small{color:#738096}.label-entry b{font-size:18px;color:#155bc7}.label-status{font-size:12px;font-weight:800;border-radius:10px;padding:6px 10px;background:#eef0f5;color:#546073}.label-status.pending{background:#fff3d6;color:#986111}.label-code{text-align:center;font-size:34px;font-weight:900;letter-spacing:2px;color:#115fba;margin:6px 0 15px}
.label-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.label-mode{border:1px solid #dce5f1;border-radius:13px;padding:20px;min-height:155px}.label-mode.selected{border:2px solid #2776df;background:#f1f7ff}.label-mode h3{margin:0 0 9px}.label-mode strong{color:#1464c2}.label-warning{padding:18px;border:2px solid #f4b2ae;background:#fff3f1;border-radius:12px;color:#8b2c28}.label-warning h3{margin:0 0 8px}.label-warning p{margin:0;color:#8b2c28}
@media(max-width:780px){.label-entry{grid-template-columns:1fr auto;gap:10px}.label-mode-grid{grid-template-columns:1fr}.label-search{flex-wrap:wrap}.label-title{align-items:start;flex-wrap:wrap}}

/* V7.32 · compact label preview and Collections layout */
.sale-label-preview{width:min(390px,calc(100vw - 24px));max-width:390px;max-height:min(94vh,650px);display:flex;flex-direction:column;overflow:hidden;background:#fff}
.sale-label-preview .modalhead{flex:none;padding:13px 18px}
.sale-label-preview .modalhead h2{font-size:19px}
.sale-label-preview-body{flex:1;min-height:0;overflow-y:auto;padding:17px 22px;background:#f7f9fc}
.sale-label-paper{background:#fff;border:1px dashed #c5d5e9;border-radius:12px;padding:17px 12px;text-align:center;color:#172b4d;font-size:13px;line-height:1.35}
.sale-label-brand{font-weight:900;font-size:16px;letter-spacing:.4px}
.sale-label-subtitle{font-size:11px;font-weight:750;color:#5b7191;margin-top:5px}
.sale-label-number{font-size:53px;line-height:1.1;font-weight:900;letter-spacing:2px;color:#1264cc;margin:11px 0}
.sale-label-rule{border-top:1px dashed #c7d4e5;margin:10px auto}
.sale-label-total{margin:12px 0 6px}.sale-label-total strong{color:#1264cc}
.sale-label-pending{font-weight:900;color:#a06414;margin:8px 0}
.sale-label-paper p{margin:4px 0 10px;font-size:11px;font-weight:700}
.sale-label-paper small{display:block;font-size:11px;color:#536781;margin:6px auto}
.sale-label-preview-footer{flex:none;display:flex;justify-content:flex-end;gap:9px;padding:12px 16px;background:#fff;border-top:1px solid #e2e8f0}
.label-cash-panel{max-width:1100px;margin:auto}.label-search{max-width:850px}.label-entry{grid-template-columns:minmax(130px,1fr) auto auto auto}
@media(max-width:520px){.sale-label-preview-footer{flex-wrap:wrap}.sale-label-preview-footer .btn{flex:1}.label-entry{grid-template-columns:1fr auto}}

/* V7.34 · Centro de Cobros / historial por cajero y vendedor */
.cobros-hero{display:flex;align-items:center;justify-content:space-between;padding:24px 29px;background:linear-gradient(112deg,#102d64,#174798 64%,#2574eb);color:#fff;border-radius:18px;margin-bottom:16px;box-shadow:0 9px 23px rgba(20,63,135,.12)}
.cobros-hero span{font-size:11px;font-weight:800;letter-spacing:1.1px;color:#a9d0ff}.cobros-hero h2{font-size:28px;line-height:1.2;margin:6px 0}.cobros-hero p{font-size:15px;color:#dae8ff;margin:0}.cobros-hero-icon{font-size:37px;color:#b5ffd9}
.label-history-filters{display:flex;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid #dfe8f3;padding:17px;border-radius:15px;margin-bottom:15px;align-items:end}.label-h-filter{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750;color:#253956;flex:1 1 156px}.label-h-filter select,.label-h-filter input{width:100%;min-width:0;height:41px;background:#fff;color:#193153;border:1px solid #cbd8e9;border-radius:9px;padding:0 11px;font:500 15px Roboto,Arial,sans-serif}.label-h-filter.is-hidden{display:none}
.cobros-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}.cobros-kpi{background:#fff;border:1px solid #dfe7f1;border-top:4px solid #2877f7;border-radius:15px;display:flex;align-items:center;gap:14px;min-height:112px;padding:15px;box-shadow:0 4px 12px rgba(21,49,85,.04)}.cobros-kpi.green{border-top-color:#15b86d}.cobros-kpi.red{border-top-color:#f24a68}.cobros-kpi.purple{border-top-color:#8756e9}.cobros-kpi .kpi-symbol{height:44px;width:44px;display:grid;place-items:center;flex:none;background:#2375f2;color:#fff;border-radius:50%;font-size:21px}.cobros-kpi.green .kpi-symbol{background:#17bd70}.cobros-kpi.red .kpi-symbol{background:#f34d68}.cobros-kpi.purple .kpi-symbol{background:#8857ea}.cobros-kpi div{display:grid;gap:4px;min-width:0}.cobros-kpi strong{font-size:24px;color:#10284d;white-space:nowrap}.cobros-kpi small{font-size:12px;color:#657895}.cobros-history-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:16px;margin-bottom:16px}.cobros-panel{background:#fff;border:1px solid #dce5f2;border-radius:16px;padding:18px 20px;box-shadow:0 4px 14px rgba(22,50,90,.035)}.cobros-panel-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:15px}.cobros-panel-head h3{font-size:17px;color:#162f59;margin:0}.cobros-panel-head small{font-size:12px;color:#69809d}.cobros-bars{display:grid;gap:15px;max-height:340px;overflow:auto}.cobros-bar-row{display:grid;grid-template-columns:minmax(95px,1fr) minmax(80px,3fr) 100px 48px;gap:10px;align-items:center;font-size:13px;color:#243d62}.cobros-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cobros-bar-row b{text-align:right;color:#1659b5}.cobros-bar-row small{text-align:right;color:#6e7d90}.cobros-bar-track{height:25px;background:#eaf1fc;border-radius:7px;overflow:hidden}.cobros-bar-fill{height:100%;border-radius:7px;background:linear-gradient(90deg,#92bcff,#2474fa)}.cobros-summary-line{padding:11px 0;border-bottom:1px solid #e8edf5;display:flex;justify-content:space-between;gap:10px;color:#526782;font-size:14px}.cobros-summary-line strong{color:#183664}.cobros-disclaimer{font-size:12px;color:#71819b;line-height:1.5}.cobros-history-table .tablewrap{max-height:510px;overflow:auto}.cobros-history-table table{font-size:13px}.cobros-cash-view .cobros-panel{max-width:none}.cobros-cash-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.cobros-cash-kpis>div{background:#fff;border:1px solid #dce5f2;border-left:4px solid #2877f7;border-radius:12px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.cobros-cash-kpis strong{font-size:23px;color:#0d57bf}.cobros-cash-kpis small{font-size:13px;color:#5e748f}.cobros-cash-view .label-search{max-width:none;margin-top:0}.cobros-cash-view .label-list{max-height:57vh}.label-tabs .btn{font-size:14px;min-height:40px}
.collections-hero-market{display:flex;justify-content:space-between;gap:22px;align-items:stretch;padding:22px 24px;border-radius:22px;margin:8px 0 16px;background:linear-gradient(106deg,#0f2f67 0%,#174c9c 55%,#215ed0 100%);color:#fff;box-shadow:0 12px 28px rgba(16,53,119,.16)}
.collections-hero-market h2{margin:6px 0 8px;font-size:30px;line-height:1.15;color:#fff}.collections-hero-market p{margin:0;max-width:720px;color:#dbe8ff;font-size:15px}.collections-hero-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-content:stretch;min-width:min(700px,58%)}.collections-hero-chips article{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:14px 12px;display:grid;gap:4px;align-content:start}.collections-hero-chips strong{font-size:clamp(17px,1.35vw,23px);color:#fff;overflow-wrap:anywhere}.collections-hero-chips small{color:#d6e6ff;font-size:13px}
.collections-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.collections-kpi-card{background:#fff;border:1px solid #dbe5f3;border-radius:18px;padding:18px 20px;display:flex;justify-content:space-between;gap:14px;align-items:center;box-shadow:0 8px 20px rgba(17,43,83,.05)}.collections-kpi-card i{font-size:27px;width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#ebf3ff;color:#1f67df}.collections-kpi-card small{display:block;font-size:13px;color:#6a7d97;margin-bottom:5px}.collections-kpi-card strong{display:block;font-size:31px;line-height:1.05;color:#10284d}.collections-kpi-card span{display:block;margin-top:6px;font-size:12px;color:#7a8da8}.collections-kpi-card.accent-red{border-top:4px solid #f25673}.collections-kpi-card.accent-red i{background:#ffedf1;color:#ef4161}.collections-kpi-card.accent-green{border-top:4px solid #1ab66b}.collections-kpi-card.accent-green i{background:#ebfff2;color:#15a562}.collections-kpi-card.accent-purple{border-top:4px solid #8b5ae7}.collections-kpi-card.accent-purple i{background:#f4eeff;color:#7d4be1}.collections-kpi-card.accent-blue{border-top:4px solid #2d78f7}
.collections-workspace{display:grid;grid-template-columns:330px minmax(0,1fr) 330px;gap:16px;align-items:start}.collections-middle-wrap{display:grid;gap:16px}.collections-queue-card,.collections-detail-card,.collections-payment-card{background:#fff;border:1px solid #d9e5f2;border-radius:18px;box-shadow:0 8px 20px rgba(18,40,79,.045)}.collections-queue-card{padding:16px;position:sticky;top:18px}.collections-queue-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.collections-queue-card header h3,.collections-payment-card h3{margin:0;color:#10284d;font-size:20px}.collections-queue-card header small,.collections-payment-card p,.collections-detail-card small{color:#6d809b}.collections-queue-card header>span{min-width:38px;height:38px;border-radius:12px;background:#eef4ff;color:#1e63d5;display:grid;place-items:center;font-weight:800}.collections-search-box{display:flex;align-items:center;gap:10px;border:1px solid #d7e3f1;background:#f8fbff;border-radius:14px;padding:0 12px;height:48px;margin-bottom:12px}.collections-search-box i{color:#6d86a5}.collections-search-box input{border:0;background:transparent;width:100%;outline:none;font-size:14px;color:#18345c}.collections-filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.collections-filter-tabs button{border:1px solid #d6e1ef;background:#fff;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:700;color:#45607d;cursor:pointer}.collections-filter-tabs button.active{background:#1f69e0;color:#fff;border-color:#1f69e0}.collections-queue-list{display:grid;gap:10px;max-height:840px;overflow:auto;padding-right:2px}.collections-queue-item{border:1px solid #dde7f3;border-radius:16px;background:#fff;padding:14px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'main money' 'flags flags';gap:8px 12px;text-align:left;cursor:pointer;transition:all .18s ease;color:#18355d}.collections-queue-item:hover{border-color:#a8c5ef;box-shadow:0 8px 20px rgba(33,93,186,.07);transform:translateY(-1px)}.collections-queue-item.active{border-color:#2c78f7;background:linear-gradient(180deg,#f7fbff,#edf5ff);box-shadow:0 10px 20px rgba(39,98,193,.12)}.collections-queue-main{grid-area:main;display:grid;gap:3px;min-width:0}.collections-queue-main strong{font-size:15px;color:#112b53;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collections-queue-main small{font-size:12px}.collections-queue-money{grid-area:money;align-self:start;font-weight:900;font-size:18px;color:#0c59c4}.collections-queue-flags{grid-area:flags;display:flex;flex-wrap:wrap;gap:7px}.collections-mini-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;padding:5px 9px;border-radius:999px;background:#eef3fb;color:#50657e}.collections-mini-badge.danger{background:#ffedf0;color:#d83c57}.collections-mini-badge.info{background:#ecf4ff;color:#1563d5}.collections-mini-badge.muted{background:#edf1f6;color:#5d748f}.collections-empty{border:1px dashed #d6e0ed;border-radius:16px;padding:22px 18px;color:#6c819b;background:#f8fbff;text-align:center}.collections-empty.large{padding:50px 18px;font-size:15px}.collections-detail-card{padding:18px 18px 16px}.collections-client-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.collections-client-id{display:flex;align-items:center;gap:14px}.collections-client-id>span{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(160deg,#1f69e0,#113b8b);color:#fff;font-size:19px;font-weight:900}.collections-client-id h3{margin:0;font-size:23px;color:#10284d}.collections-client-actions{display:flex;flex-wrap:wrap;gap:8px}.collections-detail-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.collections-detail-tabs button{border:1px solid #d8e4f2;background:#f8fbff;border-radius:12px;padding:11px 13px;font-weight:800;color:#3b5879;cursor:pointer;display:flex;align-items:center;gap:8px}.collections-detail-tabs button span{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:#e9f1fc;color:#1f63d8;font-size:11px;padding:0 6px}.collections-detail-tabs button.active{background:#1f69e0;color:#fff;border-color:#1f69e0}.collections-detail-tabs button.active span{background:rgba(255,255,255,.18);color:#fff}.collections-metrics-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.collections-metrics-strip>div{background:linear-gradient(180deg,#f6ffd8 0%,#eef8c8 100%);border:1px solid #cfe59a;border-radius:14px;padding:12px 14px;box-shadow:0 6px 14px rgba(150,190,60,.08)}.collections-metrics-strip small{display:block;font-size:12px;margin-bottom:5px}.collections-metrics-strip strong{font-size:18px;color:#10284d}.collections-account-pills{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:12px}.collections-account-pill{border:1px solid #d9e5f1;background:#fff;border-radius:15px;padding:12px 14px;display:grid;gap:4px;text-align:left;cursor:pointer;color:#214061}.collections-account-pill.active{border-color:#2b78f6;background:linear-gradient(180deg,#f7fbff,#edf5ff);box-shadow:0 8px 18px rgba(26,81,177,.08)}.collections-account-pill span{font-size:13px;font-weight:700;color:#243f63}.collections-account-pill b{font-size:19px;color:#0e58c0}.collections-account-pill small{font-size:12px}.collections-selection-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}.collections-installment-list{display:grid;gap:10px}.collections-installment-card{display:block;border:1px solid #d9e6f4;border-radius:16px;padding:14px;background:#fff;cursor:pointer}.collections-installment-card input{margin-right:12px;accent-color:#1f69e0}.collections-installment-card.checked{border-color:#2c78f7;background:linear-gradient(180deg,#f8fbff,#eef5ff);box-shadow:0 8px 18px rgba(31,105,224,.09)}.collections-installment-card.is-overdue{border-left:4px solid #ef4f69}.collections-installment-card.is-today{border-left:4px solid #ffaf33}.collections-installment-copy{display:grid;gap:8px}.collections-installment-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.collections-installment-title strong{font-size:15px;color:#10284d}.collections-installment-title span{font-size:20px;font-weight:900;color:#0e59c2;white-space:nowrap}.collections-installment-meta{display:flex;flex-wrap:wrap;gap:8px 12px}.collections-installment-meta small{font-size:12px;color:#627793}.collections-installment-meta .status{font-weight:800}.collections-installment-meta .status.danger{color:#df3d59}.collections-installment-meta .status.info{color:#cc7d00}.collections-installment-meta .status.neutral{color:#1f69e0}.collections-inner-table .tablewrap,.collections-bottom-history .tablewrap{max-height:440px;overflow:auto}.collections-payment-card{padding:18px;position:sticky;top:18px}.collections-session-pill{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;margin-bottom:14px}.collections-session-pill.ok{background:#ebfff2;color:#138d54}.collections-session-pill.warn{background:#fff3dd;color:#996100}.collections-payment-total{background:linear-gradient(180deg,#f7fbff,#edf5ff);border:1px solid #d7e4f3;border-radius:18px;padding:16px 18px;margin-bottom:14px}.collections-payment-total small{display:block;font-size:12px;color:#607793;margin-bottom:4px}.collections-payment-total strong{font-size:32px;line-height:1;color:#0d58bf}.collections-payment-total span{display:block;margin-top:8px;font-size:13px;color:#6b8098}.collections-payment-form{display:grid;gap:12px}.collections-payment-form label{display:grid;gap:6px;font-size:13px;color:#3b5778;font-weight:700}.collections-payment-form input,.collections-payment-form select{border:1px solid #d7e3f1;border-radius:12px;height:44px;padding:0 12px;font-size:14px;background:#fff;color:#18345d}.collections-check-inline{display:flex!important;align-items:center;gap:9px;grid-auto-flow:column;justify-content:flex-start}.collections-check-inline input{width:16px;height:16px}.collections-payment-form .is-hidden{display:none!important}.collections-charge-btn,.collections-whatsapp-btn{width:100%;justify-content:center}.collections-payment-help{margin-top:14px;padding-top:14px;border-top:1px solid #e6edf6}.collections-payment-help p{margin:0;font-size:13px;line-height:1.5;color:#67809d}.collections-bottom-history{padding:18px}

@media(max-width:1360px){.collections-workspace{grid-template-columns:300px minmax(0,1fr) 300px}.collections-hero-chips{min-width:unset}}@media(max-width:1180px){.collections-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collections-workspace{grid-template-columns:1fr}.collections-queue-card,.collections-payment-card{position:static}.collections-hero-market{flex-direction:column}.collections-hero-chips{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.collections-hero-market h2{font-size:24px}.collections-hero-chips,.collections-kpi-grid,.collections-metrics-strip{grid-template-columns:1fr}.collections-client-head,.collections-selection-tools{flex-direction:column;align-items:flex-start}.collections-account-pills{grid-template-columns:1fr}.collections-installment-title{flex-direction:column;align-items:flex-start}.collections-workspace{gap:14px}}@media(max-width:1100px){.cobros-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cobros-history-grid{grid-template-columns:1fr}.cobros-cash-kpis{grid-template-columns:1fr 1fr}}@media(max-width:650px){.cobros-hero{padding:18px}.cobros-hero h2{font-size:23px}.cobros-kpis,.cobros-cash-kpis{grid-template-columns:1fr}.cobros-bar-row{grid-template-columns:80px 1fr 75px}.cobros-bar-row small{display:none}.label-h-filter{flex-basis:100%}.collections-queue-card,.collections-detail-card,.collections-payment-card{padding:14px}.collections-detail-tabs button{width:100%;justify-content:space-between}}

/* V7.38 — Caja y turnos, diseño aprobado en el mockup. */
.cash-v38{--cash-ink:#112c52;--cash-muted:#66809d;color:var(--cash-ink);font-family:Roboto,Arial,sans-serif}
.cash-v38-hero{display:flex;justify-content:space-between;gap:22px;align-items:center;border-radius:20px;background:linear-gradient(112deg,#0a2d69,#0d4aab 65%,#1c61db);color:white;padding:22px 26px;margin-bottom:16px;box-shadow:0 12px 27px #133c8f20}
.cash-v38-hero-title{display:flex;gap:18px;align-items:center;min-width:0}.cash-v38-hero-symbol{display:grid;place-items:center;border-radius:13px;background:linear-gradient(140deg,#278aff,#1055c9);width:70px;height:70px;font-size:33px;flex:none}.cash-v38-hero h2{font-size:27px;color:white;margin:0 0 5px}.cash-v38-hero p{margin:0;font-size:14px;color:#dfecff;line-height:1.45}
.cash-v38-hero-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:0 1 590px}.cash-v38-hero-boxes>div{border:1px solid #ffffff2e;background:#ffffff12;border-radius:13px;display:grid;gap:3px;padding:12px 15px;min-width:0}.cash-v38-hero-boxes small{color:#c6dcfc;font-size:12px}.cash-v38-hero-boxes strong{font-size:22px;color:#fff;white-space:nowrap}.cash-v38-hero-boxes span{font-size:11px;color:#bbd6ff}
.cash-v38-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-bottom:14px}.cash-v38-kpi{display:flex;gap:10px;align-items:center;border:1px solid #dce6f1;background:white;border-radius:15px;padding:14px 12px;box-shadow:0 5px 15px #1637670a;min-width:0}.cash-v38-kpi-icon{display:grid;place-items:center;flex:none;background:#eaf2ff;border-radius:13px;color:#2878f6;width:38px;height:42px;font-size:21px}.cash-v38-kpi.green .cash-v38-kpi-icon{background:#e4f9ed;color:#0aa660}.cash-v38-kpi.red .cash-v38-kpi-icon{background:#ffedf1;color:#e63850}.cash-v38-kpi>div{min-width:0}.cash-v38-kpi small{font-size:12px;display:block;color:#607b9d;white-space:nowrap}.cash-v38-kpi strong{font-size:23px;color:#102a4f;display:block;margin:5px 0;white-space:nowrap}.cash-v38-kpi em{display:block;font-size:11px;color:#8291a9;font-style:normal;line-height:1.35}
.cash-v38-dashboard{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,1fr);gap:13px}.cash-v38-panel{background:white;border:1px solid #dfe7f1;box-shadow:0 5px 18px #20467309;border-radius:16px;padding:16px;min-width:0}.cash-v38-panel-head{margin-bottom:17px}.cash-v38-panel-head h3{font-size:16px;color:#142c4d;margin:0 0 4px}.cash-v38-panel-head small{font-size:12px;color:#71849e}.cash-v38-tip{background:#eef5ff;border-radius:10px;color:#5274a5;font-size:12px;line-height:1.45;padding:11px 12px;margin:12px 0 0}
.cash-v38-flow-bars{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;align-items:end;min-height:190px}.cash-v38-stage{text-align:center;min-width:0}.cash-v38-stage strong{font-size:11px;color:#15345c;white-space:nowrap}.cash-v38-stage-track{margin:8px 0;height:125px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #d8e5f4}.cash-v38-stage-track span{width:85%;max-width:80px;background:linear-gradient(#acd1ff,#3889fb);border-radius:7px 7px 0 0;min-height:3px}.cash-v38-stage.plus .cash-v38-stage-track span{background:linear-gradient(#b9f3d8,#55cd99)}.cash-v38-stage.minus .cash-v38-stage-track span{background:linear-gradient(#ffcbcf,#fc7b83)}.cash-v38-stage.adjust .cash-v38-stage-track span{background:linear-gradient(#eeddfd,#a77cdb)}.cash-v38-stage small{font-size:11px;line-height:1.35;color:#607996;display:block}
.cash-v38-donut-wrap{display:flex;align-items:center;gap:17px}.cash-v38-donut{width:170px;height:170px;border-radius:50%;display:grid;place-items:center;flex:none}.cash-v38-donut>span{width:111px;height:111px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center}.cash-v38-donut strong{font-size:17px;color:#112d55}.cash-v38-donut small{font-size:10px;color:#66829c}.cash-v38-method-list{flex:1;min-width:0}.cash-v38-method-list>div{display:grid;grid-template-columns:10px minmax(70px,1fr) auto 34px;gap:8px;align-items:center;border-bottom:1px solid #edf1f6;padding:7px 0;font-size:12px}.cash-v38-method-list i{width:10px;height:10px;border-radius:50%}.cash-v38-method-list b{color:#163155}.cash-v38-method-list small{text-align:right;color:#7b8ba1}
.cash-v38-triple{grid-column:1/-1;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:13px}.cash-v38-explain{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,.56fr);gap:12px}.cash-v38-formula{display:flex;justify-content:space-between;border-bottom:1px solid #edf1f6;padding:6px 0;gap:8px;font-size:12px}.cash-v38-formula span{color:#5b7190}.cash-v38-formula b{color:#163258;white-space:nowrap}.cash-v38-formula b.red{color:#e74659}.cash-v38-formula b.green{color:#119d5c}.cash-v38-explain aside>div{padding:9px;border-radius:10px;background:#f2f6fd;margin-bottom:7px}.cash-v38-explain aside>div.ok{background:#e8f9f0}.cash-v38-explain aside>div.bad{background:#ffeef1}.cash-v38-explain aside>div.pending{background:#fff3d9}.cash-v38-explain aside small{display:block;font-size:11px;color:#47627b}.cash-v38-explain aside strong{display:block;margin-top:4px;font-size:18px;color:#113258}
.cash-v38-origin-bars,.cash-v38-hours{height:175px;display:flex;align-items:end;justify-content:space-around;gap:12px}.cash-v38-origin-bars>div{height:100%;flex:1;display:flex;align-items:center;flex-direction:column;justify-content:end;min-width:0}.cash-v38-origin-bars strong{font-size:12px;white-space:nowrap}.cash-v38-origin-bars .bar-track{height:125px;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #e1e9f6;width:100%;margin:6px 0}.cash-v38-origin-bars .bar-track span{width:65%;max-width:90px;border-radius:6px 6px 0 0}.cash-v38-origin-bars small{font-size:11px;text-align:center;color:#7085a1}
.cash-v38-hour{flex:1;min-width:0;text-align:center}.cash-v38-hour>div{display:flex;align-items:end;justify-content:center;gap:3px;height:140px;border-bottom:1px solid #e1e9f6}.cash-v38-hour span{width:40%;max-width:30px;min-height:0;border-radius:4px 4px 0 0}.cash-v38-hour .income{background:#2b80f9}.cash-v38-hour .outgo{background:#ef475d}.cash-v38-hour small{font-size:11px;color:#7587a1}.cash-v38-key{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 3px 0 9px}.cash-v38-key.blue{background:#2b80f9}.cash-v38-key.red{background:#ef475d}
.cash-v38-bottom{grid-column:1/-1;display:grid;grid-template-columns:.8fr .9fr 1.55fr;gap:13px}.cash-v38-lines>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e9eef5;padding:9px 0;color:#64809d;font-size:12px}.cash-v38-lines b{color:#193960;text-align:right}.cash-v38-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cash-v38-actions>.btn:first-child{grid-column:1/-1}.cash-v38-actions>.btn{min-height:39px;font-size:13px}.cash-v38-bottom .tablewrap{max-height:230px;overflow:auto}.cash-v38-bottom table{font-size:12px}.cash-v38-history{margin-top:18px;scroll-margin-top:24px}.cash-v38-history>.panel{margin-bottom:15px}.cash-v38-empty{grid-column:1/-1;text-align:center;padding:50px}
@media(max-width:1450px){.cash-v38-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-v38-hero{align-items:stretch}.cash-v38-hero-boxes{flex-basis:560px}}@media(max-width:1120px){.cash-v38-hero{flex-direction:column}.cash-v38-hero-boxes{flex-basis:auto}.cash-v38-dashboard{grid-template-columns:1fr}.cash-v38-triple{grid-template-columns:1fr 1fr}.cash-v38-bottom{grid-template-columns:1fr 1fr}.cash-v38-bottom>.cash-v38-panel:last-child{grid-column:1/-1}}@media(max-width:700px){.cash-v38-hero-boxes,.cash-v38-kpis,.cash-v38-triple,.cash-v38-bottom{grid-template-columns:1fr}.cash-v38-bottom>.cash-v38-panel:last-child{grid-column:auto}.cash-v38-hero{padding:15px}.cash-v38-hero-title{align-items:flex-start}.cash-v38-hero-symbol{width:50px;height:50px}.cash-v38-hero h2{font-size:23px}.cash-v38-flow-bars{overflow:auto;min-width:0}.cash-v38-stage{min-width:62px}.cash-v38-donut-wrap{flex-direction:column}.cash-v38-donut{width:145px;height:145px}.cash-v38-method-list{width:100%}}

/* V7.39 — Centro de Caja: fichas operativas, mayor legibilidad y jerarquia */
.cash-v39-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 18px}.cash-v39-tabs button{display:inline-flex;align-items:center;gap:9px;border:1px solid #cfdcf0;border-radius:12px;background:#fff;color:#29466f;padding:12px 17px;font:700 15px Roboto,Arial,sans-serif;cursor:pointer;min-height:46px}.cash-v39-tabs button.active{background:linear-gradient(100deg,#1768e9,#257cf8);color:#fff;border-color:#1768e9;box-shadow:0 7px 18px rgba(33,109,220,.16)}.cash-v39-tabs button:focus-visible{outline:3px solid #a4d1ff;outline-offset:2px}.cash-v39 .cash-v38-hero h2{font-size:29px;font-weight:800}.cash-v39 .cash-v38-hero p{font-size:15px}.cash-v39 .cash-v38-hero-boxes strong{font-size:22px;font-weight:800}.cash-v39 .cash-v38-kpi strong{font-size:25px;font-weight:800}.cash-v39 .cash-v38-panel-head h3{font-size:19px;font-weight:800;color:#152d51}.cash-v39 .cash-v38-panel-head small,.cash-v39 .cash-v38-tip{font-size:13px;line-height:1.5}.cash-v39 .cash-v38-lines>div{font-size:14px}.cash-v39 .cash-v38-bottom table{font-size:13px}.cash-v39 .cash-v39-operational{grid-template-columns:.82fr .92fr 1.55fr}.cash-v39-history-shell{background:#fff;border:1px solid #dce6f4;border-radius:18px;padding:18px}.cash-v39-history-intro{padding:2px 5px 16px;border-bottom:1px solid #edf1f7;margin-bottom:16px}.cash-v39-history-intro h3{margin:0 0 4px;font-size:21px;color:#152d51}.cash-v39-history-intro p{margin:0;font-size:14px;color:#667f9f}.cash-v39 .cash-v38-history{margin-top:0}.cash-v39 .cash-v38-history .stats{gap:10px}.cash-v39 .cash-v38-history .stat{min-width:0}.cash-v39 .cash-v38-history .tablewrap{max-width:100%;overflow-x:auto}.cash-v39 .cash-v38-history table{min-width:850px}.cash-v39 .cash-v38-history th,.cash-v39 .cash-v38-history td{white-space:normal;overflow-wrap:anywhere}.cash-v39 .cash-v38-history input[type="date"]{height:40px;border:1px solid #cfdcf0;border-radius:9px;padding:0 10px;margin-right:8px}.cash-v39 .cash-v38-history .panel{border-radius:14px;overflow:hidden}
@media(max-width:1120px){.cash-v39 .cash-v39-operational{grid-template-columns:1fr 1fr}.cash-v39 .cash-v39-operational>.cash-v38-panel:last-child{grid-column:1/-1}}@media(max-width:700px){.cash-v39 .cash-v39-operational{grid-template-columns:1fr}.cash-v39 .cash-v39-operational>.cash-v38-panel:last-child{grid-column:auto}.cash-v39-tabs button{flex:1 1 100%;justify-content:center}.cash-v39-history-shell{padding:10px}}

/* V7.40 · Historial y arqueos — interfaz compacta y legible */
.cash-v40-history{display:grid;gap:18px}.cash-v40-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#f3f7fd;border:1px solid #dce7f6;padding:15px;border-radius:15px}.cash-v40-filters label{display:grid;gap:6px;color:#3f597b;font-weight:700;font-size:13px}.cash-v40-filters input,.cash-v40-filters select{min-width:0;width:100%;height:43px;background:#fff;border:1px solid #d1dfef;border-radius:9px;color:#102c56;padding:0 12px;font:inherit}.cash-v40-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cash-v40-kpis article{background:#fff;border:1px solid #d9e5f4;border-top:4px solid #2777ef;border-radius:14px;padding:16px;display:grid;gap:5px;box-shadow:0 5px 15px rgba(22,52,90,.05)}.cash-v40-kpis article:nth-child(2){border-top-color:#1bad6c}.cash-v40-kpis article:nth-child(3){border-top-color:#8758e5}.cash-v40-kpis article:nth-child(4){border-top-color:#f24f65}.cash-v40-kpis small{color:#637895;font-size:13px;font-weight:700}.cash-v40-kpis strong{font-size:28px;color:#102c56;white-space:nowrap}.cash-v40-kpis span{font-size:12px;color:#7286a0}.cash-v40-panel{background:#fff;border:1px solid #dce5f1;border-radius:16px;overflow:hidden}.cash-v40-head{padding:16px 18px;border-bottom:1px solid #e5ebf4}.cash-v40-head h3{margin:0 0 4px;color:#102c56;font-weight:800;font-size:19px}.cash-v40-head p{margin:0;color:#647d9c;font-size:13px}.cash-v40-chart{padding:20px;display:grid;gap:14px}.cash-v40-chart-row{display:grid;grid-template-columns:115px minmax(0,1fr) 100px;align-items:center;gap:15px;font-size:13px;color:#345477}.cash-v40-chart-row b{text-align:right;color:#102b56}.cash-v40-chart-tracks{display:grid;gap:5px}.cash-v40-chart-tracks div{height:11px;min-width:2px;border-radius:6px}.cash-v40-chart-tracks .expected,.cash-v40-legend .expected{background:#327df0}.cash-v40-chart-tracks .counted,.cash-v40-legend .counted{background:#20ba81}.cash-v40-legend{display:flex;align-items:center;gap:8px;padding:0 20px 18px;color:#526e90;font-size:13px}.cash-v40-legend span{width:12px;height:12px;border-radius:4px}.cash-v40-table{min-width:900px}.cash-v40-table th,.cash-v40-table td{white-space:nowrap;padding:12px 13px!important;font-size:13px!important}.cash-v40-status{display:inline-block;border-radius:20px;padding:5px 10px;font-weight:700;font-size:12px}.cash-v40-status.ok{background:#e6f8ed;color:#118448}.cash-v40-status.warn{background:#fff1dd;color:#a96800}.cash-v40-positive{color:#0b9b65!important}.cash-v40-negative{color:#d93955!important}.cash-v40-responsibles{padding:16px;display:grid;gap:9px}.cash-v40-responsibles>div{display:grid;grid-template-columns:minmax(160px,1.5fr) 1fr 1fr 1fr;gap:10px;align-items:center;padding:12px;border:1px solid #e4ecf6;border-radius:11px;color:#496481;font-size:13px}.cash-v40-responsibles strong{color:#17345c;font-size:14px}.cash-v40-detail{padding:17px 22px;max-height:65vh;overflow:auto}.cash-v40-detail p{margin:0 0 11px;color:#274361}.cash-v40-detail-line{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #e5ebf3;color:#47617e}.cash-v40-detail-line strong{color:#102c55}.cash-v40-detail small{display:block;margin-top:15px;color:#657e9a}.cash-v40-modal{max-width:620px;width:min(95vw,620px)}@media(max-width:1050px){.cash-v40-filters,.cash-v40-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-v40-responsibles>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.cash-v40-filters,.cash-v40-kpis{grid-template-columns:1fr}.cash-v40-chart-row{grid-template-columns:75px minmax(0,1fr) 70px;gap:7px;font-size:11px}.cash-v40-responsibles>div{grid-template-columns:1fr}}

/* Acceso unificado Market POS SaaS */
.unified-login{min-height:100vh;display:grid;grid-template-columns:minmax(340px,1.08fr) minmax(420px,.92fr);font-family:Roboto,Arial,sans-serif;background:#f3f6fb;color:#11233d}
.unified-login-art{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:42px clamp(30px,6vw,96px);color:white;overflow:hidden;background:radial-gradient(circle at 88% 17%,#347fe9 0%,transparent 32%),linear-gradient(135deg,#101d35,#163768 53%,#0a1730)}
.unified-login-art:after{content:"";position:absolute;width:450px;height:450px;border:1px solid #ffffff35;border-radius:50%;right:-180px;bottom:-180px;box-shadow:0 0 0 70px #ffffff09,0 0 0 140px #ffffff06;pointer-events:none}
.login-brand{display:flex;align-items:center;gap:13px;font-size:22px;letter-spacing:.5px;font-weight:600;position:relative;z-index:1}
.login-brand small{font-size:14px;font-weight:500;color:#aadaff}
.login-logo{display:grid;place-items:center;width:47px;height:47px;border-radius:12px;background:#c6f500;color:#102139;font-size:29px;font-weight:900}
.login-pitch{position:relative;z-index:1;max-width:540px;margin:70px 0 60px}.login-pitch h1{color:white;font-size:clamp(36px,4vw,62px);line-height:1.06;letter-spacing:-1.8px;margin:20px 0}.login-pitch p{font-size:18px;line-height:1.65;color:#d4e2f9;max-width:470px}.login-caption{display:block;margin-top:70px;color:#add0ff;font-size:13px;letter-spacing:1px}
.login-eyebrow{font-size:12px;letter-spacing:1.3px;font-weight:800;color:#367dea}.unified-login-art .login-eyebrow{color:#c9fb4d}
.unified-login-panel{display:grid;place-items:center;padding:42px 24px}.login-card{width:min(100%,468px)}.login-card h2{font-size:38px;letter-spacing:-1px;color:#11233d;margin:12px 0 6px}.login-card>p{font-size:16px;color:#687a91;margin:0 0 29px}
.login-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#e5ecf5;border-radius:13px;margin-bottom:27px}.login-tabs button{cursor:pointer;border:0;background:transparent;color:#536882;font-weight:700;font-size:14px;padding:13px 5px;border-radius:10px}.login-tabs button.selected{background:#fff;color:#1161dc;box-shadow:0 2px 8px #15274017}
.login-field{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;font-weight:700;font-size:14px;color:#18304b}.login-field input{height:51px;border:1px solid #cad6e7;border-radius:11px;padding:0 15px;font-size:16px;background:white;color:#102139;width:100%;box-sizing:border-box}.login-field input:focus{outline:3px solid #c5dfff;border-color:#2173e9}.login-submit{width:100%;min-height:51px;border-radius:11px;margin-top:7px;display:flex;justify-content:center;align-items:center;gap:12px;font-weight:700;font-size:16px}.login-hint{font-size:13px;line-height:1.6;color:#62748b;margin-top:24px!important}.login-error{background:#fff1f1;border:1px solid #ffc3c3;color:#a51d24;border-radius:10px;padding:12px;margin-bottom:12px;font-size:14px}
@media(max-width:830px){.unified-login{grid-template-columns:1fr}.unified-login-art{padding:20px 24px;min-height:115px}.login-pitch{display:none}.unified-login-panel{padding:45px 22px}.login-card h2{font-size:32px}}

#installMarketPwa:not([hidden]){position:fixed;right:18px;bottom:20px;z-index:9999;background:#c9f318;color:#101718;border:2px solid #25380c;border-radius:14px;padding:12px 18px;font:700 15px Roboto,Arial,sans-serif;box-shadow:0 5px 22px #0004;cursor:pointer}@media(max-width:640px){#installMarketPwa:not([hidden]){right:12px;bottom:14px;max-width:calc(100vw - 24px)}}

/* Migración 013: checkout SaaS en el diseño original, sin una segunda pantalla comercial. */
#realCheckoutOverlay .checkout-shell{padding:16px 20px;display:grid;gap:13px}
#realCheckoutOverlay .checkout-header-card{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#f0f5ff;border:1px solid #d5e2f6;border-radius:12px;padding:15px}
#realCheckoutOverlay .checkout-header-card h3{margin:4px 0;font-size:19px}
#realCheckoutOverlay .checkout-total-badge{text-align:right;white-space:nowrap;color:#155cc4}
#realCheckoutOverlay .checkout-total-badge span{display:block;font-size:11px}
#realCheckoutOverlay .checkout-total-badge strong{font-size:25px}
#realCheckoutOverlay .checkout-section{border:1px solid #e1e8f2;background:white;border-radius:12px;padding:13px 15px}
#realCheckoutOverlay .checkout-section .formgrid{padding:12px 0 2px}
#realCheckoutOverlay .checkout-section-head{margin-bottom:5px}
#realCheckoutOverlay .checkout-section-head strong{font-size:14px}
#realCheckoutOverlay .checkout-section-head small{display:block;color:#708197;font-size:11px;margin-top:3px}
#realCheckoutOverlay .checkout-split-remaining{grid-column:auto}
#realCheckoutOverlay .checkout-split-remaining[hidden],#realCheckoutOverlay [hidden]{display:none!important}
#realReceiptOverlay .receipt{max-width:560px;margin:auto;background:white}
#realReceiptOverlay .receipt h2{margin:12px 0}
@media(max-width:700px){#realCheckoutOverlay .checkout-header-card{flex-direction:column;align-items:flex-start}#realCheckoutOverlay .checkout-total-badge{text-align:left}#realCheckoutOverlay .checkout-shell{padding:10px}}
@media print{body:has(#realReceiptOverlay) *{visibility:hidden!important}body:has(#realReceiptOverlay) #realReceiptPrintable,body:has(#realReceiptOverlay) #realReceiptPrintable *{visibility:visible!important}body:has(#realReceiptOverlay) #realReceiptPrintable{position:absolute;top:0;left:0;width:100%;padding:8mm;color:#111}}
