:root{--bg:#f3f6fb;--surface:#fff;--surface-2:#f7f9fc;--text:#172033;--muted:#6d7689;--line:#e4e9f1;--primary:#4459e7;--primary-2:#6d54e8;--success:#19a974;--warning:#e68a19;--danger:#dc4353;--sidebar:#151b2d;--sidebar-width:260px;--header-height:92px;--shadow:0 16px 50px rgba(25,37,68,.08);color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:11px;padding:.78rem .9rem;outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(68,89,231,.12)}label{display:grid;gap:.45rem;font-size:.82rem;font-weight:700;color:#485267}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:linear-gradient(180deg,var(--sidebar),#202944);color:#dbe2f3;z-index:40;padding:1.15rem;transition:.25s}.brand{display:flex;align-items:center;gap:.8rem;font-weight:800;padding:.35rem .45rem 1.35rem}.brand-mark{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#6c7cff,#8b5bea);color:#fff;font-weight:900;box-shadow:0 8px 22px rgba(80,94,230,.3);flex:0 0 auto}.sidebar nav{display:grid;gap:.35rem}.sidebar nav a{display:flex;align-items:center;gap:.9rem;padding:.82rem .9rem;border-radius:11px;color:#aeb8cf;font-weight:650}.sidebar nav a:hover{background:rgba(255,255,255,.08);color:#fff}.sidebar nav a>span:first-child{font-size:1.25rem;width:24px;text-align:center}.sidebar-toggle{position:absolute;right:-14px;top:72px;border:0;width:29px;height:29px;border-radius:50%;background:#fff;color:#28314c;box-shadow:0 4px 16px rgba(0,0,0,.2);cursor:pointer}.app-shell{margin-left:var(--sidebar-width);min-height:100vh;transition:.25s}.topbar{position:fixed;z-index:30;top:0;right:0;left:var(--sidebar-width);height:var(--header-height);background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 2rem;transition:.25s}.topbar h1{font-size:1.35rem;margin:.1rem 0}.eyebrow{font-size:.73rem;color:var(--muted);margin:0}.header-stats{display:flex;align-items:center;gap:1.6rem}.header-stats>div{display:grid}.header-stats strong{font-size:1.05rem}.header-stats span,.header-stats a{font-size:.7rem;color:var(--muted)}.user-chip{display:flex!important;grid-template-columns:auto 1fr!important;gap:.65rem;align-items:center;border-left:1px solid var(--line);padding-left:1.4rem}.user-chip>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eef0ff;color:var(--primary);font-weight:900}.user-chip div{display:grid}.content{padding:calc(var(--header-height) + 1.6rem) 2rem 2.5rem;max-width:1600px;margin:auto}.sidebar-collapsed{--sidebar-width:78px}.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed .sidebar{padding:1.15rem .65rem}.sidebar-collapsed .sidebar-toggle{transform:rotate(180deg)}.panel,.hero-card,.metric-card{background:var(--surface);border:1px solid rgba(226,232,242,.9);border-radius:18px;box-shadow:var(--shadow)}.panel{padding:1.25rem;margin-bottom:1.35rem}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}.panel-head h3,.count-summary h3,.order-hero h3{margin:.15rem 0;font-size:1.05rem}.panel-head p,.count-summary p,.order-hero p{margin:.3rem 0 0;color:var(--muted);font-size:.82rem}.hero-card{padding:2.2rem;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#fff 45%,#eef0ff);overflow:hidden;margin-bottom:1.35rem}.hero-card h2{font-size:clamp(1.55rem,3vw,2.5rem);margin:.6rem 0;max-width:700px}.hero-card p{color:var(--muted);max-width:720px;line-height:1.65}.hero-graphic{width:210px;height:210px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary-2));display:grid;place-content:center;text-align:center;color:#fff;box-shadow:0 20px 60px rgba(75,82,220,.3);flex:0 0 auto}.hero-graphic span{font-size:2.3rem;font-weight:900}.pill,.badge{display:inline-flex;align-items:center;border-radius:999px;background:#eef0ff;color:#4d56ba;padding:.28rem .62rem;font-size:.7rem;font-weight:800}.actions,.form-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.button{border:0;border-radius:11px;padding:.72rem 1rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.button.primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}.button.secondary{background:#eef0ff;color:#4851be}.button.ghost{background:var(--surface-2);color:#596276}.button.danger{background:#fff0f1;color:var(--danger)}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.35rem}.metric-card{padding:1.2rem;display:flex;gap:1rem;align-items:center}.metric-card small,.metric-card p{color:var(--muted);margin:0}.metric-card strong{display:block;font-size:1.55rem;margin:.15rem 0}.metric-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;font-weight:900}.metric-icon.blue{background:#eaf2ff;color:#3577dc}.metric-icon.green{background:#e7f8f1;color:#149769}.metric-icon.violet{background:#f0ebff;color:#7956d8}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}.steps>div{display:flex;align-items:center;gap:.7rem;padding:1rem;background:var(--surface-2);border-radius:13px}.steps b{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e8ebff;color:var(--primary)}.steps span{display:grid}.steps small{color:var(--muted);margin-top:.15rem}.grid-two{display:grid;grid-template-columns:1.1fr .9fr;gap:1.35rem}.upload-zone{display:grid;gap:1rem}.file-drop{border:1.5px dashed #b9c2d5;border-radius:14px;padding:2rem;text-align:center;background:var(--surface-2);cursor:pointer}.file-drop input{padding:0;border:0;box-shadow:none;margin-bottom:.8rem}.file-drop span,.file-drop small{display:block}.file-drop small{color:var(--muted);margin-top:.3rem}.export-list{display:grid;gap:.7rem}.export-list a{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:var(--surface-2);border-radius:12px}.export-list b{color:var(--primary);font-size:.8rem}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th{text-align:left;padding:.72rem .8rem;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--line)}td{padding:.78rem .8rem;border-bottom:1px solid var(--line);font-size:.82rem;vertical-align:middle}tbody tr:hover{background:var(--surface-2)}.empty{text-align:center!important;color:var(--muted);padding:2.5rem!important}.item-cell{display:flex;align-items:center;gap:.7rem;min-width:210px}.item-cell img,.image-placeholder{width:38px;height:38px;border-radius:10px;object-fit:cover;background:#edf0f6;display:grid;place-items:center;color:#8a94a8}.item-cell div{display:grid}.item-cell small{color:var(--muted)}.icon-button{color:var(--primary);font-weight:800;font-size:.78rem;background:none;border:0;cursor:pointer;white-space:nowrap}.filters{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) 110px auto auto;gap:.7rem;align-items:end}.pagination{display:flex;justify-content:center;gap:.35rem;margin-top:1rem}.pagination a{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:var(--surface-2)}.pagination a.active{background:var(--primary);color:#fff}.edit-grid,.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.edit-grid .form-actions,.span-2{grid-column:1/-1}.back-link{display:inline-block;color:var(--primary);font-size:.78rem;font-weight:800;margin-bottom:.4rem}.cards-list{display:grid;gap:.7rem}.count-card{display:flex;align-items:center;justify-content:space-between;padding:1rem;background:var(--surface-2);border-radius:13px}.count-card>div:first-child{display:grid;grid-template-columns:auto 1fr;column-gap:.7rem}.count-card small{grid-column:2;color:var(--muted)}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--warning);align-self:center}.status-dot.completed{background:var(--success)}.count-metrics{display:flex;align-items:center;gap:1.3rem;color:var(--muted);font-size:.8rem}.narrow{max-width:680px;margin-inline:auto}.count-summary,.order-hero{display:flex;align-items:center;justify-content:space-between}.count-summary form{margin:0}.count-table input{min-width:90px;padding:.55rem}.positive{color:var(--success);font-weight:800}.negative{color:var(--danger);font-weight:800}.modal{display:none;position:fixed;inset:0;z-index:100}.modal.open{display:grid;place-items:center}.modal-backdrop{position:absolute;inset:0;background:rgba(9,13,25,.68);backdrop-filter:blur(5px)}.scanner-card{z-index:1;position:relative;width:min(620px,calc(100% - 2rem));background:var(--surface);border-radius:22px;padding:2rem;box-shadow:0 35px 100px rgba(0,0,0,.3);text-align:center}.modal-close{position:absolute;right:1rem;top:1rem;border:0;background:var(--surface-2);width:34px;height:34px;border-radius:50%;cursor:pointer}.scanner-icon{display:grid;place-items:center;margin:auto;width:62px;height:62px;border-radius:18px;background:#edf0ff;color:var(--primary);font-size:1.7rem}.scanner-card h2{margin:.8rem 0 .2rem}.scanner-card>p{color:var(--muted);margin-top:0}.mode-switch{display:grid;grid-template-columns:1fr 1fr;padding:.3rem;background:var(--surface-2);border-radius:12px;margin:1rem 0}.mode-switch button{border:0;background:none;padding:.65rem;border-radius:9px;font-weight:800;color:var(--muted);cursor:pointer}.mode-switch button.active{background:var(--surface);color:var(--primary);box-shadow:0 3px 12px rgba(20,30,60,.1)}#scanForm{display:grid;grid-template-columns:1fr auto;gap:.6rem}.scan-feedback{margin-top:1rem;padding:.8rem;border-radius:11px;background:var(--surface-2);color:var(--muted)}.scan-feedback.success{background:#e8f8f1;color:#117650}.scan-feedback.warning{background:#fff3df;color:#a45c08}.recent-scans{display:grid;gap:.45rem;margin-top:.7rem;max-height:180px;overflow:auto}.recent-scans>div{display:flex;justify-content:space-between;padding:.65rem .8rem;border:1px solid var(--line);border-radius:10px;text-align:left}.order-total{display:grid;text-align:right}.order-total strong{font-size:1.7rem}.order-total small{color:var(--muted)}.compact{margin-top:1.35rem}.alert{padding:.8rem 1rem;border-radius:11px;margin-bottom:1rem;background:#e9efff;color:#354cb3}.alert.success{background:#e8f8f1;color:#117650}.alert.warning{background:#fff3df;color:#9a570a}.alert.danger{background:#fff0f1;color:#a92938}.mobile-menu{display:none;border:0;background:none;font-size:1.4rem}.login-layout{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr}.login-art{padding:5vw;background:linear-gradient(145deg,#151b2d,#3945a6);color:#fff;display:flex;align-items:flex-end}.login-art h1{font-size:clamp(2.5rem,5vw,5.5rem);letter-spacing:-.04em;margin:.8rem 0}.login-art p{color:#c9d0e6;font-size:1.1rem}.login-panel{display:grid;place-items:center;padding:2rem;background:var(--surface)}.login-card{width:min(390px,100%);display:grid;gap:1rem}.login-card h2{font-size:2rem;margin:1rem 0 0}.login-card>p{color:var(--muted);margin:0 0 .5rem}.install-body{min-height:100vh;display:grid;place-items:center;padding:2rem}.install-card{background:var(--surface);width:min(760px,100%);padding:2rem;border-radius:20px;box-shadow:var(--shadow)}.install-card>p{color:var(--muted)}hr{border:0;border-top:1px solid var(--line);width:100%}
@media(prefers-color-scheme:dark){:root{--bg:#101522;--surface:#181f2f;--surface-2:#20283a;--text:#eef2fa;--muted:#9ba6bb;--line:#2e384c;--shadow:0 16px 50px rgba(0,0,0,.2);color-scheme:dark}.topbar{background:rgba(24,31,47,.93)}.hero-card{background:linear-gradient(135deg,#181f2f 45%,#20284f)}.sidebar-toggle{background:#283147;color:#fff}.file-drop{border-color:#3c4860}.button.danger{background:#40232b}.login-panel{background:var(--surface)}}
@media(max-width:1050px){.header-stats>div:not(.user-chip){display:none}.grid-two{grid-template-columns:1fr}.filters{grid-template-columns:repeat(2,1fr)}.steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){:root{--sidebar-width:0px;--header-height:78px}.sidebar{transform:translateX(-100%);width:260px}.sidebar-mobile-open .sidebar{transform:translateX(0)}.sidebar-collapsed .nav-label{display:inline}.sidebar-toggle{display:none}.mobile-menu{display:inline-block}.topbar{padding:0 1rem}.topbar>div:first-child{display:grid;grid-template-columns:auto 1fr;column-gap:.5rem;align-items:center}.topbar .eyebrow{grid-column:2}.topbar h1{grid-column:2}.user-chip{border:0;padding:0}.user-chip div{display:none}.content{padding:calc(var(--header-height) + 1rem) 1rem 2rem}.hero-card{padding:1.4rem}.hero-graphic{display:none}.cards-grid{grid-template-columns:1fr}.steps,.filters,.edit-grid,.form-grid{grid-template-columns:1fr}.span-2,.edit-grid .form-actions{grid-column:auto}.count-card,.count-summary,.order-hero{align-items:flex-start;flex-direction:column;gap:1rem}.count-metrics{width:100%;justify-content:space-between}.login-layout{grid-template-columns:1fr}.login-art{display:none}.login-panel{min-height:100vh}.table-wrap{overflow:visible}.inventory-table,.count-table{min-width:0}.inventory-table thead,.count-table thead{display:none}.inventory-table tbody,.inventory-table tr,.count-table tbody,.count-table tr{display:grid}.inventory-table tr,.count-table tr{margin-bottom:.8rem;padding:.8rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.inventory-table td,.count-table td{display:flex;justify-content:space-between;align-items:center;border:0;padding:.45rem}.inventory-table td[data-label]::before,.count-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:.72rem;font-weight:800}.inventory-table td:first-child,.count-table td:first-child{justify-content:flex-start}.inventory-table .empty,.count-table .empty{display:block}.count-table input{width:110px}#scanForm{grid-template-columns:1fr}.scanner-card{padding:1.4rem}}
.field-editor{align-content:start}.field-label{display:flex;align-items:center;gap:.4rem}.field-legend{white-space:pre-line;color:var(--muted);font-size:.74rem;font-weight:500;line-height:1.45;padding:.55rem .65rem;border-left:3px solid var(--primary);background:var(--surface-2);border-radius:0 8px 8px 0}.calculation-hint{color:var(--success);font-size:.75rem;font-weight:700;line-height:1.4}.field-editor select{cursor:pointer}
.cabys-lookup{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.45rem;padding:.62rem .7rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:.72rem;font-weight:650;line-height:1.45}.cabys-lookup-indicator{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:rgba(68,89,231,.12);color:var(--primary);font-weight:900}.cabys-lookup a{color:var(--primary);font-weight:800;white-space:nowrap}.cabys-lookup.loading{border-color:rgba(68,89,231,.35);color:var(--text)}.cabys-lookup.loading .cabys-lookup-indicator{animation:cabys-spin .85s linear infinite}.cabys-lookup.found{border-color:rgba(25,169,116,.32);background:#e8f8f1;color:#117650}.cabys-lookup.found .cabys-lookup-indicator{background:rgba(25,169,116,.15);color:var(--success)}.cabys-lookup.found .cabys-lookup-indicator::before{content:"✓"}.cabys-lookup.found .cabys-lookup-indicator{font-size:0}.cabys-lookup.found .cabys-lookup-indicator::before{font-size:.72rem}.cabys-lookup.not-found,.cabys-lookup.unavailable{border-color:rgba(220,67,83,.3);background:#fff0f2;color:#a82c3a}.cabys-lookup.stale{border-color:rgba(230,138,25,.35);background:#fff3df;color:#92550b}@keyframes cabys-spin{to{transform:rotate(360deg)}}
@media(prefers-color-scheme:dark){.cabys-lookup.found{background:#17372f;color:#73d6b2}.cabys-lookup.not-found,.cabys-lookup.unavailable{background:#45232b;color:#ff9aa4}.cabys-lookup.stale{background:#3c3020;color:#f2ad52}}
@media(max-width:760px){.cabys-lookup{grid-template-columns:auto minmax(0,1fr)}.cabys-lookup a{grid-column:2;white-space:normal}}
.app-tooltip{position:fixed;z-index:300;width:max-content;max-width:min(310px,calc(100vw - 16px));padding:.68rem .82rem;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);box-shadow:0 14px 38px rgba(11,18,35,.22);font-size:.75rem;font-weight:650;line-height:1.45;text-align:left;pointer-events:none;opacity:0;transform:translateY(4px) scale(.98);transition:opacity .12s ease,transform .12s ease}.app-tooltip.visible{opacity:1;transform:translateY(0) scale(1)}.app-tooltip::after{content:"";position:absolute;left:var(--tooltip-arrow-left);width:10px;height:10px;background:var(--surface);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:translateX(-50%) rotate(45deg)}.app-tooltip[data-placement="top"]::after{bottom:-6px}.app-tooltip[data-placement="bottom"]::after{top:-6px;transform:translateX(-50%) rotate(225deg)}
.global-discount-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,.8fr);align-items:center;gap:1.5rem;border-color:rgba(68,89,231,.25);background:linear-gradient(135deg,var(--surface) 58%,#eef0ff)}.global-discount-panel h3{margin:.55rem 0 .35rem}.global-discount-panel p{max-width:760px;margin:0;color:var(--muted);font-size:.82rem;line-height:1.55}.global-discount-form{display:grid;grid-template-columns:minmax(160px,.65fr) minmax(220px,1fr);align-items:end;gap:.7rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.percentage-input{position:relative;display:block}.percentage-input input{padding-right:2.35rem}.percentage-input b{position:absolute;right:.9rem;top:50%;transform:translateY(-50%);color:var(--primary)}.discount-badge{background:#e8f8f1;color:#117650}.muted-value{color:var(--muted);font-size:.75rem}.global-discount-form .button{min-height:43px}
@media(prefers-color-scheme:dark){.global-discount-panel{background:linear-gradient(135deg,var(--surface) 58%,#20284f)}.discount-badge{background:#17372f;color:#73d6b2}}
@media(max-width:980px){.global-discount-panel{grid-template-columns:1fr}}
@media(max-width:760px){.global-discount-form{grid-template-columns:1fr}.global-discount-panel{gap:1rem}}
.topbar-title{min-width:0}.topbar-tools,.topbar-actions{display:flex;align-items:center}.topbar-tools{gap:1rem}.topbar-actions{gap:.45rem}.top-action{height:38px;display:inline-flex;align-items:center;gap:.42rem;padding:0 .7rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);font-size:.72rem;font-weight:800;white-space:nowrap;transition:.18s}.top-action:hover,.top-action:focus-visible{border-color:var(--primary);color:var(--primary);transform:translateY(-1px)}.top-action span{color:var(--primary);font-size:1rem}.top-action b{font:inherit}.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.55rem 1.7rem;background:linear-gradient(135deg,var(--surface) 55%,#eef0ff)}.dashboard-welcome h2{font-size:clamp(1.45rem,2.4vw,2.15rem);margin:.55rem 0 .35rem}.dashboard-welcome p{margin:0;color:var(--muted)}.dashboard-actions{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.35rem}.dashboard-kpi,.workflow-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.dashboard-kpi{padding:1.1rem;display:flex;align-items:center;gap:.85rem;min-width:0}.dashboard-kpi>div{min-width:0}.dashboard-kpi small,.dashboard-kpi p,.workflow-card small,.workflow-card p{color:var(--muted);margin:0}.dashboard-kpi strong{display:block;font-size:clamp(1.15rem,1.8vw,1.55rem);margin:.16rem 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-kpi p{font-size:.72rem}.metric-icon.amber{background:#fff3df;color:#c77712}.dashboard-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:1.35rem}.chart-panel{min-width:0}.stock-chart-layout{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:1.6rem;padding:.5rem}.donut-chart{width:180px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--success) 0 var(--healthy),var(--warning) var(--healthy) var(--healthy-low),var(--danger) var(--healthy-low) 100%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}.donut-chart>div{width:112px;aspect-ratio:1;border-radius:50%;display:grid;place-content:center;text-align:center;background:var(--surface);box-shadow:0 5px 18px rgba(20,30,60,.08)}.donut-chart strong{font-size:1.65rem}.donut-chart small{color:var(--muted)}.chart-legend{display:grid;gap:.8rem}.chart-legend>div{display:flex;align-items:center;gap:.7rem}.chart-legend p{display:grid;margin:0}.chart-legend small{color:var(--muted)}.legend-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}.legend-dot.healthy{background:var(--success)}.legend-dot.low{background:var(--warning)}.legend-dot.empty-stock{background:var(--danger)}.bar-chart{display:grid;gap:.72rem}.bar-row{display:grid;grid-template-columns:minmax(110px,1.2fr) minmax(120px,2fr) 45px;align-items:center;gap:.7rem;font-size:.76rem}.bar-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-row i{height:9px;border-radius:99px;background:var(--surface-2);overflow:hidden}.bar-row i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary),var(--primary-2))}.bar-row>strong{text-align:right}.bar-row:hover>span{color:var(--primary)}.compact-empty{padding:1rem!important}.workflow-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.workflow-card{padding:1rem;display:flex;align-items:center;gap:.85rem;transition:.18s}.workflow-card>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eef0ff;color:var(--primary);font-size:1.15rem}.workflow-card>div{min-width:0}.workflow-card strong{display:block;font-size:1.35rem;margin:.1rem 0}.workflow-card p{font-size:.72rem}.workflow-card:hover{border-color:var(--primary);transform:translateY(-2px)}.direct-scan-banner{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;padding:.8rem 1rem;border:1px solid rgba(25,169,116,.25);border-radius:13px;background:#e8f8f1;color:#117650}.direct-scan-banner>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(25,169,116,.13);font-size:1.2rem}.direct-scan-banner>div{display:grid}.direct-scan-banner small{opacity:.82}.direct-scan-status{position:fixed;z-index:95;top:calc(var(--header-height) + 1rem);right:1rem;width:min(390px,calc(100vw - 2rem));display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 18px 55px rgba(11,18,35,.22);opacity:0;transform:translateY(-12px);pointer-events:none;transition:.2s}.direct-scan-status.visible{opacity:1;transform:translateY(0)}.direct-scan-status>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--surface-2);font-weight:900}.direct-scan-status>div{display:grid}.direct-scan-status small{color:var(--muted)}.direct-scan-status.success>span{background:#e8f8f1;color:var(--success)}.direct-scan-status.warning>span{background:#fff3df;color:var(--warning)}.direct-scan-status.loading>span{color:var(--primary)}
@media(prefers-color-scheme:dark){.dashboard-welcome{background:linear-gradient(135deg,var(--surface) 55%,#20284f)}.metric-icon.amber{background:#3c3020;color:#f2ad52}.workflow-card>span{background:#272d52}.direct-scan-banner{background:#17372f;color:#73d6b2;border-color:#275646}.direct-scan-status.success>span{background:#17372f}.direct-scan-status.warning>span{background:#3c3020}}
.count-start-form{display:grid;gap:1.1rem}.order-target-fieldset{display:grid;gap:.65rem;margin:0;padding:1rem;border:1px solid var(--line);border-radius:14px}.order-target-fieldset legend{padding:0 .4rem;font-size:.82rem;font-weight:800;color:var(--text)}.order-choice{display:flex;grid-template-columns:none;align-items:center;gap:.8rem;padding:.85rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);cursor:pointer;transition:.18s}.order-choice:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 3px rgba(68,89,231,.1);background:#f0f2ff}.order-choice input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--primary)}.order-choice span{display:grid;gap:.18rem}.order-choice small,.form-note,.table-subtitle{color:var(--muted)}.form-note{margin:0;font-size:.76rem;line-height:1.5}.order-assignment-form{display:grid!important;grid-template-columns:minmax(220px,1fr) auto;gap:.6rem}.table-subtitle{display:block;max-width:300px;margin-top:.2rem;font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge.status-draft{background:#fff3df;color:#9a570a}.badge.status-ordered{background:#eaf2ff;color:#286ac1}.badge.status-completed{background:#e8f8f1;color:#117650}.order-state-panel{display:flex;align-items:center;justify-content:space-between;gap:1rem}.order-state-panel h3{margin:0}.order-state-panel p{margin:.3rem 0 0;color:var(--muted);font-size:.8rem}.order-state-panel form{margin:0}.order-source-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.order-source-list a{display:flex;align-items:center;gap:.7rem;padding:.85rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.order-source-list a>span{display:grid;place-items:center;min-width:42px;height:38px;border-radius:10px;background:#eef0ff;color:var(--primary);font-size:.72rem;font-weight:900}.order-source-list a>div{display:grid;min-width:0}.order-source-list strong,.order-source-list small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-source-list small{color:var(--muted);font-size:.68rem}
@media(prefers-color-scheme:dark){.order-choice:has(input:checked){background:#252d53}.badge.status-draft{background:#3c3020;color:#f2ad52}.badge.status-ordered{background:#213653;color:#75aef3}.badge.status-completed{background:#17372f;color:#73d6b2}.order-source-list a>span{background:#272d52}}
@media(max-width:900px){.order-source-list{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.order-assignment-form{grid-template-columns:1fr;width:100%}.order-state-panel{align-items:flex-start;flex-direction:column}.order-source-list{grid-template-columns:1fr}}
@media(max-width:1350px){.top-action b{display:none}.top-action{width:38px;padding:0;justify-content:center}.dashboard-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1100px){.header-stats>div:not(.user-chip){display:none}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:760px){.topbar-tools{margin-left:auto;gap:.45rem}.header-stats{display:none}.topbar-actions{gap:.3rem}.top-action{width:34px;height:34px}.dashboard-welcome{align-items:flex-start;flex-direction:column;padding:1.2rem}.dashboard-actions{justify-content:flex-start}.dashboard-kpis,.workflow-summary{grid-template-columns:1fr}.stock-chart-layout{grid-template-columns:1fr;justify-items:center}.chart-legend{width:100%;grid-template-columns:repeat(3,1fr)}.chart-legend>div{align-items:flex-start}.bar-row{grid-template-columns:minmax(90px,1fr) minmax(90px,1.3fr) 38px}.direct-scan-banner{align-items:flex-start}.direct-scan-status{top:calc(var(--header-height) + .6rem);right:.6rem;width:calc(100vw - 1.2rem)}}

/* Ventas y analítica de inventario */
.sales-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);align-items:center;gap:1.5rem;background:linear-gradient(135deg,var(--surface) 58%,#eef0ff)}.sales-hero h2,.dashboard-section-head h2{margin:.55rem 0 .35rem;font-size:clamp(1.35rem,2.2vw,2rem)}.sales-hero p,.dashboard-section-head p{margin:0;color:var(--muted)}.sales-upload-form{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(150px,.8fr);gap:.7rem;align-items:end;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.sales-upload-form .button{grid-column:1/-1}.sales-filter-panel{display:grid;gap:1rem}.sales-filters{grid-template-columns:repeat(4,minmax(130px,1fr))}.sales-filters .sales-search{grid-column:span 2}.sales-source-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1rem;border-top:1px solid var(--line)}.sales-source-row>div:first-child{display:grid;gap:.25rem;min-width:0}.sales-source-row small{color:var(--muted)}.exchange-rate-form{display:flex;align-items:end;gap:.55rem}.exchange-rate-form label{width:165px}.rate-readonly{display:grid;text-align:right}.sales-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.35rem}.metric-icon.red{background:#ffecee;color:var(--danger)}.metric-icon.slate{background:#edf1f6;color:#5e6a80}.sales-chart-grid,.dashboard-analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.sales-bars .bar-row,.dashboard-compact-bars .bar-row{grid-template-columns:minmax(110px,1.1fr) minmax(100px,1.3fr) minmax(80px,auto)}.supplier-bars .bar-row i b{background:linear-gradient(90deg,#e68a19,#f4b85d)}.brand-bars .bar-row i b,.profit-bars .bar-row i b{background:linear-gradient(90deg,#19a974,#58c89f)}.risk-bars .bar-row i b{background:linear-gradient(90deg,#dc4353,#f0808b)}.stock-action-list{display:grid;gap:.65rem}.stock-action-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.75rem;padding:.72rem;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);transition:.18s}.stock-action-list>a:hover{border-color:var(--primary);transform:translateY(-1px)}.stock-action-list div{display:grid;min-width:0}.stock-action-list strong,.stock-action-list small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-action-list small{color:var(--muted)}.coverage-badge{padding:.28rem .48rem;border-radius:99px;background:#e8f8f1;color:#117650;font-size:.67rem;font-weight:850}.coverage-badge.risk{background:#ffecee;color:#b52f3e}.stock-action-list>a>b{font-size:.72rem}.sales-table-panel{min-width:0}.sales-table{min-width:1380px}.sales-table th small{color:inherit;opacity:.75}.sales-table td{vertical-align:middle}.sales-table tfoot{position:sticky;bottom:0;background:var(--surface)}.sales-table tfoot th{border-top:2px solid var(--primary);white-space:nowrap}.sales-product,.sales-table td:nth-child(2),.margin-value,.inventory-link{display:grid;gap:.22rem}.sales-product{min-width:220px}.sales-product small,.sales-table td:nth-child(2) small,.margin-value small,.inventory-link small{color:var(--muted)}.sales-product code{width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis}.margin-value{color:var(--success);font-weight:800}.margin-value.risk{color:var(--danger)}.inventory-link:hover strong{color:var(--primary)}.inventory-filters{grid-template-columns:repeat(4,minmax(130px,1fr))}
.dashboard-section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:2rem 0 1rem}.dashboard-section-head>div{min-width:0}.dashboard-sales-kpis .dashboard-kpi{transition:.18s}.dashboard-sales-kpis .dashboard-kpi:hover{border-color:var(--primary);transform:translateY(-2px)}.dashboard-analytics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-wide-chart{grid-column:span 2}.trend-chart{height:225px;display:flex;align-items:stretch;gap:.75rem;padding:1rem .25rem .25rem;border-bottom:1px solid var(--line);overflow-x:auto}.trend-chart>a{min-width:52px;flex:1;display:grid;grid-template-rows:1fr auto;gap:.5rem;text-align:center;color:var(--muted);font-size:.66rem}.trend-bars{height:180px;display:flex;align-items:end;justify-content:center;gap:3px}.trend-bars i{display:block;width:min(13px,27%);min-height:3px;border-radius:5px 5px 2px 2px;transition:.18s}.trend-chart>a:hover i{filter:brightness(1.08);transform:translateY(-2px)}.trend-bars .sales,.inline-legend .sales{background:var(--primary)}.trend-bars .cost,.inline-legend .cost{background:var(--warning)}.trend-bars .profit,.inline-legend .profit{background:var(--success)}.trend-bars .net,.inline-legend .net{background:#7956d8}.inline-legend{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:.75rem;color:var(--muted);font-size:.7rem}.inline-legend span{display:flex;align-items:center;gap:.35rem}.inline-legend i{width:9px;height:9px;border-radius:3px}.margin-donut{width:190px;aspect-ratio:1;margin:.3rem auto;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--danger) 0 var(--m20),var(--warning) var(--m20) var(--m35),var(--success) var(--m35) var(--m50),var(--primary) var(--m50) 100%)}.margin-donut>span{width:118px;aspect-ratio:1;display:grid;place-content:center;text-align:center;border-radius:50%;background:var(--surface);box-shadow:0 5px 18px rgba(20,30,60,.08)}.margin-donut strong{font-size:1.55rem}.margin-donut small{color:var(--muted)}.margin-legend{flex-wrap:wrap}.margin-legend .risk{background:var(--danger)}.margin-legend .watch{background:var(--warning)}.margin-legend .good{background:var(--success)}.margin-legend .great{background:var(--primary)}.coverage-stack{height:22px;display:flex;overflow:hidden;border-radius:99px;background:var(--surface-2);margin:1.2rem 0}.coverage-stack a{min-width:0}.coverage-stack .critical{background:var(--danger)}.coverage-stack .low{background:var(--warning)}.coverage-stack .healthy{background:var(--success)}.coverage-stack .slow{background:#8490a7}.coverage-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.coverage-cards a{display:grid;text-align:center;padding:.75rem .35rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.coverage-cards strong{font-size:1.2rem}.coverage-cards small{color:var(--muted);font-size:.65rem}.inventory-analytics{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(prefers-color-scheme:dark){.sales-hero{background:linear-gradient(135deg,var(--surface) 58%,#20284f)}.metric-icon.red{background:#45232b;color:#ff8995}.metric-icon.slate{background:#293142;color:#aab6ca}.coverage-badge{background:#17372f;color:#73d6b2}.coverage-badge.risk{background:#45232b;color:#ff8995}.sales-table tfoot{background:var(--surface)}}
@media(max-width:1250px){.dashboard-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-wide-chart{grid-column:span 2}.sales-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-filters,.inventory-filters{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:980px){.sales-hero{grid-template-columns:1fr}.sales-upload-form{grid-template-columns:1fr 1fr}.sales-chart-grid{grid-template-columns:1fr}.sales-filters,.inventory-filters{grid-template-columns:repeat(2,minmax(130px,1fr))}.sales-source-row{align-items:flex-start;flex-direction:column}.exchange-rate-form{width:100%}.exchange-rate-form label{width:auto;flex:1}}
@media(max-width:760px){.sales-kpis,.dashboard-analytics-grid,.inventory-analytics{grid-template-columns:1fr}.dashboard-wide-chart{grid-column:auto}.dashboard-section-head{align-items:flex-start;flex-direction:column}.sales-upload-form,.sales-filters,.inventory-filters{grid-template-columns:1fr}.sales-filters .sales-search{grid-column:auto}.exchange-rate-form{align-items:stretch;flex-direction:column}.stock-action-list>a{grid-template-columns:1fr auto}.stock-action-list>a>b{grid-column:1/-1}.sales-table{min-width:0}.sales-table thead{display:none}.sales-table tbody,.sales-table tr{display:grid}.sales-table tbody tr{margin-bottom:.8rem;padding:.8rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.sales-table td{display:flex;justify-content:space-between;gap:1rem;border:0;padding:.45rem;text-align:right}.sales-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:.72rem;font-weight:800;text-align:left}.sales-table td:first-child{justify-content:flex-start;text-align:left;border-bottom:1px solid var(--line);padding-bottom:.75rem;margin-bottom:.25rem}.sales-table td:first-child>div{width:100%}.sales-table tfoot{display:grid;position:static}.sales-table tfoot tr{display:grid;grid-template-columns:1fr 1fr;padding:.8rem;border:2px solid var(--primary);border-radius:14px}.sales-table tfoot th{display:block;border:0;padding:.35rem;text-align:right}.sales-table tfoot th:first-child{grid-column:1/-1;text-align:left}.trend-chart{height:205px}.trend-bars{height:160px}.coverage-cards{grid-template-columns:repeat(2,1fr)}}
.sales-list-heading{display:flex;align-items:center;justify-content:space-between;gap:1.2rem}.sales-list-heading h2{margin:.55rem 0 .3rem}.sales-list-heading p{margin:0;color:var(--muted)}.sales-filter-form{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(140px,1fr));gap:.75rem;align-items:end}.advanced-filters{grid-column:1/-1;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.advanced-filters summary{padding:.75rem .9rem;cursor:pointer;font-size:.78rem;font-weight:850;color:var(--primary)}.advanced-filters>div{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;padding:0 .9rem .9rem}.sales-filter-actions{grid-column:1/-1;display:flex;gap:.6rem}.uploads-sales-form{max-width:850px}.export-disclosure{padding:0;overflow:hidden}.export-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.15rem 1.25rem;cursor:pointer;list-style:none}.export-disclosure>summary::-webkit-details-marker{display:none}.export-disclosure>summary span{display:grid;gap:.25rem}.export-disclosure>summary small{color:var(--muted);font-weight:500}.export-disclosure>summary b{color:var(--primary);font-size:.78rem}.export-config-form{display:grid;gap:1rem;padding:0 1.25rem 1.25rem;border-top:1px solid var(--line)}.export-main-fields{display:grid;grid-template-columns:2fr 1fr;gap:.75rem;padding-top:1rem}.export-column-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:0;padding:1rem;border:1px solid var(--line);border-radius:13px}.export-column-picker legend{padding:0 .4rem;font-size:.8rem;font-weight:850}.export-column-picker label{display:flex;grid-template-columns:none;align-items:center;gap:.45rem;padding:.55rem;border-radius:9px;background:var(--surface-2);cursor:pointer}.export-column-picker input{width:17px;height:17px;accent-color:var(--primary)}.export-column-picker span{font-size:.72rem}.clean-sales-table{min-width:1450px}.clean-sales-table td:nth-child(n+5):nth-child(-n+9){white-space:nowrap}.clean-sales-table td:nth-child(n+5):nth-child(-n+9),.clean-sales-table tfoot th{vertical-align:middle}.clean-sales-table td small,.clean-sales-table tfoot small{display:block;margin-top:.22rem;color:var(--muted)}.export-preview-card{z-index:1;position:relative;width:min(1400px,calc(100% - 2rem));max-height:calc(100vh - 2rem);display:flex;flex-direction:column;padding:1.35rem;border-radius:20px;background:var(--surface);box-shadow:0 35px 100px rgba(0,0,0,.35)}.export-preview-card .panel-head{padding-right:2rem}.export-preview-card h2{margin:.1rem 0}.export-preview-table{flex:1;min-height:180px;max-height:65vh;border:1px solid var(--line);border-radius:12px}.export-preview-table table{min-width:max-content}.export-preview-table th,.export-preview-table td{white-space:nowrap}.export-preview-table tfoot{position:sticky;bottom:0;background:var(--surface)}.export-preview-table tfoot th{border-top:2px solid var(--primary)}.export-preview-actions{justify-content:flex-end;margin-top:1rem}
@media(prefers-color-scheme:dark){.advanced-filters,.export-column-picker label{background:var(--surface-2)}}
@media(max-width:1100px){.sales-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-search-wide{grid-column:1/-1}.advanced-filters>div,.export-column-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sales-list-heading{align-items:flex-start;flex-direction:column}.sales-filter-form,.advanced-filters>div,.export-main-fields,.export-column-picker{grid-template-columns:1fr}.sales-filter-actions{grid-column:auto}.clean-sales-table td:first-child{justify-content:space-between}.clean-sales-table td:first-child::before{content:attr(data-label);color:var(--muted);font-size:.72rem;font-weight:800}.export-preview-card{padding:1rem}.export-preview-actions{justify-content:stretch}.export-preview-actions .button{flex:1}}
.table-column-disclosure{margin-bottom:1rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.table-column-disclosure>summary{display:flex;align-items:center;justify-content:space-between;padding:.72rem .85rem;cursor:pointer;list-style:none;font-size:.78rem;font-weight:850}.table-column-disclosure>summary::-webkit-details-marker{display:none}.table-column-disclosure>summary small{color:var(--primary)}.table-column-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem;padding:0 .75rem .75rem}.table-column-picker label{display:flex;grid-template-columns:none;align-items:center;gap:.4rem;padding:.48rem .55rem;border-radius:9px;background:var(--surface);cursor:pointer}.table-column-picker input{width:16px;height:16px;accent-color:var(--primary)}.table-column-picker span{font-size:.7rem}.table-column-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:.8rem;padding-top:.25rem}.sales-table-wrap{border:1px solid var(--line);border-radius:13px}.clean-sales-table{border-collapse:collapse}.clean-sales-table col[data-sales-column="product"]{width:260px}.clean-sales-table col[data-sales-column="variation"]{width:190px}.clean-sales-table col[data-sales-column="sku"]{width:205px}.clean-sales-table col[data-sales-column="quantity"]{width:105px}.clean-sales-table col[data-sales-column="unit_crc"],.clean-sales-table col[data-sales-column="total_crc"],.clean-sales-table col[data-sales-column="unit_usd"],.clean-sales-table col[data-sales-column="total_usd"]{width:155px}.clean-sales-table col[data-sales-column="profit"]{width:135px}.clean-sales-table col[data-sales-column="stock"]{width:105px}.clean-sales-table thead th{padding:.8rem .75rem;background:var(--surface);vertical-align:bottom}.clean-sales-table tbody tr:nth-child(odd){background:var(--surface)}.clean-sales-table tbody tr:nth-child(even){background:var(--surface-2)}.clean-sales-table tbody tr:hover{background:#eef1ff}.clean-sales-table tbody td{height:58px;padding:.72rem .75rem;border-bottom:1px solid var(--line);vertical-align:middle;background:transparent;line-height:1.35}.clean-sales-table td[data-sales-column="product"] strong{display:block;line-height:1.35}.clean-sales-table td[data-sales-column="variation"]{overflow-wrap:anywhere}.clean-sales-table td[data-sales-column="sku"] code{white-space:normal;overflow-wrap:anywhere}.clean-sales-table .numeric-cell{text-align:right;font-variant-numeric:tabular-nums}.clean-sales-table tfoot th{padding:.8rem .75rem;background:var(--surface);text-align:right}.clean-sales-table tfoot th[data-sales-total-label]{text-align:left}.clean-sales-table [hidden]{display:none!important}
@media(prefers-color-scheme:dark){.clean-sales-table tbody tr:hover{background:#252d53}}
@media(max-width:980px){.table-column-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.table-column-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-table-wrap{border:0}.clean-sales-table tbody td{height:auto}.clean-sales-table .numeric-cell{text-align:right}.clean-sales-table tfoot th[data-sales-total-label]{grid-column:1/-1;text-align:left}}
.login-art-content{width:min(820px,100%)}.login-capabilities{display:grid;gap:1.2rem;margin:1.5rem 0}.login-capabilities article{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:start;gap:1rem}.login-capabilities article>b{display:grid;place-items:center;width:46px;height:46px;border:1px solid rgba(255,255,255,.28);border-radius:14px;background:rgba(255,255,255,.1);font-size:1.1rem}.login-capabilities article div{min-width:0}.login-capabilities small{display:block;margin-bottom:.3rem;color:#c9d0e6;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.login-capabilities h1,.login-capabilities h2{margin:0;line-height:1.05;letter-spacing:-.04em}.login-capabilities h1{font-size:clamp(2.2rem,4.6vw,5rem)}.login-capabilities h2{font-size:clamp(1.8rem,3.7vw,4rem);color:#f2f4ff}.login-provider{margin-top:2rem!important;color:#dbe1f5!important;font-size:.92rem!important}.login-provider strong{color:#fff}.login-provider-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#4459e7,#8b5bea);color:#fff;font-weight:950;letter-spacing:-.04em;box-shadow:0 10px 28px rgba(80,94,230,.3)}.login-system-name{color:var(--primary);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.login-provider-mobile{display:none;color:var(--muted);text-align:center;line-height:1.5}.login-card .button{width:100%}
@media(max-width:760px){.login-provider-mobile{display:block}.login-system-name{text-align:left}.login-card{gap:.85rem}}
.dashboard-date-panel{display:flex;align-items:end;justify-content:space-between;gap:1.25rem;margin-bottom:1rem;background:linear-gradient(135deg,var(--surface) 62%,var(--surface-2))}.dashboard-date-panel h2{margin:.25rem 0}.dashboard-date-panel p{margin:0;color:var(--muted);font-size:.78rem}.dashboard-date-form{display:grid;grid-template-columns:repeat(2,minmax(145px,1fr)) auto auto;align-items:end;gap:.65rem}.dashboard-general-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.35rem}.dashboard-general-summary .dashboard-kpi{box-shadow:none}.dashboard-general-summary .dashboard-kpi:hover{border-color:var(--primary);transform:translateY(-2px)}
.general-sales-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.general-sales-filters{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:.7rem;align-items:end}.general-sales-filters .wide-field{grid-column:span 2}.general-sales-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.general-sales-table{min-width:1180px;border-collapse:separate;border-spacing:0 7px}.general-sales-table thead th{border:0;background:transparent}.general-sales-table tbody tr{background:var(--surface-2)}.general-sales-table tbody tr:hover{background:#eef1ff}.general-sales-table tbody td{border:0;padding:.78rem}.general-sales-table tbody td:first-child{border-radius:11px 0 0 11px}.general-sales-table tbody td:last-child{border-radius:0 11px 11px 0}.general-sales-table tbody tr.payment-warning{background:#fff4df}.general-sales-table .numeric-cell{text-align:right;font-variant-numeric:tabular-nums}.decision-hero{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;background:linear-gradient(135deg,var(--surface) 55%,#eef0ff)}.decision-hero h2{margin:.45rem 0}.decision-hero p{max-width:760px;margin:0;color:var(--muted)}.decision-hero-value{min-width:220px;padding:1.1rem;border-radius:15px;background:var(--surface);text-align:center}.decision-hero-value strong{display:block;font-size:1.8rem}.decision-hero-value small{color:var(--muted)}.decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.decision-list{display:grid;gap:.55rem}.decision-list>a,.decision-list>article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;padding:.8rem;border-radius:11px;background:var(--surface-2)}.decision-list strong,.decision-list small{display:block}.decision-list small{margin-top:.2rem;color:var(--muted)}.decision-list b{text-align:right;color:var(--primary)}
.sales-table-wrap{border:0!important}.clean-sales-table thead th,.clean-sales-table tbody td,.clean-sales-table tfoot th{border:0!important}.clean-sales-table tbody td{border-bottom:0!important}.clean-sales-table tfoot th{border-top:0!important}.clean-sales-table tbody tr{box-shadow:none!important}
@media(prefers-color-scheme:dark){.general-sales-table tbody tr:hover{background:#252d53}.general-sales-table tbody tr.payment-warning{background:#3c3020}.decision-hero{background:linear-gradient(135deg,var(--surface) 55%,#20284f)}}
@media(max-width:1100px){.dashboard-date-panel{align-items:stretch;flex-direction:column}.dashboard-general-summary,.general-sales-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.general-sales-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-date-form,.dashboard-general-summary,.general-sales-kpis,.general-sales-filters,.general-sales-chart-grid,.decision-grid{grid-template-columns:1fr}.dashboard-date-form .button{width:100%}.general-sales-filters .wide-field{grid-column:auto}.decision-hero{align-items:stretch;flex-direction:column}.decision-hero-value{min-width:0}.general-sales-table{min-width:0}.general-sales-table thead{display:none}.general-sales-table tbody,.general-sales-table tr{display:grid}.general-sales-table tbody tr{margin-bottom:.8rem;padding:.75rem;border-radius:13px}.general-sales-table tbody td{display:flex;justify-content:space-between;gap:1rem;padding:.4rem;border:0;text-align:right}.general-sales-table tbody td[data-label]::before{content:attr(data-label);color:var(--muted);font-weight:800;text-align:left}.general-sales-table tbody td:first-child,.general-sales-table tbody td:last-child{border-radius:0}.general-sales-table .numeric-cell{text-align:right}}
.general-filter-panel{display:grid;gap:1rem}.general-filter-panel .panel-head{align-items:center}.quick-periods{display:flex;gap:.4rem}.quick-periods a{padding:.48rem .68rem;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--primary);font-size:.7rem;font-weight:800}.general-sales-filters{grid-template-columns:repeat(4,minmax(140px,1fr))}.general-sales-filters .advanced-filters{grid-column:1/-1}.general-sales-filters .advanced-filters>div{grid-template-columns:repeat(6,minmax(130px,1fr))}.general-filter-actions{grid-column:1/-1}.general-sales-kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:1.25rem}.general-sales-kpis .dashboard-kpi{box-shadow:none;transition:.18s}.general-sales-kpis a.dashboard-kpi:hover{border-color:var(--primary);transform:translateY(-2px)}.general-sales-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:1.25rem}.chart-span-two{grid-column:1/-1}.general-sales-chart-grid .bar-row{grid-template-columns:minmax(105px,1fr) minmax(90px,1.7fr) minmax(70px,auto)}
.recommendation-filter-panel{display:grid;gap:.7rem}.recommendation-filter-panel>p{margin:0;color:var(--muted);font-size:.72rem}.recommendation-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.3fr) auto auto;gap:.7rem;align-items:end}.recommendation-score-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem;margin-bottom:1.3rem}.decision-score{display:grid;gap:.25rem;padding:1rem;border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:var(--shadow);transition:.18s}.decision-score:hover{border-color:var(--primary);transform:translateY(-2px)}.decision-score span{font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.decision-score strong{font-size:1.65rem}.decision-score small{color:var(--muted);line-height:1.35}.decision-score.danger strong{color:var(--danger)}.decision-score.warning strong{color:var(--warning)}.decision-score.info strong{color:var(--primary)}.decision-section{display:grid;gap:1rem;margin:1.4rem 0}.decision-section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem}.decision-section-head h2{margin:.35rem 0 .2rem}.decision-section-head p{margin:0;color:var(--muted)}.recommendation-callouts{display:grid;align-content:start;gap:.6rem}.recommendation-callouts>a,.recommendation-callouts>div{display:grid;gap:.2rem;padding:.9rem;border-radius:12px;background:var(--surface-2)}.recommendation-callouts strong{color:var(--text)}.recommendation-callouts small{color:var(--muted)}.recommendation-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1250px){.general-sales-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.general-sales-filters .advanced-filters>div{grid-template-columns:repeat(3,minmax(130px,1fr))}.recommendation-score-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.general-sales-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.recommendation-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recommendation-filters{grid-template-columns:1fr 1fr}.decision-section-head{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.general-filter-panel .panel-head{align-items:flex-start}.quick-periods{width:100%}.quick-periods a{flex:1;text-align:center}.general-sales-filters,.general-sales-kpis,.general-sales-chart-grid,.recommendation-filters,.recommendation-score-grid,.recommendation-list-grid{grid-template-columns:1fr}.general-sales-filters .wide-field,.general-sales-filters .advanced-filters,.general-filter-actions,.chart-span-two{grid-column:auto}.general-sales-filters .advanced-filters>div{grid-template-columns:1fr}.recommendation-filters .button{width:100%}.decision-hero-value{text-align:left}.decision-score strong{font-size:1.4rem}}
.recommendation-hero{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.35rem 1.5rem;background:linear-gradient(135deg,var(--surface) 65%,#eef0ff)}.recommendation-hero h2{margin:.35rem 0 .2rem;font-size:1.65rem}.recommendation-hero p{margin:0;color:var(--muted)}.recommendation-period{min-width:150px}.recommendation-tabs{position:sticky;z-index:8;top:calc(var(--header-height) + .5rem);display:flex;gap:.4rem;margin:1rem 0;padding:.4rem;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:var(--shadow);backdrop-filter:blur(12px)}.recommendation-tabs a{display:flex;align-items:center;justify-content:center;gap:.45rem;flex:1;padding:.68rem;border-radius:10px;color:var(--muted);font-size:.75rem;font-weight:850;transition:.16s}.recommendation-tabs a:hover{background:var(--surface-2);color:var(--primary)}.recommendation-tabs a.active{background:var(--primary);color:#fff;box-shadow:0 7px 18px rgba(68,89,231,.24)}.recommendation-intro{display:flex;align-items:end;justify-content:space-between;margin:1.3rem 0 .8rem}.recommendation-intro h2{margin:.25rem 0}.recommendation-intro p{margin:0;color:var(--muted)}.executive-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.executive-action{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:.9rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);transition:.18s}.executive-action:hover{border-color:var(--primary);transform:translateY(-2px)}.executive-action .action-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:var(--surface-2);color:var(--primary);font-size:1.15rem;font-weight:900}.executive-action small{display:block;color:var(--muted);font-size:.68rem;font-weight:850;text-transform:uppercase}.executive-action strong{display:block;margin:.15rem 0;font-size:1.15rem}.executive-action p{margin:0;color:var(--muted);font-size:.72rem;line-height:1.4}.executive-action>b{color:var(--primary);font-size:.72rem}.executive-action.critical{border-left:4px solid var(--danger)}.executive-action.warning{border-left:4px solid var(--warning)}.executive-action.info{border-left:4px solid var(--primary)}.executive-action.neutral{border-left:4px solid var(--muted)}.overview-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.compact-decision-list,.friendly-list{display:grid;gap:.45rem}.compact-decision-list>a,.friendly-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.7rem .75rem;border-radius:11px;background:var(--surface-2);transition:.15s}.compact-decision-list>a:hover,.friendly-list>a:hover{background:#eef0ff;transform:translateX(2px)}.compact-decision-list span,.friendly-list span{min-width:0}.compact-decision-list strong,.compact-decision-list small,.friendly-list strong,.friendly-list small{display:block}.compact-decision-list strong,.friendly-list strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-decision-list small,.friendly-list small{margin-top:.16rem;color:var(--muted);font-size:.68rem}.compact-decision-list b,.friendly-list b{color:var(--primary);font-size:.75rem;text-align:right}.focus-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:1.35rem 0 .85rem}.focus-heading h2{margin:.35rem 0 .15rem}.focus-heading p{margin:0;color:var(--muted)}.focus-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-bottom:1rem}.focus-kpis article{padding:.9rem 1rem;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.focus-kpis small{display:block;color:var(--muted);font-size:.68rem}.focus-kpis strong{display:block;margin-top:.2rem;font-size:1.15rem}.friendly-bars{max-height:540px;overflow:auto;padding-right:.25rem}.friendly-bars .bar-row{min-height:31px;grid-template-columns:minmax(150px,1.25fr) minmax(100px,1.5fr) minmax(58px,auto)}.insight-panel{display:grid;align-content:start;gap:.7rem}.insight-panel>div{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:.7rem;padding:.9rem;border-radius:12px;background:var(--surface-2)}.insight-panel>div>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#e9ecff;color:var(--primary);font-weight:900}.insight-panel p{margin:0;color:var(--muted);font-size:.75rem;line-height:1.5}.insight-panel strong{color:var(--text)}.quality-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.quality-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.7rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow);transition:.17s}.quality-card:hover{border-color:var(--primary);transform:translateY(-2px)}.quality-card>div:first-child{grid-column:1/-1}.quality-card strong,.quality-card small{display:block}.quality-card small{margin-top:.15rem;color:var(--muted)}.quality-card>b{align-self:center;color:var(--primary);font-size:.72rem}.quality-tags{display:flex;gap:.3rem;flex-wrap:wrap}.quality-tags span{padding:.3rem .45rem;border-radius:7px;background:#fff2dc;color:#9a570a;font-size:.62rem;font-weight:800}
@media(prefers-color-scheme:dark){.recommendation-hero{background:linear-gradient(135deg,var(--surface) 65%,#20284f)}.compact-decision-list>a:hover,.friendly-list>a:hover{background:#252d53}.insight-panel>div>span{background:#272d52}.quality-tags span{background:#3c3020;color:#f2ad52}}
@media(max-width:1050px){.quality-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.focus-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.recommendation-hero,.focus-heading{align-items:stretch;flex-direction:column}.recommendation-period{min-width:0}.recommendation-tabs{top:calc(var(--header-height) + .25rem);overflow-x:auto;justify-content:flex-start}.recommendation-tabs a{min-width:105px;flex:0 0 auto}.executive-action-grid,.overview-preview-grid,.quality-card-grid{grid-template-columns:1fr}.executive-action{grid-template-columns:42px minmax(0,1fr)}.executive-action>b{grid-column:2}.focus-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.friendly-bars .bar-row{grid-template-columns:minmax(95px,1fr) minmax(65px,1fr) auto}}
.general-sales-table-wrap{overflow:visible}.general-sales-table thead th{position:sticky;z-index:6;top:var(--header-height);background:var(--surface);box-shadow:0 1px 0 var(--line),0 8px 16px rgba(25,33,60,.06);cursor:help}.general-sales-table thead th::after{content:"?";display:inline-grid;place-items:center;width:14px;height:14px;margin-left:.35rem;border-radius:50%;background:var(--surface-2);color:var(--primary);font-size:.58rem;font-weight:900;vertical-align:middle}.general-order-row{cursor:pointer;outline:0;transition:background .15s,box-shadow .15s,transform .15s}.general-order-row:hover,.general-order-row:focus-visible{background:#eef1ff!important;box-shadow:inset 3px 0 0 var(--primary);transform:translateY(-1px)}.general-order-row:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.order-detail-card{z-index:1;position:relative;width:min(880px,calc(100% - 2rem));max-height:calc(100vh - 2rem);overflow:auto;padding:1.5rem;border:1px solid var(--line);border-radius:21px;background:var(--surface);box-shadow:0 35px 100px rgba(0,0,0,.35)}.order-detail-heading{padding-right:3rem}.order-detail-heading h2{margin:.5rem 0 .2rem;font-size:1.65rem}.order-detail-heading p{margin:0;color:var(--muted);font-size:.75rem}.order-detail-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin:1.2rem 0}.order-detail-section{padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.order-detail-section h3{margin:0 0 .75rem;font-size:.85rem}.order-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.order-detail-field{min-width:0;padding:.65rem;border-radius:10px;background:var(--surface)}.order-detail-field small,.order-detail-field strong{display:block}.order-detail-field small{margin-bottom:.22rem;color:var(--muted);font-size:.63rem;font-weight:750}.order-detail-field strong{font-size:.78rem;overflow-wrap:anywhere}.order-detail-field.highlight{background:#e9f8f1;color:#117650}.order-detail-field.warning{background:#fff3df;color:#9a570a}.order-detail-field.danger{background:#fff0f1;color:var(--danger)}body.modal-open{overflow:hidden}
@media(prefers-color-scheme:dark){.general-order-row:hover,.general-order-row:focus-visible{background:#252d53!important}.order-detail-field.highlight{background:#17372f;color:#73d6b2}.order-detail-field.warning{background:#3c3020;color:#f2ad52}.order-detail-field.danger{background:#45232b;color:#ff9aa4}}
@media(max-width:760px){.general-sales-table-wrap{overflow:auto;max-height:none}.general-sales-table thead th{position:static}.general-order-row{cursor:pointer}.general-order-row:hover,.general-order-row:focus-visible{transform:none}.order-detail-card{width:calc(100% - 1rem);max-height:calc(100vh - 1rem);padding:1rem;border-radius:17px}.order-detail-content,.order-detail-grid{grid-template-columns:1fr}.order-detail-section{padding:.8rem}}
.sticky-table-clone{display:none;position:fixed;z-index:88;overflow:hidden;border-radius:0 0 10px 10px;background:var(--surface);box-shadow:0 10px 24px rgba(15,23,45,.14);pointer-events:none}.sticky-table-clone.visible{display:block}.sticky-table-clone table{margin:0!important;table-layout:fixed;border-collapse:collapse;transform-origin:left top}.sticky-table-clone thead th{position:static!important;height:auto!important;background:var(--surface)!important;box-shadow:inset 0 -1px 0 var(--line)!important}.date-operator-field select{min-width:175px}.dashboard-date-panel{margin-top:0}.adjustment-legend{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.adjustment-legend span{display:flex;align-items:center;gap:.3rem;padding:.35rem .5rem;border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:.62rem;font-weight:750;cursor:help}.adjustment-legend b{display:grid;place-items:center;min-width:18px;height:18px;border-radius:6px;background:var(--surface);color:var(--primary)}.general-sales-table td.adjustment-discount{color:var(--success)!important;font-size:.68rem;font-weight:850}.general-sales-table td.adjustment-surcharge{color:var(--danger)!important;font-size:.68rem;font-weight:850}
@media(max-width:980px){.dashboard-date-form{grid-template-columns:repeat(2,minmax(140px,1fr))}.dashboard-date-form .date-operator-field{grid-column:1/-1}}
@media(max-width:760px){.sticky-table-clone{display:none!important}.date-operator-field select{min-width:0}.adjustment-legend{align-items:stretch;display:grid;grid-template-columns:1fr}.dashboard-date-form .date-operator-field{grid-column:auto}}
.general-sales-table td.adjustment-shipping{color:var(--primary)!important;font-size:.68rem;font-weight:850}.receipt-section{padding:1rem!important}.order-receipt{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.order-receipt>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.72rem .85rem;border-bottom:1px solid var(--line);color:var(--muted)}.order-receipt>div:last-child{border:0}.order-receipt strong{color:var(--text);font-variant-numeric:tabular-nums}.order-receipt .receipt-meta{background:var(--surface-2);font-size:.72rem}.order-receipt .receipt-discount strong{color:var(--success)}.order-receipt .receipt-shipping strong{color:var(--primary)}.order-receipt .receipt-total{padding:.9rem 1rem;background:#080b12;color:#fff;font-size:1.15rem;font-weight:900}.order-receipt .receipt-total span,.order-receipt .receipt-total strong{color:#fff}

/* Análisis integral por producto */
.product-analysis-filter-panel{position:relative;overflow:visible}.product-analysis-filter-panel .panel-head{margin-bottom:1rem}.product-analysis-filter-panel h3{font-size:1.35rem;margin:.45rem 0 .2rem}.product-analysis-filters{display:grid;grid-template-columns:minmax(250px,1.7fr) repeat(3,minmax(145px,.65fr));gap:.8rem;align-items:end}.product-analysis-filters .analysis-search{grid-column:auto}.product-analysis-filters .advanced-filters{grid-column:1/-1}.product-analysis-filters>.actions{grid-column:1/-1}.product-profile-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(135deg,var(--surface) 62%,#eef0ff)}.product-profile-main{display:flex;align-items:center;gap:1.15rem;min-width:0}.product-profile-main>img,.product-profile-placeholder{width:112px;height:112px;flex:0 0 112px;border-radius:16px;object-fit:cover;background:var(--surface-2);border:1px solid var(--line)}.product-profile-placeholder{display:grid;place-items:center;font-size:2rem;color:var(--primary)}.product-profile-main h2{margin:.45rem 0 .35rem;font-size:clamp(1.35rem,2.5vw,2rem)}.product-profile-main p{max-width:760px;margin:.2rem 0;color:var(--muted);line-height:1.5}.product-identifiers{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.75rem}.product-identifiers>*{padding:.34rem .55rem;border-radius:8px;background:var(--surface-2);font-size:.74rem}.product-analysis-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.85rem;margin-bottom:1.35rem}.product-analysis-kpis article{display:grid;gap:.28rem;padding:1rem 1.05rem;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.product-analysis-kpis small,.product-analysis-kpis span{color:var(--muted);font-size:.72rem}.product-analysis-kpis strong{font-size:1.12rem;overflow-wrap:anywhere}.product-analysis-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:1.1rem}.product-analysis-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.product-monthly-chart{min-height:250px;display:flex;align-items:stretch;gap:.55rem;overflow-x:auto;padding:.75rem .2rem 0}.product-month-column{min-width:74px;flex:1;display:grid;grid-template-rows:minmax(170px,1fr) auto auto;gap:.3rem;text-align:center;cursor:help}.product-month-bars{height:100%;display:flex;align-items:end;justify-content:center;gap:.18rem;border-bottom:1px solid var(--line)}.product-month-bars i,.product-month-bars b{display:block;width:28%;min-height:3px;border-radius:5px 5px 0 0;background:linear-gradient(180deg,var(--primary),var(--primary-2))}.product-month-bars b{background:var(--success)}.product-month-column>strong{font-size:.73rem}.product-month-column>small{font-size:.66rem;color:var(--muted)}.legend-sales,.legend-profit{display:inline-block;width:9px;height:9px;border-radius:3px;background:var(--primary)}.legend-profit{background:var(--success)}.stock-gauge{width:180px;height:180px;margin:.6rem auto 1rem;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,var(--surface) 58%,transparent 59%),conic-gradient(var(--primary) var(--stock-progress),var(--surface-2) 0);border:1px solid var(--line)}.stock-gauge strong{font-size:1.8rem}.stock-gauge span{color:var(--muted);font-size:.72rem}.analysis-definition-list{display:grid;gap:.5rem;margin:0}.analysis-definition-list>div{display:flex;justify-content:space-between;gap:1rem;padding:.65rem .72rem;background:var(--surface-2);border-radius:9px}.analysis-definition-list dt{color:var(--muted);font-size:.72rem}.analysis-definition-list dd{margin:0;text-align:right;font-weight:750;font-size:.78rem;overflow-wrap:anywhere}.product-source-panel .analysis-definition-list>div{display:grid;gap:.25rem}.product-source-panel .analysis-definition-list dd{text-align:left}.cabys-analysis-check{margin-top:.85rem;width:100%}.cabys-analysis-result{min-height:1.1em;margin:.6rem 0 0;color:var(--muted);font-size:.75rem}.clickable-product-row{cursor:pointer}.clickable-product-row:hover,.clickable-product-row:focus-visible{background:#f0f3ff!important;outline:2px solid transparent}.product-analysis-table td{vertical-align:middle}.product-analysis-table .icon-button{white-space:nowrap}
@media(max-width:1180px){.product-analysis-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.product-analysis-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.product-analysis-grid.three>:last-child{grid-column:1/-1}}
@media(max-width:820px){.product-analysis-filters{grid-template-columns:1fr 1fr}.product-analysis-filters .analysis-search{grid-column:1/-1}.product-profile-hero,.product-profile-main{align-items:flex-start}.product-profile-hero{display:grid}.product-analysis-kpis{grid-template-columns:1fr 1fr}.product-analysis-grid,.product-analysis-grid.three{grid-template-columns:1fr}.product-analysis-grid.three>:last-child{grid-column:auto}}
@media(max-width:560px){.product-analysis-filters{grid-template-columns:1fr}.product-analysis-filters>*{grid-column:1!important}.product-profile-main{display:grid}.product-profile-main>img,.product-profile-placeholder{width:88px;height:88px;flex-basis:88px}.product-analysis-kpis{grid-template-columns:1fr}.product-month-column{min-width:66px}.product-analysis-table tbody tr{display:grid;padding:.85rem}.product-analysis-table td{display:flex;justify-content:space-between;gap:1rem;border:0!important;padding:.35rem 0}.product-analysis-table td:before{content:attr(data-label);font-weight:750;color:var(--muted)}.product-analysis-table td:first-child,.product-analysis-table td:last-child{display:block}.product-analysis-table td:last-child .icon-button{width:100%;margin-top:.35rem}}
@media(prefers-color-scheme:dark){.product-profile-hero{background:linear-gradient(135deg,var(--surface) 62%,#20284f)}.clickable-product-row:hover,.clickable-product-row:focus-visible{background:#252d53!important}.order-receipt .receipt-total{background:#05070c}}
.product-analysis-modal{display:grid;align-items:start;overflow:auto;padding:1.2rem}.product-analysis-modal-card{z-index:1;position:relative;width:min(1450px,calc(100% - 1rem));margin:auto;background:var(--bg);border-radius:22px;padding:1rem;box-shadow:0 35px 100px rgba(0,0,0,.35)}.product-analysis-modal-card>.panel:last-child{margin-bottom:0}.product-tag-list{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.65rem}.product-tag-list span{padding:.3rem .55rem;border-radius:999px;background:#eef0ff;color:var(--primary);font-size:.7rem;font-weight:800;cursor:help}.product-analysis-kpis:has(article:nth-child(6)){grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:1250px){.product-analysis-kpis:has(article:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.product-analysis-modal{padding:.35rem}.product-analysis-modal-card{width:100%;padding:.5rem;border-radius:16px}.product-analysis-kpis:has(article:nth-child(6)){grid-template-columns:1fr}}
.sales-stat-row{cursor:pointer}.sales-stat-row:hover,.sales-stat-row:focus-visible{background:#f0f3ff!important;outline:2px solid transparent}.sales-stat-card{max-width:880px}.recommendation-period{display:flex!important;align-items:end!important;gap:.65rem!important;flex-wrap:wrap}.recommendation-period label{min-width:150px}.recommendation-period .button{height:43px}@media(max-width:700px){.recommendation-period{display:grid!important;grid-template-columns:1fr!important;width:100%}.recommendation-period>*{width:100%}}@media(prefers-color-scheme:dark){.sales-stat-row:hover,.sales-stat-row:focus-visible{background:#252d53!important}}

/* Autocompletado visible y multi-etiqueta */
.field-editor:has([data-product-tags]){position:relative}
.tag-autocomplete{display:grid;gap:.25rem;margin-top:-.1rem;padding:.4rem;border:1px solid var(--line);border-radius:11px;background:var(--surface);box-shadow:0 14px 34px rgba(25,37,68,.13);max-height:260px;overflow:auto;z-index:12}
.tag-autocomplete[hidden]{display:none}
.tag-autocomplete-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.75rem;border:0;border-radius:8px;background:transparent;color:var(--text);padding:.55rem .65rem;text-align:left;cursor:pointer;font-size:.78rem;font-weight:750}
.tag-autocomplete-option:hover,.tag-autocomplete-option.active{background:#eef0ff;color:var(--primary)}
.tag-autocomplete-option small{color:var(--muted);font-size:.66rem;font-weight:700;white-space:nowrap}
.tag-autocomplete-empty{padding:.55rem .65rem;color:var(--muted);font-size:.73rem;font-weight:600}

/* Estimación de Precio Real de Venta y MSRP */
.pricing-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(135deg,var(--surface) 65%,#edf3ff)}.pricing-hero h2{margin:.45rem 0 .25rem;font-size:clamp(1.4rem,2.5vw,2rem)}.pricing-hero p{margin:0;color:var(--muted)}.pricing-readonly-badge{padding:.65rem .85rem;border-radius:11px;background:#fff3df;color:#8e520c;font-size:.75rem;font-weight:900}.pricing-cycle-bar{display:flex;align-items:end;justify-content:space-between;gap:1rem}.pricing-cycle-selector,.pricing-rate-form{display:flex;align-items:end;gap:.6rem}.pricing-cycle-selector label{min-width:260px}.pricing-rate-form label{min-width:220px}.pricing-frozen-rate{display:grid;text-align:right}.pricing-frozen-rate small{color:var(--muted)}.pricing-kpi-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.35rem}.pricing-kpi{min-height:132px;display:flex;align-items:center;gap:.85rem;padding:1.1rem;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.pricing-kpi>div{display:grid;gap:.25rem;min-width:0}.pricing-kpi small,.pricing-kpi span{color:var(--muted);font-size:.7rem}.pricing-kpi strong{font-size:clamp(1rem,1.7vw,1.45rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pricing-kpi-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:#eaf2ff;color:#2563eb;font-size:1.25rem}.pricing-kpi.nidux .pricing-kpi-icon{background:#e9f8f1;color:#149769}.pricing-kpi.net .pricing-kpi-icon{background:#f0ebff;color:#7956d8}.pricing-kpi.roi .pricing-kpi-icon{background:#fff0e6;color:#ea580c}.pricing-difference{position:absolute;z-index:2;left:25%;bottom:-35px;transform:translateX(-50%);min-width:250px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:.2rem .8rem;padding:.75rem 1rem;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:var(--shadow)}.pricing-difference small{grid-column:1/-1;color:var(--muted);font-size:.68rem;font-weight:800}.pricing-difference strong{font-size:1.05rem}.pricing-difference span{font-size:.78rem;font-weight:900}.pricing-difference.positive-difference strong,.pricing-difference.positive-difference span{color:var(--success)}.pricing-difference.negative-difference strong,.pricing-difference.negative-difference span{color:var(--danger)}.pricing-actions-row{margin-top:3.5rem;display:flex;gap:.8rem;align-items:end}.pricing-actions-row form{display:flex;gap:.7rem;align-items:end}.pricing-actions-row .success{background:linear-gradient(135deg,#168b60,#19a974);color:#fff}.pricing-actions-row .button small{display:block;margin-left:.45rem;opacity:.78}.pricing-filters{grid-template-columns:minmax(190px,1.4fr) repeat(3,minmax(130px,.7fr)) auto;margin-bottom:1rem}.pricing-table{min-width:1750px}.pricing-table td{font-variant-numeric:tabular-nums}.pricing-table td small{display:block;margin-top:.22rem;font-size:.62rem}.pricing-row-archived{opacity:.68}.pricing-row-actions{display:flex;align-items:center;gap:.25rem}.pricing-row-actions form{margin:0}.badge.success{background:#e8f8f1;color:#117650}.badge.warning{background:#fff3df;color:#9a570a}.negative-value{color:var(--danger)!important}.pricing-purchase-modal,.pricing-history-modal{align-items:start;padding:1rem;overflow:auto;background:rgba(7,12,24,.68);backdrop-filter:blur(5px)}.pricing-purchase-card,.pricing-history-card{width:min(1320px,calc(100% - 1rem));max-height:calc(100vh - 2rem);overflow:auto;margin:auto;padding:1.15rem;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 30px 100px rgba(0,0,0,.38)}.pricing-purchase-card>header,.pricing-history-card>header{position:sticky;z-index:8;top:-1.15rem;display:flex;align-items:center;justify-content:space-between;margin:-1.15rem -1.15rem 1rem;padding:1.1rem 1.15rem;border-bottom:1px solid var(--line);background:var(--surface)}.pricing-purchase-card h3,.pricing-history-card h3{margin:.35rem 0 0}.pricing-reuse-bar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.75rem 1rem;margin-bottom:1rem;border:1px solid #cfe0ff;border-radius:12px;background:#edf4ff;color:#244b88;font-size:.78rem;font-weight:750}.currency-segment{display:flex;gap:.35rem;width:max-content;margin:0 0 1rem;padding:.3rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.currency-segment legend{padding:0 .3rem;color:var(--muted);font-size:.7rem;font-weight:800}.currency-segment label{display:block;cursor:pointer}.currency-segment input{position:absolute;opacity:0;pointer-events:none}.currency-segment span{display:block;padding:.55rem 1rem;border-radius:9px}.currency-segment input:checked+span{background:var(--primary);color:#fff;box-shadow:0 4px 12px rgba(68,89,231,.25)}.pricing-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.pricing-form-grid label>span,.pricing-calculated>span{font-size:.72rem;font-weight:800;color:var(--text)}.pricing-form-grid label small,.pricing-calculated small{min-height:1em;color:var(--muted);font-size:.64rem;line-height:1.4}.pricing-product-field{position:relative}.pricing-suggestions{position:absolute;z-index:20;top:72px;left:0;right:0;display:grid;padding:.35rem;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 15px 40px rgba(10,20,40,.2)}.pricing-suggestions:empty{display:none}.pricing-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.65rem;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.pricing-suggestions button:hover{background:var(--surface-2)}.pricing-suggestions button span,.pricing-suggestions button strong,.pricing-suggestions button small{display:block}.pricing-suggestions button b{color:var(--success)}.pricing-suggestions .create-product-suggestion{color:var(--primary);font-weight:800}.pricing-calculated{display:grid;align-content:center;gap:.25rem;min-height:92px;padding:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.pricing-calculated strong{font-size:1.1rem}.pricing-result-card{border-color:#c8d4ff;background:#edf1ff}.pricing-purchase-card footer{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}.form-message{min-height:1.2em;color:var(--primary);font-size:.78rem;font-weight:750}.purchase-history-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.65rem;margin-bottom:1rem}.purchase-history-overview article{display:grid;gap:.2rem;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.purchase-history-overview small,.purchase-history-overview span{color:var(--muted);font-size:.62rem}.purchase-history-overview strong{font-size:1rem;overflow-wrap:anywhere}.purchase-history-analytics-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:1rem}.purchase-chart-card,.purchase-stat-detail{margin:0}.purchase-line-chart{min-height:250px;padding:.5rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);overflow:auto}.purchase-line-chart svg{display:block;width:100%;min-width:620px;height:auto}.purchase-line-chart polyline{fill:none;stroke:var(--series);stroke-width:2.3;vector-effect:non-scaling-stroke}.purchase-line-chart circle{fill:var(--series)}.chart-grid line{stroke:var(--line);stroke-width:1}.chart-grid text,.axis-label{fill:var(--muted);font-size:10px}.purchase-chart-legend{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.55rem}.purchase-chart-legend span{display:flex;align-items:center;gap:.3rem;color:var(--muted);font-size:.65rem}.purchase-chart-legend span:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--series)}.purchase-stat-list{display:grid;gap:.4rem;margin:0}.purchase-stat-list>div{display:grid;gap:.2rem;padding:.6rem;border-radius:9px;background:var(--surface-2)}.purchase-stat-list dt{color:var(--muted);font-size:.64rem}.purchase-stat-list dd{margin:0;font-size:.72rem;font-weight:800}.purchase-history-table-wrap{margin-top:1rem;max-height:480px}.purchase-history-table{min-width:2100px}.pricing-history-card{width:min(1500px,calc(100% - 1rem))}
@media(prefers-color-scheme:dark){.pricing-hero{background:linear-gradient(135deg,var(--surface) 65%,#20284f)}.pricing-readonly-badge{background:#3c3020;color:#f2ad52}.pricing-reuse-bar{border-color:#334b72;background:#1c2c46;color:#9fc3ff}.pricing-result-card{border-color:#364472;background:#20284f}.badge.success{background:#17372f;color:#73d6b2}.badge.warning{background:#3c3020;color:#f2ad52}}
@media(max-width:1180px){.pricing-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-difference{left:50%}.pricing-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-history-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-history-analytics-grid{grid-template-columns:1fr}}
@media(max-width:760px){.pricing-hero,.pricing-cycle-bar,.pricing-actions-row{align-items:stretch;flex-direction:column}.pricing-cycle-selector,.pricing-rate-form,.pricing-actions-row form{display:grid;grid-template-columns:1fr}.pricing-cycle-selector label,.pricing-rate-form label{min-width:0}.pricing-kpi-grid{grid-template-columns:1fr;padding-bottom:2.8rem}.pricing-difference{left:0;right:0;bottom:0;transform:none;min-width:0}.pricing-actions-row{margin-top:0}.pricing-form-grid{grid-template-columns:1fr}.pricing-purchase-modal,.pricing-history-modal{padding:.25rem}.pricing-purchase-card,.pricing-history-card{width:100%;max-height:calc(100vh - .5rem);padding:.8rem;border-radius:14px}.pricing-purchase-card>header,.pricing-history-card>header{top:-.8rem;margin:-.8rem -.8rem .8rem;padding:.85rem}.pricing-reuse-bar{align-items:stretch;flex-direction:column}.purchase-history-overview{grid-template-columns:1fr 1fr}.pricing-table-wrap,.purchase-history-table-wrap{overflow:visible;max-height:none}.pricing-table,.purchase-history-table{min-width:0}.pricing-table thead,.purchase-history-table thead{display:none}.pricing-table tbody,.pricing-table tr,.purchase-history-table tbody,.purchase-history-table tr{display:grid}.pricing-table tr,.purchase-history-table tr{margin-bottom:.8rem;padding:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.pricing-table td,.purchase-history-table td{display:flex;justify-content:space-between;gap:1rem;border:0;padding:.35rem}.pricing-table td[data-label]::before,.purchase-history-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:.65rem;font-weight:800}}
.pricing-filters{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.pricing-net-field{display:grid;align-content:start;gap:.35rem}.pricing-net-field .button{width:100%;min-height:34px;padding:.45rem .65rem}.pricing-net-field>small{color:var(--muted);font-size:.64rem;line-height:1.4}
/* Modal de compra: flujo financiero inspirado en las hojas de importación */
.pricing-purchase-card{width:min(1460px,calc(100% - 1rem));padding:0;overflow:auto}.pricing-purchase-card>.pricing-modal-head{top:0;margin:0;padding:1rem 1.25rem}.pricing-modal-head>div{min-width:0}.pricing-modal-head h3{font-size:1.2rem}.pricing-modal-head p{margin:.25rem 0 0;color:var(--muted);font-size:.72rem}.pricing-purchase-card>form{padding:0 1.25rem 1.15rem}.pricing-modal-toolbar{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;margin:1rem 0}.pricing-modal-toolbar .pricing-reuse-bar{margin:0;min-height:70px}.pricing-reuse-bar>div{display:grid;gap:.18rem}.pricing-reuse-bar strong{color:inherit;font-size:.78rem}.pricing-reuse-bar span{font-size:.68rem;font-weight:650;opacity:.85}.pricing-modal-toolbar .currency-segment{align-self:stretch;align-content:center;margin:0}.pricing-workbook-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(360px,.75fr);align-items:start;gap:1rem}.pricing-input-column,.pricing-output-column{display:grid;gap:1rem}.pricing-sheet-section{overflow:visible;border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:0 5px 18px rgba(18,31,58,.045)}.pricing-sheet-section>header{display:flex;align-items:center;gap:.7rem;padding:.8rem .9rem;border-bottom:1px solid var(--line);background:var(--surface-2);border-radius:15px 15px 0 0}.pricing-sheet-section>header>div{min-width:0}.pricing-sheet-section h4{margin:0;color:var(--text);font-size:.84rem}.pricing-sheet-section header p{margin:.15rem 0 0;color:var(--muted);font-size:.63rem;line-height:1.35}.pricing-section-index{display:grid;place-items:center;width:30px;height:30px;flex:0 0 auto;border-radius:9px;background:var(--primary);color:#fff;font-size:.65rem;font-weight:900;box-shadow:0 4px 10px rgba(68,89,231,.22)}.pricing-section-grid{display:grid;gap:.75rem;padding:.9rem}.pricing-section-grid-primary{grid-template-columns:repeat(3,minmax(0,1fr))}.pricing-section-grid-costs{grid-template-columns:repeat(3,minmax(0,1fr))}.pricing-section-grid-rates{grid-template-columns:repeat(4,minmax(0,1fr))}.pricing-section-grid label,.pricing-price-panel label,.pricing-msrp-card label{display:grid;align-content:start;gap:.35rem;min-width:0}.pricing-section-grid label>span,.pricing-price-panel label>span,.pricing-msrp-card label>span{color:var(--text);font-size:.69rem;font-weight:850}.pricing-section-grid label>small,.pricing-price-panel label>small,.pricing-msrp-card>small{min-height:1em;color:var(--muted);font-size:.61rem;line-height:1.35}.pricing-span-2{grid-column:span 2}.pricing-target-field{padding:.55rem;border:1px solid #cfd7ff;border-radius:11px;background:#f2f4ff}.pricing-output-column{position:sticky;top:84px}.pricing-cost-bridge dl{display:grid;margin:0;padding:.55rem .9rem .8rem}.pricing-cost-bridge dl>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.56rem 0;border-bottom:1px dashed var(--line)}.pricing-cost-bridge dt{color:var(--muted);font-size:.66rem}.pricing-cost-bridge dd{margin:0;color:var(--text);font-size:.75rem;font-weight:850;font-variant-numeric:tabular-nums}.pricing-cost-bridge .pricing-bridge-total{margin-top:.2rem;border-bottom:0}.pricing-cost-bridge .pricing-bridge-total dt,.pricing-cost-bridge .pricing-bridge-total dd{color:var(--text);font-weight:900}.pricing-cost-bridge .pricing-bridge-unit{margin:.15rem 0 0;padding:.75rem;border:1px solid #cbd5ff;border-radius:11px;background:#edf1ff}.pricing-cost-bridge .pricing-bridge-unit dt{display:grid;gap:.15rem;color:#3346aa;font-weight:850}.pricing-cost-bridge .pricing-bridge-unit dt small{font-size:.56rem;font-weight:650;line-height:1.3}.pricing-cost-bridge .pricing-bridge-unit dd{color:#263bba;font-size:1.05rem}.pricing-bridge-stats{padding:0 .9rem .9rem}.pricing-bridge-stats h5{margin:.1rem 0 .55rem;color:var(--muted);font-size:.62rem;text-transform:uppercase;letter-spacing:.04em}.pricing-bridge-stats>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.pricing-bridge-stats article{display:grid;gap:.15rem;padding:.55rem .6rem;border-radius:9px;background:var(--surface-2)}.pricing-bridge-stats article span{color:var(--muted);font-size:.56rem;line-height:1.25}.pricing-bridge-stats article strong{font-size:.69rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pricing-price-panel{padding-bottom:.85rem}.pricing-price-panel>label,.pricing-price-panel>.button,.pricing-price-panel>.pricing-tax-row{margin-left:.9rem;margin-right:.9rem}.pricing-prominent-field{margin-top:.85rem}.pricing-prominent-field input{font-size:1.12rem;font-weight:900;border-color:#aab8ff;background:#f8f9ff}.pricing-recalculate-button{width:calc(100% - 1.8rem);margin-top:.2rem!important}.pricing-tax-row{display:grid;grid-template-columns:1fr auto;gap:.2rem .6rem;margin-top:.75rem;padding:.7rem;border-radius:10px;background:var(--surface-2)}.pricing-tax-row span{color:var(--muted);font-size:.65rem}.pricing-tax-row strong{font-size:.8rem}.pricing-tax-row small{grid-column:1/-1;color:var(--muted);font-size:.61rem}.pricing-msrp-panel{padding-bottom:.85rem}.pricing-msrp-card{display:grid;gap:.45rem;margin:.8rem .9rem 0;padding:.72rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.pricing-msrp-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.pricing-msrp-heading>span{font-size:.7rem;font-weight:900}.pricing-msrp-heading b{padding:.25rem .42rem;border-radius:999px;background:#e7f8ef;color:#117650;font-size:.56rem}.pricing-msrp-card input{font-weight:850}.pricing-msrp-card>button{justify-self:start;padding:0;border:0;background:transparent;color:var(--primary);font-size:.61rem;font-weight:850;cursor:pointer}.pricing-msrp-card[data-manual="true"]{border-color:#e2c681;background:#fff9e9}.pricing-msrp-card[data-manual="true"] .pricing-msrp-heading b{background:#fff0c2;color:#85570a}.pricing-result-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:1rem}.pricing-result-strip article{display:grid;gap:.2rem;padding:.8rem .9rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.pricing-result-strip article:first-child{border-color:#cbd5ff;background:#edf1ff}.pricing-result-strip span{color:var(--muted);font-size:.63rem;font-weight:750}.pricing-result-strip strong{font-size:1rem;font-variant-numeric:tabular-nums}.pricing-result-strip small{color:var(--muted);font-size:.58rem}.pricing-purchase-card .form-message{margin:.7rem 0 0}.pricing-purchase-card footer{position:sticky;z-index:7;bottom:0;display:grid;grid-template-columns:1fr auto auto;align-items:center;margin:1rem -1.25rem -1.15rem;padding:.85rem 1.25rem;background:var(--surface)}.pricing-purchase-card footer>div{display:grid;gap:.15rem}.pricing-purchase-card footer>div strong{font-size:.67rem}.pricing-purchase-card footer>div small{color:var(--muted);font-size:.59rem}
@media(prefers-color-scheme:dark){.pricing-target-field{border-color:#3a4776;background:#20284f}.pricing-cost-bridge .pricing-bridge-unit{border-color:#3a4776;background:#20284f}.pricing-cost-bridge .pricing-bridge-unit dt,.pricing-cost-bridge .pricing-bridge-unit dd{color:#aebcff}.pricing-prominent-field input{border-color:#465794;background:#171d35}.pricing-msrp-card[data-manual="true"]{border-color:#705a2d;background:#332a19}.pricing-msrp-card[data-manual="true"] .pricing-msrp-heading b{background:#493a1f;color:#f2bd57}.pricing-result-strip article:first-child{border-color:#3a4776;background:#20284f}.pricing-msrp-heading b{background:#17372f;color:#73d6b2}}
@media(max-width:1120px){.pricing-workbook-layout{grid-template-columns:1fr}.pricing-output-column{position:static;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.pricing-msrp-panel{grid-column:1/-1}.pricing-section-grid-costs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.pricing-purchase-card{padding:0}.pricing-purchase-card>.pricing-modal-head{top:0;margin:0;padding:.85rem}.pricing-purchase-card>form{padding:0 .75rem .75rem}.pricing-modal-toolbar{grid-template-columns:1fr}.pricing-modal-toolbar .currency-segment{width:100%}.pricing-modal-toolbar .currency-segment label{flex:1}.pricing-modal-toolbar .currency-segment span{text-align:center}.pricing-section-grid-primary,.pricing-section-grid-costs,.pricing-section-grid-rates,.pricing-output-column,.pricing-result-strip{grid-template-columns:1fr}.pricing-span-2{grid-column:auto}.pricing-sheet-section>header{align-items:flex-start}.pricing-output-column .pricing-msrp-panel{grid-column:auto}.pricing-purchase-card footer{bottom:0;grid-template-columns:1fr 1fr;margin:1rem -.75rem -.75rem;padding:.75rem}.pricing-purchase-card footer>div{grid-column:1/-1}.pricing-purchase-card footer .button{width:100%}.pricing-reuse-bar .button{width:100%}}
.tag-autocomplete-hint{padding:.35rem .65rem .2rem;color:var(--muted);font-size:.66rem;border-top:1px solid var(--line)}
.pricing-tax-tag{display:inline-flex;align-items:center;margin-left:.28rem;padding:.13rem .34rem;border:1px solid #cbd5ff;border-radius:999px;background:#eef1ff;color:#3d50bd;font-size:.5rem;font-style:normal;font-weight:900;line-height:1;white-space:nowrap;vertical-align:middle}.pricing-tax-tag-neutral{border-color:var(--line);background:var(--surface-2);color:var(--muted)}.pricing-tax-tag-calculated{border-color:#f1d59a;background:#fff6df;color:#8c5b0c}.pricing-tax-tag-included{border-color:#a9dfc8;background:#e9f8f1;color:#117650}
.pricing-extra-stats .pricing-bridge-stats{padding:.9rem}.pricing-extra-stats .pricing-bridge-stats>div{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(prefers-color-scheme:dark){.pricing-tax-tag{border-color:#3e4d83;background:#222b50;color:#b9c4ff}.pricing-tax-tag-neutral{border-color:var(--line);background:var(--surface-2);color:var(--muted)}.pricing-tax-tag-calculated{border-color:#69552d;background:#382e1c;color:#f2bd57}.pricing-tax-tag-included{border-color:#285945;background:#17372f;color:#73d6b2}}
@media(max-width:760px){.pricing-extra-stats .pricing-bridge-stats>div{grid-template-columns:1fr 1fr}}
@media(prefers-color-scheme:dark){.tag-autocomplete-option:hover,.tag-autocomplete-option.active{background:#252d53}}
@media(max-width:760px){.tag-autocomplete{max-height:220px}.tag-autocomplete-option{padding:.65rem .7rem}}

/* POS Simulation v7 */
.pos-shell{display:flex;flex-direction:column;gap:1.25rem}
.pos-header{align-items:flex-start;justify-content:space-between;gap:1rem}
.pos-shortcuts{display:flex;gap:.65rem;flex-wrap:wrap;color:var(--muted,#667085);font-size:.92rem}
.pos-shortcuts kbd{background:#fff;border:1px solid rgba(15,23,42,.15);border-bottom-width:2px;border-radius:.45rem;padding:.15rem .45rem;font-family:inherit;font-weight:700}
.pos-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.pos-metrics article{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);border:1px solid rgba(15,23,42,.08);border-radius:1rem;padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.3rem;box-shadow:0 10px 26px rgba(15,23,42,.05)}
.pos-metrics strong{font-size:1.3rem;color:#111827}
.pos-metrics span{font-size:.92rem;color:#667085}
.pos-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(340px,.9fr);gap:1.25rem;align-items:start}
.pos-catalog-area,.pos-cart-area,.pos-history{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:1.25rem;padding:1rem;box-shadow:0 14px 30px rgba(15,23,42,.06)}
.pos-cart-area{position:sticky;top:1rem;display:flex;flex-direction:column;gap:1rem}
.pos-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.pos-search-wrap{display:flex;gap:.75rem;flex:1;min-width:0}.pos-search-wrap .input{flex:1}
.pos-actions-inline{display:flex;gap:.65rem;flex-wrap:wrap}
.pos-categories{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}
.category-pill{border:1px solid rgba(15,23,42,.10);background:#f8fafc;color:#334155;border-radius:999px;padding:.55rem .9rem;font-weight:600;cursor:pointer}
.category-pill.active{background:#162447;color:#fff;border-color:#162447;box-shadow:0 8px 20px rgba(22,36,71,.18)}
.pos-search-status{font-size:.93rem;color:#475467;margin:.5rem 0 1rem}
.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}
.pos-card{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:1.15rem;padding:.85rem;cursor:pointer;text-align:left;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.pos-card:hover{transform:translateY(-2px);border-color:#2a9d8f;box-shadow:0 14px 28px rgba(42,157,143,.12)}
.pos-card-sku{display:inline-flex;padding:.22rem .55rem;border-radius:999px;background:#eef2ff;color:#2563eb;font-size:.76rem;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pos-card-media{width:100%;aspect-ratio:1/1;background:#f8fafc;border-radius:.9rem;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(15,23,42,.05)}
.pos-card-media img{width:100%;height:100%;object-fit:cover}.pos-card-media span{font-size:2rem;color:#94a3b8}
.pos-card strong{font-size:1rem;line-height:1.25;color:#0f172a}.pos-card small{color:#667085;line-height:1.3}.pos-card b{font-size:1.05rem;color:#111827}
.pos-cart-header,.pos-ticket-actions{display:flex;justify-content:space-between;gap:.75rem;align-items:center}.pos-cart-header h3{margin:0}.pos-cart-header p{margin:.15rem 0 0;color:#667085}
.pos-cart-tools{display:flex;gap:.5rem}
.pos-customer-box{background:#f8fafc;border:1px solid rgba(15,23,42,.06);border-radius:1rem;padding:.9rem}
.field-grid{display:grid;gap:.8rem}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.compact{gap:.7rem}
.field-grid label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:#344054;font-weight:600}.field-grid span{font-size:.82rem;color:#667085}
.pos-lines{display:flex;flex-direction:column;gap:.8rem;max-height:36rem;overflow:auto;padding-right:.1rem}
.pos-line{display:grid;grid-template-columns:minmax(0,1fr) 86px 110px auto;gap:.65rem;align-items:center;padding:.8rem;border:1px solid rgba(15,23,42,.08);border-radius:1rem;background:#fff}
.pos-line-main{display:flex;flex-direction:column;gap:.22rem;min-width:0}.pos-line-main strong{font-size:.97rem;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-line-main small{color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-line input{width:100%}.pos-line-total{text-align:right;font-weight:800;color:#0f172a;min-width:95px}
.pos-line-remove{border:none;background:#fff1f2;color:#be123c;border-radius:.8rem;padding:.55rem .65rem;cursor:pointer;font-weight:700}
.pos-empty{padding:1.4rem;border:1px dashed rgba(15,23,42,.14);border-radius:1rem;color:#667085;text-align:center;background:#fafafa}
.pos-cash-grid .input[readonly]{background:#f8fafc;font-weight:700}
.pos-totals{display:flex;flex-direction:column;gap:.45rem;padding:.95rem 1rem;border-radius:1rem;background:#0f172a;color:#e2e8f0}
.pos-totals div{display:flex;justify-content:space-between;gap:1rem}.pos-totals .grand{padding-top:.35rem;margin-top:.1rem;border-top:1px dashed rgba(226,232,240,.28)}.pos-totals .grand strong{font-size:1.2rem;color:#fff}
.pos-sale-actions{display:flex;gap:.7rem;flex-wrap:wrap}.pos-sale-actions .button{flex:1}
.pos-helper{font-size:.9rem;color:#667085;margin:0}
.pos-history{margin-top:1rem}.panel-header.slim{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.9rem}.pos-history-tools{display:flex;gap:.75rem;flex-wrap:wrap}
.pos-history-table td:last-child,.pos-history-table th:last-child{text-align:right}
.pos-ticket-dialog{width:min(980px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto;background:#fff;border-radius:1.25rem;padding:1rem;position:relative;z-index:2;box-shadow:0 24px 60px rgba(15,23,42,.25)}
#posTicketModal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:1rem;z-index:999}#posTicketModal.open{display:flex}.modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.modal-header.compact{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.modal-header.compact h3{margin:0}.modal-header.compact p{margin:.15rem 0 0}
.pos-ticket-preview-wrap{display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:1rem;align-items:start}
#posTicketCanvas{width:100%;height:auto;border:1px solid rgba(15,23,42,.08);border-radius:.75rem;background:#fff}.pos-ticket-html{background:#fcfcfd;border:1px solid rgba(15,23,42,.08);border-radius:1rem;padding:1rem;min-height:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;line-height:1.4;font-size:1rem;color:#111827}
.pos-history-hidden{display:none}.pos-toast{position:fixed;right:1rem;bottom:1rem;z-index:1000;background:#111827;color:#fff;padding:.85rem 1rem;border-radius:.85rem;box-shadow:0 14px 30px rgba(15,23,42,.2);opacity:0;transform:translateY(12px);transition:.2s ease;pointer-events:none;font-size:.95rem}.pos-toast.visible{opacity:1;transform:translateY(0)}
.pos-inline-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.18rem .45rem;border-radius:999px;background:#eef6ff;color:#2563eb;font-size:.76rem;font-weight:700}
@media (max-width: 1180px){.pos-layout{grid-template-columns:1fr}.pos-cart-area{position:static}.pos-ticket-preview-wrap{grid-template-columns:1fr}}
@media (max-width: 780px){.pos-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.two{grid-template-columns:1fr}.pos-toolbar,.panel-header.slim,.pos-ticket-actions{flex-direction:column;align-items:stretch}.pos-search-wrap{flex-direction:column}.pos-line{grid-template-columns:1fr 1fr}.pos-line-total{grid-column:span 2;text-align:left}.pos-line-remove{grid-column:span 2}.pos-card{padding:.75rem}.pos-ticket-dialog{padding:.85rem}}
@media (max-width: 520px){.pos-metrics{grid-template-columns:1fr}.pos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-card strong{font-size:.92rem}.pos-card b{font-size:1rem}.pos-line{grid-template-columns:1fr}.pos-line-total,.pos-line-remove{grid-column:auto}.pos-grid,.pos-categories{gap:.65rem}}

/* =========================================================
   POS Simulation v9
   ========================================================= */
.pos-title-only{display:flex;align-items:center;min-height:46px}.pos-title-only h2{margin:0;font-size:1.35rem;color:#0f172a}
.pos-customer-strip{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:1rem;padding:1rem;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.pos-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.pos-sale-settings{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem;background:#f8fafc;border:1px solid rgba(15,23,42,.07);border-radius:1rem;padding:.9rem}
.pos-sale-settings label,.pos-auto-reference{display:flex;flex-direction:column;gap:.35rem;min-width:0}.pos-sale-settings label>span,.pos-auto-reference>span{font-size:.76rem;color:#667085;font-weight:700}.pos-auto-reference{justify-content:center;padding:.65rem .8rem;border-radius:.85rem;background:#fff;border:1px solid rgba(15,23,42,.07)}.pos-auto-reference strong{font-size:.9rem;color:#344054}
.pos-layout{grid-template-columns:minmax(0,1.48fr) minmax(390px,.92fr)}
.pos-catalog-area{min-height:680px}.pos-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}
.pos-card-price{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.pos-usd-equivalent{display:inline-flex;align-items:center;border-radius:999px;padding:.2rem .48rem;font-size:.72rem;font-weight:800;background:linear-gradient(135deg,#e0f2fe 0%,#eef2ff 45%,#f5f3ff 100%);color:#3156a3;border:1px solid rgba(79,70,229,.12);white-space:nowrap}
.pos-infinite-sentinel{display:flex;align-items:center;justify-content:center;min-height:54px;color:#667085;font-size:.85rem;margin-top:.75rem}.pos-infinite-sentinel.done{opacity:.7}
.pos-cart-area{min-width:0}.pos-cart-header{padding:.25rem .05rem .55rem;border-bottom:1px solid rgba(15,23,42,.07)}
.pos-lines{max-height:44rem;gap:.9rem}
.pos-line{grid-template-columns:minmax(170px,1.5fr) 76px 112px 80px 94px minmax(120px,.78fr) 38px;gap:.62rem;min-height:104px;padding:1rem .9rem;border-radius:1.05rem;align-items:center}
.pos-line-main strong{font-size:1rem}.pos-line-main small{font-size:.78rem}.pos-mini-field{display:flex;flex-direction:column;gap:.25rem;min-width:0}.pos-mini-field span{font-size:.65rem;color:#667085;font-weight:750}.pos-mini-field .input{min-width:0;padding:.62rem .55rem}
.pos-line-total{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;text-align:right;min-width:0}.pos-line-total strong{font-size:.98rem}.pos-line-total small{font-size:.7rem;color:#b42318}
.pos-line-remove{width:34px;height:34px;padding:0;border-radius:50%;font-size:1.2rem;display:grid;place-items:center;align-self:center}
.pos-totals .pos-usd-total{margin-top:.2rem;padding-top:.35rem;border-top:1px dashed rgba(226,232,240,.16)}.pos-totals .pos-usd-total strong{background:linear-gradient(90deg,#93c5fd,#c4b5fd);-webkit-background-clip:text;background-clip:text;color:transparent}
.pos-history-actions{display:flex;justify-content:flex-end;gap:.4rem;align-items:center}.pos-check-col{width:44px;text-align:center!important}.button.danger,.icon-button.danger{background:#fff1f2!important;color:#be123c!important;border-color:#fecdd3!important}.button.danger:disabled{opacity:.45;cursor:not-allowed}
.pos-history-table th:last-child,.pos-history-table td:last-child{position:static!important}

/* Condición fiscal de la venta, ubicada inmediatamente antes de las acciones. */
.pos-tax-mode{margin-top:.75rem;padding:.75rem .85rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);transition:border-color .15s,background .15s}
.pos-tax-mode label{display:flex;align-items:center;gap:.7rem;cursor:pointer}
.pos-tax-mode input{width:20px;height:20px;margin:0;flex:0 0 auto;accent-color:var(--primary);cursor:pointer}
.pos-tax-mode span,.pos-tax-mode strong,.pos-tax-mode small{display:block}
.pos-tax-mode strong{color:var(--text);font-size:.82rem}
.pos-tax-mode small{margin-top:.12rem;color:var(--muted);font-size:.7rem;line-height:1.35}
.pos-tax-mode.without-tax{border-color:color-mix(in srgb,var(--warning) 45%,var(--line));background:color-mix(in srgb,var(--warning) 9%,var(--surface))}
.pos-tax-mode.without-tax strong{color:var(--warning)}
.pos-tax-mode+.pos-sale-actions{margin-top:.55rem}
@media(max-width:600px){.pos-tax-mode{padding:.7rem}.pos-tax-mode+.pos-sale-actions{display:grid;grid-template-columns:1fr 1fr}.pos-tax-mode+.pos-sale-actions .button{width:100%}}

/* Métodos y división de pagos */
.pos-payment-dialog{width:min(980px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;background:#fff;border-radius:1.25rem;padding:1rem;position:relative;z-index:2;box-shadow:0 24px 60px rgba(15,23,42,.28)}
.pos-payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:.5rem 0 1rem}.pos-payment-summary>div{display:flex;flex-direction:column;gap:.18rem;padding:.85rem 1rem;border-radius:.9rem;background:#f8fafc;border:1px solid rgba(15,23,42,.07)}.pos-payment-summary span{font-size:.76rem;color:#667085}.pos-payment-summary strong{font-size:1.2rem}.pos-payment-summary .remaining{background:#eef6ff}.pos-payment-summary .remaining.over{background:#fff1f2;color:#b42318}
.pos-payment-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:.65rem;margin-bottom:1rem}.pos-payment-method{border:1px solid rgba(15,23,42,.1);background:#fff;border-radius:1rem;padding:.8rem .55rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;cursor:pointer;min-height:84px;transition:.15s ease}.pos-payment-method:hover{transform:translateY(-1px);border-color:#4f46e5;box-shadow:0 8px 18px rgba(79,70,229,.1)}.pos-payment-method span{font-size:1.55rem}.pos-payment-method small{font-size:.75rem;font-weight:800;color:#344054;text-align:center}
.pos-payment-splits{display:flex;flex-direction:column;gap:.7rem}.pos-payment-split{border:1px solid rgba(15,23,42,.08);border-radius:1rem;padding:.8rem;background:#fcfcfd}.pos-payment-split-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.6rem}.pos-payment-split-head strong{display:flex;align-items:center;gap:.4rem}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-payment-footer{position:sticky;bottom:-1rem;background:#fff;border-top:1px solid rgba(15,23,42,.08);margin:1rem -1rem -1rem;padding:.85rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.pos-payment-footer p{margin:0;color:#667085;font-size:.9rem}

/* Producto custom */
.pos-custom-dialog{width:min(620px,calc(100vw - 2rem));background:#fff;border-radius:1.15rem;padding:1rem;position:relative;z-index:2;box-shadow:0 24px 60px rgba(15,23,42,.28)}

/* Escáner POS */
.pos-scanner-dialog{width:min(620px,calc(100vw - 2rem));background:#fff;border-radius:1.2rem;padding:1rem;position:relative;z-index:2;box-shadow:0 24px 60px rgba(15,23,42,.28)}.pos-scanner-input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.pos-scanner-stage{min-height:230px;border:1px dashed rgba(15,23,42,.14);border-radius:1.1rem;background:#f8fafc;display:grid;place-items:center;padding:1rem;transition:.15s ease}.pos-scanner-stage.success{background:#ecfdf3;border-style:solid;border-color:#86efac}.pos-scanner-stage.success.repeat{background:#dcfce7;border-color:#4ade80}.pos-scanner-stage.error{background:#fff1f2;border-style:solid;border-color:#fecdd3}
.pos-scanner-wait{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;color:#475467}.pos-scanner-wait>span{font-size:2rem}.scanner-beam{animation:scannerPulse 1.2s ease-in-out infinite}.pos-scanner-result{display:grid;grid-template-columns:92px 1fr;gap:1rem;align-items:center;width:100%}.pos-scanner-result img,.scanner-product-placeholder{width:92px;height:92px;border-radius:1rem;object-fit:cover;background:#fff;display:grid;place-items:center;font-size:2rem;color:#16a34a}.pos-scanner-result div{display:flex;flex-direction:column;gap:.3rem}.pos-scanner-result strong{font-size:1.08rem}.pos-scanner-result small{color:#667085}.pos-scanner-result b{color:#15803d;font-size:.9rem}.pos-scanner-countdown{display:grid;grid-template-columns:auto 1fr;gap:.7rem;align-items:center;margin-top:.75rem}.pos-scanner-countdown span{font-size:.78rem;color:#667085}.pos-scanner-countdown i{height:7px;background:#eef2f7;border-radius:999px;overflow:hidden}.pos-scanner-countdown b{display:block;height:100%;background:#22c55e;transition:width .1s linear}@keyframes scannerPulse{50%{transform:scale(1.12);opacity:.55}}

/* Tiquete */
.pos-ticket-html{font-size:.9rem;line-height:1.45;overflow:auto;white-space:pre;background:#fff}.pos-ticket-preview-wrap{align-items:start}.pos-ticket-actions{margin-bottom:.8rem}

/* Detalle de orden: tarjetas alineadas y resumen en fila completa */
#generalOrderDetailModal .order-detail-content{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:.7rem!important}
#generalOrderDetailModal .order-detail-section{height:100%;min-width:0;display:flex;flex-direction:column}
#generalOrderDetailModal .order-detail-section .order-detail-grid{grid-template-columns:1fr!important;align-content:start;flex:1}
#generalOrderDetailModal .receipt-section{grid-column:1/-1!important;height:auto}
#generalOrderDetailModal .receipt-section .order-receipt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .8rem}
#generalOrderDetailModal .receipt-section .order-receipt>div{margin:0;border-radius:.65rem;background:#fff;border:1px solid rgba(15,23,42,.06)}
#generalOrderDetailModal .receipt-section .order-receipt .receipt-total{grid-column:1/-1;background:#eef2ff}

@media(max-width:1250px){.pos-sale-settings{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-layout{grid-template-columns:1fr}.pos-cart-area{position:static}.pos-line{grid-template-columns:minmax(180px,1.4fr) 76px 112px 80px 94px minmax(120px,.7fr) 38px}#generalOrderDetailModal .order-detail-content{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:850px){.pos-customer-grid{grid-template-columns:1fr 1fr!important}.pos-sale-settings{grid-template-columns:1fr 1fr}.pos-line{grid-template-columns:1fr 90px 110px 38px}.pos-line .pos-mini-field:nth-of-type(3),.pos-line .pos-mini-field:nth-of-type(4){grid-row:2}.pos-line-total{grid-column:1/4;align-items:flex-start;text-align:left}.pos-payment-summary{grid-template-columns:1fr 1fr}.pos-payment-summary .remaining{grid-column:1/-1}.field-grid.three{grid-template-columns:1fr 1fr}.pos-payment-footer{flex-direction:column;align-items:stretch}#generalOrderDetailModal .receipt-section .order-receipt{grid-template-columns:1fr}}
@media(max-width:600px){.pos-customer-grid,.pos-sale-settings{grid-template-columns:1fr!important}.pos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-line{grid-template-columns:1fr 38px;min-height:0}.pos-line-main{grid-column:1}.pos-line-remove{grid-column:2;grid-row:1}.pos-line .pos-mini-field{grid-column:1/-1!important;grid-row:auto!important}.pos-line-total{grid-column:1/-1!important}.pos-payment-summary{grid-template-columns:1fr}.pos-payment-summary .remaining{grid-column:auto}.field-grid.three{grid-template-columns:1fr}.pos-payment-methods{grid-template-columns:repeat(3,minmax(0,1fr))}#generalOrderDetailModal .order-detail-content{grid-template-columns:1fr!important}}
.pos-scanner-stage.found{background:#eff6ff;border-style:solid;border-color:#93c5fd}.pos-scanner-stage.found .pos-scanner-result b{color:#2563eb}

/* =========================================================
   POS + General Sales v10
   ========================================================= */

/* Cliente POS plegable: el bloque completo funciona como módulo, sin flecha. */
.pos-customer-strip{padding:0!important;overflow:hidden}
.pos-customer-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:68px;padding:.85rem 1rem;cursor:pointer;user-select:none;background:#fff;transition:background .15s ease}
.pos-customer-toggle:hover,.pos-customer-toggle:focus-visible{background:#fafbff;outline:none}
.pos-customer-toggle::after{content:"";position:absolute;right:.72rem;top:.55rem;width:20px;height:20px;border-top:3px solid rgba(79,70,229,.38);border-right:3px solid rgba(79,70,229,.38);border-top-right-radius:10px}
.pos-customer-toggle>div{min-width:0}.pos-customer-toggle h3{margin:0;font-size:1rem;color:#0f172a}.pos-customer-toggle p{margin:.15rem 0 0;font-size:.8rem;color:#667085}
.pos-customer-toggle>span{margin-right:2rem;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.35rem .65rem;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.76rem;font-weight:800}
.pos-customer-body{padding:.15rem 1rem 1rem;border-top:1px solid rgba(15,23,42,.06)}
.pos-customer-strip.collapsed .pos-customer-toggle{min-height:60px}.pos-customer-strip.collapsed .pos-customer-toggle p{display:none}

/* Catálogo: precio oficial neto y precio final calculado con el IVA actual. */
.pos-card-price{width:100%;display:flex;align-items:center;gap:.38rem;flex-wrap:wrap}.pos-card-price>small{font-size:.65rem;color:#667085;font-weight:700}
.pos-card-final{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.35rem;padding-top:.45rem;margin-top:.1rem;border-top:1px dashed rgba(15,23,42,.09)}
.pos-card-final>span{font-size:.67rem;color:#667085;font-weight:750}.pos-card-final>strong{font-size:.88rem;color:#111827;text-align:right}.pos-card-final .pos-usd-equivalent{justify-self:end}

/* Línea del tiquete: cantidad + nombre arriba; precio, descuento y valor debajo. */
.pos-lines{gap:.9rem}
.pos-line{display:flex!important;flex-direction:column!important;gap:.75rem!important;min-height:132px!important;padding:1rem!important;align-items:stretch!important;overflow:visible}
.pos-line-head{display:grid;grid-template-columns:76px minmax(0,1fr) 34px;gap:.7rem;align-items:center;width:100%}
.pos-quantity-inline{display:flex;flex-direction:column;gap:.22rem}.pos-quantity-inline>span{font-size:.66rem;color:#667085;font-weight:800}.pos-quantity-inline .input{width:100%;padding:.62rem .5rem}
.pos-line-main{min-width:0}.pos-line-main strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:block;font-size:1rem;line-height:1.3}.pos-line-main small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:block;margin-top:.18rem}
.pos-line-remove{grid-column:3;width:32px!important;height:32px!important;align-self:center!important}
.pos-line-detail-grid{display:grid;grid-template-columns:minmax(125px,.9fr) minmax(220px,1.45fr) minmax(135px,.9fr);gap:.75rem;align-items:end;width:100%;padding-top:.65rem;border-top:1px solid rgba(15,23,42,.07)}
.pos-mini-field,.pos-discount-field,.pos-line-total{min-width:0}.pos-mini-field>span,.pos-discount-field>span,.pos-line-total>span{display:block;font-size:.68rem;color:#667085;font-weight:800;margin-bottom:.28rem}.pos-field-usd,.pos-discount-field>small{display:block;margin-top:.25rem;font-size:.68rem;color:#667085;font-weight:700}
.pos-discount-field>div{display:grid;grid-template-columns:minmax(125px,1.35fr) minmax(75px,.65fr);gap:.45rem}.pos-discount-field .input{min-width:0}
.pos-line-total{display:flex!important;flex-direction:column;align-items:flex-end!important;justify-content:flex-end;text-align:right!important;gap:.18rem}.pos-line-total>span{width:100%;text-align:right;margin:0}.pos-line-total>strong{font-size:1.05rem}.pos-line-total>small{font-size:.7rem;color:#667085}.pos-line-total .pos-usd-equivalent{margin-top:.06rem}

/* Tipo de cambio: toda representación USD comparte el mismo componente. */
.pos-usd-equivalent,.pos-field-usd{transition:opacity .12s ease}.pos-field-usd{background:linear-gradient(90deg,#2563eb,#7c3aed);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:850}

/* Botón de retorno al superar 20 productos cargados. */
.pos-back-top{position:fixed;right:1.2rem;bottom:1.2rem;z-index:45;border:1px solid rgba(79,70,229,.18);background:#fff;color:#4338ca;border-radius:999px;padding:.7rem 1rem;font-size:.82rem;font-weight:850;box-shadow:0 12px 30px rgba(15,23,42,.14);cursor:pointer}
.pos-back-top:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,23,42,.18)}.pos-back-top[hidden]{display:none!important}

/* Direct scan feedback. */
.pos-toast.success{background:#15803d}.pos-toast.error{background:#b42318}

/* Popup de pagos: cerrar no descarta los splits, sólo oculta la ventana. */
.pos-payment-dialog .modal-header.compact p::after{content:" · Puede cerrar y volver sin perder los pagos ingresados."}

/* General Sales v10: tarjetas compactas, alineadas por arriba y resumen financiero real. */
#generalOrderDetailModal .order-detail-card{width:min(1220px,calc(100vw - 28px))!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
#generalOrderDetailModal .order-detail-content{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:start!important;gap:.72rem!important}
#generalOrderDetailModal .order-detail-section{height:auto!important;min-width:0!important;align-self:start!important;padding:.78rem!important;border:1px solid #d9e0ec!important;background:#f7f9fc!important;border-radius:12px!important}
#generalOrderDetailModal .order-detail-section h3{min-height:auto!important;margin:0 0 .55rem!important;font-size:.85rem!important}
#generalOrderDetailModal .order-detail-section .order-detail-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.42rem!important;align-content:start!important}
#generalOrderDetailModal .order-card-client .order-detail-grid{grid-template-columns:1fr!important}
#generalOrderDetailModal .order-detail-field{min-height:54px!important;padding:.48rem .55rem!important;background:#fff!important;border:1px solid rgba(15,23,42,.045)!important;border-radius:9px!important;justify-content:center!important}
#generalOrderDetailModal .order-detail-field small{font-size:.66rem!important;color:#667085!important}#generalOrderDetailModal .order-detail-field strong{font-size:.82rem!important;color:#0f172a!important}
#generalOrderDetailModal .receipt-section{grid-column:1/-1!important;width:100%!important;background:#fff!important;height:auto!important}
#generalOrderDetailModal .receipt-section h3{margin-bottom:.65rem!important}
#generalOrderDetailModal .receipt-section .order-receipt{display:flex!important;flex-direction:column!important;gap:0!important;width:min(100%,620px)!important;margin-left:auto!important;border:1px solid #d9e0ec!important;border-radius:12px!important;overflow:hidden;background:#fff!important}
#generalOrderDetailModal .receipt-section .receipt-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,auto)!important;gap:1rem!important;align-items:center!important;min-height:42px!important;margin:0!important;padding:.58rem .78rem!important;background:#fff!important;border:0!important;border-bottom:1px solid #e6eaf0!important;border-radius:0!important}
#generalOrderDetailModal .receipt-section .receipt-row:last-child{border-bottom:0!important}
#generalOrderDetailModal .receipt-section .receipt-row span{text-align:left!important;color:#667085!important;font-size:.82rem!important}
#generalOrderDetailModal .receipt-section .receipt-row strong{text-align:right!important;justify-self:end!important;color:#0f172a!important;font-size:.9rem!important;white-space:nowrap!important}
#generalOrderDetailModal .receipt-section .receipt-discount strong{color:#b42318!important}#generalOrderDetailModal .receipt-section .receipt-shipping strong{color:#4338ca!important}
#generalOrderDetailModal .receipt-section .receipt-total{background:#0f172a!important;color:#fff!important;border-bottom:0!important;min-height:50px!important}
#generalOrderDetailModal .receipt-section .receipt-total span,#generalOrderDetailModal .receipt-section .receipt-total strong{color:#fff!important;font-weight:900!important;font-size:1rem!important}

@media(max-width:1250px){#generalOrderDetailModal .order-detail-content{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){.pos-line-detail-grid{grid-template-columns:1fr 1.35fr}.pos-line-total{grid-column:1/-1;align-items:flex-start!important;text-align:left!important}.pos-line-total>span{width:auto;text-align:left}.pos-back-top{right:.75rem;bottom:.75rem}}
@media(max-width:760px){#generalOrderDetailModal .order-detail-content{grid-template-columns:1fr!important}#generalOrderDetailModal .order-detail-section .order-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#generalOrderDetailModal .order-card-client .order-detail-grid{grid-template-columns:1fr 1fr!important}#generalOrderDetailModal .receipt-section .order-receipt{width:100%!important}.pos-customer-toggle>span{max-width:50%}}
@media(max-width:600px){.pos-line-head{grid-template-columns:70px minmax(0,1fr) 32px}.pos-line-detail-grid{grid-template-columns:1fr}.pos-line-total{grid-column:auto;align-items:flex-start!important}.pos-line-total>span{text-align:left}.pos-discount-field>div{grid-template-columns:1fr 90px}.pos-customer-toggle{align-items:flex-start;flex-direction:column}.pos-customer-toggle>span{margin-right:0;max-width:calc(100% - 2rem)}#generalOrderDetailModal .order-detail-section .order-detail-grid,#generalOrderDetailModal .order-card-client .order-detail-grid{grid-template-columns:1fr!important}}

/* =========================================================
   v11 · General Sales factura + POS consola independiente
   ========================================================= */

/* General Sales: tabla con sticky real dentro de su propio scroll. */
.general-sales-table-wrap{
  overflow:auto!important;
  max-height:min(68dvh,760px);
  border:1px solid var(--line);
  border-radius:14px;
  position:relative;
  isolation:isolate;
}
.general-sales-table{
  min-width:1180px;
  width:100%;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:auto!important;
}
.general-sales-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:12!important;
  background:var(--surface)!important;
  box-shadow:inset 0 -1px 0 var(--line),0 5px 12px rgba(15,23,42,.05)!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}
.general-sales-table tbody td{
  position:relative;
  z-index:1;
  background:var(--surface);
  vertical-align:middle;
  white-space:nowrap;
}
.general-sales-table tbody tr:hover td{background:#f8f9ff!important}
.general-sales-table .smart-action-column,.general-sales-table [data-actions]{position:relative!important;right:auto!important}
body .sticky-table-clone .general-sales-table{display:none!important}

/* General Sales: popup presentado como factura, no como tarjetas. */
#generalOrderDetailModal .order-detail-card{width:min(1120px,calc(100vw - 28px));}
#generalOrderDetailModal .order-detail-content{display:block!important;margin:.85rem 0!important}
.order-invoice-sheet{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}
.order-invoice-meta{display:flex;flex-direction:column}
.order-invoice-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}
.order-invoice-row-last{border-bottom:0}
.order-invoice-cell{padding:.72rem .85rem;min-width:0;border-right:1px solid var(--line);background:#fff}
.order-invoice-cell:last-child{border-right:0}
.order-invoice-cell small,.order-invoice-cell strong{display:block}
.order-invoice-cell small{font-size:.66rem;line-height:1.2;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.015em;margin-bottom:.22rem}
.order-invoice-cell strong{font-size:.83rem;line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.order-invoice-cell.warning{background:#fff8e8}.order-invoice-cell.warning strong{color:#9a570a}
.order-invoice-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,46%);gap:1rem;align-items:start;padding:1rem;border-top:1px solid var(--line);background:#fbfcff}
.order-invoice-summary h3{margin:.15rem 0 0;font-size:.88rem}
.order-invoice-totals{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.order-invoice-total-line{display:grid;grid-template-columns:1fr minmax(130px,auto);gap:1rem;align-items:center;padding:.62rem .8rem;border-bottom:1px solid var(--line)}
.order-invoice-total-line:last-child{border-bottom:0}.order-invoice-total-line span{color:var(--muted);font-size:.78rem}.order-invoice-total-line strong{text-align:right;font-size:.86rem;color:var(--text);font-variant-numeric:tabular-nums}
.order-invoice-total-line.discount strong{color:#b42318}.order-invoice-total-line.shipping strong{color:#4338ca}
.order-invoice-total-line.grand{background:#111827;color:#fff;padding:.78rem .85rem}.order-invoice-total-line.grand span,.order-invoice-total-line.grand strong{color:#fff;font-size:1rem;font-weight:900}

/* POS: ambas columnas son consolas con scroll independiente. */
.pos-layout{
  height:var(--pos-console-height,620px);
  min-height:520px;
  max-height:calc(100dvh - 160px);
  align-items:stretch!important;
  overflow:hidden;
}
.pos-catalog-area,.pos-cart-area{
  height:100%!important;
  max-height:none!important;
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.pos-cart-area{position:relative!important;top:auto!important}
.pos-catalog-area{display:flex;flex-direction:column}
.pos-catalog-area .pos-grid{flex:0 0 auto}
.pos-infinite-sentinel{flex:0 0 auto}
.pos-cart-area .pos-lines{max-height:none!important;overflow:visible!important;flex:0 0 auto}

/* POS: línea de producto limpia. Edición arriba y resumen debajo en 4 celdas. */
.pos-line{display:flex!important;flex-direction:column!important;gap:.7rem!important;padding:.9rem!important;min-height:0!important}
.pos-line-head{display:grid!important;grid-template-columns:76px minmax(0,1fr) 34px!important;gap:.7rem!important;align-items:center!important}
.pos-line-main strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important}
.pos-line-edit-grid{display:grid;grid-template-columns:minmax(135px,.82fr) minmax(260px,1.45fr);gap:.8rem;align-items:end;padding-top:.65rem;border-top:1px solid rgba(15,23,42,.07)}
.pos-line-edit-grid .pos-mini-field,.pos-line-edit-grid .pos-discount-field{min-width:0}
.pos-discount-field>div{display:grid;grid-template-columns:minmax(150px,1fr) 92px;gap:.45rem}
.pos-discount-field>small{display:block;margin-top:.28rem;font-size:.7rem;font-weight:800;color:#475467;white-space:normal}
.pos-line-summary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;padding:.55rem;border-radius:12px;background:#f8fafc;border:1px solid rgba(15,23,42,.06)}
.pos-line-summary-row>div{min-width:0;padding:.35rem .45rem;border-right:1px solid rgba(15,23,42,.07)}
.pos-line-summary-row>div:last-child{border-right:0}
.pos-line-summary-row small,.pos-line-summary-row strong{display:block}.pos-line-summary-row small{font-size:.65rem;color:#667085;font-weight:800;margin-bottom:.12rem}.pos-line-summary-row strong{font-size:.86rem;color:#111827;white-space:nowrap;font-variant-numeric:tabular-nums}.pos-line-summary-row .pos-usd-equivalent{display:block;width:max-content;margin-top:.16rem;font-size:.65rem}
.pos-line-summary-final{background:#eef2ff;border-radius:8px}.pos-line-summary-final strong{font-size:.95rem;color:#312e81}

/* Evita que el scroll principal sea necesario para terminar una venta. */
.pos-sale-actions{position:sticky;bottom:-1rem;z-index:8;background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 34%);padding:.8rem 0 .1rem;margin-top:.2rem}

@media(max-width:980px){
  .order-invoice-row{grid-template-columns:repeat(2,minmax(0,1fr))}.order-invoice-cell:nth-child(2){border-right:0}.order-invoice-cell:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .order-invoice-summary{grid-template-columns:1fr}.order-invoice-totals{width:100%;max-width:none}
  .pos-layout{height:auto!important;max-height:none!important;overflow:visible}.pos-catalog-area,.pos-cart-area{height:min(68dvh,720px)!important;overflow-y:auto!important}
}
@media(max-width:650px){
  .general-sales-table-wrap{max-height:62dvh}.order-invoice-row{grid-template-columns:1fr}.order-invoice-cell{border-right:0!important;border-bottom:1px solid var(--line)!important}.order-invoice-row .order-invoice-cell:last-child{border-bottom:0!important}.order-invoice-summary{padding:.7rem}.order-invoice-total-line{grid-template-columns:1fr auto}
  .pos-line-edit-grid{grid-template-columns:1fr}.pos-line-summary-row{grid-template-columns:1fr 1fr}.pos-line-summary-row>div:nth-child(2){border-right:0}.pos-line-summary-row>div:nth-child(-n+2){border-bottom:1px solid rgba(15,23,42,.07)}
}

/* =========================================================
   POS v12 - descuento por check + consola de venta sin recorte
   ========================================================= */
.pos-discount-field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.pos-discount-toggle{display:inline-flex;align-items:center;gap:.5rem;width:max-content;max-width:100%;font-size:.76rem;font-weight:850;color:#344054;cursor:pointer}
.pos-discount-toggle input{width:18px;height:18px;margin:0;accent-color:#5b4bf3;cursor:pointer}
.pos-discount-controls{display:grid;grid-template-columns:minmax(150px,1fr) 92px;gap:.45rem;align-items:center}
.pos-discount-controls[hidden]{display:none!important}
.pos-discount-field>small{display:block;margin-top:.05rem;font-size:.7rem;font-weight:800;color:#475467;white-space:normal}
.pos-line.discount-enabled .pos-discount-field>small{color:#4338ca}
.pos-line-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.pos-line-summary-row>div:nth-child(3){border-right:0!important}
.pos-line-summary-final{background:#eef2ff;border-radius:8px}

/* La venta simulada crece completa. Solo el catálogo queda en su cajón con scroll. */
.pos-layout{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:start!important;
}
.pos-cart-area{
  position:relative!important;
  top:auto!important;
  height:auto!important;
  min-height:560px!important;
  max-height:none!important;
  overflow:visible!important;
  align-self:start!important;
}
.pos-cart-area .pos-lines{
  max-height:none!important;
  overflow:visible!important;
}
.pos-catalog-area{
  height:var(--pos-catalog-height,560px)!important;
  min-height:560px!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  align-self:start!important;
}
.pos-sale-actions{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  background:transparent!important;
  padding:.35rem 0 0!important;
  margin-top:.2rem!important;
}

@media(max-width:980px){
  .pos-layout{height:auto!important;max-height:none!important;overflow:visible!important}
  .pos-cart-area{height:auto!important;max-height:none!important;overflow:visible!important;min-height:0!important}
  .pos-catalog-area{height:min(var(--pos-catalog-height,620px),72dvh)!important;min-height:420px!important;overflow-y:auto!important}
}
@media(max-width:650px){
  .pos-discount-controls{grid-template-columns:1fr 90px}
  .pos-line-summary-row{grid-template-columns:1fr!important}
  .pos-line-summary-row>div{border-right:0!important;border-bottom:1px solid rgba(15,23,42,.07)}
  .pos-line-summary-row>div:last-child{border-bottom:0!important}
}

/* Sidebar sections v13 */
.sidebar nav .nav-separator{
    height:1px;
    margin:.65rem .75rem;
    background:linear-gradient(90deg,transparent,rgba(219,226,243,.22) 18%,rgba(219,226,243,.22) 82%,transparent);
    pointer-events:none;
}
.sidebar-collapsed .sidebar nav .nav-separator{
    margin:.65rem .35rem;
}
@media(max-width:760px){
    .sidebar nav .nav-separator{margin:.65rem .75rem}
}

/* =========================================================
   v14 · POS final + sesiones múltiples + factura general
   ========================================================= */

/* General Sales: encabezados pegajosos y popup tipo factura profesional. */
.general-orders-panel .general-sales-table-wrap{overflow:auto!important;max-height:min(72dvh,780px)!important;position:relative!important;isolation:isolate!important}
.general-orders-panel .general-sales-table thead th{top:0!important;position:sticky!important;z-index:20!important}
.general-orders-panel .general-sales-table tbody td{background:var(--surface)!important}
.general-orders-panel .general-sales-table tbody tr:hover td{background:#f8f9ff!important}
#generalOrderDetailModal .order-detail-content{display:block!important}
#generalOrderDetailModal .order-invoice-sheet{border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#fff}
#generalOrderDetailModal .order-invoice-meta{display:flex;flex-direction:column}
#generalOrderDetailModal .order-invoice-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}
#generalOrderDetailModal .order-invoice-cell{padding:.78rem .9rem;min-width:0;border-right:1px solid var(--line);background:#fff}
#generalOrderDetailModal .order-invoice-cell:last-child{border-right:0}
#generalOrderDetailModal .order-invoice-summary{grid-template-columns:minmax(0,1fr) minmax(360px,44%);background:#f8fbff}
#generalOrderDetailModal .order-invoice-totals{background:#fff}
#generalOrderDetailModal .order-invoice-total-line{grid-template-columns:minmax(0,1fr) auto}
#generalOrderDetailModal .order-invoice-total-line strong{text-align:right;font-variant-numeric:tabular-nums}
#generalOrderDetailModal .order-invoice-total-line.grand{background:#0f172a}

/* POS: meta compacta, descuento colapsable y resumen inline. */
.pos-line-main .pos-line-meta{display:flex!important;align-items:center;flex-wrap:wrap;gap:.4rem 1rem;margin-top:.2rem;font-size:.78rem;color:#667085}
.pos-line-main .pos-line-sku{display:inline-flex;align-items:center;min-width:0}
.pos-discount-inline-toggle{display:inline-flex;align-items:center;gap:.45rem;font-size:.76rem;font-weight:850;color:#344054;cursor:pointer;white-space:nowrap}
.pos-discount-inline-toggle input{width:17px;height:17px;margin:0;accent-color:#5b4bf3;cursor:pointer}
.pos-tax-inline-toggle{display:inline-flex;align-items:center;gap:.45rem;font-size:.76rem;font-weight:850;color:var(--success);cursor:pointer;white-space:nowrap}
.pos-tax-inline-toggle input{width:17px;height:17px;margin:0;accent-color:var(--success);cursor:pointer}
.pos-tax-inline-toggle:has(input:not(:checked)){color:var(--muted)}
.pos-line-finance-row{display:grid;grid-template-columns:minmax(170px,220px) minmax(0,1fr);gap:.75rem;align-items:end;padding-top:.65rem;border-top:1px solid rgba(15,23,42,.07)}
.pos-line-summary-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;border:1px solid rgba(15,23,42,.06);border-radius:12px;background:#f8fafc;padding:.45rem .5rem}
.pos-line-summary-inline>div{min-width:0;padding:.15rem .35rem;border-right:1px solid rgba(15,23,42,.07)}
.pos-line-summary-inline>div:last-child{border-right:0}
.pos-line-summary-inline small,.pos-line-summary-inline strong{display:block}
.pos-line-summary-inline small{font-size:.65rem;color:#667085;font-weight:800;margin-bottom:.1rem}
.pos-line-summary-inline strong{font-size:.88rem;color:#111827;white-space:nowrap;font-variant-numeric:tabular-nums}
.pos-line-summary-inline .pos-usd-equivalent{display:block;width:max-content;margin-top:.14rem;font-size:.65rem}
.pos-line-summary-inline .pos-line-summary-final{background:#eef2ff;border:1px solid rgba(79,70,229,.12);border-radius:8px}
.pos-line-summary-inline .pos-line-summary-final strong{font-size:.98rem;color:#312e81}
.pos-discount-row{display:grid;grid-template-columns:minmax(185px,1fr) 110px;gap:.55rem .75rem;align-items:end;padding-top:.15rem}
.pos-discount-row[hidden]{display:none!important}
.pos-discount-row-field,.pos-discount-row-meta{min-width:0}
.pos-discount-row-field>span{display:block;font-size:.68rem;color:#667085;font-weight:800;margin-bottom:.28rem}
.pos-discount-row-meta{grid-column:1/-1;font-size:.72rem;font-weight:850;color:#4338ca}
.pos-line-summary-row{display:none!important}

/* Sesiones múltiples de venta. */
.pos-session-dock{position:sticky;left:0;bottom:1rem;z-index:18;display:flex;align-items:center;gap:.55rem;margin-top:1rem;padding:.6rem .7rem;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);box-shadow:0 12px 28px rgba(15,23,42,.12)}
.pos-session-tabs{display:flex;align-items:center;gap:.45rem;overflow:auto hidden;scrollbar-width:thin;max-width:100%}
.pos-session-tab{display:inline-flex;align-items:center;gap:.5rem;min-width:max-content;padding:.72rem .9rem;border-radius:12px;border:1px solid rgba(15,23,42,.09);background:#f8fafc;color:#334155;font-weight:800;cursor:pointer}
.pos-session-tab.active{background:#eef2ff;border-color:rgba(91,75,243,.28);color:#312e81;box-shadow:inset 0 0 0 1px rgba(91,75,243,.08)}
.pos-session-tab-icon{font-size:.95rem;line-height:1}.pos-session-tab-name{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-session-tab-menu{opacity:.45}
.pos-session-add{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;border:1px solid rgba(15,23,42,.09);background:#fff;color:#4338ca;font-size:1.2rem;font-weight:900;cursor:pointer;flex:0 0 auto}
.pos-session-add:hover,.pos-session-tab:hover{transform:translateY(-1px)}

@media(max-width:980px){
  #generalOrderDetailModal .order-invoice-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  #generalOrderDetailModal .order-invoice-summary{grid-template-columns:1fr}
  .pos-line-finance-row{grid-template-columns:1fr}
  .pos-line-summary-inline{grid-template-columns:repeat(3,minmax(120px,1fr))}
}
@media(max-width:700px){
  #generalOrderDetailModal .order-invoice-row{grid-template-columns:1fr}
  #generalOrderDetailModal .order-invoice-cell{border-right:0!important;border-bottom:1px solid var(--line)!important}
  .pos-line-main .pos-line-meta{align-items:flex-start;flex-direction:column;gap:.35rem}
  .pos-line-summary-inline{grid-template-columns:1fr!important}
  .pos-line-summary-inline>div{border-right:0!important;border-bottom:1px solid rgba(15,23,42,.07)}
  .pos-line-summary-inline>div:last-child{border-bottom:0!important}
  .pos-discount-row{grid-template-columns:1fr}
  .pos-session-dock{padding:.5rem}
  .pos-session-tab-name{max-width:120px}
}

/* =========================================================
   v15 · barra de ventas fija y sesiones independientes
   ========================================================= */
.pos-shell{padding-bottom:92px!important}
.pos-session-dock{
  position:fixed!important;
  left:calc(var(--sidebar-width) + 1rem)!important;
  right:1rem!important;
  bottom:.75rem!important;
  z-index:55!important;
  margin:0!important;
  width:auto!important;
  max-width:none!important;
  display:flex!important;
  align-items:center!important;
  gap:.55rem!important;
  padding:.55rem .65rem!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.97)!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:0 16px 36px rgba(15,23,42,.18)!important;
}
.pos-session-tabs{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  display:flex!important;
  gap:.45rem!important;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
}
.pos-session-tab{flex:0 0 auto!important;min-width:max-content!important}
.pos-session-add{flex:0 0 42px!important}
@media(max-width:760px){
  .pos-session-dock{left:.65rem!important;right:.65rem!important;bottom:.6rem!important}
  .pos-shell{padding-bottom:88px!important}
}

/* =========================================================
   v16 · POS línea financiera + tabs compactas
   ========================================================= */

/* La columna derecha del artículo es un resumen en 4 filas, no tarjetas. */
.pos-line-finance-row{
  display:grid!important;
  grid-template-columns:minmax(180px,220px) minmax(250px,1fr)!important;
  gap:.9rem!important;
  align-items:start!important;
}
.pos-line-summary-inline{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  align-self:stretch!important;
}
.pos-line-summary-inline>div{
  display:grid!important;
  grid-template-columns:minmax(95px,1fr) auto auto!important;
  align-items:baseline!important;
  gap:.55rem!important;
  min-height:30px!important;
  padding:.28rem .15rem!important;
  border:0!important;
  border-right:0!important;
  border-bottom:1px solid rgba(15,23,42,.11)!important;
  border-radius:0!important;
  background:transparent!important;
}
.pos-line-summary-inline>div:last-child{border-bottom:0!important}
.pos-line-summary-inline>div>span:first-child{
  color:#667085!important;
  font-size:.72rem!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.pos-line-summary-inline>div>strong{
  color:#111827!important;
  font-size:.84rem!important;
  font-weight:900!important;
  text-align:right!important;
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums!important;
}
.pos-line-summary-inline>div .pos-usd-equivalent{
  margin:0!important;
  padding:.12rem .38rem!important;
  min-width:58px!important;
  text-align:right!important;
  justify-self:end!important;
  font-size:.66rem!important;
  white-space:nowrap!important;
}
.pos-line-summary-inline [data-line-summary-final]>strong{color:#312e81!important}
.pos-line-summary-inline [data-line-summary-discount-amount]>strong{color:#4338ca!important}

/* Los controles del descuento viven entre el encabezado del artículo y la fila de precio. */
.pos-discount-row{
  margin-top:-.08rem!important;
  padding:.48rem 0 .15rem!important;
  border-top:1px solid rgba(15,23,42,.07)!important;
}

/* Barra de ventas: ancho por contenido y + pegado inmediatamente a la última venta. */
.pos-session-dock{
  right:auto!important;
  width:max-content!important;
  max-width:calc(100vw - var(--sidebar-width) - 2rem)!important;
  overflow:hidden!important;
}
.pos-session-tabs{
  flex:0 1 auto!important;
  width:max-content!important;
  max-width:100%!important;
  padding-right:.1rem!important;
}
.pos-session-add{
  order:999!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  margin-left:.05rem!important;
}
.pos-session-tab{
  position:relative!important;
  padding:.68rem .55rem .68rem .82rem!important;
  gap:.42rem!important;
  cursor:pointer!important;
}
.pos-session-tab-name{max-width:165px!important}
.pos-session-rename,.pos-session-close{
  display:inline-grid!important;
  place-items:center!important;
  width:26px!important;
  height:26px!important;
  padding:0!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#667085!important;
  font-size:.82rem!important;
  font-weight:900!important;
  cursor:pointer!important;
  flex:0 0 auto!important;
}
.pos-session-rename:hover{background:#eef2ff!important;color:#4338ca!important}
.pos-session-close:hover{background:#fff1f2!important;color:#be123c!important}
.pos-session-tab.active .pos-session-rename,.pos-session-tab.active .pos-session-close{color:#4338ca!important}

@media(max-width:760px){
  .pos-line-finance-row{grid-template-columns:1fr!important}
  .pos-line-summary-inline>div{grid-template-columns:minmax(90px,1fr) auto auto!important}
  .pos-session-dock{max-width:calc(100vw - 1.3rem)!important}
  .pos-session-tab-name{max-width:115px!important}
}

/* =========================================================
   v17 · Resumen financiero POS compacto
   ========================================================= */
/* El precio oficial queda limpio: no se muestra su equivalente USD. Cuando
   existe un descuento real, ese espacio pasa a mostrar el descuento aplicado. */
.pos-price-field{display:flex!important;flex-direction:column!important;min-width:0}
.pos-price-discount{
  display:grid;
  grid-template-columns:auto auto auto;
  align-items:baseline;
  justify-content:start;
  gap:.35rem;
  margin-top:.28rem;
  min-height:18px;
  font-size:.69rem;
  font-weight:850;
  line-height:1.2;
  color:#4338ca;
  font-variant-numeric:tabular-nums;
}
.pos-price-discount[hidden]{display:none!important}
.pos-price-discount>span{color:#667085;font-weight:800}
.pos-price-discount>strong{color:#4338ca;font-size:.72rem;white-space:nowrap}
.pos-price-discount .pos-usd-equivalent{
  display:inline-flex!important;
  margin:0!important;
  padding:.08rem .34rem!important;
  min-width:0!important;
  font-size:.64rem!important;
  white-space:nowrap!important;
}

/* El bloque derecho es simplemente una lista de tres filas contables. */
.pos-line-summary-inline>div{grid-template-columns:minmax(92px,1fr) auto auto!important}
.pos-line-summary-inline [data-line-summary-discount]>strong{color:#111827!important}
.pos-line-summary-inline [data-line-summary-final]>strong{color:#312e81!important}

/* =========================================================
   Recomendaciones · Inteligencia comercial
   ========================================================= */
.executive-action.commercial{border-left:4px solid var(--success)}
.executive-action.commercial .action-icon{color:var(--success)}
.commercial-heading{align-items:center}
.commercial-top-form{display:flex;align-items:end;gap:.55rem}
.commercial-top-form label{min-width:120px}
.commercial-kpis article{display:grid;align-content:start;gap:.22rem;min-width:0}
.commercial-kpis article strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commercial-kpis article span{color:var(--muted);font-size:.66rem;line-height:1.35}
.commercial-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:1rem;margin-bottom:1rem}
.commercial-ranking{display:grid;gap:.42rem}
.commercial-rank-row{display:grid;grid-template-columns:42px minmax(180px,1.45fr) repeat(4,minmax(76px,.62fr));align-items:center;gap:.65rem;padding:.72rem .78rem;border:1px solid transparent;border-radius:12px;background:var(--surface-2);transition:.16s}
.commercial-rank-row:hover{border-color:var(--primary);background:#eef0ff;transform:translateX(2px)}
.commercial-rank-number{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--surface);color:var(--primary);font-size:.76rem}
.commercial-rank-product{min-width:0}
.commercial-rank-product strong,.commercial-rank-product small,.commercial-rank-row>span>small,.commercial-rank-row>span>strong{display:block}
.commercial-rank-product strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commercial-rank-product small,.commercial-rank-row>span>small{color:var(--muted);font-size:.63rem}
.commercial-rank-row>span:not(.commercial-rank-product){text-align:right}
.commercial-rank-row>span>strong{margin-top:.12rem;font-size:.75rem;font-variant-numeric:tabular-nums}
.commercial-method-panel{align-self:start}
.commercial-method-list{display:grid;gap:.65rem}
.commercial-method-list>div{display:grid;grid-template-columns:12px minmax(0,1fr);gap:.62rem;align-items:start;padding:.72rem;border-radius:11px;background:var(--surface-2)}
.commercial-method-list p{margin:0;color:var(--muted);font-size:.72rem;line-height:1.45}
.commercial-method-list strong{color:var(--text)}
.commercial-dot{display:block;width:10px;height:10px;margin-top:.2rem;border-radius:50%;background:var(--muted)}
.commercial-dot.success{background:var(--success)}.commercial-dot.info{background:var(--primary)}.commercial-dot.warning{background:var(--warning)}.commercial-dot.critical{background:var(--danger)}
.commercial-rule-note{margin-top:.8rem;padding:.8rem;border:1px dashed var(--line);border-radius:11px;color:var(--muted);font-size:.69rem;line-height:1.45}
.commercial-rule-note strong{color:var(--text)}
.commercial-actions-panel{margin-top:1rem}
.commercial-action-list{display:grid;gap:.62rem}
.commercial-action-card{display:grid;grid-template-columns:minmax(230px,1.15fr) minmax(480px,1.5fr);gap:1rem;padding:.9rem 1rem;border:1px solid var(--line);border-left-width:4px;border-radius:14px;background:var(--surface);transition:.16s}
.commercial-action-card:hover{border-color:var(--primary);transform:translateY(-1px);box-shadow:var(--shadow)}
.commercial-action-card.tone-critical{border-left-color:var(--danger)}.commercial-action-card.tone-warning{border-left-color:var(--warning)}.commercial-action-card.tone-info{border-left-color:var(--primary)}.commercial-action-card.tone-success{border-left-color:var(--success)}
.commercial-action-main{min-width:0;display:grid;align-content:center;gap:.25rem}
.commercial-action-main>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commercial-action-main>small{color:var(--muted);font-size:.68rem;line-height:1.4}
.commercial-action-badge{justify-self:start;padding:.27rem .5rem;border-radius:999px;background:var(--surface-2);color:var(--primary);font-size:.61rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.commercial-action-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.42rem}
.commercial-action-metrics>span{padding:.55rem .6rem;border-radius:9px;background:var(--surface-2);text-align:right}
.commercial-action-metrics small,.commercial-action-metrics b{display:block}
.commercial-action-metrics small{color:var(--muted);font-size:.6rem}
.commercial-action-metrics b{margin-top:.12rem;font-size:.72rem;font-variant-numeric:tabular-nums}
@media(prefers-color-scheme:dark){.commercial-rank-row:hover{background:#252d53}}
@media(max-width:1100px){.commercial-grid{grid-template-columns:1fr}.commercial-rank-row{grid-template-columns:42px minmax(170px,1.4fr) repeat(2,minmax(78px,.6fr))}.commercial-rank-row>span:nth-last-child(-n+2){display:none}.commercial-action-card{grid-template-columns:1fr}.commercial-action-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){.commercial-heading{align-items:stretch}.commercial-top-form,.commercial-top-form label{width:100%}.commercial-rank-row{grid-template-columns:34px minmax(0,1fr) auto;gap:.5rem}.commercial-rank-number{width:30px;height:30px}.commercial-rank-row>span:not(.commercial-rank-product){display:none}.commercial-rank-row>span:nth-child(3){display:block}.commercial-action-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-action-card{padding:.8rem}.commercial-action-main>strong{white-space:normal}}

/* Supplier cost synchronization / compliance */
.cost-editor-hero,.compliance-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem}.cost-editor-hero h2,.compliance-heading h2{margin:.35rem 0}.cost-editor-hero .actions,.compliance-heading .actions{display:flex;gap:.55rem;flex-wrap:wrap}.cost-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:0 0 1rem}.cost-summary-grid article,.compliance-kpis article{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:1rem;display:flex;flex-direction:column;gap:.3rem}.cost-summary-grid small,.compliance-kpis small{color:var(--muted);font-weight:800}.cost-summary-grid strong,.compliance-kpis strong{font-size:1.28rem}.cost-summary-grid span,.compliance-kpis span{font-size:.75rem;color:var(--muted)}
.cost-control-row{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap}.cost-control-row .exchange-rate-form,.compliance-rate-panel .exchange-rate-form{display:flex;gap:.6rem;align-items:flex-end;flex-wrap:wrap}.cost-control-row .exchange-rate-form label,.compliance-rate-panel .exchange-rate-form label{min-width:210px}.cost-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) auto auto;align-items:end;gap:.65rem}.cost-mapping-list{display:grid;gap:.7rem}.cost-mapping-card{border:1px solid var(--line);border-radius:15px;background:var(--surface);overflow:hidden}.cost-mapping-card[open]{box-shadow:0 12px 30px rgba(11,18,35,.08)}.cost-mapping-card summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(230px,2fr) auto minmax(130px,.65fr) minmax(220px,1.2fr);gap:1rem;align-items:center;padding:.9rem 1rem}.cost-mapping-card summary::-webkit-details-marker{display:none}.cost-map-title,.cost-map-numbers,.cost-map-target{display:flex;flex-direction:column;gap:.2rem;min-width:0}.cost-map-title strong,.cost-map-target strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cost-map-title small,.cost-map-numbers small,.cost-map-target small{color:var(--muted);font-size:.72rem}.cost-map-numbers{text-align:right}.cost-map-numbers b{font-size:1rem}.cost-status-review{border-left:4px solid #d97706}.cost-status-unmatched{border-left:4px solid #dc2626}.cost-status-matched{border-left:4px solid #16a34a}.cost-status-ignored{opacity:.72}.cost-mapping-form{border-top:1px solid var(--line);padding:1rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.cost-mapping-form>label{display:flex;flex-direction:column;gap:.32rem}.cost-map-product{grid-column:span 3}.cost-current-comparison{grid-column:span 3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.cost-current-comparison span{padding:.75rem;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:.2rem}.cost-current-comparison small{color:var(--muted)}.cost-candidates{grid-column:span 3;display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}.cost-candidates>small{width:100%;font-weight:800;color:var(--muted)}.cost-candidate-chip{border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:.45rem .7rem;cursor:pointer;color:var(--text)}.cost-candidate-chip:hover{border-color:var(--primary);transform:translateY(-1px)}.cost-switch{grid-column:span 3!important;display:flex!important;flex-direction:row!important;align-items:flex-start;gap:.65rem!important;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.cost-switch span{display:flex;flex-direction:column;gap:.15rem}.cost-switch small{color:var(--muted)}.cost-mapping-form .form-actions{grid-column:span 3}
.supplier-cost-choice{grid-column:1/-1;border:1px solid var(--line);border-radius:15px;padding:1rem;background:var(--surface-2);display:grid;gap:.8rem}.supplier-cost-choice-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.supplier-cost-choice-head>div{display:flex;flex-direction:column;gap:.25rem}.supplier-cost-choice-head small{color:var(--muted)}.supplier-cost-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.supplier-cost-values span{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.7rem;display:flex;flex-direction:column;gap:.2rem}.supplier-cost-values small{color:var(--muted)}.supplier-cost-options{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.supplier-cost-options label{display:flex;gap:.6rem;padding:.75rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;align-items:flex-start}.supplier-cost-options label span{display:flex;flex-direction:column;gap:.15rem}.supplier-cost-options label small{color:var(--muted)}.supplier-cost-choice>.button{justify-self:start}
.compliance-rate-panel{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}.compliance-rate-panel>div{max-width:760px}.compliance-rate-panel p{margin:.3rem 0 0;color:var(--muted)}.compliance-table{min-width:1420px}.compliance-table td small{display:block;color:var(--muted);font-size:.7rem;margin-top:.18rem}.compliance-table .badge{white-space:nowrap}.compliance-row.tone-critical{background:rgba(220,38,38,.035)}.compliance-row.tone-warning{background:rgba(217,119,6,.035)}.compliance-row.tone-success{background:rgba(22,163,74,.025)}.negative-value{color:#b42318;font-weight:800}.badge.tone-critical{border-color:#fecaca;color:#b42318}.badge.tone-warning{border-color:#fed7aa;color:#b45309}.badge.tone-success{border-color:#bbf7d0;color:#15803d}.executive-action.compliance .action-icon{font-size:1.2rem}
@media(max-width:1050px){.cost-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-mapping-card summary{grid-template-columns:minmax(220px,1.5fr) auto minmax(120px,.7fr)}.cost-map-target{grid-column:1/-1}.cost-mapping-form{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-map-product,.cost-current-comparison,.cost-candidates,.cost-switch,.cost-mapping-form .form-actions{grid-column:span 2}.cost-current-comparison{grid-template-columns:repeat(3,minmax(0,1fr))}.cost-filters{grid-template-columns:1fr 1fr}.compliance-rate-panel{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.cost-editor-hero,.compliance-heading,.supplier-cost-choice-head{flex-direction:column}.cost-summary-grid{grid-template-columns:1fr}.cost-mapping-card summary{grid-template-columns:1fr auto}.cost-map-numbers{text-align:left}.cost-map-target{grid-column:1/-1}.cost-mapping-form{grid-template-columns:1fr}.cost-map-product,.cost-current-comparison,.cost-candidates,.cost-switch,.cost-mapping-form .form-actions{grid-column:1}.cost-current-comparison,.supplier-cost-values,.supplier-cost-options{grid-template-columns:1fr}.cost-filters{grid-template-columns:1fr}.compliance-rate-panel .exchange-rate-form{width:100%}.compliance-rate-panel .exchange-rate-form label{flex:1}.recommendation-tabs{overflow-x:auto}}
.compliance-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1200px){.compliance-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.compliance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.compliance-kpis{grid-template-columns:1fr}}

/* Compact bulk supplier-cost assignment */
.cost-bulk-panel{overflow:visible}.cost-bulk-head{align-items:center}.cost-bulk-table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.cost-bulk-table{width:100%;min-width:1180px;border-collapse:separate;border-spacing:0;font-size:.82rem}.cost-bulk-table th{position:sticky;top:0;z-index:2;background:var(--surface-2);color:var(--muted);font-size:.69rem;text-transform:uppercase;letter-spacing:.04em;padding:.55rem .5rem;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.cost-bulk-table td{padding:.48rem .5rem;border-bottom:1px solid var(--line);vertical-align:middle}.cost-bulk-table tbody tr:last-child td{border-bottom:0}.cost-bulk-table tbody tr:hover td{background:color-mix(in srgb,var(--surface-2) 55%,transparent)}
.cost-bulk-row.cost-status-review td:first-child{border-left:4px solid #d97706}.cost-bulk-row.cost-status-unmatched td:first-child{border-left:4px solid #dc2626}.cost-bulk-row.cost-status-matched td:first-child{border-left:4px solid #16a34a}.cost-bulk-row.cost-status-ignored{opacity:.68}.cost-bulk-row.cost-status-ignored td:first-child{border-left:4px solid var(--muted)}
.cost-compact-input{min-height:32px!important;height:32px;padding:.32rem .45rem!important;font-size:.78rem!important;border-radius:8px!important;margin:0!important}.cost-description-input{width:100%;min-width:250px}.cost-inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:.32rem;margin-top:.32rem}.cost-cell-source{min-width:280px}.cost-cell-money{min-width:125px}.cost-cell-money label{display:block;margin:0 0 .28rem}.cost-cell-money label:last-child{margin-bottom:0}.cost-cell-money label span{display:block;color:var(--muted);font-size:.62rem;font-weight:800;margin-bottom:.12rem}.cost-cell-money input{width:120px}.cost-cell-map{min-width:300px}.cost-product-lookup{width:100%}.cost-cell-status{width:105px}.cost-cell-status .badge{display:inline-flex;margin-bottom:.22rem}.cost-cell-status small{display:block;color:var(--muted);font-size:.64rem;line-height:1.25;max-width:105px}.cost-cell-compare{min-width:120px}.cost-cell-compare span{display:block;white-space:nowrap}.cost-cell-compare span+span{margin-top:.3rem}.cost-cell-compare small{display:block;color:var(--muted);font-size:.62rem}.cost-cell-compare b{font-size:.78rem}.cost-cell-preference{min-width:125px}.cost-cell-preference select{width:120px}.cost-cell-preference small{display:block;color:var(--muted);font-size:.62rem;margin-top:.2rem}.cost-cell-action{width:75px}.cost-ignore-check{display:flex!important;flex-direction:row!important;align-items:center!important;gap:.3rem!important;font-size:.72rem;white-space:nowrap;margin:0}.cost-ignore-check input{margin:0}
.cost-inline-candidates{margin-top:.28rem}.cost-inline-candidates summary{cursor:pointer;color:var(--primary);font-weight:800;font-size:.66rem;display:inline-block}.cost-inline-candidates>div{display:flex;gap:.3rem;flex-wrap:wrap;padding-top:.3rem;max-width:420px}.cost-inline-candidates .cost-candidate-chip{font-size:.65rem;padding:.28rem .45rem;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cost-bulk-savebar{position:sticky;bottom:.65rem;z-index:4;margin:.75rem auto 0;padding:.65rem .8rem;max-width:760px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:0 10px 28px rgba(11,18,35,.14);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:space-between;gap:1rem}.cost-bulk-savebar>div{display:flex;flex-direction:column;gap:.12rem}.cost-bulk-savebar small{color:var(--muted);font-size:.7rem}
@media(max-width:700px){.cost-bulk-head{align-items:flex-start}.cost-bulk-head .button{width:100%}.cost-bulk-savebar{bottom:.35rem;align-items:stretch;flex-direction:column}.cost-bulk-savebar .button{width:100%}}

/* Compliance decision detail + direct supplier-cost swap */
.positive-value{color:var(--success);font-weight:800}
.compliance-explainer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:0 0 1rem}
.compliance-explainer article{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.85rem;display:grid;gap:.28rem}
.compliance-explainer strong{font-size:.78rem;cursor:help}
.compliance-explainer span{font-size:.69rem;line-height:1.45;color:var(--muted)}
.compliance-detail-table{min-width:1900px}
.compliance-detail-table th{vertical-align:bottom}
.compliance-detail-table td{vertical-align:top;line-height:1.35}
.compliance-product{min-width:250px}.compliance-product>strong{display:block;margin-bottom:.2rem}
.compliance-profit-cell{min-width:155px;display:grid;grid-template-columns:1fr;gap:.35rem}
.compliance-profit-cell>span,.compliance-msrp-result>span{display:flex;justify-content:space-between;gap:.65rem;align-items:baseline;padding:.28rem .38rem;border-radius:7px;background:var(--surface-2)}
.compliance-profit-cell small,.compliance-msrp-result small{margin:0!important}
.compliance-decision{min-width:360px}.compliance-decision>.badge{margin-bottom:.45rem}.compliance-decision>strong{display:block;font-size:.82rem;margin-bottom:.28rem}.compliance-decision p{margin:0;color:var(--muted);font-size:.72rem;line-height:1.5;max-width:470px}
.compliance-action-cell{min-width:320px}.compliance-action-cell>strong{display:block;margin-bottom:.25rem}.compliance-action-cell>small{line-height:1.45}
.compliance-msrp-result{min-width:185px;display:grid;gap:.32rem}
.compliance-msrp-result>small:last-child{padding-top:.2rem;line-height:1.4}
.supplier-cost-field-editor{grid-column:1/-1;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:14px;padding:.9rem;background:color-mix(in srgb,var(--surface-2) 72%,var(--surface))}
.supplier-cost-inline-switch{display:grid;grid-template-columns:minmax(250px,1fr) auto;gap:.65rem;align-items:center;margin-top:.15rem;padding:.65rem;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.supplier-cost-inline-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.supplier-cost-inline-values>span{display:grid;gap:.1rem;padding:.48rem .55rem;background:var(--surface-2);border-radius:8px}
.supplier-cost-inline-values small{font-size:.64rem;color:var(--muted);font-weight:800}.supplier-cost-inline-values b{font-size:.78rem;font-variant-numeric:tabular-nums}
.supplier-cost-toggle-button{display:grid;grid-template-columns:1fr;gap:.05rem;min-width:220px;text-align:center;padding:.62rem .85rem}
.supplier-cost-toggle-button span{font-size:.72rem}.supplier-cost-toggle-button strong{font-size:.8rem}
.supplier-cost-inline-switch>.field-legend{grid-column:1/-1;margin:0;padding:.42rem .55rem;font-size:.68rem}
.supplier-cost-save-note{margin:0}
[data-tooltip]{cursor:help}
button[data-tooltip],a[data-tooltip]{cursor:pointer}
@media(max-width:1100px){.compliance-explainer{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.compliance-explainer{grid-template-columns:1fr}.supplier-cost-field-editor{grid-column:auto}.supplier-cost-inline-switch{grid-template-columns:1fr}.supplier-cost-inline-values{grid-template-columns:1fr 1fr}.supplier-cost-toggle-button{width:100%;min-width:0}}
@media(max-width:460px){.supplier-cost-inline-values{grid-template-columns:1fr}}

/* Inventory authority: Nidux versus Pricing Estimation */
.pricing-inventory-source-panel,.pricing-global-sync-panel{border-color:color-mix(in srgb,var(--primary) 34%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 5%,var(--surface)),var(--surface) 52%)}
.pricing-inventory-source-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.pricing-inventory-source-form>article{display:grid;gap:.65rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.pricing-inventory-source-form>article>div{display:flex;align-items:flex-end;justify-content:space-between;gap:.75rem}.pricing-inventory-source-form>article>div small,.pricing-inventory-source-form>article>small{color:var(--muted)}
.pricing-inventory-source-form>article>div strong{font-size:1.15rem;font-variant-numeric:tabular-nums}.pricing-inventory-source-form label{display:grid;gap:.3rem;font-weight:800}
.pricing-inventory-sync-action{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border-radius:12px;background:color-mix(in srgb,var(--primary) 9%,var(--surface-2))}.pricing-inventory-sync-action p{margin:0;color:var(--muted);line-height:1.45}.pricing-inventory-sync-action strong{color:var(--text)}
.pricing-global-sync-panel{display:grid;grid-template-columns:minmax(260px,1fr) minmax(360px,.9fr);align-items:center;gap:1.25rem}.pricing-global-sync-panel h3{margin:.35rem 0}.pricing-global-sync-panel p{margin:0;color:var(--muted);line-height:1.5}.pricing-global-sync-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:.65rem}.pricing-global-sync-form label{display:grid;gap:.3rem;font-weight:800}
@media(max-width:900px){.pricing-global-sync-panel{grid-template-columns:1fr}.pricing-global-sync-form{grid-template-columns:1fr auto}}
@media(max-width:700px){.pricing-inventory-source-form{grid-template-columns:1fr}.pricing-inventory-sync-action{grid-column:auto;align-items:stretch;flex-direction:column}.pricing-inventory-sync-action .button{width:100%}.pricing-global-sync-form{grid-template-columns:1fr}.pricing-global-sync-form .button{width:100%}}

/* Cost bulk clarity improvements */
.cost-inline-candidates-open{display:grid;gap:.35rem;margin-top:.4rem}
.cost-chip-wrap{display:flex;flex-wrap:wrap;gap:.35rem}
.cost-compare-note{display:block;color:var(--muted);font-size:.69rem;line-height:1.45;margin-top:.2rem}
.cost-cell-compare{min-width:210px}
.cost-cell-compare span{display:flex;justify-content:space-between;gap:.65rem;align-items:baseline;padding:.28rem .38rem;border-radius:8px;background:var(--surface-2);margin-bottom:.3rem}
.cost-cell-map{min-width:280px}
.cost-cell-preference{min-width:210px}
.cost-cell-preference small{display:block;color:var(--muted);line-height:1.45;margin-top:.28rem}
.cost-bulk-table td{vertical-align:top}

/* Compliance compact 6-column layout */
.compliance-detail-table.compact-six{min-width:1500px}
.compliance-price-cell,.compliance-msrp-compact,.compliance-action-column{display:grid;gap:.35rem}
.compliance-price-cell span,.compliance-msrp-compact span,.compliance-profit-cell>span{display:flex;justify-content:space-between;gap:.7rem;align-items:baseline;padding:.32rem .4rem;border-radius:8px;background:var(--surface-2)}
.compliance-price-cell small,.compliance-msrp-compact small,.compliance-action-column small{margin:0;color:var(--muted);font-size:.71rem;line-height:1.5}
.compliance-action-column{min-width:360px}
.compliance-action-column p{margin:0;color:var(--text);font-size:.78rem;line-height:1.55}
.compliance-action-column .badge{width:max-content}
.compliance-msrp-mini{display:block;padding-top:.1rem}
.compliance-action-button{white-space:nowrap}
@media(max-width:900px){.cost-cell-map{min-width:240px}.compliance-action-column{min-width:300px}}

/* Edición masiva del inventario por selección */
.inventory-bulk-panel{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(520px,1.2fr);align-items:center;gap:1.25rem;border-color:color-mix(in srgb,var(--primary) 34%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 5%,var(--surface)),var(--surface) 58%)}
.inventory-bulk-panel h3{margin:.35rem 0}.inventory-bulk-panel p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.55}.inventory-bulk-form{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(210px,1fr);gap:.7rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.inventory-bulk-form label{align-content:start}.inventory-bulk-form label>small{color:var(--muted);font-size:.69rem;line-height:1.4}.inventory-bulk-submit{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding-top:.65rem;border-top:1px solid var(--line)}.inventory-bulk-submit span{color:var(--muted);font-size:.76rem}.inventory-bulk-submit strong{color:var(--primary);font-size:1rem}.inventory-bulk-submit .button:disabled{cursor:not-allowed;filter:grayscale(.45);opacity:.55}
.inventory-select-checkbox{width:18px!important;height:18px;margin:0;accent-color:var(--primary);cursor:pointer}.inventory-table tr.is-selected td{background:color-mix(in srgb,var(--primary) 8%,var(--surface))}.inventory-table th[data-required-column],.inventory-table td[data-label="Seleccionar"]{width:52px;text-align:center}.inventory-table td[data-label="Seleccionar"]{justify-content:center}
.product-status-badge{border:1px solid transparent;white-space:nowrap}.product-status-inactive{background:#ffecee;color:#b52f3e;border-color:#f5c6cc}.product-status-hidden{background:#edf1f6;color:#5e6a80;border-color:#d9e0e9}.product-status-out{background:#fff3df;color:#9a570a;border-color:#f1d3a4}.product-status-stock{background:#e8f8f1;color:#117650;border-color:#bce8d7}.product-status-backorder{background:#eaf2ff;color:#286ac1;border-color:#c6dcf8}.product-status-preorder{background:#f0ebff;color:#6c48bc;border-color:#d9cdf7}
@media(prefers-color-scheme:dark){.product-status-inactive{background:#45232b;color:#ff9aa4;border-color:#70404a}.product-status-hidden{background:#293243;color:#bdc7d8;border-color:#3c485c}.product-status-out{background:#3c3020;color:#f2ad52;border-color:#624b29}.product-status-stock{background:#17372f;color:#73d6b2;border-color:#275646}.product-status-backorder{background:#213653;color:#75aef3;border-color:#31557e}.product-status-preorder{background:#33294d;color:#c4a5ff;border-color:#514071}}
@media(max-width:900px){.inventory-bulk-panel{grid-template-columns:1fr}}
@media(max-width:760px){.inventory-bulk-form{grid-template-columns:1fr}.inventory-bulk-submit{grid-column:auto;align-items:stretch;flex-direction:column}.inventory-bulk-submit .button{width:100%}.inventory-table td.inventory-item-column{justify-content:flex-start}.inventory-table td[data-label="Seleccionar"]{justify-content:space-between}.inventory-table td[data-label="Seleccionar"]::before{content:attr(data-label);color:var(--muted);font-size:.72rem;font-weight:800}}

/* Compliance single-column cards */
.compliance-cards-panel .panel-head p{max-width:860px}
.compliance-card-stack{display:grid;gap:1rem}
.compliance-product-card{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:1rem 1rem 1.1rem;box-shadow:var(--shadow-sm)}
.compliance-product-card.tone-success{border-left:4px solid rgba(26,127,55,.45)}
.compliance-product-card.tone-warning{border-left:4px solid rgba(184,134,11,.45)}
.compliance-product-card.tone-critical{border-left:4px solid rgba(184,30,30,.45)}
.compliance-card-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:.9rem}
.compliance-card-head h4{margin:0 0 .2rem;font-size:1rem}
.compliance-card-head small{display:block;color:var(--muted);line-height:1.45}
.compliance-card-actions{display:flex;flex-direction:column;gap:.45rem;align-items:flex-end}
.compliance-row-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:.85rem}
.compliance-info-box{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:.85rem .95rem;display:grid;gap:.45rem}
.compliance-info-box.emphasis-box{background:rgba(103,80,255,.05);border-color:rgba(103,80,255,.18)}
.compliance-info-box strong{font-size:.87rem}
.compliance-info-box p,.compliance-info-box small{margin:0;color:var(--text);line-height:1.55}
.compliance-info-box small{color:var(--muted)}
.compliance-info-box ul{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}
.compliance-info-box li{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start;border-top:1px dashed var(--line);padding-top:.35rem}
.compliance-info-box li:first-child{border-top:none;padding-top:0}
.compliance-info-box li span{color:var(--muted);font-size:.78rem;line-height:1.4}
.compliance-info-box li b{text-align:right}
@media(max-width:920px){.compliance-card-head{flex-direction:column}.compliance-card-actions{align-items:flex-start}.compliance-row-grid{grid-template-columns:1fr}}

/* Human-friendly stock time indicators */
.stock-time-value small,.stock-time-line{cursor:help}
.stock-time-value.tone-critical strong,.stock-time-line.tone-critical strong{color:#b42318}
.stock-time-value.tone-warning strong,.stock-time-line.tone-warning strong{color:#b54708}
.stock-time-value.tone-success strong,.stock-time-line.tone-success strong{color:#15803d}
.stock-time-value.tone-info strong,.stock-time-line.tone-info strong{color:#175cd3}
.stock-time-line strong{font-weight:800}

/* Public product links + settings */
.public-sku-link{display:inline-flex;align-items:center;gap:.22rem;color:var(--primary);font-weight:800;text-decoration:none;border-bottom:1px dotted color-mix(in srgb,var(--primary) 45%,transparent)}
.public-sku-link:hover{text-decoration:none;border-bottom-style:solid}
.public-sku-link.compact{font-size:.72rem;font-weight:700}
.product-action-links{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}
.public-product-button{display:inline-flex;align-items:center;gap:.28rem;white-space:nowrap}
.settings-hero h2{margin:.35rem 0}.settings-form-panel{max-width:980px}.public-product-settings-form{display:grid;gap:1rem}.public-product-settings-form label{display:grid;gap:.4rem}.public-product-settings-form label>span{font-weight:800}.public-product-settings-form input{width:100%}.public-url-example{display:grid;gap:.25rem;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.public-url-example small{color:var(--muted)}.public-url-example a{overflow-wrap:anywhere;font-weight:700}
.commercial-action-entry,.quality-card-entry{display:grid;gap:.3rem}.commercial-public-link,.quality-card-entry>.public-sku-link{justify-self:end;margin-right:.35rem}.quality-card-entry>.public-sku-link{margin-top:-.1rem;margin-bottom:.35rem}
.dashboard-public-row{display:grid;gap:.2rem}.dashboard-public-row>.public-sku-link{justify-self:end;margin-right:.2rem}
.recommendation-product-link-row{display:grid;gap:.18rem}.recommendation-product-link-row>.public-sku-link{justify-self:end;margin-right:.25rem}

/* Human stock guidance in counts and purchase orders */
.stock-guidance{display:grid;gap:.22rem;border-radius:12px;padding:.58rem .68rem;border:1px solid var(--line);background:var(--surface-2);min-width:250px}
.stock-guidance strong{font-size:.78rem}.stock-guidance small{font-size:.7rem;line-height:1.45;color:var(--text)}
.stock-guidance.tone-critical,.stock-time-badge.tone-critical{border-color:#fecaca;background:rgba(220,38,38,.06);color:#b42318}
.stock-guidance.tone-warning,.stock-time-badge.tone-warning{border-color:#fed7aa;background:rgba(217,119,6,.07);color:#9a5b08}
.stock-guidance.tone-success,.stock-time-badge.tone-success{border-color:#bbf7d0;background:rgba(22,163,74,.05);color:#15803d}
.stock-guidance.tone-neutral,.stock-time-badge.tone-neutral{border-color:var(--line);background:var(--surface-2);color:var(--muted)}
.count-stock-decision{min-width:320px}.stock-time-badge{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:.22rem .5rem;font-size:.72rem;font-weight:800;white-space:nowrap}
.order-stock-decision{min-width:360px}.order-lines-decision-table{min-width:1250px}
.order-management-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}.order-status-selector-form{display:flex;align-items:flex-end;gap:.5rem}.order-status-selector-form label{min-width:180px}.order-status-selector-form label span{display:block;font-size:.7rem;color:var(--muted);font-weight:800;margin-bottom:.25rem}
.order-archive-tabs{display:flex;gap:.4rem;margin:0 0 .8rem;flex-wrap:wrap}.order-archive-tabs a{padding:.42rem .7rem;border:1px solid var(--line);border-radius:999px;font-size:.75rem;font-weight:800;color:var(--muted)}.order-archive-tabs a.active{background:var(--primary);border-color:var(--primary);color:#fff}.archive-badge{margin-left:.3rem}.archived-order-row{opacity:.72}
@media(max-width:800px){.order-state-panel{align-items:flex-start;flex-direction:column}.order-management-actions{justify-content:flex-start;width:100%}.order-status-selector-form{width:100%;flex-wrap:wrap}.order-status-selector-form label{flex:1}.count-stock-decision,.order-stock-decision{min-width:260px}}
.order-list-status-form{display:flex;gap:.35rem;align-items:center;min-width:210px}.order-list-status-form select{min-width:120px;padding:.42rem .5rem}.order-list-status-form .icon-button{white-space:nowrap}

/* Keep SKU secondary and recommendations inside the item cell */
.inline-item-guidance{margin-top:.42rem;min-width:0;max-width:760px;padding:.48rem .58rem}
.inline-item-guidance small{font-size:.69rem;line-height:1.45}
.count-item-content,.order-item-content{min-width:0}
.count-item-cell,.order-item-cell{align-items:flex-start}
.order-lines-decision-table td{vertical-align:top}
.order-lines-decision-table .table-subtitle{display:block;margin-top:.2rem}

/* 2026-08-12: correcciones de lectura comercial, cumplimiento y conteos */
.commercial-action-card{position:relative;grid-template-columns:minmax(260px,1.05fr) minmax(520px,1.6fr) auto;align-items:start}
.commercial-action-main>strong a{color:var(--text);font-weight:900}
.commercial-action-main>strong a:hover{color:var(--primary)}
.commercial-edit-link{align-self:start;padding:.35rem .2rem}
@media(max-width:1100px){.commercial-action-card{grid-template-columns:1fr}.commercial-edit-link{justify-self:end}.commercial-action-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.commercial-action-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-edit-link{justify-self:start}}

.compliance-product-card{padding:0;overflow:hidden;border-color:var(--line);box-shadow:var(--shadow)}
.compliance-product-card>summary{list-style:none;cursor:pointer;padding:1rem 1.1rem;margin:0;user-select:none}
.compliance-product-card>summary::-webkit-details-marker{display:none}
.compliance-product-card>summary:focus-visible{outline:3px solid rgba(68,89,231,.18);outline-offset:-3px}
.compliance-product-card[open]>summary{border-bottom:1px solid var(--line);background:var(--surface)}
.compliance-product-card>.compliance-row-grid{padding:1rem 1.1rem 1.15rem}
.compliance-details-toggle{font-size:.72rem;font-weight:900;color:var(--primary);white-space:nowrap}
.compliance-details-toggle::after{content:' ↓'}
.compliance-product-card[open] .compliance-details-toggle::before{content:'Ocultar detalles';font-size:0}
.compliance-product-card[open] .compliance-details-toggle{font-size:0}
.compliance-product-card[open] .compliance-details-toggle::after{content:'Ocultar detalles MSRP ↑';font-size:.72rem}
.compliance-info-box,.compliance-info-box.emphasis-box{border-color:var(--line)}
.projection-box ul{gap:.45rem}
.projection-box li{padding:.4rem .1rem;border-bottom:1px dashed var(--line);border-top:0}
.projection-box li:last-child{border-bottom:0}

/* Conteo: todas las columnas permanecen legibles; la recomendación vive bajo Item. */
.count-table{min-width:1180px;table-layout:fixed}
.count-table th:nth-child(1),.count-table td:nth-child(1){width:36%}
.count-table th:nth-child(2),.count-table td:nth-child(2){width:8%}
.count-table th:nth-child(3),.count-table td:nth-child(3){width:11%}
.count-table th:nth-child(4),.count-table td:nth-child(4){width:8%}
.count-table th:nth-child(5),.count-table td:nth-child(5){width:11%}
.count-table th:nth-child(6),.count-table td:nth-child(6){width:9%}
.count-table th:nth-child(7),.count-table td:nth-child(7){width:11%}
.count-table th:nth-child(8),.count-table td:nth-child(8){width:6%}
.count-table .count-item-cell{min-width:0;align-items:flex-start}
.count-table .count-item-content{min-width:0;width:100%}
.count-table .inline-item-guidance{min-width:0;width:100%;margin-top:.4rem;white-space:normal}
.count-table td{overflow:visible}
.count-table input{min-width:0;width:100%}
@media(max-width:760px){.count-table{min-width:0;table-layout:auto}.count-table th,.count-table td{width:auto!important}.count-table .inline-item-guidance{width:100%}}

/* Los elementos reales de los gráficos son los únicos que muestran tooltips de datos. */
.trend-bars i[data-tooltip],.product-month-bars i[data-tooltip],.product-month-bars b[data-tooltip],.bar-chart .bar-row[data-tooltip],.coverage-stack [data-tooltip]{cursor:help}
.compliance-product-card{border:1px solid var(--line)}
.compliance-product-card.tone-success{border-left:4px solid rgba(26,127,55,.55)}
.compliance-product-card.tone-warning{border-left:4px solid rgba(184,134,11,.55)}
.compliance-product-card.tone-critical{border-left:4px solid rgba(184,30,30,.55)}
.compliance-info-box,.compliance-info-box.emphasis-box{border:1px solid var(--line)}

/* Recommendations header v2: filters stay inside the card and never overflow */
.recommendation-hero.recommendation-hero-v2{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:1rem!important;padding:1.15rem 1.25rem!important;overflow:hidden}
.recommendation-hero-v2 .recommendation-hero-copy{display:grid;grid-template-columns:minmax(170px,260px) minmax(0,1fr);align-items:center;gap:1rem;min-width:0}
.recommendation-hero-v2 .recommendation-hero-title{display:flex;align-items:center;gap:.8rem;min-width:0}
.recommendation-hero-v2 .recommendation-hero-title .pill{max-width:88px;text-align:center;white-space:normal;line-height:1.2}
.recommendation-hero-v2 .recommendation-hero-title h2{margin:0;font-size:1.55rem;line-height:1.05}
.recommendation-hero-v2 .recommendation-hero-copy>p{margin:0;min-width:0;line-height:1.5}
.recommendation-active-filter{grid-column:1/-1;padding:.45rem .65rem;border-radius:10px;background:var(--surface-2);font-size:.72rem;color:var(--muted)}
.recommendation-filter-bar{display:grid!important;grid-template-columns:minmax(145px,.8fr) minmax(145px,1fr) minmax(170px,1fr) auto!important;gap:.65rem!important;align-items:end!important;width:100%;min-width:0;border-top:1px solid var(--line);padding-top:.8rem}
.recommendation-filter-bar label{min-width:0!important;width:100%}
.recommendation-filter-bar label>span{display:block;margin-bottom:.28rem;font-size:.68rem;font-weight:800;color:var(--muted)}
.recommendation-filter-bar select,.recommendation-filter-bar input{width:100%;min-width:0}
.recommendation-filter-bar .recommendation-custom-date{grid-row:2}
.recommendation-filter-bar .button{min-width:120px;white-space:nowrap}
.recommendation-tabs{overflow-x:auto;scrollbar-width:thin}
.recommendation-tabs a{min-width:105px}

/* Active promotion analysis */
.promotion-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.promotion-analysis-list{display:grid;gap:.85rem}
.promotion-analysis-card{border:1px solid var(--line);border-left-width:4px;border-radius:15px;background:var(--surface);padding:.9rem 1rem;display:grid;gap:.8rem}
.promotion-analysis-card.tone-critical{border-left-color:var(--danger)}
.promotion-analysis-card.tone-warning{border-left-color:var(--warning)}
.promotion-analysis-card.tone-success{border-left-color:#16a34a}
.promotion-analysis-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.promotion-analysis-head h4{margin:.35rem 0 .18rem;font-size:1rem}
.promotion-analysis-head small{color:var(--muted)}
.promotion-analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}
.promotion-analysis-grid>div{display:flex;flex-direction:column;gap:.15rem;padding:.65rem .7rem;border-radius:11px;background:var(--surface-2);min-width:0}
.promotion-analysis-grid small{color:var(--muted);font-size:.66rem}
.promotion-analysis-grid strong{font-size:.92rem}
.promotion-analysis-grid span{color:var(--muted);font-size:.67rem;line-height:1.4}
.promotion-analysis-decision{padding:.75rem .85rem;border-radius:12px;background:color-mix(in srgb,var(--primary) 6%,var(--surface));border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line))}
.promotion-analysis-decision p{margin:.25rem 0 .2rem;line-height:1.5}
.promotion-analysis-decision small{color:var(--muted);line-height:1.45}

@media(max-width:1100px){
  .recommendation-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .recommendation-filter-bar .button{width:100%}
  .promotion-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .promotion-analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .recommendation-hero-v2 .recommendation-hero-copy{grid-template-columns:1fr}
  .recommendation-active-filter{grid-column:auto}
  .recommendation-filter-bar{grid-template-columns:1fr!important}
  .recommendation-filter-bar .recommendation-custom-date{grid-row:auto}
  .promotion-kpis,.promotion-analysis-grid{grid-template-columns:1fr}
  .promotion-analysis-head{flex-direction:column}
}

/* Ajuste manual de descuentos externos de Nidux */
.live-discount-editor{margin:.85rem 0 0;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:.75rem;display:grid;gap:.65rem}
.live-discount-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}.live-discount-head>div{display:grid;gap:.12rem}.live-discount-head small,.live-discount-note{color:var(--muted);font-size:.72rem;line-height:1.45}
.live-discount-controls{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,.5fr) auto;gap:.55rem;align-items:end}.live-discount-controls label{display:grid;gap:.25rem}.live-discount-controls label span{font-size:.7rem;font-weight:800;color:var(--muted)}.live-discount-controls select,.live-discount-controls input{width:100%}
.live-discount-preview{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:.4rem}.live-discount-preview span{display:flex;justify-content:space-between;gap:.45rem;padding:.42rem .5rem;border-radius:9px;background:var(--surface)}.live-discount-preview small{color:var(--muted);font-size:.68rem}.live-discount-preview b{font-size:.78rem}
.commercial-action-card .live-discount-editor{grid-column:1/-1}.promotion-analysis-card .live-discount-editor{margin-top:.7rem}.compliance-product-card .live-discount-editor{margin:0 1rem 1rem}.product-discount-override-panel .live-discount-editor{margin:0}
@media(max-width:800px){.live-discount-controls{grid-template-columns:1fr}.live-discount-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.live-discount-head{flex-direction:column}}

/* Promotions: compact summary + expandable full analysis */
.promotion-analysis-card{padding:0;overflow:hidden}
.promotion-analysis-card>summary{list-style:none;cursor:pointer;padding:.9rem 1rem}
.promotion-analysis-card>summary::-webkit-details-marker{display:none}
.promotion-analysis-summary{display:flex;align-items:center;gap:1rem;justify-content:space-between}
.promotion-summary-main{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(520px,2fr);gap:1rem;align-items:center;flex:1;min-width:0}
.promotion-summary-title{min-width:0}.promotion-summary-title h4{margin:.3rem 0 .15rem;font-size:1rem}.promotion-summary-title small{color:var(--muted)}
.promo-active-label{display:inline-flex;margin-left:.35rem;font-size:.72rem;font-weight:800;color:var(--primary)}
.promotion-summary-prices{display:grid;grid-template-columns:repeat(4,minmax(125px,1fr));gap:.45rem}
.promotion-summary-prices span{display:flex;flex-direction:column;gap:.12rem;padding:.55rem .6rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);min-width:0}
.promotion-summary-prices small{color:var(--muted);font-size:.64rem;line-height:1.3}.promotion-summary-prices b{font-size:.84rem;white-space:nowrap}
.promotion-details-toggle{font-weight:850;color:var(--primary);white-space:nowrap;font-size:.78rem}.promotion-analysis-card[open] .promotion-details-toggle::after{content:' · Ocultar'}.promotion-analysis-card:not([open]) .promotion-details-toggle::after{content:''}
.promotion-analysis-detail{display:grid;gap:.8rem;padding:.85rem 1rem 1rem;border-top:1px solid var(--line)}
.promotion-analysis-detail .promotion-analysis-head{padding:0}

/* Purchase recommendations: buy / watch / hold */
.purchase-recommendation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.purchase-recommendation-panel{min-width:0}.purchase-recommendation-panel .panel-head{margin-bottom:.45rem}.purchase-recommendation-panel .panel-head p{max-width:520px}
.purchase-recommendation-list{display:grid;gap:.55rem}.purchase-recommendation-list>a{display:flex;justify-content:space-between;gap:.9rem;align-items:flex-start;padding:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);text-decoration:none;color:inherit}
.purchase-recommendation-list>a:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));transform:translateY(-1px)}
.purchase-recommendation-list>a>div{min-width:0;display:grid;gap:.2rem}.purchase-recommendation-list strong{font-size:.84rem}.purchase-recommendation-list small{color:var(--muted);font-size:.69rem;line-height:1.35}.purchase-recommendation-list p{margin:.12rem 0 0;font-size:.73rem;line-height:1.45;color:var(--text)}
.purchase-recommendation-list>a>span{display:flex;flex-direction:column;align-items:flex-end;gap:.15rem;white-space:nowrap}.purchase-recommendation-list>a>span>b{font-size:.92rem}.purchase-state-label{font-size:.72rem;font-weight:850;padding:.3rem .5rem;border-radius:999px;background:var(--surface)}
.purchase-recommendation-panel.buy-now{border-top:3px solid #dc2626}.purchase-recommendation-panel.watch{border-top:3px solid #d97706}.purchase-recommendation-panel.hold{border-top:3px solid #64748b}
@media(max-width:1250px){.purchase-recommendation-grid{grid-template-columns:1fr}.promotion-summary-main{grid-template-columns:1fr}.promotion-summary-prices{grid-template-columns:repeat(4,minmax(110px,1fr))}}
@media(max-width:760px){.promotion-analysis-summary{align-items:flex-start;flex-direction:column}.promotion-summary-prices{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.purchase-recommendation-list>a{flex-direction:column}.purchase-recommendation-list>a>span{align-items:flex-start}}

/* Product analysis expanded workspace */
.product-analysis-modal{padding:.6rem}
.product-analysis-modal-card{width:min(1780px,calc(100vw - 1.2rem));max-height:calc(100vh - 1.2rem);overflow:auto}
@media(max-width:900px){.product-analysis-modal-card{width:100%;max-height:calc(100vh - .5rem)}}

/* Discount editor compact popup in recommendations */
.discount-info-trigger{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--primary);font-weight:900;cursor:pointer;padding:0;margin:.2rem 0}
.discount-config-dialog{width:min(760px,calc(100vw - 2rem));padding:1rem}
.discount-config-modal .live-discount-editor{margin:0}

/* POS decision support */
.pos-card{position:relative}
.pos-card-info{position:absolute;top:.45rem;right:.45rem;width:27px;height:27px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--primary);font-weight:900;z-index:2;cursor:pointer}
.pos-decision-dialog{width:min(980px,calc(100vw - 2rem));padding:1rem}
.pos-decision-content{display:grid;gap:.8rem}
.pos-decision-status{display:grid;gap:.45rem;padding:.8rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.pos-decision-status .badge{width:max-content}
.pos-decision-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}
.pos-decision-grid article{display:grid;gap:.2rem;padding:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.pos-decision-grid small,.pos-decision-grid span{color:var(--muted);font-size:.72rem}.pos-decision-grid b{font-size:.95rem}
@media(max-width:900px){.pos-decision-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.pos-decision-grid{grid-template-columns:1fr}}
.pos-line-info{border:0;background:transparent;color:var(--primary);font-weight:900;cursor:pointer;padding:.05rem .25rem;font-size:.85rem}

/* Manual inventory creation + count finalization review */
.product-create-form .span-two{grid-column:span 2}
.variation-create-block{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
.create-variation-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr .75fr .8fr auto;gap:.55rem;align-items:end;padding:.7rem;margin:.55rem 0;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.create-variation-row label{display:grid;gap:.28rem;font-size:.7rem;font-weight:800;color:var(--muted)}
.create-variation-row input{width:100%;min-width:0}
.count-finalize-review .table-wrap{margin:.7rem 0 1rem}.count-finalize-review td small{display:block;color:var(--muted);margin-top:.15rem}
.count-finalize-confirm{display:grid;gap:.8rem}.confirmation-check{display:flex;gap:.65rem;align-items:flex-start;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.confirmation-check input{margin-top:.18rem}
.cost-super-sync-panel td small{display:block;color:var(--muted);margin-top:.15rem}
@media(max-width:1100px){.create-variation-row{grid-template-columns:repeat(3,minmax(0,1fr))}.create-variation-row .icon-button{align-self:end}.product-create-form .span-two{grid-column:auto}}
@media(max-width:700px){.create-variation-row{grid-template-columns:1fr}.create-variation-row .icon-button{width:100%}}

/* v33: contextual discount editor + POS decision modal */
.discount-context-wrap{position:relative;display:inline-flex;align-items:center;z-index:8}
.discount-context-popover{position:absolute;z-index:180;top:calc(100% + .45rem);right:0;width:min(720px,calc(100vw - 2rem));padding:.75rem;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 22px 60px rgba(18,28,52,.22)}
.discount-context-popover[hidden]{display:none!important}
.discount-context-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.55rem}
.discount-context-head>div{display:grid;gap:.15rem}.discount-context-head small{color:var(--muted);font-size:.7rem}
.discount-context-popover .live-discount-editor{margin:0;background:var(--surface-2)}
#posDecisionModal{z-index:1200!important}
#posDecisionModal.open{display:grid!important;place-items:center!important;padding:1rem!important}
#posDecisionModal>.modal-backdrop{position:absolute!important;inset:0!important;z-index:0!important}
.pos-decision-dialog{position:relative!important;z-index:2!important;width:min(1100px,calc(100vw - 2rem))!important;max-height:calc(100dvh - 2rem)!important;overflow:auto!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:0 35px 100px rgba(0,0,0,.35)!important;padding:1.1rem!important}
@media(max-width:720px){.discount-context-popover{position:fixed;left:.5rem;right:.5rem;top:auto;bottom:.5rem;width:auto;max-height:80dvh;overflow:auto}.pos-decision-dialog{width:calc(100vw - 1rem)!important;max-height:calc(100dvh - 1rem)!important}}
.discount-context-popover{position:fixed!important;top:auto;right:auto;bottom:auto;left:auto;max-height:min(78dvh,680px);overflow:auto}

/* v34: discount info trigger lives beside the price and editor is always centered above cards/tables/sidebar. */
.metric-label-with-info{display:inline-flex!important;align-items:center;gap:.32rem;max-width:100%}
.discount-context-trigger-wrap{display:inline-flex;align-items:center;vertical-align:middle;position:relative;z-index:auto}
.metric-label-with-info .discount-info-trigger{width:18px;height:18px;min-width:18px;padding:0;border-radius:50%;font-size:11px;line-height:1;display:inline-grid;place-items:center}
.discount-context-popover{position:fixed!important;z-index:10050!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(720px,calc(100vw - 2rem))!important;max-height:min(78dvh,680px)!important;overflow:auto!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:0 32px 100px rgba(11,18,35,.34)!important}
@media(max-width:720px){.discount-context-popover{top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:calc(100vw - 1rem)!important;max-height:calc(100dvh - 1rem)!important}}


/* Drag del editor contextual de descuento */
.discount-context-head{cursor:grab;user-select:none;touch-action:none}
.discount-context-head button,.discount-context-head a{cursor:pointer}
.discount-context-popover.is-dragging .discount-context-head{cursor:grabbing}
.discount-context-popover.is-dragging{box-shadow:0 36px 110px rgba(11,18,35,.40)!important}

/* v36: el editor de descuento usa la Top Layer del navegador; ninguna tabla/fila con foco puede taparlo. */
.discount-context-popover:popover-open{
  margin:0!important;
  z-index:2147483000!important;
}
.discount-context-popover:popover-open::backdrop{background:transparent!important}

/* Conteos: acciones por fila */
.count-line-actions{display:flex;align-items:center;justify-content:flex-end;gap:.3rem;flex-wrap:wrap}
.count-line-actions form{margin:0}
.count-line-actions .icon-button{padding:.35rem .45rem;border-radius:8px}
@media(max-width:760px){.count-line-actions{justify-content:flex-end;width:100%}}

/* v39: conteos usan inventario vigente, búsqueda y análisis rápido del producto */
.count-table-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:.75rem}
.count-search-field{display:grid;gap:.3rem;min-width:min(460px,100%);font-size:.72rem;font-weight:800;color:var(--muted)}
.count-search-field input{width:100%;min-width:0}
.count-table-toolbar>small{color:var(--muted);white-space:nowrap}
.count-product-title{appearance:none;border:0;background:transparent;color:var(--text);font:inherit;font-weight:850;text-align:left;padding:0;cursor:pointer;line-height:1.35}
.count-product-title:hover,.count-product-title:focus-visible{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
#countProductStatsModal{z-index:1400!important}
#countProductStatsModal.open{display:grid!important;place-items:center!important;padding:1rem!important}
#countProductStatsModal>.modal-backdrop{position:absolute!important;inset:0!important;z-index:0!important}
.count-product-stats-dialog{position:relative!important;z-index:2!important;width:min(1100px,calc(100vw - 2rem))!important;max-height:calc(100dvh - 2rem)!important;overflow:auto!important}
.count-product-stats-dialog .form-actions{margin-top:.85rem}
@media(max-width:720px){.count-table-toolbar{align-items:stretch;flex-direction:column}.count-search-field{min-width:0}.count-product-stats-dialog{width:calc(100vw - 1rem)!important;max-height:calc(100dvh - 1rem)!important}}

/* Conteo: cobertura total del inventario y pendientes accionables */
.count-coverage-panel{display:grid;gap:1rem}
.count-coverage-head{align-items:flex-start}
.count-coverage-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.count-coverage-metrics article{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:.85rem 1rem;display:grid;gap:.2rem}
.count-coverage-metrics article.attention{border-color:rgba(200,55,55,.24);background:rgba(200,55,55,.035)}
.count-coverage-metrics small,.count-coverage-metrics span{color:var(--muted)}
.count-coverage-metrics strong{font-size:1.35rem}
.count-progress-track{height:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;overflow:hidden}
.count-progress-track i{display:block;height:100%;background:var(--primary);border-radius:inherit;transition:width .2s ease}
.count-not-counted{display:block;color:var(--warning,#9a6500);font-weight:700;margin-top:.25rem}
.count-pending-dialog{width:min(1180px,calc(100vw - 36px));max-width:1180px;max-height:min(88vh,900px);display:flex;flex-direction:column;overflow:hidden}
.count-pending-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:.75rem;align-items:end;padding:.2rem 0 .8rem}
.count-pending-toolbar label{display:grid;gap:.3rem}
.count-pending-toolbar small{align-self:center;color:var(--muted)}
.count-pending-list{display:grid;gap:.55rem;overflow:auto;min-height:180px;padding-right:.2rem}
.count-pending-row{display:grid;grid-template-columns:34px minmax(300px,1fr) minmax(145px,180px) minmax(145px,180px);gap:.65rem;align-items:center;border:1px solid var(--line);border-radius:12px;padding:.65rem;background:var(--surface)}
.count-pending-row[hidden]{display:none!important}
.count-pending-select{display:flex;justify-content:center}
.count-pending-product{display:flex;align-items:center;gap:.65rem;min-width:0}
.count-pending-product img,.count-pending-product>.image-placeholder{width:46px;height:46px;border-radius:9px;object-fit:cover;flex:0 0 auto}
.count-pending-product div{min-width:0;display:grid;gap:.15rem}
.count-pending-product strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.count-pending-product small{color:var(--muted)}
.count-pending-row>label:not(.count-pending-select){display:grid;gap:.3rem}
.count-pending-row>label span{font-size:.78rem;color:var(--muted)}
.count-pending-row>label em{font-style:normal;font-weight:400}
.count-pending-row input[type="number"],.count-pending-toolbar input{width:100%;min-width:0}
.count-pending-actions{position:sticky;bottom:0;background:var(--surface);padding-top:.75rem;margin-top:.6rem;border-top:1px solid var(--line)}
@media(max-width:850px){.count-coverage-metrics{grid-template-columns:1fr}.count-pending-toolbar{grid-template-columns:1fr}.count-pending-row{grid-template-columns:30px minmax(0,1fr)}.count-pending-row>label:not(.count-pending-select){grid-column:2}.count-pending-product strong{white-space:normal}}

/* v44 · popup de pendientes de conteo corregido */
#countPendingModal{z-index:50000;padding:clamp(12px,2vw,28px);overflow:hidden}
#countPendingModal.open{display:flex;align-items:center;justify-content:center}
#countPendingModal>.modal-backdrop{position:absolute;inset:0;z-index:0;background:rgba(9,13,25,.68);backdrop-filter:blur(5px)}
#countPendingModal .count-pending-dialog{
  position:relative;
  z-index:2;
  width:min(1180px,calc(100vw - 32px));
  height:min(86vh,860px);
  max-width:1180px;
  max-height:860px;
  min-height:min(620px,calc(100vh - 32px));
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 30px 90px rgba(0,0,0,.34);
}
#countPendingModal .modal-header.compact{
  flex:0 0 auto;
  margin:0;
  padding:1rem 1.15rem .8rem;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
#countPendingModal .modal-header.compact h3{margin:.3rem 0 .2rem}
#countPendingModal .modal-header.compact p{max-width:900px;color:var(--muted)}
#countPendingModal .count-pending-toolbar{
  flex:0 0 auto;
  margin:0;
  padding:.8rem 1.15rem;
  background:var(--surface-2);
  border-bottom:1px solid var(--line);
}
#countPendingModal #countPendingForm{
  min-height:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#countPendingModal .count-pending-list{
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:.85rem 1.15rem;
  background:var(--surface);
  overscroll-behavior:contain;
}
#countPendingModal .count-pending-actions{
  position:static;
  flex:0 0 auto;
  margin:0;
  padding:.8rem 1.15rem 1rem;
  display:flex;
  justify-content:flex-end;
  gap:.65rem;
  background:var(--surface);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 20px rgba(20,30,60,.05);
}
#countPendingModal .count-pending-row{background:var(--surface);}
@media(max-width:850px){
  #countPendingModal{padding:8px}
  #countPendingModal .count-pending-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);min-height:0;max-height:none;border-radius:16px}
  #countPendingModal .count-pending-toolbar{grid-template-columns:1fr auto}
  #countPendingModal .count-pending-toolbar small{grid-column:1/-1}
  #countPendingModal .count-pending-list{padding:.65rem}
  #countPendingModal .count-pending-actions{padding:.7rem;flex-wrap:wrap}
}

/* v45: filtros de recomendaciones en conteos/órdenes + ordenamiento universal */
.recommendation-metrics{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}
.recommendation-filter-chip{border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:12px;padding:.55rem .7rem;display:flex;gap:.6rem;align-items:center;cursor:pointer}
.recommendation-filter-chip b{font-size:.9rem}
.recommendation-filter-chip.active{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent)}
.recommendation-filter-chip.tone-critical{border-left:4px solid #d33}
.recommendation-filter-chip.tone-warning{border-left:4px solid #d99a00}
.recommendation-filter-chip.tone-success{border-left:4px solid #26945b}
.count-toolbar-status{display:flex;flex-direction:column;gap:.2rem;align-items:flex-end;color:var(--muted)}
.order-table-toolbar,.order-list-toolbar{margin:.85rem 0}
.sortable-table-header{cursor:pointer;user-select:none;position:relative;padding-right:1.35rem!important}
.sortable-table-header::after{content:'↕';position:absolute;right:.35rem;opacity:.35;font-size:.8em}
.sortable-table-header.sort-asc::after{content:'↑';opacity:1;color:var(--accent)}
.sortable-table-header.sort-desc::after{content:'↓';opacity:1;color:var(--accent)}
@media(max-width:760px){.count-toolbar-status{align-items:flex-start}.recommendation-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.recommendation-filter-chip{justify-content:space-between}}

/* Product analysis: Cumplimiento tab */
.pa-compliance-wrap{display:grid;gap:1rem}
.pa-compliance-hero{display:flex;justify-content:space-between;gap:1rem;align-items:center;border:1px solid var(--line);border-radius:16px;padding:1rem;background:var(--surface-2)}
.pa-compliance-hero h3{margin:.35rem 0 .2rem}
.pa-compliance-hero p{margin:0;line-height:1.55}
.pa-compliance-result{min-width:140px;text-align:right}
.pa-compliance-result small{display:block;color:var(--muted);margin-bottom:.2rem}
.pa-compliance-result strong{font-size:1.05rem}
.pa-compliance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.pa-compliance-grid .pa-card{min-width:0}
.pa-compliance-limit-card .pa-compliance-note{margin:.75rem 0 0;padding:.65rem .75rem;border-radius:10px;background:var(--surface-2);line-height:1.5}
.pa-general-recommendation{border-left:4px solid var(--primary)}
.pa-general-recommendation-body{display:grid;gap:.45rem}
.pa-general-recommendation-body p{margin:0;line-height:1.55}
@media(max-width:900px){.pa-compliance-grid{grid-template-columns:1fr}.pa-compliance-hero{align-items:flex-start;flex-direction:column}.pa-compliance-result{text-align:left}}

/* v47/v48: product analysis is a full page, never a viewport modal. */
.product-analysis-page{max-width:none;width:100%;margin:0;padding:0;overflow:visible}
.product-analysis-page-toolbar{padding:.8rem 1rem;border-bottom:1px solid var(--line);background:var(--surface-2);border-radius:16px 16px 0 0}
.product-analysis-page-card{min-width:0;background:var(--surface);border-radius:0 0 16px 16px;overflow:visible}
.product-analysis-page .pa-modal-header{position:relative;inset:auto;width:auto;max-width:none;padding:1rem 1.2rem}
.product-analysis-page .pa-modal-tabs{position:sticky;top:var(--header-height);z-index:18;background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.5rem 1rem}
.product-analysis-page .pa-modal-body{max-height:none;overflow:visible;padding:1rem 1.2rem 1.3rem}
.product-analysis-page .pa-tab-panel{min-width:0}
.product-analysis-page .pa-summary-grid{grid-template-columns:minmax(0,2.2fr) minmax(300px,.8fr)}
.product-analysis-page .pa-compliance-grid{grid-template-columns:repeat(2,minmax(280px,1fr))}
.product-analysis-page .pa-detail-grid{grid-template-columns:minmax(300px,.8fr) minmax(0,1.6fr)}
.product-analysis-page .pa-monthly-chart{min-height:320px}
@media(max-width:1000px){.product-analysis-page .pa-summary-grid,.product-analysis-page .pa-compliance-grid,.product-analysis-page .pa-detail-grid{grid-template-columns:1fr}.product-analysis-page .pa-modal-header{align-items:flex-start}.product-analysis-page .pa-header-actions{flex-wrap:wrap}}

/* Recommendations header: filters are a clear second row instead of competing with the copy. */
.recommendation-hero-v2{display:grid!important;grid-template-columns:1fr!important;gap:1rem;padding:1.15rem 1.25rem!important;overflow:visible!important}
.recommendation-hero-v2 .recommendation-hero-copy{display:grid;gap:.55rem;min-width:0}
.recommendation-hero-v2 .recommendation-hero-title{display:flex;align-items:center;gap:1rem}
.recommendation-hero-v2 .recommendation-hero-title h2{margin:0}
.recommendation-filter-bar{display:grid!important;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(180px,1fr) repeat(2,minmax(150px,.85fr)) minmax(180px,1fr) auto;gap:.65rem;align-items:end;width:100%;max-width:none!important;position:relative;overflow:visible}
.recommendation-filter-bar label{min-width:0}
.recommendation-filter-bar select,.recommendation-filter-bar input{width:100%}
.recommendation-status-picker{position:relative;min-width:0}
.recommendation-status-picker>summary{min-height:42px;display:flex;align-items:center;padding:.6rem .75rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-weight:700;cursor:pointer;list-style:none}
.recommendation-status-picker>summary::-webkit-details-marker{display:none}
.recommendation-status-options{position:absolute;right:0;top:calc(100% + .35rem);z-index:90;width:min(360px,90vw);padding:.7rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 35px rgba(25,35,65,.16);display:grid;grid-template-columns:1fr 1fr;gap:.35rem}
.recommendation-status-options label{display:flex;align-items:center;gap:.45rem;padding:.35rem;border-radius:8px}
.recommendation-status-options input{width:auto}
@media(max-width:1250px){.recommendation-filter-bar{grid-template-columns:repeat(3,minmax(180px,1fr)) auto}.recommendation-custom-date{display:block!important}}
@media(max-width:760px){.recommendation-filter-bar{grid-template-columns:1fr}.recommendation-status-options{left:0;right:auto;grid-template-columns:1fr}.recommendation-hero-v2 .recommendation-hero-title{align-items:flex-start;flex-direction:column}}

/* Compact MSRP compliance cards. */
.compliance-summary-list{display:grid;gap:.8rem}
.compliance-summary-card{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr) auto;gap:1rem;align-items:center;padding:.9rem 1rem;border:1px solid var(--line);border-left:4px solid var(--line);border-radius:14px;background:var(--surface)}
.compliance-summary-card.is-compliant{border-left-color:#2da66d}.compliance-summary-card.is-noncompliant{border-left-color:#d95050}
.compliance-summary-product h3{margin:.35rem 0 .15rem;font-size:.96rem}.compliance-summary-product small{color:var(--muted)}
.compliance-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:.45rem}
.compliance-summary-metrics span{display:grid;gap:.15rem;padding:.45rem .55rem;border-radius:9px;background:var(--surface-2)}
.compliance-summary-metrics small{color:var(--muted)}
.compact-analysis-link{white-space:nowrap}
@media(max-width:1050px){.compliance-summary-card{grid-template-columns:1fr}.compliance-summary-metrics{grid-template-columns:repeat(2,minmax(130px,1fr))}.compact-analysis-link{justify-self:start}}

/* Dashboard executive expansion. */
.dashboard-operations-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.operational-analytics{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.operational-analytics .panel{min-width:0}
@media(max-width:1050px){.dashboard-operations-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.operational-analytics{grid-template-columns:1fr}}
@media(max-width:620px){.dashboard-operations-kpis{grid-template-columns:1fr}}

/* Commercial async ranking stays aligned after replacing anchor rows with div rows. */
.commercial-rank-row{position:relative}
.commercial-rank-product strong a{color:inherit;text-decoration:none}.commercial-rank-product strong a:hover{color:var(--primary);text-decoration:underline}

/* Prevent global sticky/stacking elements from covering the full product analysis content. */
.product-analysis-page .table-wrap{position:relative;z-index:1}

/* v49: análisis de producto como página dedicada real */
.content:has(.product-analysis-dedicated){max-width:none;padding-left:1.1rem;padding-right:1.1rem}
.product-analysis-dedicated{width:100%;margin:0;background:transparent;min-width:0}
.product-analysis-dedicated .product-analysis-page-toolbar{margin:0 0 .75rem;padding:.65rem .85rem;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.product-analysis-dedicated-card{background:transparent;min-width:0}
.product-analysis-dedicated .pa-modal-header{background:var(--surface);border:1px solid var(--line);border-radius:16px 16px 0 0;padding:1rem 1.15rem}
.product-analysis-dedicated .pa-modal-tabs{position:sticky;top:var(--header-height);z-index:22;background:var(--surface);border:1px solid var(--line);border-top:0;padding:.55rem .9rem}
.product-analysis-dedicated .pa-modal-body{padding:1rem 0 1.5rem;overflow:visible;max-height:none}
.product-analysis-dedicated .pa-tab-panel{min-width:0}
.product-analysis-dedicated .pa-summary-grid{grid-template-columns:minmax(0,2.15fr) minmax(320px,.85fr)}
.product-analysis-dedicated .pa-compliance-grid{grid-template-columns:repeat(2,minmax(300px,1fr))}
.product-analysis-dedicated .pa-detail-grid{grid-template-columns:minmax(320px,.75fr) minmax(0,1.65fr)}
.product-analysis-dedicated .pa-monthly-chart{min-height:330px}
.product-analysis-dedicated .pa-card{box-shadow:var(--shadow)}
.variation-inheritance-note{display:block;margin-top:.55rem;color:var(--muted);font-size:.74rem;line-height:1.45}
@media(max-width:1000px){.product-analysis-dedicated .pa-summary-grid,.product-analysis-dedicated .pa-compliance-grid,.product-analysis-dedicated .pa-detail-grid{grid-template-columns:1fr}.product-analysis-dedicated .pa-modal-header{align-items:flex-start}}

/* v49: recomendaciones de rentabilidad accionables */
.profitability-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.profitability-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(320px,.7fr);gap:1rem;margin-bottom:1.2rem}
.profitability-action-list{display:grid;gap:.7rem}
.profitability-action-row{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(420px,.9fr);gap:1rem;padding:.9rem;border:1px solid var(--line);border-left:4px solid var(--line);border-radius:14px;background:var(--surface);transition:.15s ease}
.profitability-action-row:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.profitability-action-row.tone-critical{border-left-color:var(--danger)}
.profitability-action-row.tone-warning{border-left-color:var(--warning)}
.profitability-action-row.tone-success{border-left-color:var(--success)}
.profitability-action-row.tone-info{border-left-color:var(--primary)}
.profitability-action-main{display:grid;gap:.28rem;align-content:start}
.profitability-action-main>strong{font-size:.92rem}.profitability-action-main>small{color:var(--muted);font-size:.72rem}.profitability-action-main>p{margin:.25rem 0 0;color:var(--text);font-size:.78rem;line-height:1.5}
.profitability-action-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem;align-content:start}
.profitability-action-metrics span{display:grid;gap:.12rem;background:var(--surface-2);border-radius:9px;padding:.5rem;text-align:right}.profitability-action-metrics small{font-size:.66rem;color:var(--muted)}.profitability-action-metrics b{font-size:.76rem;font-variant-numeric:tabular-nums}
.compact-profitability-list a{align-items:flex-start}.compact-profitability-list b{font-size:.72rem;white-space:nowrap}
@media(max-width:1250px){.profitability-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.profitability-layout{grid-template-columns:1fr}.profitability-action-row{grid-template-columns:1fr}.profitability-action-metrics{grid-template-columns:repeat(5,minmax(100px,1fr))}}
@media(max-width:720px){.profitability-kpis{grid-template-columns:1fr 1fr}.profitability-action-metrics{grid-template-columns:1fr 1fr}.profitability-action-metrics span{text-align:left}}

/* Análisis detallado: tipo de cambio MSRP visible y editable */
.product-analysis-dedicated .product-analysis-page-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
}
.pa-exchange-rate-control{display:flex;align-items:end;gap:.55rem;flex-wrap:wrap;margin-left:auto}
.pa-exchange-rate-control label{display:grid;gap:.2rem;min-width:170px}
.pa-exchange-rate-control label span{font-size:.72rem;color:var(--muted);font-weight:700}
.pa-exchange-rate-control input{width:150px;min-height:38px;border:1px solid var(--line);border-radius:10px;padding:.45rem .6rem;background:var(--surface);color:var(--text);font-weight:700}
.pa-exchange-rate-unit{align-self:center;color:var(--muted);font-size:.75rem;white-space:nowrap;margin-top:1rem}
.pa-exchange-rate-control.has-live-change input{outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:1px}
@media(max-width:760px){.pa-exchange-rate-control{width:100%;margin-left:0}.pa-exchange-rate-control label{flex:1;min-width:140px}.pa-exchange-rate-control input{width:100%}.pa-exchange-rate-unit{display:none}}
.pa-analysis-status-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:.8rem 0}
.pa-analysis-status-strip article{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);padding:.7rem .8rem;display:grid;gap:.22rem}
.pa-analysis-status-strip small,.pa-analysis-status-strip span{color:var(--muted);font-size:.72rem}
.pa-analysis-status-strip strong{font-size:.9rem}
@media(max-width:980px){.pa-analysis-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pa-analysis-status-strip{grid-template-columns:1fr}}

/* ===== V2 Resellers ===== */
.reseller-hero{display:flex;justify-content:space-between;gap:1.2rem;align-items:flex-start}.reseller-hero>div:first-child{max-width:820px}.reseller-hero-kpis{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:.55rem;min-width:420px}.reseller-hero-kpis article,.reseller-quote-kpis article{background:var(--surface-2);border:1px solid var(--border);border-radius:14px;padding:.75rem}.reseller-hero-kpis small,.reseller-quote-kpis small{display:block;color:var(--muted)}.reseller-hero-kpis strong,.reseller-quote-kpis strong{display:block;margin-top:.2rem;font-size:1.05rem}.reseller-customer-grid{display:grid;grid-template-columns:1.3fr 1.3fr .8fr 1fr;gap:.7rem}.reseller-customer-grid label,.reseller-settings-grid label{display:grid;gap:.3rem}.inline-control{display:flex;gap:.45rem}.inline-control input{min-width:0;flex:1}.reseller-offer-controls{display:grid;grid-template-columns:minmax(240px,1fr) 220px 250px;gap:.7rem;margin:1rem 0}.reseller-offer-controls>label,.reseller-offer-controls>article{background:var(--surface-2);border:1px solid var(--border);border-radius:14px;padding:.7rem}.reseller-offer-controls label{display:grid;gap:.3rem}.reseller-offer-controls article small,.reseller-offer-controls article span{display:block;color:var(--muted)}.reseller-offer-controls article strong{display:block;font-size:1.15rem;margin:.15rem 0}.reseller-catalog-toolbar,.reference-sync-toolbar{display:flex;justify-content:space-between;gap:.6rem;align-items:center;margin:.8rem 0}.reseller-catalog-toolbar input,.reference-sync-toolbar input{min-width:280px;max-width:520px}.reseller-catalog-wrap{max-height:640px}.reseller-catalog-table tbody tr.reseller-limit-hit{background:rgba(196,126,0,.06)}.reseller-catalog-table td small,.reference-sync-table td small{display:block;color:var(--muted);margin-top:.2rem}.reseller-catalog-table input[type=number]{width:88px}.reseller-builder-footer{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-top:1rem}.reseller-admin-summary{display:flex;gap:.55rem;flex-wrap:wrap}.reseller-admin-summary span{min-width:150px;padding:.6rem .75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}.reseller-admin-summary small{display:block;color:var(--muted)}.reseller-settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-bottom:.8rem}.reseller-terms-settings textarea{width:100%;resize:vertical}.reseller-quote-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem;margin-bottom:1rem}.reseller-quote-kpis span{color:var(--muted)}.reference-sync-table{max-height:680px}.reference-sync-table select{min-width:280px;max-width:420px}.msrp-truth-panel,.parts-reference-panel{margin-top:1rem}.reference-sync-toolbar select{min-width:160px}
@media(max-width:1100px){.reseller-hero{flex-direction:column}.reseller-hero-kpis{min-width:0;width:100%}.reseller-customer-grid{grid-template-columns:1fr 1fr}.reseller-offer-controls{grid-template-columns:1fr 1fr}.reseller-quote-kpis{grid-template-columns:1fr 1fr}}@media(max-width:700px){.reseller-hero-kpis,.reseller-customer-grid,.reseller-offer-controls,.reseller-settings-grid,.reseller-quote-kpis{grid-template-columns:1fr}.reseller-builder-footer,.reseller-catalog-toolbar,.reference-sync-toolbar{align-items:stretch;flex-direction:column}.reseller-catalog-toolbar input,.reference-sync-toolbar input{max-width:none;min-width:0;width:100%}.inline-control{flex-direction:column}}
.reseller-tier-buttons{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}.reseller-tier-buttons button,.reference-candidate{border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:999px;padding:.25rem .5rem;font:inherit;font-size:.72rem;cursor:pointer}.reseller-tier-buttons button:hover,.reference-candidate:hover{border-color:var(--accent);color:var(--accent)}

/* V2 Resellers + MSRP sync UX refresh */
.button.ghost{background:transparent;border:1px solid var(--border);color:var(--text)}
.button.ghost:hover{border-color:var(--accent);color:var(--accent)}
.badge.muted{background:var(--surface-2);color:var(--muted)}
.toggle-check{display:flex;align-items:center;gap:.45rem;padding:.75rem .9rem;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);font-size:.92rem}
.toggle-check input{margin:0}
.reseller-hero--elevated .reseller-hero-kpis{grid-template-columns:repeat(4,minmax(135px,1fr));min-width:560px}
.reseller-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1rem;align-items:start}
.reseller-side-summary{display:grid;gap:1rem;position:sticky;top:88px}.mini-panel{background:var(--surface-2);border:1px solid var(--border);border-radius:16px;padding:1rem}.mini-panel h4{margin:0 0 .35rem}.mini-panel p{margin:0;color:var(--muted);line-height:1.45}
.reseller-toolbar-grid,.reference-toolbar-grid{display:grid;grid-template-columns:minmax(250px,1.3fr) minmax(170px,.7fr) minmax(170px,.7fr) auto;gap:.65rem;align-items:center}
.reference-toolbar-grid{grid-template-columns:minmax(260px,1.5fr) minmax(180px,.8fr) auto}
.reseller-batch-actions,.reference-sync-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.reseller-catalog-toolbar--stack,.reference-sync-toolbar--stack{align-items:stretch;flex-direction:column}
.reseller-catalog-toolbar--stack>div:first-child p,.reference-sync-caption{color:var(--muted)}
.reseller-brand-strip{display:flex;flex-wrap:wrap;gap:.45rem;margin:.75rem 0 1rem}.brand-chip{border:1px solid var(--border);background:var(--surface-2);padding:.45rem .8rem;border-radius:999px;font:inherit;cursor:pointer;color:var(--text)}.brand-chip small{color:var(--muted)}.brand-chip.is-active,.brand-chip:hover{border-color:var(--accent);color:var(--accent);background:rgba(79,70,229,.06)}
.reseller-catalog-wrap{max-height:760px}.reseller-catalog-table td,.reference-sync-table td{vertical-align:top}.reseller-catalog-table tbody tr.row-selected{background:rgba(79,70,229,.05)}.reseller-catalog-table tbody tr.reseller-limit-hit.row-selected{background:rgba(196,126,0,.08)}.reseller-catalog-table input[type=number]{width:96px}
.reseller-admin-summary.vertical{display:grid}.reseller-admin-summary.vertical span{min-width:0}
.reference-sync-table{max-height:780px}.reference-sync-caption{margin:.35rem 0 .9rem}.reference-picker{width:100%}.reference-actions-inline{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.45rem}.reference-clear{border:1px solid var(--border);background:transparent;border-radius:999px;padding:.25rem .55rem;font:inherit;cursor:pointer;color:var(--muted)}.reference-clear:hover{border-color:var(--accent);color:var(--accent)}.reference-candidate.prominent{font-weight:600}.reference-suggestion-list{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.45rem}
.reference-sync-table tr[data-status="synced"] .badge{border-color:rgba(21,128,61,.18)}
.reference-sync-table tr[data-status="different"]{background:rgba(217,119,6,.035)}
.reference-sync-table tr[data-status="unlinked"]{background:rgba(148,163,184,.04)}
@media(max-width:1280px){.reseller-workspace{grid-template-columns:1fr}.reseller-side-summary{position:static}.reseller-hero--elevated .reseller-hero-kpis{grid-template-columns:repeat(2,minmax(140px,1fr));min-width:0;width:100%}}
@media(max-width:900px){.reseller-toolbar-grid,.reference-toolbar-grid{grid-template-columns:1fr}.reseller-batch-actions,.reference-sync-actions{display:grid;grid-template-columns:1fr 1fr}.reseller-hero--elevated .reseller-hero-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.reseller-batch-actions,.reference-sync-actions{grid-template-columns:1fr}.reseller-brand-strip{overflow:auto;flex-wrap:nowrap;padding-bottom:.25rem}.reseller-brand-strip .brand-chip{white-space:nowrap}.reseller-hero--elevated .reseller-hero-kpis{grid-template-columns:1fr}}

/* Reseller invoice workflow */
.reseller-invoice-shell{display:grid;gap:1rem}.reseller-invoice-document{padding:0;overflow:hidden}.reseller-invoice-header{display:flex;justify-content:space-between;gap:1rem;padding:1.25rem 1.35rem;border-bottom:1px solid var(--border);background:linear-gradient(180deg,var(--surface),var(--surface-2))}.reseller-invoice-header h2{margin:.25rem 0}.reseller-invoice-actions{display:flex;align-items:flex-start;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.reseller-invoice-actions small{width:100%;text-align:right;color:var(--muted)}
.invoice-customer-grid{padding:1rem 1.35rem 0}.reseller-offer-controls--invoice{grid-template-columns:minmax(260px,1.25fr) repeat(5,minmax(145px,.65fr));padding:0 1.35rem;margin:1rem 0}.reseller-offer-controls--invoice>article{min-height:92px}.reseller-selected-section{padding:0 1.35rem}.reseller-selected-table td small{display:block;color:var(--muted);margin-top:.2rem}.reseller-selected-table input[type=number]{width:82px}.warning-text{display:block;color:#b45309;margin-top:.2rem}.compact-button{padding:.45rem .65rem}.reseller-invoice-totals{display:flex;justify-content:flex-end;gap:.6rem;padding:1.15rem 1.35rem;background:var(--surface-2);border-top:1px solid var(--border)}.reseller-invoice-totals>div{min-width:160px;padding:.65rem .8rem;background:var(--surface);border:1px solid var(--border);border-radius:12px}.reseller-invoice-totals span{display:block;color:var(--muted);font-size:.78rem}.reseller-invoice-totals strong{display:block;font-size:1rem;margin-top:.15rem}.reseller-invoice-totals .grand strong{font-size:1.25rem;color:var(--accent)}
.reseller-catalog-panel .reseller-toolbar-grid{margin-bottom:.65rem}.compact-toggle{padding:.65rem .8rem}.reseller-catalog-table .icon-button{white-space:nowrap}.reseller-catalog-table tr.row-selected{box-shadow:inset 3px 0 0 var(--accent)}
.reseller-preview-dialog{width:min(1050px,92vw);max-height:88vh}.reseller-preview-sheet{background:#fff;color:#172033;border:1px solid #d9e0ec;border-radius:18px;padding:1.4rem}.reseller-preview-sheet header{display:flex;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid #d9e0ec}.reseller-preview-sheet header div:last-child{text-align:right;display:grid;gap:.15rem}.reseller-preview-sheet table{width:100%;margin-top:1rem;border-collapse:collapse}.reseller-preview-sheet th,.reseller-preview-sheet td{padding:.7rem;border-bottom:1px solid #e7ebf2;text-align:left}.reseller-preview-sheet td small{display:block;color:#6b7280}.reseller-preview-sheet footer{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;margin-top:1rem}.reseller-preview-sheet footer div{border:1px solid #e0e6ef;border-radius:12px;padding:.75rem}.reseller-preview-sheet footer span{display:block;color:#6b7280;font-size:.78rem}.reseller-preview-sheet footer strong{display:block;margin-top:.2rem}.reseller-preview-sheet footer .grand{background:#f5f3ff}.reseller-preview-sheet footer .grand strong{color:#4f46e5;font-size:1.1rem}
.reseller-choice-dialog{width:min(760px,92vw)}.operation-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:1rem}.operation-choice{display:grid;gap:.35rem;text-align:left;border:1px solid var(--border);border-radius:16px;padding:1rem;background:var(--surface);color:var(--text);font:inherit;cursor:pointer}.operation-choice:hover{border-color:var(--accent);box-shadow:0 12px 30px rgba(79,70,229,.08)}.operation-choice strong{font-size:1rem}.operation-choice span{color:var(--muted);line-height:1.45}.danger-choice{border-color:rgba(190,24,93,.25);background:rgba(190,24,93,.035)}
@media(max-width:1350px){.reseller-offer-controls--invoice{grid-template-columns:1fr 1fr 1fr}.reseller-offer-controls--invoice>label{grid-column:1/-1}}
@media(max-width:800px){.reseller-invoice-header{flex-direction:column}.reseller-invoice-actions{justify-content:flex-start}.reseller-invoice-actions small{text-align:left}.reseller-offer-controls--invoice{grid-template-columns:1fr 1fr}.reseller-invoice-totals{flex-direction:column}.reseller-invoice-totals>div{min-width:0}.operation-choice-grid{grid-template-columns:1fr}.reseller-preview-sheet footer{grid-template-columns:1fr 1fr}}
.pos-finalize-mode-dialog{width:min(760px,92vw)}
.pos-history-table td .badge{margin-top:.25rem;font-size:.68rem}

/* Reseller full-width refresh v63 */
body.page-resellers .content{max-width:none;width:auto;margin:0;padding-inline:1.2rem}
body.page-resellers .topbar{left:var(--sidebar-width)}
.modal-dialog{z-index:1;position:relative;width:min(1080px,calc(100% - 2rem));max-height:calc(100vh - 2rem);overflow:auto;padding:1.35rem;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 35px 100px rgba(0,0,0,.35)}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.modal-header h3{margin:.2rem 0}.modal-header p{margin:.2rem 0 0;color:var(--muted)}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1rem}
.reseller-page-head{margin-bottom:1rem}.reseller-invoice-shell--wide{gap:1rem}.reseller-invoice-document--wide{overflow:visible}.reseller-invoice-header--invoice{align-items:flex-start}
.reseller-invoice-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(360px,.9fr);gap:1rem;padding:1.15rem 1.35rem 0}.reseller-invoice-block{border:1px solid var(--line);border-radius:18px;background:var(--surface)}.reseller-invoice-block--customer,.reseller-invoice-block--controls{padding:1rem}.invoice-section-head{margin-bottom:.9rem}.invoice-section-head h3{margin:.1rem 0}.invoice-section-head p{margin:.2rem 0 0;color:var(--muted);font-size:.82rem}
.invoice-customer-grid--wide{padding:0!important;grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-customer-grid--wide .span-2{grid-column:span 2}.invoice-customer-grid--wide small{color:var(--muted)}
.reseller-offer-controls--invoice-wide{padding:0!important;margin:0!important;grid-template-columns:repeat(3,minmax(0,1fr))}.reseller-offer-controls--invoice-wide>article,.reseller-discount-card{min-height:112px}.reseller-discount-card{grid-column:1/-1}.reseller-discount-card small{display:block;color:var(--muted)}
.reseller-selected-section--invoice{padding:1rem 1.35rem 0}.reseller-selected-wrap{border:1px solid var(--line);border-radius:18px;overflow:auto}.reseller-selected-table--invoice{min-width:980px}
.reseller-invoice-totals--invoice{position:sticky;bottom:0;z-index:4;background:linear-gradient(180deg,rgba(247,249,252,.82),#f7f9fc 28%)}
.reseller-catalog-panel--wide{padding-bottom:1rem}.reseller-toolbar-grid--wide{grid-template-columns:minmax(280px,1.5fr) minmax(180px,.7fr) minmax(180px,.7fr) minmax(160px,.5fr)}.compact-toggle{height:100%;justify-content:center}.compact-toggle span{font-weight:800}
.reseller-catalog-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0}.reseller-load-modes{display:flex;gap:.5rem;flex-wrap:wrap}.reseller-load-modes .button.is-active{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
.reseller-batch-actions--wide{display:flex;gap:.5rem;flex-wrap:wrap}.reseller-catalog-wrap--wide{max-height:none;border:1px solid var(--line);border-radius:18px;overflow:auto}.reseller-catalog-table--invoice{min-width:1220px}.reseller-catalog-table--invoice thead th,.reseller-selected-table--invoice thead th{position:static!important;top:auto!important;box-shadow:none!important}
.reseller-row--parent{background:rgba(79,70,229,.035)}.reseller-row--child td{background:linear-gradient(180deg,rgba(247,249,252,.78),rgba(247,249,252,.78))}.reseller-row--child td:first-child{padding-left:2.2rem}.reseller-row.is-locked{opacity:.6}.reseller-product-cell{display:grid;gap:.25rem}.reseller-product-cell strong{display:block;font-size:.96rem}.reseller-product-cell small{display:block;color:var(--muted)}.reseller-product-cell--child strong{font-size:.88rem}.child-badge{background:#e8f8f1;color:#117650}.muted-note{max-width:560px}
.operation-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.operation-choice{border:1px solid var(--line);background:var(--surface-2);padding:1rem;border-radius:18px;text-align:left;cursor:pointer}.operation-choice strong{display:block;font-size:1.02rem}.operation-choice span{display:block;margin-top:.4rem;color:var(--muted);line-height:1.5}.operation-choice:hover{border-color:var(--primary);transform:translateY(-1px)}.danger-choice{background:#fff7f7}.danger-choice:hover{border-color:var(--danger)}
.reseller-preview-dialog{width:min(1200px,calc(100% - 2rem))}.reseller-preview-sheet{display:grid;gap:1rem}.reseller-preview-sheet header{display:flex;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.reseller-preview-sheet header small,.reseller-preview-sheet header span{display:block;color:var(--muted)}.reseller-preview-sheet table{min-width:100%}.reseller-preview-sheet footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.reseller-preview-sheet footer>div{padding:.85rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.reseller-preview-sheet footer span{display:block;color:var(--muted);font-size:.76rem}.reseller-preview-sheet footer strong{display:block;margin-top:.15rem}.reseller-preview-sheet footer .grand strong{font-size:1.2rem;color:var(--primary)}
@media(max-width:1200px){.reseller-invoice-grid{grid-template-columns:1fr}.reseller-offer-controls--invoice-wide{grid-template-columns:repeat(2,minmax(0,1fr))}.reseller-toolbar-grid--wide{grid-template-columns:1fr 1fr}.invoice-customer-grid--wide{grid-template-columns:1fr 1fr}.invoice-customer-grid--wide .span-2{grid-column:1/-1}}
@media(max-width:820px){body.page-resellers .content{padding-inline:.85rem}.reseller-toolbar-grid--wide,.invoice-customer-grid--wide,.reseller-offer-controls--invoice-wide,.operation-choice-grid,.reseller-preview-sheet footer{grid-template-columns:1fr}.reseller-catalog-actions-bar,.reseller-load-modes,.reseller-batch-actions--wide{display:grid;width:100%}.reseller-load-modes .button,.reseller-batch-actions--wide .button{width:100%}.reseller-invoice-header--invoice{flex-direction:column}.reseller-invoice-actions small{text-align:left}.modal-dialog{width:calc(100% - 1rem);padding:.9rem}.reseller-preview-sheet header{display:grid}.reseller-row--child td:first-child{padding-left:1rem}}

/* Ofertas Revendedores v64 */
.reseller-proforma-admin{padding:0;overflow:visible}
.reseller-document-header-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}
.reseller-document-header-grid article{padding:1rem 1.1rem;border-right:1px solid var(--line);min-height:106px;display:grid;align-content:start;gap:.35rem}.reseller-document-header-grid article:last-child{border-right:0}.reseller-document-header-grid small{font-size:.72rem;color:var(--muted);font-weight:850}.reseller-document-header-grid strong{font-size:1rem}.reseller-document-header-grid article>span{font-size:.7rem;color:var(--muted)}.reseller-document-header-grid input{padding:.55rem .65rem;font-weight:750}.header-id-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem}.header-id-control .button{padding:.55rem .8rem}
.reseller-commercial-header{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(360px,1.4fr) minmax(420px,1.4fr);border-bottom:1px solid var(--line)}.reseller-commercial-header>div{padding:1rem 1.1rem;border-right:1px solid var(--line)}.reseller-commercial-header>div:last-child{border-right:0}.commercial-title h2{margin:.15rem 0;font-size:1.35rem}.commercial-title p,.commercial-discount small{color:var(--muted);font-size:.72rem;line-height:1.45}.commercial-discount{display:grid;gap:.6rem}.commercial-discount label{grid-template-columns:minmax(150px,1fr) 120px;align-items:center}.commercial-discount label span{font-size:.75rem}.reseller-tier-buttons--header{margin:0}.reseller-tier-buttons--header button{padding:.4rem .65rem;font-weight:800}.commercial-stock-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.commercial-stock-metrics article{padding:.65rem .75rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.commercial-stock-metrics small,.commercial-stock-metrics span{display:block;color:var(--muted);font-size:.68rem}.commercial-stock-metrics strong{display:block;font-size:1.05rem;margin:.1rem 0}
.reseller-admin-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.6rem;padding:1rem 1.1rem;border-bottom:1px solid var(--line);background:var(--surface-2)}.reseller-admin-summary-grid article{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.7rem .8rem}.reseller-admin-summary-grid small,.reseller-admin-summary-grid span{display:block;color:var(--muted);font-size:.67rem}.reseller-admin-summary-grid strong{display:block;font-size:1rem;margin:.18rem 0}
.reseller-contact-strip{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.7fr) minmax(420px,1.2fr);gap:.7rem;padding:1rem 1.1rem}.reseller-invoice-actions{align-self:end}.reseller-invoice-actions .button{min-width:120px}
.reseller-config-panel{margin-top:0}.reseller-settings-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.settings-save-status{font-size:.72rem;color:var(--success);font-weight:750}.reseller-terms-editor-wrap{margin-top:1rem;border:1px solid var(--line);border-radius:14px;overflow:hidden}.reseller-terms-editor-wrap>summary{cursor:pointer;padding:.8rem 1rem;background:var(--surface-2);font-weight:850;color:var(--primary)}.rich-editor{background:var(--surface)}.rich-editor-toolbar{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;padding:.55rem .65rem;border-bottom:1px solid var(--line);background:var(--surface-2)}.rich-editor-toolbar button,.rich-editor-toolbar select{width:auto;min-width:34px;border:0;background:var(--surface);border-radius:8px;padding:.45rem .55rem;cursor:pointer;color:var(--text)}.rich-editor-toolbar button:hover{background:#eef0ff;color:var(--primary)}.rich-editor-body{min-height:220px;max-height:460px;overflow:auto;padding:1rem 1.1rem;outline:0;line-height:1.55}.rich-editor-body:focus{box-shadow:inset 0 0 0 2px rgba(68,89,231,.16)}.rich-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.65rem .8rem;border-top:1px solid var(--line);background:var(--surface-2)}.rich-editor-footer span{font-size:.7rem;color:var(--muted)}
.reseller-selected-table--admin{min-width:1780px}.reseller-selected-table--admin .column-groups th{text-align:center;background:var(--surface-2);font-size:.66rem}.reseller-selected-table--admin thead th{position:static!important;top:auto!important;box-shadow:none!important}.reseller-selected-table--admin td small{display:block;color:var(--muted);margin-top:.18rem}.reseller-selected-table--admin input[type=number]{width:84px}.reseller-summary-ledger{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.6rem;margin-top:.8rem}.reseller-summary-ledger>div{padding:.7rem .8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.reseller-summary-ledger span{display:block;color:var(--muted);font-size:.68rem}.reseller-summary-ledger strong{display:block;margin-top:.15rem}.reseller-summary-ledger .grand{background:#101727;color:#fff}.reseller-summary-ledger .grand span{color:#cfd6e6}.reseller-summary-ledger .grand strong{font-size:1.1rem}
.manual-hint{align-self:center;color:var(--muted);font-size:.72rem}.reseller-catalog-table--invoice thead th{position:static!important;top:auto!important}.reseller-catalog-wrap--wide{overflow:auto}.reseller-row--child td:first-child{border-left:3px solid #d7dcf7}.reseller-row.is-locked td{background:rgba(148,163,184,.08)}
.operation-choice-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.reseller-preview-dialog{width:min(1480px,calc(100% - 2rem));max-height:calc(100vh - 2rem)}.reseller-preview-final{display:grid;gap:1rem}.preview-document-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0!important;border:1px solid var(--line);border-radius:12px;overflow:hidden;padding:0!important}.preview-document-meta>div{padding:.8rem;border-right:1px solid var(--line)}.preview-document-meta>div:last-child{border-right:0}.preview-document-meta small,.preview-document-meta strong{display:block}.preview-document-meta small{color:var(--muted);font-size:.68rem}.preview-commercial{display:grid;grid-template-columns:1.2fr repeat(3,minmax(0,.8fr));gap:.6rem}.preview-commercial>div{padding:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.preview-commercial small,.preview-commercial span{display:block;color:var(--muted);font-size:.68rem}.preview-commercial strong{display:block;margin:.18rem 0}.preview-reseller-table{min-width:1180px}.preview-reseller-table td small{display:block;color:var(--muted)}.preview-summary-ledger{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:.6rem!important}.preview-summary-ledger>div{padding:.7rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.preview-summary-ledger span{display:block;color:var(--muted);font-size:.67rem}.preview-summary-ledger .grand{background:#101727;color:#fff}.preview-summary-ledger .grand span{color:#cfd6e6}.preview-return-summary{padding:1rem;border:1px solid #dfe5ff;background:#f7f8ff;border-radius:14px}.preview-return-summary p{margin:0;line-height:1.55}.preview-terms-annex{padding-top:1rem;border-top:2px solid var(--line)}.preview-terms-annex h3{margin:.1rem 0 .7rem}.terms-rendered{line-height:1.55;color:var(--text)}.terms-rendered p{margin:.45rem 0}.terms-rendered ul,.terms-rendered ol{padding-left:1.25rem}
@media(max-width:1450px){.reseller-admin-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reseller-commercial-header{grid-template-columns:1fr 1.3fr}.commercial-stock-metrics{grid-column:1/-1}.reseller-commercial-header>div:nth-child(2){border-right:0}.reseller-commercial-header>div:nth-child(3){border-top:1px solid var(--line)}}
@media(max-width:1050px){.reseller-document-header-grid{grid-template-columns:1fr 1fr}.reseller-document-header-grid article:nth-child(2){border-right:0}.reseller-document-header-grid article:nth-child(n+3){border-top:1px solid var(--line)}.reseller-commercial-header{grid-template-columns:1fr}.reseller-commercial-header>div{border-right:0;border-top:1px solid var(--line)}.reseller-contact-strip{grid-template-columns:1fr 1fr}.reseller-invoice-actions{grid-column:1/-1}.reseller-settings-grid--compact{grid-template-columns:1fr 1fr}.reseller-summary-ledger,.preview-summary-ledger{grid-template-columns:1fr 1fr!important}.preview-commercial{grid-template-columns:1fr 1fr}.operation-choice-grid--three{grid-template-columns:1fr}.reseller-admin-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.reseller-document-header-grid,.reseller-contact-strip,.reseller-settings-grid--compact,.reseller-admin-summary-grid,.commercial-stock-metrics,.preview-document-meta,.preview-commercial,.reseller-summary-ledger,.preview-summary-ledger{grid-template-columns:1fr!important}.reseller-document-header-grid article{border-right:0!important;border-top:1px solid var(--line)}.reseller-document-header-grid article:first-child{border-top:0}.commercial-discount label{grid-template-columns:1fr}.rich-editor-footer{align-items:stretch;flex-direction:column}.rich-editor-footer .button{width:100%}.reseller-invoice-actions{display:grid;width:100%}.reseller-invoice-actions .button{width:100%}}
.quote-detail-badges{display:flex;gap:.45rem;flex-wrap:wrap;margin:.6rem 0}.reseller-saved-document{padding:0;overflow:visible}.reseller-commercial-header--saved{grid-template-columns:minmax(240px,.7fr) minmax(0,1.8fr)}.saved-terms-html{line-height:1.6}.saved-terms-html p{margin:.45rem 0}.saved-terms-html ul,.saved-terms-html ol{padding-left:1.3rem}.document-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.document-action-grid form{display:grid;align-content:start;gap:.55rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.document-action-grid h4,.document-action-grid p{margin:0}.document-action-grid p{color:var(--muted);font-size:.72rem;line-height:1.45}.document-action-grid .button{margin-top:auto}.document-action-grid select{margin-bottom:.25rem}@media(max-width:1100px){.document-action-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.document-action-grid{grid-template-columns:1fr}.reseller-commercial-header--saved{grid-template-columns:1fr}}
.rich-editor-body table,.terms-rendered table,.saved-terms-html table{width:100%;border-collapse:collapse;margin:.75rem 0}.rich-editor-body th,.rich-editor-body td,.terms-rendered th,.terms-rendered td,.saved-terms-html th,.saved-terms-html td{border:1px solid var(--line);padding:.5rem .6rem;text-align:left}.rich-editor-body th,.terms-rendered th,.saved-terms-html th{background:var(--surface-2)}

/* Ofertas Revendedores v65: orden lógico, secciones plegables, paginación y estados hover */
button:not(:disabled),.button:not(:disabled),.icon-button:not(:disabled),a.button{transition:background-color .16s ease,color .16s ease,border-color .16s ease,filter .16s ease,transform .16s ease,box-shadow .16s ease}
button:not(:disabled):hover,.button:not(:disabled):hover,.icon-button:not(:disabled):hover,a.button:hover{filter:brightness(.94);transform:translateY(-1px)}
.button.primary:not(:disabled):hover{filter:brightness(1.08);box-shadow:0 8px 20px rgba(68,89,231,.24)}
.button.secondary:not(:disabled):hover{background:#dde2ff;color:#3541b7}
.button.ghost:not(:disabled):hover{background:#edf0f6;color:var(--primary)}
.icon-button:not(:disabled):hover{color:#2f42d0;text-decoration:underline}
.danger-soft:not(:disabled):hover{background:#fff0f1!important;color:var(--danger)!important;border-color:#f1b9bf!important}
.reseller-tier-buttons button:not(:disabled):hover{background:#e7eaff;border-color:var(--primary);color:var(--primary)}

.reseller-section-collapse{padding:0;overflow:hidden}
.reseller-section-collapse>.reseller-section-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;cursor:pointer;background:linear-gradient(180deg,#fff,#fafbfe);border-radius:18px;font-weight:800}
.reseller-section-collapse>.reseller-section-summary::-webkit-details-marker{display:none}
.reseller-section-summary>span:first-child{display:grid;gap:.18rem}
.reseller-section-summary b{font-size:1rem;color:var(--text)}
.reseller-section-summary small{font-weight:500;color:var(--muted)}
.reseller-section-summary .collapse-indicator{font-size:.72rem;color:var(--primary);white-space:nowrap}
.reseller-section-collapse[open]>.reseller-section-summary{border-bottom:1px solid var(--line);border-radius:18px 18px 0 0;background:#f8f9fe}
.reseller-section-collapse[open]>.reseller-section-summary .collapse-indicator::before{content:'Ocultar · '}
.reseller-section-collapse:not([open])>.reseller-section-summary .collapse-indicator::before{content:'Mostrar · '}
.reseller-section-collapse>.table-wrap,.reseller-section-collapse>.reseller-summary-ledger,.reseller-section-collapse>.reseller-toolbar-grid,.reseller-section-collapse>.reseller-catalog-actions-bar,.reseller-section-collapse>.reseller-brand-strip,.reseller-section-collapse>.reseller-catalog-pagination,.reseller-section-collapse>.reseller-settings-grid,.reseller-section-collapse>.settings-save-status,.reseller-section-collapse>.reseller-terms-editor-wrap{margin-left:1rem;margin-right:1rem}
.reseller-section-collapse>.table-wrap{margin-top:1rem}
.reseller-section-collapse>.reseller-summary-ledger{margin-bottom:1rem}
.reseller-section-collapse>.reseller-toolbar-grid{margin-top:1rem}
.reseller-section-collapse>.reseller-catalog-pagination{margin-bottom:1rem}
.reseller-config-panel>.reseller-settings-grid{margin-top:1rem}
.reseller-config-panel>.reseller-terms-editor-wrap{margin-bottom:1rem}

.reseller-selected-table--admin.no-smart-columns,.reseller-catalog-table--invoice.no-smart-columns{width:100%;table-layout:auto}
.reseller-selected-table--admin.no-smart-columns thead th,.reseller-catalog-table--invoice.no-smart-columns thead th{position:static!important;top:auto!important;z-index:auto!important;box-shadow:none!important}
.reseller-selected-table--admin.no-smart-columns th,.reseller-selected-table--admin.no-smart-columns td{white-space:normal}
.reseller-selected-table--admin.no-smart-columns td:last-child,.reseller-selected-table--admin.no-smart-columns th:last-child{width:48px;text-align:center}
.reseller-remove-x{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid #efc7cb;border-radius:9px;background:#fff7f7;color:var(--danger);font-size:1.25rem;line-height:1;cursor:pointer}
.reseller-remove-x:hover{background:#ffe8ea!important;color:#b52233!important;border-color:#e78f99!important;transform:scale(1.04)!important}

.reseller-catalog-pagination{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.9rem 0 1rem;border-top:1px solid var(--line)}
.reseller-catalog-pagination [data-page-info]{min-width:240px;text-align:center;color:var(--muted);font-size:.8rem;font-weight:700}
.reseller-catalog-pagination button:disabled{opacity:.45;cursor:not-allowed;transform:none!important}
.reseller-catalog-actions-bar{margin-top:.9rem;margin-bottom:.8rem}
.reseller-load-modes{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}
.reseller-load-modes .manual-hint{margin-left:.25rem}

.reseller-financial-summary .reseller-summary-ledger{padding-top:.9rem}
.reseller-contact-strip{border-bottom:1px solid var(--line)}
.reseller-admin-summary-grid{border-top:0}

@media(max-width:900px){
  .reseller-section-collapse>.reseller-section-summary{align-items:flex-start}.reseller-section-summary .collapse-indicator{white-space:normal;text-align:right}.reseller-catalog-pagination{flex-wrap:wrap}.reseller-catalog-pagination [data-page-info]{order:-1;width:100%}.reseller-load-modes{display:grid}.reseller-load-modes .button{width:100%}
}

/* Reseller PSV semantics v66 */
.page-resellers .preview-reseller-table th>span,
.page-resellers .reseller-catalog-table th>span{display:block;font-weight:850}
.page-resellers .preview-reseller-table th>small,
.page-resellers .reseller-catalog-table th>small{display:block;margin-top:.18rem;color:var(--muted);font-size:.58rem;font-weight:650;line-height:1.25;text-transform:none;letter-spacing:0}
.page-resellers .reseller-selected-table--admin td small{line-height:1.3}

/* Reseller pricing roles v67 */
.discount-effective-note{display:block;margin-top:.35rem;padding:.48rem .6rem;border-radius:10px;background:rgba(68,89,231,.06);color:#4e5a78;font-weight:650;line-height:1.4}
.reseller-settings-grid label small{display:block;color:var(--muted);font-weight:500;line-height:1.45}

/* Reseller v70: resultados de carga y detalle comercial confiable */
.reseller-product-title-link{display:block;margin:.18rem 0 0;padding:0;border:0;background:transparent;color:var(--text);font:inherit;font-weight:850;text-align:left;cursor:pointer;line-height:1.3}.reseller-product-title-link:hover,.reseller-product-title-link:focus-visible{color:var(--primary);text-decoration:underline;text-underline-offset:3px}.reseller-product-title-link:focus-visible{outline:2px solid rgba(68,89,231,.32);outline-offset:3px;border-radius:5px}
.reseller-batch-result-dialog,.reseller-product-detail-dialog{z-index:2!important;background:#fff!important;color:var(--text)!important;opacity:1!important;isolation:isolate;box-shadow:0 36px 110px rgba(7,12,28,.42)!important}
.reseller-batch-result-dialog{width:min(900px,calc(100% - 2rem))}.reseller-batch-result-body{display:grid;gap:1rem}.batch-result-success{display:grid;gap:.2rem;padding:.9rem 1rem;border:1px solid #bcebd9;border-radius:14px;background:#eefaf5;color:#116b4c}.batch-result-success span{font-size:.78rem}.batch-result-list{display:grid;gap:.7rem}.batch-result-list h4{margin:0}.batch-result-list article{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.7fr);gap:1rem;padding:.9rem 1rem;border:1px solid #f1c9ce;border-left:4px solid var(--danger);border-radius:14px;background:#fff8f8}.batch-result-list article strong,.batch-result-list article small,.batch-result-list article b{display:block}.batch-result-list article small{margin-top:.2rem;color:var(--muted)}.batch-result-list article b{margin-bottom:.25rem;color:#9f2734}.batch-result-list article p{margin:0;color:#5f6878;line-height:1.45}.batch-result-existing{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);padding:.75rem .9rem}.batch-result-existing summary{cursor:pointer;font-weight:800;color:var(--muted)}.batch-result-existing div{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.65rem}.batch-result-existing span{padding:.3rem .55rem;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:.72rem}
.reseller-product-detail-dialog{width:min(1180px,calc(100% - 2rem));max-height:calc(100vh - 2rem)}.reseller-product-detail-content{display:grid;gap:1rem}.product-detail-warning{display:grid;gap:.25rem;padding:.9rem 1rem;border:1px solid #f1c9ce;border-left:4px solid var(--danger);border-radius:14px;background:#fff7f7;color:#8f2631}.product-detail-warning span{font-size:.8rem}.product-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.product-detail-grid section{padding:1rem;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}.product-detail-grid h4{margin:0 0 .75rem;font-size:.9rem}.product-detail-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.product-detail-kpis>div{min-width:0;padding:.75rem .8rem;border:1px solid var(--line);border-radius:12px;background:#fff}.product-detail-kpis small,.product-detail-kpis strong,.product-detail-kpis span{display:block}.product-detail-kpis small{color:var(--muted);font-size:.68rem}.product-detail-kpis strong{margin:.18rem 0;font-size:.92rem;overflow-wrap:anywhere}.product-detail-kpis span{color:var(--muted);font-size:.68rem;line-height:1.35}
@media(max-width:800px){.batch-result-list article,.product-detail-grid,.product-detail-kpis{grid-template-columns:1fr}.reseller-batch-result-dialog,.reseller-product-detail-dialog{width:calc(100% - 1rem)}}

/* v71 · selector de protección Flashforge */
.flashforge-protection-toggle{display:flex;align-items:center;gap:.8rem;margin-top:.8rem;padding:.8rem .9rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}.flashforge-protection-toggle:hover{border-color:var(--primary);background:#f2f4ff;box-shadow:0 5px 16px rgba(68,89,231,.09)}.flashforge-protection-toggle input{position:absolute;opacity:0;pointer-events:none}.flashforge-protection-toggle .toggle-ui{position:relative;flex:0 0 44px;width:44px;height:24px;border-radius:999px;background:#cbd2df;transition:.18s}.flashforge-protection-toggle .toggle-ui::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.22);transition:.18s}.flashforge-protection-toggle input:checked+.toggle-ui{background:var(--primary)}.flashforge-protection-toggle input:checked+.toggle-ui::after{transform:translateX(20px)}.flashforge-protection-toggle .toggle-copy{display:grid;gap:.18rem;min-width:0}.flashforge-protection-toggle .toggle-copy strong{font-size:.78rem}.flashforge-protection-toggle .toggle-copy small{color:var(--muted);line-height:1.35}.flashforge-protection-toggle input:focus-visible+.toggle-ui{outline:3px solid rgba(68,89,231,.22);outline-offset:2px}.settings-toggle-card{padding:.8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.settings-toggle-row{display:flex;align-items:center;gap:.65rem;margin:.45rem 0}.settings-toggle-row input{width:18px;height:18px;accent-color:var(--primary)}.settings-toggle-row strong{font-size:.8rem}.flashforge-protection-toggle--header{max-width:640px}

/* v73 · Catálogo reseller basado en inventario completo */
.reseller-catalog-help{display:grid;gap:.7rem;margin:0 0 1rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fbfcff,#f7f9ff)}
.reseller-catalog-help>strong{font-size:.96rem}.reseller-catalog-help>span{color:var(--muted);line-height:1.45}
.protection-help-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.protection-help{display:block;padding:.75rem;border-radius:13px;border:1px solid var(--line);background:#fff}.protection-help b,.protection-help small{display:block}.protection-help small{margin-top:.25rem;color:var(--muted);line-height:1.35}.protection-complete{border-left:4px solid #16a34a}.protection-msrp{border-left:4px solid #2563eb}.protection-internal{border-left:4px solid #7c3aed}.protection-warning{border-left:4px solid #d97706}
.reseller-toolbar-grid--catalog-all{display:grid;grid-template-columns:minmax(280px,1.45fr) minmax(170px,.75fr) minmax(170px,.75fr) minmax(210px,.9fr) minmax(150px,.55fr);gap:.65rem;align-items:stretch}
.reseller-protection-badge{display:inline-flex;width:max-content;max-width:100%;margin-top:.35rem;padding:.28rem .5rem;border-radius:999px;font-size:.7rem;font-weight:800;line-height:1.15;cursor:help}.reseller-protection-badge.protection-flashforge_complete{background:#dcfce7;color:#166534}.reseller-protection-badge.protection-msrp_only{background:#dbeafe;color:#1d4ed8}.reseller-protection-badge.protection-internal_only{background:#ede9fe;color:#6d28d9}.reseller-protection-badge.protection-no_cost,.reseller-protection-badge.protection-no_psv{background:#fef3c7;color:#92400e}
@media(max-width:1300px){.protection-help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reseller-toolbar-grid--catalog-all{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:800px){.protection-help-grid,.reseller-toolbar-grid--catalog-all{grid-template-columns:1fr}}

/* Reseller v74 · ítems custom y ajustes manuales protegidos */
.reseller-catalog-table--invoice.no-smart-columns td:last-child,.reseller-catalog-table--invoice.no-smart-columns th:last-child{min-width:132px}
.reseller-protected-check{display:flex;align-items:flex-start;gap:.4rem;margin-bottom:.45rem;padding:.45rem .5rem;border:1px solid #f0c36a;border-radius:10px;background:#fff8e7;color:#805600;font-size:.68rem;font-weight:800;line-height:1.25;cursor:pointer}.reseller-protected-check input{width:auto;margin:.05rem 0 0;accent-color:var(--warning)}
.batch-adjust-button{width:max-content;margin-top:.7rem;padding:.58rem .8rem;font-size:.76rem}
.reseller-manual-item-dialog{width:min(920px,calc(100% - 2rem));max-height:calc(100vh - 2rem);overflow:auto;background:var(--surface);color:var(--text)}
.reseller-manual-item-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;padding:1rem}.reseller-manual-item-form label{align-content:start}.reseller-manual-item-form .manual-net-toggle{grid-column:1/-1;padding:.85rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.manual-net-toggle>span{display:flex;align-items:center;gap:.5rem}.manual-net-toggle>span input{width:auto}.manual-net-toggle small{color:var(--muted);font-weight:500}
.reseller-manual-calculation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:0 1rem 1rem;padding:.85rem;border:1px solid #bcebd9;border-radius:14px;background:#eefaf5}.reseller-manual-calculation>div{min-width:0}.reseller-manual-calculation small,.reseller-manual-calculation strong{display:block}.reseller-manual-calculation small{color:#39715f;font-size:.68rem}.reseller-manual-calculation strong{margin-top:.2rem;overflow-wrap:anywhere}.reseller-manual-calculation p{grid-column:1/-1;margin:0;color:#116b4c;font-size:.78rem}.reseller-manual-calculation.is-invalid{border-color:#f1c9ce;background:#fff7f7}.reseller-manual-calculation.is-invalid small,.reseller-manual-calculation.is-invalid p{color:#8f2631}
@media(max-width:800px){.reseller-manual-item-dialog{width:calc(100% - 1rem)}.reseller-manual-item-form{grid-template-columns:1fr}.reseller-manual-calculation{grid-template-columns:repeat(2,minmax(0,1fr))}.reseller-protected-check{max-width:150px}}
@media(prefers-color-scheme:dark){.reseller-protected-check{border-color:#765d28;background:#332b19;color:#f5d58e}.reseller-manual-calculation{border-color:#285f50;background:#17352d}.reseller-manual-calculation small,.reseller-manual-calculation p{color:#a6dfcc}.reseller-manual-calculation.is-invalid{border-color:#743943;background:#3b2025}.reseller-manual-calculation.is-invalid small,.reseller-manual-calculation.is-invalid p{color:#f3a8b0}}
