:root{--yellow:#f4c400;--yellow2:#ffd83d;--black:#111214;--ink:#22252a;--muted:#73777f;--bg:#f5f6f8;--white:#fff;--panel:#fff;--soft:#f7f8fa;--border:#e1e3e7;--green:#178a50;--red:#c93b3b;--orange:#9a5a00;--shadow:0 10px 30px rgba(20,20,20,.08);--mono:Consolas,"SFMono-Regular",ui-monospace,monospace;color-scheme:light}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}.topbar{height:74px;background:var(--black);display:flex;align-items:center;justify-content:space-between;padding:0 26px;color:#fff;position:sticky;top:0;z-index:20}.brand{font-weight:900;letter-spacing:-1px;font-size:24px;display:flex;align-items:baseline;gap:5px}.brand-level{color:var(--yellow)}.brand-phone{color:#fff}.brand small{font-size:10px;color:#b9bbc0;letter-spacing:1.8px;margin-left:8px}.top-actions{display:flex;align-items:center;gap:14px}.user-badge{font-size:13px;color:#d4d6da}.layout{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 74px)}.sidebar{background:#17181b;padding:24px 14px}.nav-item{display:flex;gap:12px;align-items:center;color:#bfc2c8;padding:13px 14px;border-radius:10px;margin:5px 0;font-weight:650;font-size:14px}.nav-item:hover,.nav-item.active{background:var(--yellow);color:#161616}.content{padding:28px;max-width:1600px;width:100%;margin:auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h1{margin:0 0 5px;font-size:30px}.page-head p{margin:0;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:11px 15px;font-weight:800;cursor:pointer}.btn-primary{background:var(--yellow);color:#161616}.btn-primary:hover{background:var(--yellow2)}.btn-dark{background:#202226;color:#fff}.btn-outline{border:1px solid #565960;color:#fff;padding:8px 12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.card{background:var(--white);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:19px}.metric-label{font-size:13px;color:var(--muted);font-weight:700}.metric-value{font-size:28px;font-weight:900;margin-top:7px;letter-spacing:-.6px}.metric-note{font-size:12px;color:var(--muted);margin-top:7px}.metric.danger .metric-value{color:var(--red)}.metric.success .metric-value{color:var(--green)}.panel{background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;margin-bottom:20px}.panel-head{padding:17px 19px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.panel-head h2{font-size:17px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid #eff0f2;white-space:nowrap}th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#747983;background:#fafafa}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.badge.red{background:#feeaea;color:#a92f2f}.badge.green{background:#e6f6ed;color:#13703f}.badge.yellow{background:#fff4bf;color:#7d6200}.badge.gray{background:#eceef1;color:#555b65}.form-card{max-width:850px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:800;color:#555a62}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe1e5;border-radius:9px;padding:11px 12px;font:inherit;background:#fff}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid rgba(244,196,0,.24);border-color:#d0a800}.form-actions{display:flex;gap:10px;margin-top:18px}.alert{padding:12px 14px;border-radius:10px;margin-bottom:18px;font-weight:700;font-size:14px}.alert.success{background:#e9f7ef;color:#116b3b}.alert.error{background:#fdecec;color:#a52e2e}.empty{padding:34px;text-align:center;color:var(--muted)}.searchbar{display:flex;gap:10px}.searchbar input{border:1px solid #dedfe3;border-radius:9px;padding:10px 12px;min-width:260px}.login-page{min-height:100vh;background:linear-gradient(135deg,#fff 0,#fff8d7 100%);display:grid;place-items:center;padding:20px}.login-card{width:100%;max-width:430px;background:#fff;border-radius:20px;box-shadow:0 22px 60px rgba(0,0,0,.12);padding:38px}.login-logo{text-align:center;font-size:34px;font-weight:950;margin-bottom:6px}.login-logo span{color:#e7b900}.login-card h1{text-align:center;font-size:22px;margin:10px 0 6px}.login-card p{text-align:center;color:var(--muted);margin:0 0 25px}.login-card .field{margin-bottom:14px}.login-card .btn{width:100%;padding:13px;margin-top:5px}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:76px 1fr}.sidebar{padding:18px 9px}.nav-item span{display:none}.nav-item{justify-content:center;font-size:18px}.brand{font-size:20px}.content{padding:20px}}
@media(max-width:650px){.cards{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.topbar{padding:0 14px}.brand small,.user-badge{display:none}.content{padding:15px}.page-head{align-items:flex-start;flex-direction:column}.layout{grid-template-columns:1fr}.sidebar{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;padding:7px;background:#17181b;justify-content:space-around}.nav-item{margin:0;padding:10px}.content{padding-bottom:82px}}
.action-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.table-link{font-weight:800;color:#8a6d00}.table-link:hover{text-decoration:underline}.badge.blue{background:#e8f1ff;color:#245ea8}.back-link{display:inline-block;font-size:13px;font-weight:750;color:#777;margin-bottom:8px}.subtle{display:block;font-size:12px;color:var(--muted);margin-top:4px}.notice-share{background:#17181b;color:#fff;border-radius:14px;padding:16px 18px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.notice-share span{color:#c8c9cc;font-size:13px}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:20px}.quick-card{background:#fff;border:1px solid var(--border);border-radius:13px;padding:16px;display:flex;align-items:center;gap:13px;box-shadow:var(--shadow)}.quick-card>span{width:42px;height:42px;border-radius:11px;background:#fff5c2;display:grid;place-items:center;font-size:20px;font-weight:900}.quick-card strong,.quick-card small{display:block}.quick-card small{color:var(--muted);margin-top:3px}.timeline{padding:4px 20px 12px}.timeline-item{display:grid;grid-template-columns:18px 1fr auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #eff0f2}.timeline-dot{width:9px;height:9px;border-radius:50%;background:var(--yellow)}.timeline-main strong,.timeline-main span,.timeline-right strong,.timeline-right span{display:block}.timeline-main span,.timeline-right span{font-size:12px;color:var(--muted);margin-top:3px}.timeline-right{text-align:right}.split-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.balance-block{display:flex;align-items:center;justify-content:space-between}.balance-block span{color:var(--muted);font-weight:750}.balance-block strong{font-size:23px}.field-help{font-size:11px;color:var(--muted);line-height:1.4}.image-builder{display:flex;justify-content:center;padding-bottom:30px}.image-builder canvas{width:min(100%,810px);height:auto;border-radius:18px;box-shadow:0 14px 45px rgba(0,0,0,.14);background:#fff}
@media(max-width:1000px){.quick-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.quick-actions,.split-cards{grid-template-columns:1fr}.notice-share{align-items:flex-start;flex-direction:column}.action-row{width:100%}.searchbar{width:100%}.searchbar input{min-width:0;flex:1}}
.manual-box{border:1px solid #e3e4e7;border-radius:12px;background:#fafafa;padding:15px}.manual-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.manual-head small{display:block;color:var(--muted);margin-top:3px}.manual-total{font-size:13px;color:var(--muted)}.manual-total strong{font-size:17px;color:var(--ink)}.text-danger{color:var(--red)!important}.debt-list{border-top:1px solid #e6e7e9}.debt-row{display:grid;grid-template-columns:1fr minmax(250px,340px);gap:18px;align-items:center;padding:13px 2px;border-bottom:1px solid #e9eaec}.debt-row strong,.debt-row small{display:block}.debt-row small{margin-top:4px;color:var(--muted)}.debt-balance{display:grid;grid-template-columns:auto 130px;align-items:center;justify-content:end;gap:12px}.debt-balance span{font-size:12px;color:var(--muted);font-weight:700}.debt-balance input{width:130px;border:1px solid #dfe1e5;border-radius:8px;padding:9px 10px}.empty.compact{padding:18px}.wrap-cell{white-space:normal;min-width:260px;max-width:480px;line-height:1.35}.quick-actions-5{grid-template-columns:repeat(5,1fr)}
@media(max-width:1200px){.quick-actions-5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.debt-row{grid-template-columns:1fr}.debt-balance{justify-content:space-between;grid-template-columns:auto 130px}.quick-actions-5{grid-template-columns:1fr}}
.quick-actions-6{grid-template-columns:repeat(6,1fr)}
.statement-sheet{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);max-width:1180px;margin:0 auto 28px}.statement-top{background:#111214;color:#fff;padding:28px 34px;display:flex;align-items:center;justify-content:space-between}.statement-brand{font-size:27px;font-weight:950;letter-spacing:-1px}.statement-brand span{color:var(--yellow)}.statement-top small{color:#bec1c7;font-size:10px;letter-spacing:1.5px;font-weight:800}.statement-date{text-align:right}.statement-date small,.statement-date strong{display:block}.statement-date strong{margin-top:5px}.statement-client{padding:30px 34px 24px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.statement-client small,.statement-summary small,.statement-total small{display:block;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.7px}.statement-client h2{font-size:27px;margin:6px 0 3px}.statement-client p{margin:0;color:var(--muted)}.statement-total{background:#fff8d4;border-radius:12px;padding:16px 20px;min-width:250px}.statement-total strong{display:block;font-size:28px;margin-top:5px}.statement-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.statement-summary>div{background:#fafafa;padding:18px 34px}.statement-summary strong{display:block;font-size:20px;margin-top:5px}.statement-section{padding:25px 34px 5px}.statement-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.statement-section-head h3{margin:0;font-size:16px}.statement-section-head span{font-size:12px;color:var(--muted)}.statement-foot{margin-top:22px;background:#f7f8fa;padding:17px 34px;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:1250px){.quick-actions-6{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.quick-actions-6{grid-template-columns:1fr}.statement-client{align-items:stretch;flex-direction:column}.statement-total{width:100%}.statement-summary{grid-template-columns:1fr}.statement-section{padding:20px 16px}.statement-top,.statement-client{padding-left:18px;padding-right:18px}}
@media print{body{background:#fff}.topbar,.sidebar,.no-print{display:none!important}.layout{display:block}.content{padding:0;max-width:none}.statement-sheet{border:0;box-shadow:none;margin:0;max-width:none}.statement-section table{font-size:10px}.statement-section th,.statement-section td{padding:8px}.statement-top{-webkit-print-color-adjust:exact;print-color-adjust:exact}.statement-total,.statement-summary{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.alert[data-auto-dismiss]{overflow:hidden;transition:opacity .3s ease,transform .3s ease,max-height .3s ease,margin .3s ease,padding .3s ease;max-height:100px}
.alert[data-auto-dismiss].is-dismissing{opacity:0;transform:translateY(-5px);max-height:0;margin-top:0!important;margin-bottom:0!important;padding-top:0;padding-bottom:0}
@media(prefers-reduced-motion:reduce){.alert[data-auto-dismiss]{transition:none}.alert[data-auto-dismiss].is-dismissing{display:none}}

/* Tema oscuro V4.3 */
.theme-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid #565960;background:transparent;color:#fff;border-radius:9px;padding:8px 11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.theme-toggle:hover{border-color:var(--yellow);color:var(--yellow)}
.theme-icon{font-size:16px;line-height:1}
html[data-theme="dark"]{--ink:#f1f2f4;--muted:#a9adb5;--bg:#101114;--white:#1b1d21;--panel:#1b1d21;--soft:#15171a;--border:#30333a;--shadow:0 10px 30px rgba(0,0,0,.24);--green:#45c983;--red:#ff7070;--orange:#e6a23c;color-scheme:dark}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .statement-sheet{background:var(--white);border-color:var(--border)}
html[data-theme="dark"] .panel-head,
html[data-theme="dark"] th,
html[data-theme="dark"] .statement-summary>div{background:#202226}
html[data-theme="dark"] th,html[data-theme="dark"] td,
html[data-theme="dark"] .panel-head,
html[data-theme="dark"] .statement-summary,
html[data-theme="dark"] .statement-sheet{border-color:var(--border)}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .searchbar input,
html[data-theme="dark"] .debt-balance input{background:#15171a;color:var(--ink);border-color:#3a3e46}
html[data-theme="dark"] .field label,
html[data-theme="dark"] .catalog-field-grid .field>span,
html[data-theme="dark"] .catalog-filter-panel label>span,
html[data-theme="dark"] .catalog-search-field>span,
html[data-theme="dark"] .catalog-adjust-form .field>span,
html[data-theme="dark"] .catalog-danger-zone .field>span,
html[data-theme="dark"] .catalog-family-field>label,
html[data-theme="dark"] .catalog-cabys-field>label{color:#c7cad0}
html[data-theme="dark"] .manual-box{background:#17191d;border-color:#353840}
html[data-theme="dark"] .debt-list,html[data-theme="dark"] .debt-row{border-color:#34373d}
html[data-theme="dark"] .statement-total{background:#3a3210}
html[data-theme="dark"] .statement-foot{background:#202226}
html[data-theme="dark"] .badge.gray{background:#30343a;color:#d8dbe0}
html[data-theme="dark"] .badge.yellow{background:#4a3c00;color:#ffe36d}
html[data-theme="dark"] .badge.green{background:#123b28;color:#7be0aa}
html[data-theme="dark"] .badge.red{background:#491f22;color:#ff9b9b}
@media(max-width:650px){.theme-text{display:none}.theme-toggle{padding:8px 10px}.top-actions{gap:8px}.user-badge{display:none}}
@media print{html[data-theme="dark"] body{background:#fff;color:#222}.statement-sheet{background:#fff;color:#222}}

/* V5 · Cobranza y vencimientos */
.dashboard-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.collection-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.metric.warning .metric-value{color:var(--orange)}
.collection-link{transition:transform .15s ease,border-color .15s ease}.collection-link:hover{transform:translateY(-2px);border-color:var(--yellow)}
.collection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
.filter-pills{display:flex;flex-wrap:wrap;gap:8px}.filter-pills a{background:var(--white);border:1px solid var(--border);border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800;color:var(--muted)}.filter-pills a:hover,.filter-pills a.active{background:var(--yellow);border-color:var(--yellow);color:#171717}
.priority-dot{display:inline-block;width:10px;height:10px;border-radius:50%}.priority-dot.high{background:#d94a4a;box-shadow:0 0 0 4px rgba(217,74,74,.12)}.priority-dot.medium{background:#d99b17;box-shadow:0 0 0 4px rgba(217,155,23,.12)}.priority-dot.low{background:#28a264;box-shadow:0 0 0 4px rgba(40,162,100,.12)}
.cell-note{display:block;color:var(--muted);font-size:11px;margin-top:4px;font-weight:500}
.row-overdue td{background:rgba(201,59,59,.025)}
.credit-term-help{display:flex;flex-direction:column;gap:5px;border:1px solid #ead574;background:#fff9dd;border-radius:10px;padding:13px 15px;font-size:12px}.credit-term-help span{color:#716420;line-height:1.5}
.client-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
html[data-theme="dark"] .credit-term-help{background:#332d12;border-color:#5b4e17}html[data-theme="dark"] .credit-term-help span{color:#d9ca7f}
html[data-theme="dark"] .row-overdue td{background:rgba(255,112,112,.035)}
@media(max-width:1300px){.dashboard-5,.client-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.collection-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-toolbar{align-items:stretch;flex-direction:column}}
@media(max-width:650px){.dashboard-5,.collection-metrics,.client-metrics{grid-template-columns:1fr}}

/* V6 · Herramientas, importación y respaldo */
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}
.tool-card{display:flex;align-items:center;gap:18px;background:var(--white);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:22px;transition:transform .15s ease,border-color .15s ease}
.tool-card:hover{transform:translateY(-2px);border-color:var(--yellow)}
.tool-card strong{display:block;font-size:17px}.tool-card p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.tool-icon{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--yellow);color:#171717;font-size:23px;font-weight:900;flex:none}
.tool-advice,.import-explain,.correction-warning{border:1px solid #e5d06a;background:#fff9dc;border-radius:11px;padding:15px 17px;line-height:1.5;margin-bottom:18px}
.tool-advice strong,.import-explain strong,.correction-warning strong{display:block;margin-bottom:4px}.import-explain p{margin:4px 0 0;color:#665b22;font-size:13px}
.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.backup-grid .card{padding:24px}.backup-grid h2{margin:8px 0}.backup-grid p{color:var(--muted);line-height:1.55}.backup-icon{font-size:31px;font-weight:900;color:var(--orange)}
.import-confirm{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--white);border:1px solid var(--border);border-radius:14px;padding:18px 20px;box-shadow:var(--shadow)}.import-confirm p{margin:4px 0 0;color:var(--muted);font-size:13px}
.sheet-picker{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--border)}.sheet-picker select{border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:var(--white);color:var(--ink)}
.two-cards{grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}
.correction-warning{display:flex;flex-direction:column}.correction-warning span{color:#665b22;font-size:13px}
html[data-theme="dark"] .tool-advice,html[data-theme="dark"] .import-explain,html[data-theme="dark"] .correction-warning{background:#332d12;border-color:#5b4e17}
html[data-theme="dark"] .import-explain p,html[data-theme="dark"] .correction-warning span{color:#d9ca7f}
@media(max-width:800px){.tool-grid,.backup-grid,.two-cards{grid-template-columns:1fr}.import-confirm{align-items:stretch;flex-direction:column}.import-confirm form,.import-confirm .btn{width:100%}}

/* V6.4 · flujo operativo */
[hidden]{display:none!important}
.table-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.inline-form{display:inline;margin:0}
.link-danger{border:0;background:transparent;padding:0;color:var(--red);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.link-danger:hover{text-decoration:underline}
.multi-save{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.btn-success-temp{background:#198754!important;color:#fff!important;border-color:#198754!important}
.timeline-edit{display:block;margin-top:5px;color:var(--yellow);font-size:11px;font-weight:800}
html[data-theme="dark"] .link-danger{color:#ff8585}
@media(max-width:650px){.multi-save .btn{width:100%}.table-actions{gap:8px}}

/* V6.5.1 · Ajuste de ancho y aprovechamiento de pantalla */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.topbar{width:100%;max-width:100%}
.layout{
    width:100%;
    max-width:100%;
    grid-template-columns:230px minmax(0,1fr);
}


/* POS 0.89.1: entrada unificada y documento fiscal automático por receptor. */
.sale-choice-grid.sale-choice-grid-single{grid-template-columns:minmax(0,1fr)}
.pos-segments.pos-document-segments{grid-template-columns:repeat(4,minmax(0,1fr))}
.pos-segments.pos-condition-segments{grid-template-columns:repeat(2,minmax(0,1fr))}
.sidebar{min-width:0}
.content{
    width:100%;
    max-width:none;
    min-width:0;
    margin:0;
    padding:28px 30px;
}
.page-head{min-width:0}
.page-head>div:first-child{min-width:0}
.action-row{display:flex;flex-wrap:wrap;justify-content:flex-end}
.cards,.quick-actions,.split-cards,.panel,.statement-sheet{min-width:0}
.table-wrap{width:100%;max-width:100%;overflow-x:auto}
table{min-width:max-content}
.client-metrics{width:100%}
.quick-actions-6{width:100%}
.panel{width:100%;max-width:100%}

/* En pantallas grandes, distribuimos un poco mejor las acciones de la ficha */
@media(min-width:1450px){
    .content{padding-left:34px;padding-right:34px}
    .client-head{align-items:flex-start}
    .client-head .action-row{max-width:70%;gap:10px}
}

/* En resoluciones medianas evitamos que los botones superiores fuercen el ancho */
@media(max-width:1250px){
    .client-head{align-items:flex-start;flex-direction:column}
    .client-head .action-row{width:100%;justify-content:flex-start}
}

/* Móvil/tablet */
@media(max-width:750px){
    .layout{grid-template-columns:1fr}
    .sidebar{display:none}
    .content{padding:18px 14px}
    .topbar{padding-left:14px;padding-right:14px}
}

/* V6.5.2 · Modo oscuro y menú compacto de acciones */
.action-menu{position:relative;display:inline-flex}
.action-menu-btn{width:34px;height:34px;border:1px solid var(--border);border-radius:9px;background:var(--white);color:var(--ink);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.action-menu-btn:hover{border-color:var(--yellow);background:#fff8d4}
.action-menu-pop{display:none;position:absolute;right:0;top:40px;min-width:205px;background:var(--white);border:1px solid var(--border);border-radius:11px;box-shadow:0 14px 34px rgba(0,0,0,.18);padding:7px;z-index:50}
.action-menu.open .action-menu-pop{display:block}
.action-menu-pop a,.action-menu-pop button{display:block;width:100%;text-align:left;padding:10px 11px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:750;border-radius:8px;cursor:pointer}
.action-menu-pop a:hover,.action-menu-pop button:hover{background:var(--bg)}
.action-menu-pop form{margin:0}
.action-menu-pop .danger-option{color:var(--red)}

/* Corrige componentes que antes quedaban claros en dark mode */
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .collection-link,
html[data-theme="dark"] .notice-share,
html[data-theme="dark"] .import-confirm,
html[data-theme="dark"] .statement-sheet,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card{
  background:#1b1d21;
  color:#f1f2f4;
  border-color:#30333a;
}
html[data-theme="dark"] .quick-card strong,
html[data-theme="dark"] .quick-card span,
html[data-theme="dark"] .quick-card div,
html[data-theme="dark"] .tool-card strong,
html[data-theme="dark"] .panel h2,
html[data-theme="dark"] .panel h3{
  color:#f1f2f4;
}
html[data-theme="dark"] .quick-card small,
html[data-theme="dark"] .tool-card p,
html[data-theme="dark"] .subtle,
html[data-theme="dark"] .metric-note,
html[data-theme="dark"] .field-help{
  color:#a9adb5;
}
html[data-theme="dark"] .quick-card>span,
html[data-theme="dark"] .tool-icon{
  background:#4a3c00;
  color:#ffe36d;
}
html[data-theme="dark"] .quick-card:hover,
html[data-theme="dark"] .tool-card:hover{
  border-color:var(--yellow);
  background:#22252a;
}
html[data-theme="dark"] .action-menu-btn{background:#202226;color:#f1f2f4;border-color:#3b3e45}
html[data-theme="dark"] .action-menu-btn:hover{background:#3a3210;border-color:var(--yellow)}
html[data-theme="dark"] .action-menu-pop{background:#202226;border-color:#3b3e45;box-shadow:0 16px 38px rgba(0,0,0,.42)}
html[data-theme="dark"] .action-menu-pop a,
html[data-theme="dark"] .action-menu-pop button{color:#f1f2f4}
html[data-theme="dark"] .action-menu-pop a:hover,
html[data-theme="dark"] .action-menu-pop button:hover{background:#2b2e34}
html[data-theme="dark"] .action-menu-pop .danger-option{color:#ff8585}

html[data-theme="dark"] .statement-total{background:#3a3210}
html[data-theme="dark"] .statement-summary>div{background:#202226}
html[data-theme="dark"] .statement-foot{background:#202226;color:#a9adb5}
html[data-theme="dark"] .table-wrap{background:transparent}
html[data-theme="dark"] table{background:transparent}
html[data-theme="dark"] th{background:#202226;color:#a9adb5}
html[data-theme="dark"] td{color:#f1f2f4;border-color:#30333a}
html[data-theme="dark"] .empty{color:#a9adb5}

/* V6.5.3 · Ayuda de portapapeles */
.clipboard-help{
  max-width:900px;
  margin:0 auto 16px;
  padding:11px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--white);
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
html[data-theme="dark"] .clipboard-help{
  background:#1b1d21;
  border-color:#30333a;
  color:#a9adb5;
}

/* Level Phone Facturación · Fase 1 */
.context-chip{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15;color:#fff}.context-chip:hover strong{color:var(--yellow)}.context-chip strong{font-size:12px}.context-chip span{font-size:10px;color:#aeb1b7;margin-top:4px}.btn-outline-dark{border:1px solid var(--border);background:var(--white);color:var(--ink)}.btn-outline-dark:hover{border-color:var(--yellow)}.login-version{display:block;text-align:center;color:var(--muted);margin-top:22px}.terminal-card,.context-card{max-width:620px}.terminal-grid,.context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}.terminal-option input{position:absolute;opacity:0}.terminal-option span{display:flex;flex-direction:column;border:2px solid var(--border);border-radius:12px;padding:16px;cursor:pointer}.terminal-option small{color:var(--muted);margin-top:5px}.terminal-option input:checked+span{border-color:var(--yellow);background:#fff8d4}.terminal-card .btn,.context-card .btn{width:100%}.terminal-logout{display:block;text-align:center;margin-top:18px}.metric.warning .metric-value{color:var(--orange)}.inventory-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}.collection-toolbar>select{border:1px solid var(--border);border-radius:9px;padding:10px 12px;background:var(--white);color:var(--ink)}
.sale-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.sale-choice-card{display:flex;gap:20px;align-items:flex-start;background:var(--white);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:28px}.sale-choice-card h2{margin:5px 0 8px;font-size:25px}.sale-choice-card p{color:var(--muted);line-height:1.5;min-height:48px}.sale-choice-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:14px;background:var(--yellow);color:#171717;font-size:25px;font-weight:900;flex:none}.sale-choice-icon.dark{background:#202226;color:#fff}.eyebrow{display:block;color:var(--orange);text-transform:uppercase;letter-spacing:.8px;font-size:10px;font-weight:900}.phase-note{border:1px solid #dec553;background:#fff9dc;border-radius:13px;padding:18px 20px;margin:0 0 20px}.phase-note strong{display:block}.phase-note p{margin:5px 0 0;color:#665b22;line-height:1.5;font-size:13px}.warning-note{border-color:#e4bb61;background:#fff5df}.close-card{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-top:20px}.close-card h2{margin:0 0 6px}.close-card p{margin:0;color:var(--muted)}.close-form{display:grid;grid-template-columns:170px 260px auto;gap:10px;align-items:end}.wide-form{max-width:none;margin-bottom:18px}.line-builder select,.line-builder input{width:100%;border:1px solid var(--border);border-radius:8px;padding:9px 10px;background:var(--white);color:var(--ink)}.line-builder select{min-width:440px}.line-builder input{min-width:130px}.line-remove{width:32px;height:32px;border:0;border-radius:8px;background:#feeaea;color:var(--red);font-size:20px;font-weight:900;cursor:pointer}.transfer-actions{margin:18px 0}.control-ticket{max-width:900px;margin:0 auto 30px;background:#fff;color:#171717;border:1px solid #ddd;box-shadow:var(--shadow);padding:30px}.control-ticket header{display:flex;justify-content:space-between;gap:20px;border-bottom:3px solid #171717;padding-bottom:16px}.ticket-brand strong,.ticket-brand small,.ticket-number strong,.ticket-number small{display:block}.ticket-brand strong{font-size:25px}.ticket-brand strong span{color:#d7aa00}.ticket-brand small{margin-top:5px}.ticket-number{text-align:right}.ticket-number small{font-weight:900}.ticket-number strong{font-size:18px;margin-top:5px}.ticket-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:20px 0}.ticket-meta span,.ticket-meta strong{display:block}.ticket-meta span{font-size:9px;text-transform:uppercase;letter-spacing:.7px;color:#777;font-weight:900}.ticket-meta strong{font-size:12px;margin-top:4px}.control-ticket table{font-size:12px}.control-ticket th{background:#171717;color:#fff}.control-ticket td small{display:block;color:#666;margin-top:4px}.ticket-total{display:flex;justify-content:flex-end;align-items:baseline;gap:25px;border-top:2px solid #171717;padding:18px 0}.ticket-total span{font-size:12px;font-weight:900}.ticket-total strong{font-size:25px}.ticket-note{border:1px solid #ddd;padding:13px;margin-bottom:18px}.ticket-note p{margin:5px 0 0}.control-ticket footer{text-align:center;border-top:1px dashed #777;padding-top:16px}.control-ticket footer strong,.control-ticket footer span{display:block}.control-ticket footer span{font-size:10px;margin-top:5px}.ticket-cancelled{color:#b82424;border:3px solid #b82424;text-align:center;font-size:28px;font-weight:950;padding:8px;margin:18px 0;transform:rotate(-2deg)}
html[data-theme="dark"] .phase-note{background:#332d12;border-color:#5b4e17}html[data-theme="dark"] .phase-note p{color:#d9ca7f}html[data-theme="dark"] .terminal-option input:checked+span{background:#3a3210}html[data-theme="dark"] .sale-choice-card{background:var(--white)}html[data-theme="dark"] .line-builder select,html[data-theme="dark"] .line-builder input{background:#202226;color:var(--ink)}
.catalog-toolbar{justify-content:flex-start;flex-wrap:wrap}.catalog-toolbar .searchbar{margin-right:auto}.import-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-table{max-height:420px}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0}.pagination span{font-size:13px;font-weight:800;color:var(--muted)}.btn.disabled,.btn:disabled{opacity:.45;pointer-events:none;cursor:not-allowed;filter:grayscale(.35);box-shadow:none}.icon-edit{width:34px;height:34px;border-radius:9px;background:#fff4bf;color:#6b5500;display:grid;place-items:center;font-size:18px;font-weight:900}.icon-edit:hover{background:var(--yellow);color:#171717}html[data-theme="dark"] .icon-edit{background:#3a3210;color:#f4c400}
@media(max-width:900px){.import-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-toolbar .searchbar{margin-right:0}}
@media(max-width:650px){.import-summary{grid-template-columns:1fr}.catalog-toolbar select{width:100%}.pagination{justify-content:space-between}.pagination span{font-size:11px}}
.inventory-product-table .product-stock-cell{min-width:220px;vertical-align:top}.stock-list{display:grid;gap:6px}.stock-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--border);border-radius:8px;padding:6px 9px;background:var(--bg)}.stock-entry span{max-width:155px;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:var(--muted)}.stock-entry strong{font-size:14px}.stock-entry.stock-ok strong{color:var(--green)}.stock-entry.stock-low strong{color:var(--red)}html[data-theme="dark"] .stock-entry{background:#15171a;border-color:#34373d}
.warehouse-selector{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--white);border:2px solid var(--yellow);border-radius:14px;padding:16px 18px;margin:0 0 20px;box-shadow:var(--shadow)}.warehouse-selector-copy{display:flex;flex-direction:column;gap:3px}.warehouse-selector-copy>span{font-size:10px;text-transform:uppercase;letter-spacing:.8px;font-weight:900;color:var(--orange)}.warehouse-selector-copy strong{font-size:17px}.warehouse-selector-copy small{font-size:12px;color:var(--muted)}.warehouse-selector-control{min-width:310px}.warehouse-selector select{width:100%;border:1px solid var(--border);border-radius:10px;padding:12px 42px 12px 13px;background:var(--white);color:var(--ink);font:inherit;font-weight:800;cursor:pointer}html[data-theme="dark"] .warehouse-selector{background:#1b1d21;border-color:var(--yellow)}html[data-theme="dark"] .warehouse-selector select{background:#15171a;color:var(--ink);border-color:#3a3e46}@media(max-width:750px){.warehouse-selector{align-items:stretch;flex-direction:column;gap:12px}.warehouse-selector-control{min-width:0;width:100%}}
@media(max-width:1000px){.sale-choice-grid{grid-template-columns:1fr}.close-card{align-items:stretch;flex-direction:column}.close-form{width:100%;grid-template-columns:1fr 1fr auto}}
@media(max-width:750px){.top-actions .context-chip{display:none}.sidebar{display:flex;overflow-x:auto;justify-content:flex-start}.nav-item{min-width:56px}.sale-choice-card{padding:20px}.ticket-meta{grid-template-columns:repeat(2,1fr)}.close-form{grid-template-columns:1fr}.terminal-grid{grid-template-columns:1fr}.inventory-cards{grid-template-columns:1fr}.line-builder select{min-width:280px}}
@media print{.control-ticket{box-shadow:none;border:0;margin:0;max-width:none;padding:10px}.control-ticket footer{margin-top:18px}}

/* Level Phone Facturación · Fase 4 · Borradores de venta */
.sale-choice-link{transition:transform .15s ease,border-color .15s ease}.sale-choice-link:hover{transform:translateY(-2px);border-color:var(--yellow)}
.pos-context-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--white);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:16px 18px;margin-bottom:18px}.pos-warehouse-form{display:flex;align-items:center;gap:12px}.pos-warehouse-form label{font-size:12px;font-weight:850}.pos-warehouse-form select{min-width:260px;border:1px solid var(--border);border-radius:9px;background:var(--white);color:var(--ink);padding:10px 12px;font:inherit;font-weight:750}.pos-cash-status{display:flex;flex-direction:column;align-items:flex-end}.pos-cash-status span,.pos-submit-bar span{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);font-weight:900}.pos-cash-status strong{font-size:17px;margin-top:3px}.pos-cash-status small,.pos-submit-bar small{font-size:11px;color:var(--muted);margin-top:3px}.text-success{color:var(--green)!important}.pos-lines .sales-product{min-width:430px}.pos-lines select,.pos-lines input{border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:9px 10px;font:inherit}.pos-lines .sales-price-type{min-width:105px}.pos-lines .sales-quantity{width:105px}.pos-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#17181b;color:#fff;border-radius:14px;padding:18px 20px;margin:18px 0 24px;box-shadow:var(--shadow)}.pos-submit-bar>div:first-child{display:flex;flex-direction:column}.pos-submit-bar strong{font-size:28px;margin-top:3px}.pos-submit-bar .btn{min-width:180px}.draft-total{background:var(--white);color:var(--ink);border:1px solid var(--border)}.draft-meta{background:var(--white);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:18px;margin-bottom:18px}.draft-meta>div{min-width:0}.draft-meta strong{overflow:hidden;text-overflow:ellipsis}.draft-total form{margin:0}html[data-theme="dark"] .pos-context-bar,html[data-theme="dark"] .draft-meta,html[data-theme="dark"] .draft-total{background:#1b1d21;border-color:#30333a}html[data-theme="dark"] .pos-warehouse-form select,html[data-theme="dark"] .pos-lines select,html[data-theme="dark"] .pos-lines input{background:#15171a;color:var(--ink);border-color:#3a3e46}
@media(max-width:850px){.pos-context-bar{align-items:stretch;flex-direction:column}.pos-warehouse-form{align-items:stretch;flex-direction:column}.pos-warehouse-form select{min-width:0;width:100%}.pos-cash-status{align-items:flex-start}.pos-submit-bar{align-items:stretch;flex-direction:column}.pos-submit-bar .btn{width:100%}}

/* Level Phone Facturación · Fase 5 · Centro fiscal 4.4 */
.fiscal-readiness{background:var(--white);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:22px;margin-bottom:28px}.fiscal-score{display:grid;grid-template-columns:1fr auto;align-items:end}.fiscal-score>span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}.fiscal-score>strong{grid-row:1/3;grid-column:2;font-size:42px;line-height:1;color:var(--ink)}.fiscal-score>small{font-size:12px;color:var(--muted);margin-top:5px}.fiscal-progress{height:9px;background:var(--bg);border-radius:999px;overflow:hidden;margin:16px 0 20px}.fiscal-progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--yellow),#24a565);border-radius:inherit;transition:width .25s ease}.fiscal-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fiscal-check{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--border);border-radius:11px;padding:12px;background:var(--bg);min-width:0}.fiscal-check>b{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;flex:none;font-size:13px}.fiscal-check.ok>b{background:#dff6e8;color:#177843}.fiscal-check.pending>b{background:#fff0cf;color:#9c6200}.fiscal-check>div{min-width:0;display:flex;flex-direction:column}.fiscal-check span{font-size:9px;text-transform:uppercase;letter-spacing:.65px;font-weight:900;color:var(--muted)}.fiscal-check strong{font-size:12px;margin:2px 0 3px}.fiscal-check small{font-size:10px;line-height:1.35;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.fiscal-section{scroll-margin-top:88px;margin-bottom:30px}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:12px}.section-title>div{display:flex;align-items:center;gap:10px}.section-title>div>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--yellow);color:#171717;font-size:11px;font-weight:950}.section-title h2{margin:0;font-size:21px}.section-title p{margin:0;color:var(--muted);font-size:12px}.fiscal-two-columns{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}.fiscal-two-columns>.card{max-width:none;margin:0}.fiscal-two-columns h3,.fiscal-section .card h3{margin-top:0}.check-line{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:750;color:var(--ink);line-height:1.4;margin:14px 0}.check-line input{margin-top:2px}.warning-check{border:1px solid #e3bc63;background:#fff7df;border-radius:10px;padding:12px}.sequence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sequence-card{border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--bg);display:flex;flex-direction:column}.sequence-card>span{font-size:11px;font-weight:900;color:var(--orange);text-transform:uppercase;letter-spacing:.55px}.sequence-card label{font-size:12px;font-weight:850;margin:13px 0 6px}.sequence-card input{border:1px solid var(--border);border-radius:9px;padding:11px 12px;background:var(--white);color:var(--ink);font:inherit;font-weight:800}.sequence-card small{margin-top:8px;color:var(--muted);font-size:11px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.certificate-card{display:flex;flex-direction:column;border:1px solid #97d6b1;background:#effaf3;border-radius:11px;padding:13px;margin-bottom:16px}.certificate-card strong{font-size:13px}.certificate-card span{font-size:10px;color:#35694a;line-height:1.4;margin:4px 0}.certificate-card small{font-size:10px;color:#35694a}.fiscal-test-form{border-top:1px solid var(--border);margin-top:18px;padding-top:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.fiscal-test-form small{font-size:10px;color:var(--muted)}.danger-link{border:0;background:none;color:var(--red);cursor:pointer;padding:0;font:inherit}.fiscal-section table form{margin:0}
html[data-theme="dark"] .fiscal-readiness{background:#1b1d21;border-color:#30333a}html[data-theme="dark"] .fiscal-check,html[data-theme="dark"] .sequence-card{background:#15171a;border-color:#30333a}html[data-theme="dark"] .sequence-card input{background:#202226;border-color:#3a3e46;color:var(--ink)}html[data-theme="dark"] .warning-check{background:#332d12;border-color:#5b4e17}html[data-theme="dark"] .certificate-card{background:#173323;border-color:#296a43}html[data-theme="dark"] .certificate-card span,html[data-theme="dark"] .certificate-card small{color:#9ed5b3}
@media(max-width:1100px){.fiscal-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.fiscal-two-columns,.sequence-grid{grid-template-columns:1fr}.section-title{align-items:flex-start;flex-direction:column;gap:6px}.fiscal-check-grid{grid-template-columns:1fr}.fiscal-score>strong{font-size:34px}}
.return-quantity{width:118px;border:1px solid var(--border);border-radius:8px;padding:9px 10px;background:var(--white);color:var(--ink);font:inherit;font-weight:750}.return-quantity:disabled{opacity:.5}

/* Fase 10 · Reportes administrativos */
.report-print-head{display:none;align-items:flex-start;justify-content:space-between;border-bottom:2px solid #171717;padding:0 0 14px;margin:0 0 18px}.report-print-head>div{display:flex;flex-direction:column;gap:4px}.report-print-head strong{font-size:20px}.report-print-head span,.report-print-head small{font-size:11px}.report-filter{margin-bottom:20px}.report-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(135px,1fr));gap:12px}.report-filter .form-actions{flex-wrap:wrap}.report-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.report-metrics .metric-value{font-size:23px}.report-section{margin-bottom:20px}.report-detail-link{white-space:nowrap}
html[data-theme="dark"] .report-filter input,html[data-theme="dark"] .report-filter select{background:#15171a;color:var(--ink);border-color:#3a3e46}
@media(max-width:1250px){.report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.report-filter-grid,.report-metrics{grid-template-columns:1fr}.report-filter .form-actions{align-items:stretch;flex-direction:column}.report-filter .btn{width:100%}}

/* Fase 11 · Proveedores, compras y recepciones */
.purchase-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.purchase-detail-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.purchase-detail-cards h2{font-size:18px;margin:7px 0}.purchase-detail-cards p{margin:0;color:var(--muted);font-size:12px}.purchase-builder select{min-width:360px}.purchase-builder input{min-width:105px}.purchase-builder .purchase-quantity{min-width:92px}.purchase-summary{max-width:520px;margin:20px 0 20px auto}.purchase-summary>div,.purchase-totals>div{display:flex;justify-content:space-between;gap:24px;padding:7px 0}.purchase-summary span,.purchase-totals span{color:var(--muted);font-size:12px;font-weight:800}.purchase-summary .grand,.purchase-totals .grand{border-top:2px solid var(--border);margin-top:5px;padding-top:13px}.purchase-summary .grand strong,.purchase-totals .grand strong{font-size:23px}.purchase-footer{display:grid;grid-template-columns:minmax(320px,520px) minmax(280px,1fr);gap:18px;align-items:start;margin-bottom:20px}.purchase-totals,.purchase-audit{margin:0}.purchase-audit h2{margin-top:0}.purchase-audit p{line-height:1.55}.purchase-actions{display:flex;align-items:center;justify-content:space-between;gap:24px}.purchase-actions h2{margin:0 0 6px}.purchase-actions p{margin:0;color:var(--muted)}.purchase-actions form{margin:0}.purchase-exchange-muted{opacity:.62}.table-subline{display:block;color:var(--muted);font-size:10px;margin-top:4px}
html[data-theme="dark"] .purchase-builder select,html[data-theme="dark"] .purchase-builder input{background:#15171a;color:var(--ink);border-color:#3a3e46}
@media(max-width:1100px){.purchase-metrics,.purchase-detail-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.purchase-metrics,.purchase-detail-cards,.purchase-footer{grid-template-columns:1fr}.purchase-actions{align-items:stretch;flex-direction:column}.purchase-actions .action-row{align-items:stretch;flex-direction:column}.purchase-actions .btn{width:100%}.purchase-builder select{min-width:280px}.purchase-summary{max-width:none}}

/* Fase 12 · Importación de compras electrónicas XML */
.xml-import-grid{display:grid;grid-template-columns:minmax(360px,620px) minmax(300px,1fr);gap:18px;align-items:start;margin-bottom:22px}.xml-import-grid>.card,.xml-import-grid>.phase-note{margin:0}.xml-validation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.xml-validation-grid h2{font-size:17px;margin:8px 0 4px}.xml-validation-grid p{font-size:11px;color:var(--muted);margin:0}.xml-lines-panel select{min-width:390px;border:1px solid var(--border);border-radius:8px;padding:9px 10px;background:var(--white);color:var(--ink)}.xml-line-pending td{background:rgba(230,162,60,.04)}.xml-line-matched td{background:rgba(32,164,91,.025)}.xml-match-reason{display:block;color:var(--muted);font-size:10px;margin-top:5px}.xml-import-footer{display:grid;grid-template-columns:minmax(320px,520px) minmax(320px,1fr);gap:18px;align-items:start;margin-bottom:18px}.xml-import-footer>.card{margin:0}.xml-import-footer h2{margin-top:0}.xml-discard-form{margin:0 0 22px}html[data-theme="dark"] .xml-lines-panel select{background:#15171a;color:var(--ink);border-color:#3a3e46}html[data-theme="dark"] .xml-line-pending td{background:rgba(255,196,0,.025)}html[data-theme="dark"] .xml-line-matched td{background:rgba(49,201,112,.018)}
.xml-kind-choice{margin-top:8px}.xml-kind-choice[hidden]{display:none}.xml-lines-panel .xml-line-kind{font-weight:850}.xml-expense-choice select{border-color:#c89b26}.expense-line-label{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;background:#fff0cf;color:#865700;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.45px;margin-top:5px}html[data-theme="dark"] .expense-line-label{background:#3a3010;color:#ffd761}
@media(max-width:1100px){.xml-validation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.xml-import-grid,.xml-import-footer,.xml-validation-grid{grid-template-columns:1fr}.xml-lines-panel select{min-width:280px}}

/* Fase 13 · Cuentas por pagar */
.payable-section{scroll-margin-top:88px;margin:28px 0}.payable-metrics,.payable-detail-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.payable-detail-metrics .metric-value{font-size:22px}.payable-detail-metrics .payable-date{font-size:19px}.payable-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin-bottom:20px}.payable-form{margin:0;max-width:none}.payable-form h3{margin:0 0 12px}.payable-pending{margin:0}.payment-cancel-form{display:flex;align-items:center;gap:7px;margin:0}.payment-cancel-form input{width:155px;border:1px solid var(--border);border-radius:8px;padding:8px 9px;background:var(--white);color:var(--ink)}.payment-cancel-form .btn{padding:8px 10px}.payment-cancelled{opacity:.62}.payable-section .panel{margin-top:20px}
html[data-theme="dark"] .payable-form input,html[data-theme="dark"] .payable-form select,html[data-theme="dark"] .payment-cancel-form input{background:#15171a;color:var(--ink);border-color:#3a3e46}
@media(max-width:1050px){.payable-metrics,.payable-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.payable-controls{grid-template-columns:1fr}}
@media(max-width:650px){.payable-metrics,.payable-detail-metrics{grid-template-columns:1fr}.payment-cancel-form{align-items:stretch;flex-direction:column}.payment-cancel-form input,.payment-cancel-form .btn{width:100%}}

/* Fase 14 · Reportes de compras, gastos e IVA registrado */
.purchase-report-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:12px}
.purchase-report-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.purchase-report-metrics .metric-value{font-size:22px}
html[data-theme="dark"] .purchase-report-filter-grid input,
html[data-theme="dark"] .purchase-report-filter-grid select{background:#15171a;color:var(--ink);border-color:#3a3e46}
@media(max-width:1250px){.purchase-report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.purchase-report-filter-grid,.purchase-report-metrics{grid-template-columns:1fr}}

/* Fase 15 · Preparación de mensajes receptor 4.4 */
.receiver-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.receiver-detail-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.receiver-detail-cards h2{font-size:17px;margin:7px 0 4px}
.receiver-detail-cards p{font-size:11px;color:var(--muted);margin:0}
.receiver-key{font:700 11px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;line-height:1.5}
.receiver-form{display:flex;flex-direction:column;gap:18px;margin-bottom:28px}
.receiver-section{margin:0;max-width:none}
.receiver-section>h2,.receiver-review h2{margin:0 0 6px}
.receiver-section>.subtle{margin:0 0 18px}
.receiver-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.receiver-choice{display:block;cursor:pointer;min-width:0}
.receiver-choice input{position:absolute;opacity:0;pointer-events:none}
.receiver-choice span{display:grid;grid-template-columns:30px 1fr;column-gap:10px;align-items:center;height:100%;border:1px solid var(--border);border-radius:12px;padding:14px;background:var(--bg);transition:border-color .15s,box-shadow .15s,background .15s}
.receiver-choice b{grid-row:1/3;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--white);border:1px solid var(--border)}
.receiver-choice strong{font-size:13px}
.receiver-choice small{font-size:10px;color:var(--muted);line-height:1.4;margin-top:3px}
.receiver-choice input:checked+span{border-color:#d0a500;background:#fff9dc;box-shadow:0 0 0 3px rgba(255,204,0,.15)}
.receiver-choice input:focus-visible+span{outline:3px solid rgba(41,118,211,.25);outline-offset:2px}
.receiver-tax-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.receiver-tax-help{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:15px}
.receiver-tax-help>div{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--border);border-radius:9px;padding:10px;background:var(--bg)}
.receiver-tax-help b{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:var(--yellow);color:#171717;font-size:10px;flex:none}
.receiver-tax-help span{font-size:10px;line-height:1.4;color:var(--muted)}
.receiver-review{display:flex;align-items:center;justify-content:space-between;gap:24px}
.receiver-review>div:first-child{max-width:780px}
.receiver-review p{margin:0;color:var(--muted);font-size:12px}
.receiver-review .action-row{flex:none}
#taxTreatment[hidden],#activityField[hidden],#taxCreditField[hidden],#expenseField[hidden]{display:none}
html[data-theme="dark"] .receiver-choice span,html[data-theme="dark"] .receiver-tax-help>div{background:#15171a;border-color:#30333a}
html[data-theme="dark"] .receiver-choice b{background:#202226;border-color:#3a3e46}
html[data-theme="dark"] .receiver-choice input:checked+span{background:#332d12;border-color:#7b6818}
html[data-theme="dark"] .receiver-section input,html[data-theme="dark"] .receiver-section select,html[data-theme="dark"] .receiver-section textarea{background:#15171a;color:var(--ink);border-color:#3a3e46}
@media(max-width:1150px){.receiver-detail-cards,.receiver-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.receiver-tax-help{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.receiver-choice-grid,.receiver-tax-grid{grid-template-columns:1fr}.receiver-review{align-items:stretch;flex-direction:column}.receiver-review .action-row{align-items:stretch;flex-direction:column}.receiver-review .btn{width:100%}}
@media(max-width:650px){.receiver-detail-cards,.receiver-metrics,.receiver-tax-help{grid-template-columns:1fr}}

/* Fase 17 · representación y entrega del comprobante */
.receipt-toolbar{max-width:1100px;margin:0 auto 18px}.receipt-toolbar .action-row{justify-content:flex-start}.receipt-toolbar-help{margin:9px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.receipt-action-status{color:var(--green);font-weight:850;margin-left:5px}.receipt-paper{background:#fff;color:#171717;border:1px solid #dfe1e5;box-shadow:0 15px 42px rgba(0,0,0,.12);margin:0 auto 24px;overflow:hidden}.receipt-letter{max-width:1050px;padding:30px 34px}.receipt-thermal{width:80mm;max-width:100%;padding:5mm 4mm;font-family:Arial,sans-serif}.receipt-header{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;border-bottom:3px solid #171717;padding-bottom:18px}.receipt-brand{font-size:29px;font-weight:950;letter-spacing:-1.5px;margin-bottom:9px}.receipt-brand span{color:#e7b900}.receipt-brand-block>strong,.receipt-brand-block>small{display:block}.receipt-brand-block>strong{font-size:15px}.receipt-brand-block>small{font-size:10px;color:#50535a;line-height:1.55}.receipt-fiscal-id{text-align:right;max-width:560px;display:flex;flex-direction:column;align-items:flex-end}.receipt-fiscal-id>span,.receipt-info-grid span,.receipt-reference>span,.receipt-hacienda>span{font-size:9px;text-transform:uppercase;letter-spacing:.7px;font-weight:900;color:#777}.receipt-fiscal-id h1{font-size:23px;line-height:1.1;margin:5px 0}.receipt-fiscal-id>strong{font:700 14px ui-monospace,SFMono-Regular,Consolas,monospace}.receipt-fiscal-id>small{font-size:9px;color:#777;margin-top:10px}.receipt-fiscal-id code,.receipt-reference code{font:10px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;word-break:break-all;color:#171717;margin-top:3px}.receipt-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #dfe1e5}.receipt-info-grid>div{padding:17px 14px;border-right:1px solid #e5e6e8;min-width:0}.receipt-info-grid>div:first-child{padding-left:0}.receipt-info-grid>div:last-child{border-right:0;padding-right:0}.receipt-info-grid strong{display:block;font-size:12px;margin:5px 0;overflow-wrap:anywhere}.receipt-info-grid p{font-size:10px;color:#50535a;line-height:1.4;margin:2px 0;overflow-wrap:anywhere}.receipt-reference{border:1px solid #e1ca58;background:#fff9dc;border-radius:9px;padding:12px 14px;margin:16px 0}.receipt-reference strong{display:block;font-size:12px;margin:4px 0}.receipt-reference p{font-size:10px;margin:4px 0;color:#51491e}.receipt-lines{margin:20px 0 8px;overflow:visible}.receipt-lines table{font-size:11px}.receipt-lines th{background:#171717;color:#fff;padding:10px 11px}.receipt-lines td{padding:11px;border-color:#ddd}.receipt-lines td:first-child{white-space:normal;min-width:250px}.receipt-lines td small{display:block;color:#666;font-size:9px;line-height:1.45;margin-top:4px}.receipt-summary{max-width:380px;margin:15px 0 18px auto}.receipt-summary>div{display:flex;justify-content:space-between;gap:30px;padding:6px 0;font-size:12px}.receipt-summary .receipt-grand{border-top:2px solid #171717;margin-top:4px;padding-top:11px}.receipt-summary .receipt-grand strong{font-size:21px}.receipt-hacienda{border-top:1px dashed #777;border-bottom:1px dashed #777;padding:12px 0;margin-top:10px}.receipt-hacienda strong{display:inline-block;margin-left:8px;color:#11723f;font-size:12px}.receipt-hacienda p{font-size:9px;line-height:1.45;color:#555;margin:5px 0 0;overflow-wrap:anywhere}.receipt-footer{text-align:center;padding-top:17px}.receipt-footer strong,.receipt-footer span,.receipt-footer small{display:block}.receipt-footer strong{font-size:13px}.receipt-footer span{font-size:9px;margin-top:5px}.receipt-footer small{font-size:8px;color:#777;margin-top:4px}.receipt-safe-note{max-width:1050px;margin:0 auto;background:#fff8d4;border:1px solid #ead574;border-radius:12px;padding:14px 16px}.receipt-safe-note strong{font-size:12px}.receipt-safe-note p{font-size:11px;color:#6a5d23;margin:4px 0 0}.receipt-phase-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.receipt-phase-cards .metric-value{font-size:22px}
.receipt-thermal .receipt-header{display:block;text-align:center;padding-bottom:10px;border-width:2px}.receipt-thermal .receipt-brand{font-size:23px}.receipt-thermal .receipt-brand-block>strong{font-size:12px}.receipt-thermal .receipt-brand-block>small{font-size:8px}.receipt-thermal .receipt-fiscal-id{align-items:center;text-align:center;max-width:none;margin-top:12px}.receipt-thermal .receipt-fiscal-id h1{font-size:16px;margin:3px 0}.receipt-thermal .receipt-fiscal-id>strong{font-size:10px}.receipt-thermal .receipt-fiscal-id>small{margin-top:7px}.receipt-thermal .receipt-fiscal-id code{font-size:7px;line-height:1.4}.receipt-thermal .receipt-info-grid{grid-template-columns:1fr;padding:7px 0}.receipt-thermal .receipt-info-grid>div{border:0;padding:5px 0;text-align:center}.receipt-thermal .receipt-info-grid span{font-size:7px}.receipt-thermal .receipt-info-grid strong{font-size:10px;margin:2px 0}.receipt-thermal .receipt-info-grid p{font-size:8px;line-height:1.3}.receipt-thermal .receipt-reference{margin:8px 0;padding:8px}.receipt-thermal .receipt-reference code{font-size:7px}.receipt-thermal .receipt-lines{margin:10px 0}.receipt-thermal .receipt-lines table,.receipt-thermal .receipt-lines tbody{display:block}.receipt-thermal .receipt-lines thead{display:none}.receipt-thermal .receipt-lines tr{display:grid;grid-template-columns:repeat(2,1fr);padding:7px 0;border-bottom:1px dashed #888;break-inside:avoid}.receipt-thermal .receipt-lines td{display:flex;justify-content:space-between;gap:7px;border:0;padding:2px 0;font-size:8px;white-space:normal}.receipt-thermal .receipt-lines td:first-child{display:block;grid-column:1/-1;min-width:0;font-size:9px}.receipt-thermal .receipt-lines td:not(:first-child)::before{content:attr(data-label);font-weight:700;color:#555}.receipt-thermal .receipt-lines td:nth-child(4),.receipt-thermal .receipt-lines td:nth-child(5){grid-column:auto}.receipt-thermal .receipt-lines td small{font-size:7px}.receipt-thermal .receipt-summary{max-width:none;margin:9px 0}.receipt-thermal .receipt-summary>div{font-size:9px;padding:3px 0}.receipt-thermal .receipt-summary .receipt-grand{padding-top:7px}.receipt-thermal .receipt-summary .receipt-grand strong{font-size:15px}.receipt-thermal .receipt-hacienda{padding:8px 0}.receipt-thermal .receipt-hacienda>span{font-size:7px}.receipt-thermal .receipt-hacienda strong{font-size:9px}.receipt-thermal .receipt-hacienda p{font-size:7px}.receipt-thermal .receipt-footer{padding-top:10px}.receipt-thermal .receipt-footer strong{font-size:10px}.receipt-thermal .receipt-footer span{font-size:7px}.receipt-thermal .receipt-footer small{font-size:6px}
html[data-theme="dark"] .receipt-paper{background:#fff;color:#171717;border-color:#41444b}html[data-theme="dark"] .receipt-safe-note{background:#332d12;border-color:#5b4e17}html[data-theme="dark"] .receipt-safe-note p{color:#d9ca7f}
@media(max-width:1000px){.receipt-phase-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-letter{padding:22px}.receipt-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-info-grid>div{border-bottom:1px solid #e5e6e8}.receipt-info-grid>div:nth-child(2){border-right:0}}
@media(max-width:650px){.receipt-toolbar .btn{flex:1 1 145px}.receipt-letter{padding:15px}.receipt-header{flex-direction:column}.receipt-fiscal-id{text-align:left;align-items:flex-start}.receipt-info-grid{grid-template-columns:1fr}.receipt-info-grid>div{border-right:0;padding:12px 0}.receipt-summary{max-width:none}.receipt-phase-cards{grid-template-columns:1fr}}
@media print{.receipt-header,.receipt-lines th{-webkit-print-color-adjust:exact;print-color-adjust:exact}.receipt-paper{page-break-inside:auto}.receipt-lines tr,.receipt-info-grid>div,.receipt-summary{break-inside:avoid}}

/* Level Phone Facturación · Fase 6 · Laboratorio fiscal Sandbox */
.sandbox-check-card{border-left:5px solid var(--orange);margin-bottom:20px}.sandbox-check-card h2{margin-top:0}.sandbox-check-card ul{margin:14px 0 0;padding-left:21px;color:var(--red);font-size:13px;line-height:1.6}.sandbox-ready{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#eaf8f0;border:1px solid #9bd7b5;border-radius:14px;padding:18px 20px;margin-bottom:20px}.sandbox-ready>div{display:flex;flex-direction:column}.sandbox-ready span{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#28734a;font-weight:900}.sandbox-ready strong{font-size:20px;margin:3px 0}.sandbox-ready small{color:#4d735e;font-size:11px}.sandbox-metrics{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}.sandbox-emission-card{background:var(--white);border:2px solid var(--yellow);border-radius:16px;box-shadow:var(--shadow);padding:21px;margin:22px 0}.sandbox-emission-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}.sandbox-emission-head>div{min-width:0}.sandbox-emission-head span:first-child{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--orange);font-weight:900}.sandbox-emission-head h2{margin:4px 0;font-size:22px}.sandbox-emission-head small,.mono-cell{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px}.sandbox-emission-head small{display:block;overflow-wrap:anywhere;color:var(--muted)}.sandbox-response{border-radius:11px;padding:14px 15px;margin:4px 0 16px}.sandbox-response strong{font-size:12px}.sandbox-response p{margin:5px 0 0;font-size:11px;line-height:1.45;white-space:normal}.sandbox-response.success{background:#e9f7ef;color:#116b3b}.sandbox-response.error{background:#fdecec;color:#a52e2e}.sandbox-actions form{margin:0}.fiscal-ticket{max-width:1050px;margin:0 auto 30px;background:#fff;color:#171717;border:1px solid #ddd;box-shadow:var(--shadow);padding:30px;position:relative;overflow:hidden}.fiscal-ticket header{display:flex;justify-content:space-between;gap:25px;border-bottom:3px solid #171717;padding-bottom:16px}.fiscal-ticket header p{font-size:11px;line-height:1.5;margin:10px 0 0;color:#444}.fiscal-doc-title{text-align:right;display:flex;flex-direction:column}.fiscal-doc-title span{font-size:12px;font-weight:900;text-transform:uppercase}.fiscal-doc-title strong{font-size:17px;margin:6px 0}.fiscal-doc-title small{font-size:10px}.sandbox-watermark{position:absolute;right:-55px;top:42px;transform:rotate(35deg);background:#fff2a9;color:#725a00;padding:8px 65px;font-size:10px;font-weight:950;letter-spacing:1px;z-index:2}.fiscal-key{border:1px dashed #aaa;border-radius:8px;margin:17px 0 0;padding:10px 12px}.fiscal-key span,.fiscal-key strong{display:block}.fiscal-key span{font-size:9px;text-transform:uppercase;font-weight:900;color:#777}.fiscal-key strong{font:11px ui-monospace,SFMono-Regular,Consolas,monospace;margin-top:4px;overflow-wrap:anywhere}.fiscal-ticket table{font-size:11px}.fiscal-ticket th{background:#171717;color:#fff}.fiscal-ticket td small{display:block;color:#666;margin-top:4px}.fiscal-totals{margin-left:auto;max-width:360px;padding:17px 0}.fiscal-totals>div{display:flex;justify-content:space-between;gap:30px;padding:6px 0;font-size:12px}.fiscal-totals .grand{border-top:2px solid #171717;margin-top:4px;padding-top:12px}.fiscal-totals .grand strong{font-size:22px}.fiscal-ticket footer{text-align:center;border-top:1px dashed #777;padding-top:16px}.fiscal-ticket footer strong,.fiscal-ticket footer span{display:block}.fiscal-ticket footer span{font-size:10px;margin-top:5px}
html[data-theme="dark"] .sandbox-ready{background:#173323;border-color:#296a43}html[data-theme="dark"] .sandbox-ready span,html[data-theme="dark"] .sandbox-ready small{color:#9ed5b3}html[data-theme="dark"] .sandbox-emission-card{background:#1b1d21;border-color:var(--yellow)}
@media(max-width:800px){.sandbox-ready,.sandbox-emission-head{align-items:stretch;flex-direction:column}.sandbox-ready .btn{width:100%}.sandbox-metrics{grid-template-columns:1fr}.sandbox-actions{align-items:stretch;flex-direction:column}.sandbox-actions .btn{width:100%}.fiscal-ticket header{flex-direction:column}.fiscal-doc-title{text-align:left}.sandbox-watermark{right:-80px;top:55px}}
@media print{.fiscal-ticket{box-shadow:none;border:0;margin:0;max-width:none;padding:10px}.sandbox-watermark,.fiscal-ticket th{-webkit-print-color-adjust:exact;print-color-adjust:exact}.fiscal-ticket footer{margin-top:18px}}

/* Fase 7 · preproducción fiscal */
.fiscal-catalog-callout{display:flex;align-items:center;justify-content:space-between;gap:20px}.fiscal-catalog-callout .btn{flex:none}.fiscal-catalog-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.fiscal-catalog-toolbar{align-items:center;flex-wrap:wrap}.fiscal-catalog-toolbar .searchbar{margin-left:auto}.fiscal-catalog-table input,.fiscal-catalog-table select{border:1px solid var(--border);border-radius:8px;padding:9px 10px;background:var(--white);color:var(--ink);font:inherit}.fiscal-catalog-table input[name="cabys"]{width:150px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.fiscal-catalog-table input[name="precio_venta"]{width:135px}.fiscal-catalog-table select{min-width:205px}.fiscal-row-pending td{background:rgba(230,162,60,.035)}html[data-theme="dark"] .fiscal-catalog-table input,html[data-theme="dark"] .fiscal-catalog-table select{background:#15171a;border-color:#3a3e46;color:var(--ink)}html[data-theme="dark"] .fiscal-row-pending td{background:rgba(255,196,0,.025)}
@media(max-width:900px){.fiscal-catalog-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fiscal-catalog-toolbar{align-items:stretch;flex-direction:column}.fiscal-catalog-toolbar .searchbar{margin-left:0}.fiscal-catalog-callout{align-items:stretch;flex-direction:column}.fiscal-catalog-callout .btn{width:100%}}
@media(max-width:650px){.fiscal-catalog-metrics{grid-template-columns:1fr}}

/* Fase 17.1 · contraste real para impresoras térmicas */
.receipt-issuer-warning{max-width:1100px;margin-left:auto;margin-right:auto}
.receipt-thermal{width:76mm;padding:3mm 2.5mm;color:#000;font-family:Arial,Helvetica,sans-serif}
.receipt-thermal .receipt-brand{font-size:25px;color:#000}.receipt-thermal .receipt-brand span{color:#000}
.receipt-thermal .receipt-brand-block>strong{font-size:13px;color:#000}.receipt-thermal .receipt-brand-block>small{font-size:9.5px;color:#000;line-height:1.4}
.receipt-thermal .receipt-fiscal-id>span{font-size:8.5px;color:#000}.receipt-thermal .receipt-fiscal-id h1{font-size:18px;color:#000;margin:4px 0}.receipt-thermal .receipt-fiscal-id>strong{font-size:11px;color:#000}.receipt-thermal .receipt-fiscal-id>small{font-size:8.5px;color:#000}.receipt-thermal .receipt-fiscal-id code{font-size:8px;line-height:1.45;color:#000;font-weight:700}
.receipt-fiscal-id.receipt-internal-output{width:100%;max-width:none;flex-direction:row;align-items:baseline;justify-content:space-between;gap:18px;text-align:left}.receipt-fiscal-id.receipt-internal-output h1{margin:0}.receipt-thermal .receipt-fiscal-id.receipt-internal-output{width:100%;align-items:baseline;justify-content:space-between;margin-top:8px;border-top:2px solid #171717;padding-top:7px;text-align:left;gap:18px}.receipt-thermal .receipt-fiscal-id.receipt-internal-output h1{font-size:14px}.receipt-thermal .receipt-fiscal-id.receipt-internal-output>strong{font-size:12px;text-align:right}
.receipt-thermal .receipt-info-grid span{font-size:8.5px;color:#000}.receipt-thermal .receipt-info-grid strong{font-size:11px;color:#000}.receipt-thermal .receipt-info-grid p{font-size:9.5px;line-height:1.35;color:#000}
.receipt-thermal .receipt-lines tr{border-color:#000;padding:8px 0}.receipt-thermal .receipt-lines td{font-size:9.5px;color:#000;padding:2.5px 0}.receipt-thermal .receipt-lines td:first-child{font-size:10.5px}.receipt-thermal .receipt-lines td small{font-size:8.5px;color:#000}.receipt-thermal .receipt-lines td:not(:first-child)::before{color:#000}
.receipt-thermal .receipt-summary>div{font-size:10.5px;color:#000;padding:4px 0}.receipt-thermal .receipt-summary .receipt-grand{border-color:#000}.receipt-thermal .receipt-summary .receipt-grand strong{font-size:18px}
.receipt-thermal .receipt-hacienda{border-color:#000}.receipt-thermal .receipt-hacienda>span{font-size:8.5px;color:#000}.receipt-thermal .receipt-hacienda strong{font-size:10.5px;color:#000}.receipt-thermal .receipt-hacienda p{font-size:9px;color:#000}
.receipt-thermal .receipt-footer strong{font-size:11px;color:#000}.receipt-thermal .receipt-footer span{font-size:8.5px;color:#000}.receipt-thermal .receipt-footer small{font-size:8px;color:#000}
@media print{
 .receipt-thermal{width:76mm!important;padding:2mm 2.5mm!important;color:#000!important;font-weight:500!important}
 .receipt-thermal,.receipt-thermal *{color:#000!important;text-shadow:none!important;opacity:1!important;filter:none!important}
 .receipt-thermal .receipt-brand span{color:#000!important}
 .receipt-thermal .receipt-lines tr,.receipt-thermal .receipt-hacienda,.receipt-thermal .receipt-summary .receipt-grand,.receipt-thermal .receipt-header{border-color:#000!important}
}

/* Fase 18 · historial y arqueos de caja */
.cash-closure-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.cash-closure-filter .field{min-width:180px}.cash-closure-filter input{border:1px solid var(--border);border-radius:9px;padding:10px 12px;background:var(--white);color:var(--ink);font:inherit}.cash-closure-metrics,.cash-phase-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.cash-closure-toolbar{max-width:1080px;margin:0 auto 18px;display:flex;justify-content:space-between;align-items:center;gap:18px}.cash-closure-sheet{max-width:1080px;margin:0 auto 24px;background:#fff;color:#171717;border:1px solid #dfe1e5;box-shadow:0 15px 42px rgba(0,0,0,.1);padding:30px 34px}.cash-closure-head{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;border-bottom:3px solid #171717;padding-bottom:18px}.cash-closure-head>div:last-child{text-align:right}.cash-closure-head>div:last-child>span{font-size:10px;letter-spacing:.8px;font-weight:900}.cash-closure-head h1{font-size:24px;margin:5px 0}.cash-closure-head small{display:block;color:#555;font-size:10px;line-height:1.5}.cash-closure-brand{font-size:29px;font-weight:950;letter-spacing:-1.5px;margin-bottom:7px}.cash-closure-brand span{color:#e7b900}.cash-closure-head>div:first-child>strong{display:block;font-size:14px}.cash-closure-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #dfe1e5}.cash-closure-info>div{padding:16px 13px;border-right:1px solid #e7e8ea;min-width:0}.cash-closure-info>div:first-child{padding-left:0}.cash-closure-info>div:last-child{border-right:0;padding-right:0}.cash-closure-info span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.7px;font-weight:900;color:#777}.cash-closure-info strong{display:block;font-size:12px;margin:5px 0}.cash-closure-info small{display:block;font-size:9px;color:#555;overflow-wrap:anywhere}.cash-closure-totals{max-width:560px;margin:20px 0 20px auto}.cash-closure-totals>div{display:flex;justify-content:space-between;gap:28px;padding:6px 0;font-size:12px}.cash-closure-totals .cash-total-main{border-top:1px solid #aaa;margin-top:4px;padding-top:10px}.cash-closure-totals .cash-difference{border-top:3px solid #171717;margin-top:4px;padding:12px 13px}.cash-closure-totals .cash-difference strong{font-size:21px}.cash-closure-totals .is-exact{background:#e9f7ef;color:#116b3b}.cash-closure-totals .has-difference{background:#fdecec;color:#a52e2e}.cash-closure-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.cash-closure-columns>div{border:1px solid #dfe1e5;border-radius:10px;overflow:hidden}.cash-closure-columns h2{font-size:14px;margin:0;padding:13px 15px;background:#f5f5f6}.cash-closure-columns table{font-size:10px}.cash-closure-columns th,.cash-closure-columns td{padding:9px 11px}.cash-closure-columns td small{display:block;color:#666;font-size:8px;margin-top:3px}.cash-closure-notes{border:1px solid #e1ca58;background:#fff9dc;border-radius:9px;padding:12px 14px;margin:18px 0}.cash-closure-notes h2{font-size:13px;margin:0 0 7px}.cash-closure-notes p{font-size:10px;margin:4px 0}.cash-closure-sheet>footer{text-align:center;border-top:1px dashed #777;margin-top:20px;padding-top:14px;font-size:9px;color:#555}.cash-closure-movements{max-width:1080px;margin-left:auto;margin-right:auto}.table-subline{display:block;color:var(--muted);font-size:10px;margin-top:4px}.metric.warning .metric-value{color:var(--orange)}
html[data-theme="dark"] .cash-closure-filter input{background:#15171a;border-color:#3a3e46;color:var(--ink)}html[data-theme="dark"] .cash-closure-sheet{background:#fff;color:#171717;border-color:#41444b}
@media(max-width:950px){.cash-closure-metrics,.cash-phase-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-closure-info{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-closure-info>div{border-bottom:1px solid #e7e8ea}.cash-closure-info>div:nth-child(2){border-right:0}.cash-closure-columns{grid-template-columns:1fr}}
@media(max-width:650px){.cash-closure-filter{align-items:stretch;flex-direction:column}.cash-closure-filter .field{min-width:0}.cash-closure-filter .btn{width:100%}.cash-closure-metrics,.cash-phase-cards,.cash-closure-info{grid-template-columns:1fr}.cash-closure-info>div{border-right:0;padding:12px 0}.cash-closure-toolbar{align-items:stretch;flex-direction:column}.cash-closure-toolbar .action-row{width:100%}.cash-closure-toolbar .btn{flex:1}.cash-closure-sheet{padding:18px 15px}.cash-closure-head{flex-direction:column}.cash-closure-head>div:last-child{text-align:left}.cash-closure-totals{max-width:none}.cash-closure-columns table{font-size:9px}}
@media print{.cash-closure-sheet{max-width:none;margin:0;border:0;box-shadow:none;padding:8px 10px}.cash-closure-brand span{color:#000!important}.cash-closure-head,.cash-closure-totals .cash-difference{border-color:#000}.cash-closure-columns>div,.cash-closure-info{break-inside:avoid}.cash-closure-columns h2,.cash-closure-totals .is-exact,.cash-closure-totals .has-difference{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Fase 18.1 · cierre nativo para impresora térmica de 80 mm */
.cash-print-help{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.45;max-width:610px}.cash-thermal-only{display:none}
@media print{
 .cash-closure-thermal{width:66mm!important;max-width:66mm!important;margin:0 auto!important;padding:2mm!important;color:#000!important;background:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-weight:600!important;overflow:hidden!important}
 .cash-closure-thermal,.cash-closure-thermal *{color:#000!important;text-shadow:none!important;opacity:1!important;filter:none!important}
 .cash-closure-thermal .cash-closure-head{display:block;text-align:center;padding-bottom:8px;border-bottom:2px solid #000;break-inside:avoid}
 .cash-closure-thermal .cash-closure-head>div:last-child{text-align:center;margin-top:9px}
 .cash-closure-thermal .cash-closure-brand{font-size:24px;letter-spacing:-1px;margin-bottom:5px}
 .cash-closure-thermal .cash-closure-brand span{color:#000!important}
 .cash-closure-thermal .cash-closure-head>div:first-child>strong{font-size:13.5px}
 .cash-closure-thermal .cash-closure-head small{font-size:11px;color:#000!important;line-height:1.45}
 .cash-closure-thermal .cash-closure-head>div:last-child>span{font-size:10.5px}
 .cash-closure-thermal .cash-closure-head h1{font-size:18px;margin:4px 0}
 .cash-closure-thermal .cash-closure-info{display:block;padding:6px 0;border-bottom:1px solid #000;break-inside:avoid}
 .cash-closure-thermal .cash-closure-info>div{border:0;padding:4px 0;text-align:center}
 .cash-closure-thermal .cash-closure-info span{font-size:10.5px;color:#000!important}
 .cash-closure-thermal .cash-closure-info strong{font-size:13.5px;margin:3px 0}
 .cash-closure-thermal .cash-closure-info small{font-size:11px;color:#000!important;line-height:1.4}
 .cash-closure-thermal .cash-closure-totals{max-width:none;margin:8px 0 10px}
 .cash-closure-thermal .cash-closure-totals>div{align-items:flex-start;font-size:12.5px;line-height:1.35;padding:5px 0;gap:8px}.cash-closure-thermal .cash-closure-totals>div>span{min-width:0}.cash-closure-thermal .cash-closure-totals>div>strong{flex:none;text-align:right;font-size:13px}
 .cash-closure-thermal .cash-closure-totals .cash-total-main{border-color:#000;padding-top:6px}
 .cash-closure-thermal .cash-closure-totals .cash-difference{background:#fff!important;border-top:2px solid #000;padding:7px 0;margin-top:3px}
 .cash-closure-thermal .cash-closure-totals .cash-difference strong{font-size:19px}
 .cash-closure-thermal .cash-closure-columns{display:block}
 .cash-closure-thermal .cash-closure-columns>div{border:0;border-top:1px dashed #000;border-radius:0;margin-top:8px;break-inside:avoid}
 .cash-closure-thermal .cash-closure-columns h2{background:#fff!important;color:#000!important;text-align:center;font-size:13px;padding:10px 0 6px}
 .cash-closure-thermal .cash-closure-columns table{width:100%!important;max-width:100%!important;table-layout:fixed!important;font-size:12px;color:#000!important}
 .cash-closure-thermal .cash-closure-columns th{background:#fff!important;color:#000!important;font-size:10.5px;padding:6px 2px;border-bottom:1px solid #000;letter-spacing:0!important;white-space:normal!important}
 .cash-closure-thermal .cash-closure-columns td{color:#000!important;font-size:12px;line-height:1.4;padding:7px 2px;border-bottom:1px dashed #000;white-space:normal!important;overflow-wrap:anywhere!important}
 .cash-closure-thermal .cash-closure-columns th:first-child,.cash-closure-thermal .cash-closure-columns td:first-child{width:56%!important;padding-right:6px}
 .cash-closure-thermal .cash-closure-columns th:nth-child(2),.cash-closure-thermal .cash-closure-columns td:nth-child(2){display:none!important}
 .cash-closure-thermal .cash-closure-columns th:last-child,.cash-closure-thermal .cash-closure-columns td:last-child{width:44%!important;text-align:right!important;padding-left:4px;padding-right:1px;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-variant-numeric:tabular-nums}
 .cash-closure-thermal .cash-thermal-only{display:block!important}
 .cash-closure-thermal .cash-closure-columns td small{font-size:10.5px;color:#000!important;line-height:1.4}
 .cash-closure-thermal .cash-closure-notes{background:#fff!important;border:1px solid #000;padding:7px;margin:9px 0;break-inside:avoid}
 .cash-closure-thermal .cash-closure-notes h2{font-size:12.5px;margin-bottom:4px}
 .cash-closure-thermal .cash-closure-notes p{font-size:11.5px;line-height:1.45}
 .cash-closure-thermal>footer{border-color:#000;font-size:10.5px;color:#000!important;margin-top:11px;padding-top:9px;line-height:1.45}
}

/* Fase 19 · ventas internas separadas para régimen simplificado */
.simple-sale-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-value.metric-text{font-size:18px;line-height:1.25;overflow-wrap:anywhere}.simple-sale-total>div{display:flex;justify-content:space-between;gap:20px;padding:7px 0}.simple-sale-total .grand{border-top:2px solid var(--ink);margin-top:5px;padding-top:12px}.simple-sale-total .grand strong{font-size:23px}.simple-sale-actions{display:flex;justify-content:space-between;align-items:center;gap:20px}.simple-sale-actions h2{margin:0 0 5px}.simple-sale-actions p{margin:0;color:var(--muted)}.simple-sale-actions form{margin:0}.simple-receipt-toolbar{max-width:980px;margin:0 auto 18px;display:flex;justify-content:space-between;align-items:center;gap:18px}.simple-receipt{max-width:980px;margin:0 auto 25px;background:#fff;color:#171717;border:1px solid #ddd;box-shadow:var(--shadow);padding:30px 34px}.simple-receipt header{text-align:center;border-bottom:3px solid #171717;padding-bottom:17px;position:relative}.simple-receipt-brand{font-size:29px;font-weight:950;letter-spacing:-1.4px}.simple-receipt-brand span{color:#d5aa00}.simple-receipt header>strong,.simple-receipt header>small{display:block}.simple-receipt header>strong{font-size:14px;margin-top:5px}.simple-receipt header>small{font-size:10px;color:#555;margin-top:3px}.simple-receipt-document{margin-top:17px}.simple-receipt-document>span{font-size:10px;font-weight:900;letter-spacing:.8px}.simple-receipt-document h1{font-size:22px;margin:5px 0}.simple-receipt-cancelled{display:inline-block;margin-top:8px;color:#a52e2e;font-size:20px;border:2px solid #a52e2e;padding:5px 14px}.simple-receipt-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #ddd}.simple-receipt-info>div{padding:14px 10px}.simple-receipt-info span,.simple-receipt-info strong,.simple-receipt-info small{display:block}.simple-receipt-info span{font-size:9px;text-transform:uppercase;font-weight:900;color:#777}.simple-receipt-info strong{font-size:12px;margin-top:4px}.simple-receipt-info small{font-size:9px;color:#555;margin-top:3px}.simple-receipt-lines{margin-top:14px}.simple-receipt-lines td:first-child{white-space:normal}.simple-receipt-lines td small{display:block;font-size:9px;color:#555;margin-top:4px}.simple-receipt-lines th:last-child,.simple-receipt-lines td:last-child{text-align:right}.simple-receipt-totals{max-width:410px;margin:18px 0 18px auto}.simple-receipt-totals>div{display:flex;justify-content:space-between;gap:25px;padding:6px 0}.simple-receipt-totals .grand{border-top:2px solid #171717;margin-top:5px;padding-top:12px}.simple-receipt-totals .grand strong{font-size:23px}.simple-receipt footer{text-align:center;border-top:1px dashed #777;padding-top:15px}.simple-receipt footer strong,.simple-receipt footer span,.simple-receipt footer small{display:block}.simple-receipt footer span{font-size:10px;margin-top:5px}.simple-receipt footer small{font-size:9px;color:#555;margin-top:4px}.simple-receipt.is-cancelled{opacity:.8}
@media(max-width:850px){.simple-sale-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.simple-sale-actions,.simple-receipt-toolbar{align-items:stretch;flex-direction:column}.simple-receipt-info{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.simple-sale-metrics,.simple-receipt-info{grid-template-columns:1fr}.simple-receipt{padding:20px 15px}.simple-sale-actions .action-row{flex-direction:column}.simple-sale-actions .btn{width:100%}}
@media print{
 .simple-receipt{max-width:none;margin:0;border:0;box-shadow:none;color:#000!important}
 .simple-receipt,.simple-receipt *{color:#000!important;text-shadow:none!important;opacity:1!important;filter:none!important}
 .simple-receipt-thermal{width:66mm!important;max-width:66mm!important;margin:0 auto!important;padding:2mm!important;font-family:Arial,Helvetica,sans-serif!important;font-weight:600!important;overflow:hidden!important}
 .simple-receipt-thermal header{border-bottom:2px solid #000;padding-bottom:9px}
 .simple-receipt-thermal .simple-receipt-brand{font-size:24px}.simple-receipt-thermal header>strong{font-size:13px}.simple-receipt-thermal header>small{font-size:10.5px;color:#000!important}
 .simple-receipt-thermal .simple-receipt-document{margin-top:11px}.simple-receipt-thermal .simple-receipt-document>span{font-size:10px}.simple-receipt-thermal .simple-receipt-document h1{font-size:18px;margin:4px 0}.simple-receipt-thermal .simple-receipt-document small{font-size:10px}
 .simple-receipt-thermal .simple-receipt-info{display:block;padding:6px 0;border-bottom:1px solid #000}.simple-receipt-thermal .simple-receipt-info>div{text-align:center;padding:4px 0}.simple-receipt-thermal .simple-receipt-info span{font-size:9.5px;color:#000!important}.simple-receipt-thermal .simple-receipt-info strong{font-size:12.5px}.simple-receipt-thermal .simple-receipt-info small{font-size:10.5px;color:#000!important}
 .simple-receipt-thermal .simple-receipt-lines{width:100%!important;max-width:100%!important;table-layout:fixed!important;margin-top:8px}.simple-receipt-thermal .simple-receipt-lines th{font-size:10px;letter-spacing:0!important;padding:6px 2px;background:#fff!important;color:#000!important;border-bottom:1px solid #000}.simple-receipt-thermal .simple-receipt-lines td{font-size:11.5px;line-height:1.4;padding:7px 2px;white-space:normal!important;border-bottom:1px dashed #000;overflow-wrap:anywhere!important}.simple-receipt-thermal .simple-receipt-lines th:first-child,.simple-receipt-thermal .simple-receipt-lines td:first-child{width:54%!important;padding-right:5px}.simple-receipt-thermal .simple-receipt-lines th:nth-child(2),.simple-receipt-thermal .simple-receipt-lines td:nth-child(2){width:14%!important;text-align:center}.simple-receipt-thermal .simple-receipt-lines th:last-child,.simple-receipt-thermal .simple-receipt-lines td:last-child{width:32%!important;text-align:right!important;padding-right:1px;white-space:nowrap!important;overflow-wrap:normal!important;font-variant-numeric:tabular-nums}.simple-receipt-thermal .simple-receipt-lines td small{font-size:10px;color:#000!important;line-height:1.35}
 .simple-receipt-thermal .simple-receipt-totals{max-width:none;margin:10px 0}.simple-receipt-thermal .simple-receipt-totals>div{font-size:12px;padding:4px 0}.simple-receipt-thermal .simple-receipt-totals .grand{border-color:#000;padding-top:8px}.simple-receipt-thermal .simple-receipt-totals .grand strong{font-size:19px}
 .simple-receipt-thermal footer{border-color:#000;padding-top:10px}.simple-receipt-thermal footer strong{font-size:12px}.simple-receipt-thermal footer span{font-size:10px}.simple-receipt-thermal footer small{font-size:9.5px;color:#000!important}
}

/* Fase 21 · diagnóstico integral y preparación para fusión */
.inline-form{display:inline-flex;margin:0}.health-empty{max-width:780px;padding:30px}.health-empty h2{margin-top:0}.health-empty p{color:var(--muted);line-height:1.6}.health-report-head{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--white);border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);padding:22px 24px;margin-bottom:18px}.health-report-head h2{font-size:26px;margin:8px 0 4px}.health-report-head p{margin:0;color:var(--muted);font-size:12px}.health-report-head>div:last-child{text-align:right}.health-report-head>div:last-child strong,.health-report-head>div:last-child span{display:block}.health-report-head>div:last-child span{font-size:11px;color:var(--muted);margin-top:4px}.health-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metric.health-error-card .metric-value{color:var(--red)}.health-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.health-group{margin:0;min-width:0}.health-check-list{padding:0 20px 10px}.health-check{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:flex-start;padding:15px 0;border-bottom:1px solid var(--border)}.health-check:last-child{border-bottom:0}.health-check .badge{margin-top:1px}.health-check strong{display:block;font-size:14px}.health-check p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.health-check small{display:block;margin-top:7px;color:var(--muted);font-family:Consolas,monospace;font-size:9px}.health-history{margin-top:20px}.health-error{border-left:3px solid var(--red);padding-left:12px}.health-aviso{border-left:3px solid var(--orange);padding-left:12px}.health-correcto{border-left:3px solid var(--green);padding-left:12px}.health-informativo{border-left:3px solid #4684cf;padding-left:12px}
@media(max-width:950px){.health-groups{grid-template-columns:1fr}.health-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.health-report-head{align-items:flex-start;flex-direction:column}.health-report-head>div:last-child{text-align:left}.health-metrics{grid-template-columns:1fr}.health-check{grid-template-columns:1fr}.inline-form,.inline-form .btn{width:100%}}

/* Fase 23 · inventario técnico previo a la fusión */
.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.integration-card{min-width:0}.integration-card .panel-head{padding:0;border:0;margin-bottom:10px}.integration-card .panel-head h2{margin:3px 0 0}.integration-card .eyebrow{font-size:9px;letter-spacing:.8px;color:var(--orange);font-weight:900}.integration-summary{padding:9px 0 13px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:13px 0 17px}.integration-summary p{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.integration-summary code{white-space:normal;word-break:break-all}.integration-card select{width:100%}
@media(max-width:1150px){.integration-grid{grid-template-columns:1fr}}

/* Fase 24 · comparación estructural y diseño modular */
.integration-plan-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.integration-architecture{margin:20px 0}.architecture-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:20px}.architecture-flow>div{border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--soft);min-width:0}.architecture-flow strong,.architecture-flow span{display:block}.architecture-flow strong{font-size:14px}.architecture-flow span{color:var(--muted);font-size:10px;margin-top:5px}.architecture-flow>div:first-child{background:var(--yellow);color:#111;border-color:var(--yellow)}.architecture-flow>div:first-child span{color:#554600}.section-title{margin:25px 0 14px}.integration-order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}.integration-order-card{position:relative;padding-top:24px}.integration-order-card .order-number{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:var(--yellow);color:#111;font-size:20px;font-weight:950;margin-bottom:13px}.integration-order-card h2{margin:12px 0 4px}.integration-order-card>strong{font-size:11px}.integration-order-card p{color:var(--muted);font-size:11px;line-height:1.55}.order-stats{border-top:1px solid var(--border);padding-top:12px;margin-top:14px;color:var(--muted);font-size:10px}.integration-module-reports{display:grid;gap:18px;margin:20px 0}.integration-module-reports .eyebrow{font-size:9px;letter-spacing:.8px;color:var(--orange);font-weight:900}.integration-module-reports .panel-head h2{margin:3px 0 0}
@media(max-width:1050px){.integration-plan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.architecture-flow,.integration-order-grid{grid-template-columns:1fr}}
@media(max-width:650px){.integration-plan-metrics{grid-template-columns:1fr}.architecture-flow{padding:14px}.integration-module-reports table{min-width:700px}}

/* Fase 25 · preparación reversible del piloto de Garantías */
.pilot-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.pilot-roadmap{margin:20px 0}.pilot-step-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px}.pilot-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:13px;padding:15px;background:var(--soft)}.pilot-step>span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--border);font-weight:900}.pilot-step strong{display:block;font-size:13px}.pilot-step p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.pilot-step>b{font-size:9px;text-transform:uppercase;color:var(--muted)}.pilot-step.complete{border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.08)}.pilot-step.complete>span{background:var(--green);color:#fff}.pilot-step.complete>b{color:var(--green)}.pilot-actions-grid{align-items:start}.pilot-actions-grid>.card{height:100%}.pilot-actions-grid .eyebrow,.pilot-authorization .eyebrow{font-size:9px;letter-spacing:.8px;color:var(--orange);font-weight:900}.pilot-permissions{margin:20px 0}.pilot-permissions .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.pilot-permissions td{font-size:11px;line-height:1.55;vertical-align:top}.pilot-authorization{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);gap:28px;align-items:start;margin:20px 0}.pilot-authorization h2{margin:6px 0 8px}.pilot-authorization p{color:var(--muted);line-height:1.55}.pilot-authorization form{min-width:0}
@media(max-width:1050px){.pilot-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pilot-authorization{grid-template-columns:1fr}}
@media(max-width:700px){.pilot-summary-cards,.pilot-step-grid{grid-template-columns:1fr}.pilot-step{grid-template-columns:auto minmax(0,1fr)}.pilot-step>b{grid-column:2}.pilot-permissions table{min-width:760px}.pilot-authorization{padding:18px}}

/* Fase 26 · acceso piloto protegido de Garantías */
.access-pilot-metrics,.access-gateway-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.access-user-panel{margin:20px 0}.access-user-panel .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.access-user-check{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800}.access-user-check input{width:18px;height:18px;accent-color:var(--yellow)}.access-user-check span{color:var(--muted)}.access-control-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:12px;align-items:end;padding:18px 20px}.access-switch-grid{align-items:start}.access-switch-grid>.card,.access-switch-grid>.panel{height:100%}.access-switch-grid .eyebrow,.access-launch-card .eyebrow{font-size:9px;letter-spacing:.8px;color:var(--orange);font-weight:900}.access-switch-grid .field{margin-top:13px}.access-gateway-grid{align-items:start}.access-gateway-grid>.card,.access-gateway-grid>.panel{height:100%}.access-policy-list{padding:8px 20px}.access-policy-list p{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start;padding:10px 0;margin:0;border-bottom:1px solid var(--border);font-size:13px}.access-policy-list p:last-child{border-bottom:0}.access-policy-list p span{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--green);color:#fff;font-size:11px;font-weight:900}.access-restrictions{margin:5px 20px 20px;border:1px solid var(--border);background:var(--soft);border-radius:11px;padding:14px}.access-restrictions strong{font-size:12px}.access-restrictions p{margin:7px 0 0;color:var(--muted);font-size:11px}.access-launch-card h2{margin:7px 0}.access-launch-card p{color:var(--muted);line-height:1.55}.access-launch-card form{margin:20px 0 12px}.access-launch-card .btn{width:100%}.access-launch-card small{display:block;color:var(--muted);line-height:1.45}.metric-text{overflow-wrap:anywhere}
@media(max-width:1050px){.access-pilot-metrics,.access-gateway-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.access-control-form{grid-template-columns:1fr 1fr}.access-control-form .btn{grid-column:1/-1}}
@media(max-width:700px){.access-pilot-metrics,.access-gateway-metrics,.access-control-form{grid-template-columns:1fr}.access-control-form .btn{grid-column:auto}.access-user-panel table{min-width:820px}.access-switch-grid,.access-gateway-grid{grid-template-columns:1fr}}

/* Fase 27 · puente agregado de solo lectura de Garantías */
.read-bridge-metrics,.warranty-summary-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.read-control-grid{align-items:start;margin:20px 0}.read-control-grid>.panel,.read-control-grid>.card{height:100%}.read-control-grid .panel-head p,.read-table-preview .panel-head p,.warranty-summary-grid .panel-head p,.warranty-area-table .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.read-action-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;padding:18px 20px}.read-verification-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border);border-bottom:1px solid var(--border)}.read-verification-summary p{display:flex;flex-direction:column;gap:5px;margin:0;padding:15px 20px;background:var(--white)}.read-verification-summary strong{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}.read-verification-summary code,.read-verification-summary span{font-size:12px;font-weight:850;overflow-wrap:anywhere}.read-preflight,.read-table-preview,.warranty-area-table{margin:20px 0}.read-gateway-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px}.read-gateway-card h2{margin:6px 0}.read-gateway-card p{margin:0;color:var(--muted);line-height:1.5}.warranty-summary-grid{align-items:start;margin:20px 0}.warranty-summary-grid>.panel,.warranty-summary-grid>.card{height:100%}.warranty-status-list{padding:12px 20px 20px}.warranty-status-row{padding:10px 0}.warranty-status-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:20px}.warranty-status-row strong{font-size:12px}.warranty-status-row span{font-size:12px;font-weight:900}.warranty-status-bar{height:7px;background:var(--soft);border-radius:999px;overflow:hidden;margin-top:8px}.warranty-status-bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--yellow),var(--green));border-radius:inherit}.read-privacy-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}.read-privacy-strip span{border:1px solid #97d6b1;background:#effaf3;color:#176e3d;border-radius:10px;padding:12px;text-align:center;font-size:11px;font-weight:900}
html[data-theme="dark"] .read-verification-summary p{background:#1b1d21}html[data-theme="dark"] .read-privacy-strip span{background:#173323;border-color:#296a43;color:#9ed5b3}
@media(max-width:1050px){.read-bridge-metrics,.warranty-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.read-action-form{grid-template-columns:1fr 1fr}.read-action-form .btn{grid-column:1/-1}.read-privacy-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.read-bridge-metrics,.warranty-summary-metrics,.read-action-form,.read-verification-summary,.read-privacy-strip{grid-template-columns:1fr}.read-action-form .btn{grid-column:auto}.read-gateway-card{align-items:stretch;flex-direction:column}.read-gateway-card .btn{width:100%}.warranty-summary-grid{grid-template-columns:1fr}}

/* Fase 28 · Consulta protegida de expedientes de Garantías */
.case-control-metrics,.case-detail-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.case-control-grid,.case-policy-grid,.case-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.case-action-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:18px}.case-action-form .field{margin:0}.case-action-form .btn{height:44px}
.case-policy-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.case-policy-summary p{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--soft);border-radius:10px;padding:12px;margin:0;font-size:12px}.case-policy-summary code{font-size:10px;overflow-wrap:anywhere}
.case-blocked-list{display:flex;flex-direction:column;gap:10px;padding:18px 22px}.case-blocked-list p{display:flex;gap:10px;align-items:flex-start;margin:0;font-size:13px}.case-blocked-list span{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:#fbe5e5;color:#a52222;font-weight:900}
.case-filter{max-width:none}.case-filter-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:14px;align-items:end}.case-filter-grid .field{margin:0}.case-filter-actions{display:flex;gap:8px}.case-list-panel{margin-top:18px}.case-id-note{display:block;margin-top:4px;color:var(--muted);font-size:10px}.case-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-top:1px solid var(--border);font-size:12px;font-weight:800}.case-pagination>div{display:flex;gap:8px}.case-protected-phone{font-size:20px;font-weight:900;letter-spacing:.04em}.case-detail-grid .card{min-height:190px}
html[data-theme="dark"] .case-policy-summary p{background:#1b1d21}html[data-theme="dark"] .case-blocked-list span{background:#4a2020;color:#ffb2b2}
@media(max-width:1050px){.case-control-metrics,.case-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.case-action-form{grid-template-columns:1fr 1fr}.case-action-form .btn{grid-column:1/-1}.case-filter-grid{grid-template-columns:1fr 1fr}.case-filter-actions{grid-column:1/-1}}
@media(max-width:700px){.case-control-metrics,.case-detail-metrics,.case-control-grid,.case-policy-grid,.case-detail-grid,.case-action-form,.case-policy-summary,.case-filter-grid{grid-template-columns:1fr}.case-action-form .btn,.case-filter-actions{grid-column:auto}.case-filter-actions,.case-pagination{align-items:stretch;flex-direction:column}.case-filter-actions .btn,.case-pagination .btn{width:100%}}

/* Fase 29 · contrato técnico de operaciones de Garantías */
.operation-contract-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.operation-contract-actions,.operation-contract-detail{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.operation-contract-actions>.panel,.operation-contract-actions>.card{height:100%}.operation-contract-table{margin:20px 0}.operation-contract-table .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.operation-contract-table code{font-size:10px;overflow-wrap:anywhere}.contract-relation-list{display:flex;flex-direction:column;gap:0;padding:10px 20px 18px}.contract-relation-list p{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;margin:0;padding:11px 0;border-bottom:1px solid var(--border);font-size:11px}.contract-relation-list p:last-child{border-bottom:0}.contract-relation-list code{overflow-wrap:anywhere;white-space:normal}.contract-relation-list p>*:last-child{text-align:right}.operation-contract-detail .empty-state{padding:24px}
@media(max-width:1050px){.operation-contract-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.operation-contract-actions,.operation-contract-detail{grid-template-columns:1fr}}
@media(max-width:700px){.operation-contract-metrics{grid-template-columns:1fr}.operation-contract-table table{min-width:780px}.contract-relation-list p{grid-template-columns:1fr}.contract-relation-list p>*:last-child{text-align:left}}

/* Fase 30 · ensayo transaccional local de Garantías */
.operation-test-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.operation-test-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.operation-test-actions>.panel,.operation-test-actions>.card{height:100%}.operation-test-results{margin:20px 0}.operation-test-results .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.operation-test-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px}.operation-test-check{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:13px;padding:15px;background:var(--soft)}.operation-test-check>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--border);font-weight:900}.operation-test-check strong{display:block;font-size:13px}.operation-test-check p{margin:5px 0 0;color:var(--muted);font-size:10px}.operation-test-check>b{font-size:9px;color:var(--muted)}.operation-test-check.complete{border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.08)}.operation-test-check.complete>span{background:var(--green);color:#fff}.operation-test-check.complete>b{color:var(--green)}.operation-test-check.failed{border-color:rgba(220,38,38,.35);background:rgba(220,38,38,.08)}.operation-test-check.failed>span{background:var(--red);color:#fff}.operation-test-check.failed>b{color:var(--red)}
@media(max-width:1050px){.operation-test-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.operation-test-actions{grid-template-columns:1fr}}
@media(max-width:700px){.operation-test-metrics,.operation-test-checks{grid-template-columns:1fr}.operation-test-check{grid-template-columns:auto minmax(0,1fr)}.operation-test-check>b{grid-column:2}}

/* Fase 31 · ensayo transaccional en restauración aislada de Garantías */
.isolated-database-name{font-family:Consolas,monospace;overflow-wrap:anywhere}.operation-test-actions .eyebrow{font-size:9px;letter-spacing:.8px;color:var(--orange);font-weight:900}

/* Fase 32 · contrato funcional de escritura de Garantías */
.write-contract-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.write-contract-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.write-contract-actions>.panel,.write-contract-actions>.card{height:100%}.write-contract-summary{margin:20px 0}.write-contract-summary .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.write-field-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border)}.write-field-summary p{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0;padding:16px 20px;background:var(--white);font-size:12px}.write-field-summary span{font-size:20px;font-weight:950}.write-contract-tables{display:flex;flex-direction:column;gap:14px;margin:20px 0}.write-contract-table{overflow:hidden}.write-contract-table>summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 22px;cursor:pointer;list-style:none}.write-contract-table>summary::-webkit-details-marker{display:none}.write-contract-table>summary>div{display:flex;align-items:center;gap:10px}.write-contract-table>summary>div:last-child{flex-direction:column;align-items:flex-end}.write-contract-table>summary span,.write-contract-table>summary b{font-size:10px}.write-contract-table>summary b{color:var(--muted)}.write-table-guard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border);border-top:1px solid var(--border)}.write-table-guard p{margin:0;padding:13px 20px;background:var(--soft);font-size:11px}.write-contract-table table{min-width:820px}.write-contract-table code{font-size:10px}.write-contract-table td{font-size:11px}
html[data-theme="dark"] .write-field-summary p{background:#1b1d21}
@media(max-width:1050px){.write-contract-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.write-contract-actions{grid-template-columns:1fr}.write-field-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.write-contract-metrics,.write-field-summary,.write-table-guard{grid-template-columns:1fr}.write-contract-table>summary{align-items:flex-start;flex-direction:column}.write-contract-table>summary>div:last-child{align-items:flex-start}}

/* Fase 33 · formulario sintético de Garantías */
.synthetic-form-preview{margin:20px 0}.synthetic-form-preview .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.synthetic-form-preview .read-privacy-strip{padding:0 20px}.synthetic-form-preview table{min-width:850px}.synthetic-form-preview td{font-size:11px}.synthetic-form-preview td small{color:var(--muted);font-family:Consolas,monospace;font-size:9px}.synthetic-form-preview .badge{white-space:nowrap}

/* Fase 34 · formulario en restauración aislada de Garantías */
.isolated-form-route{margin:20px 0}.isolated-form-route .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.isolated-form-route .read-privacy-strip{padding:0 20px}.isolated-form-route .write-field-summary span:not(.badge){font-family:Consolas,monospace;font-size:13px;overflow-wrap:anywhere}.isolated-form-route .write-field-summary .badge{font-family:inherit;font-size:9px}

/* Fase 35 · flujo relacional en restauración aislada de Garantías */
.isolated-relational-route{margin:20px 0}.isolated-relational-route .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.relational-flow-strip{display:grid;grid-template-columns:minmax(0,1fr) 34px 32px 34px minmax(0,1fr);gap:10px;align-items:center;padding:24px 20px;border-bottom:1px solid var(--border)}.relational-flow-strip span{min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--soft);padding:15px;text-align:center;font:800 13px Consolas,monospace;overflow-wrap:anywhere}.relational-flow-strip b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--yellow);color:#111;font-size:14px}.relational-flow-strip i{text-align:center;color:var(--muted);font-size:20px;font-style:normal}.isolated-relational-route .write-field-summary span:not(.badge){font-family:Consolas,monospace;font-size:12px;overflow-wrap:anywhere}.isolated-relational-route .write-field-summary .badge{font-family:inherit;font-size:9px}
@media(max-width:700px){.relational-flow-strip{grid-template-columns:1fr;justify-items:stretch}.relational-flow-strip b,.relational-flow-strip i{margin:auto}.relational-flow-strip i{transform:rotate(90deg)}}

/* Fase 36 · actualización controlada en restauración aislada */
.isolated-update-route{margin:20px 0}.isolated-update-route .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.version-flow-strip{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(220px,1.35fr) 32px minmax(0,1fr);gap:10px;align-items:center;padding:24px 20px;border-bottom:1px solid var(--border)}.version-flow-strip span,.version-flow-strip b{min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--soft);padding:15px;text-align:center;overflow-wrap:anywhere}.version-flow-strip span{font-size:12px;font-weight:800}.version-flow-strip b{font:800 12px Consolas,monospace;background:rgba(255,204,0,.14);border-color:rgba(255,204,0,.35)}.version-flow-strip i{text-align:center;color:var(--muted);font-size:20px;font-style:normal}.isolated-update-route .write-field-summary span:not(.badge){font-family:Consolas,monospace;font-size:12px;overflow-wrap:anywhere}.isolated-update-route .write-field-summary .badge{font-family:inherit;font-size:9px}
@media(max-width:700px){.version-flow-strip{grid-template-columns:1fr;justify-items:stretch}.version-flow-strip i{margin:auto;transform:rotate(90deg)}}

/* Fase 37 · transición lógica controlada en restauración aislada */
.logical-transition-route{margin:20px 0}.logical-transition-route .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.logical-state-strip{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(220px,1.4fr) 28px minmax(0,1fr) 28px minmax(100px,.75fr);gap:9px;align-items:center;padding:24px 20px;border-bottom:1px solid var(--border)}.logical-state-strip span,.logical-state-strip b,.logical-state-strip strong{min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--soft);padding:15px;text-align:center;overflow-wrap:anywhere}.logical-state-strip span{font-size:12px;font-weight:800}.logical-state-strip b{font:800 12px Consolas,monospace;background:rgba(255,204,0,.14);border-color:rgba(255,204,0,.35)}.logical-state-strip strong{font-size:11px;color:var(--green);border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.08)}.logical-state-strip i{text-align:center;color:var(--muted);font-size:19px;font-style:normal}.logical-transition-route .write-field-summary span:not(.badge){font-family:Consolas,monospace;font-size:12px;overflow-wrap:anywhere}.logical-transition-route .write-field-summary .badge{font-family:inherit;font-size:9px}
@media(max-width:900px){.logical-state-strip{grid-template-columns:1fr;justify-items:stretch}.logical-state-strip i{margin:auto;transform:rotate(90deg)}}

/* Fase 54 · seguimientos operativos controlados de Garantías */
.table-actions-vertical{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:145px}.table-actions-vertical .table-link{white-space:nowrap}.operational-link{color:var(--green)!important}.operational-history{margin:20px 0}.operational-history .panel-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.operational-history table{min-width:900px}.operational-history td{vertical-align:top}.operational-hash{font-family:Consolas,monospace;overflow-wrap:anywhere}.operational-button-block{display:flex;flex-direction:column;gap:5px;margin:14px 0;padding:12px 14px;border:1px solid rgba(220,38,38,.35);border-radius:10px;background:rgba(220,38,38,.08);color:var(--red);font-size:11px;line-height:1.45}.operational-button-block strong{font-size:12px}.operational-summary{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.operational-summary p{display:grid;grid-template-columns:minmax(78px,.8fr) minmax(112px,1.2fr);align-items:center}.operational-summary p>b{min-width:0}.write-field-summary.operational-summary p>span{min-width:0;text-align:right;overflow-wrap:break-word;word-break:normal;line-height:1.2}.operational-summary .badge{justify-self:end;white-space:nowrap}.access-launch-card>.btn{display:block;margin-top:10px}.write-field-summary p{min-width:0}.write-field-summary p>span{min-width:0;overflow-wrap:anywhere;text-align:right}.write-field-summary .badge{font-size:9px}.field small{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.45}
.status-change-link{color:#d39e00!important}.state-change-flow{display:grid;grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);gap:12px;align-items:center;margin:18px 0}.state-change-flow span{display:flex;min-height:86px;flex-direction:column;justify-content:center;gap:7px;padding:16px 18px;border:1px solid var(--border);border-radius:12px;background:var(--soft);font-size:18px;font-weight:950;overflow-wrap:anywhere}.state-change-flow span small{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.state-change-flow b{text-align:center;color:var(--muted);font-size:24px}.state-change-flow .target{border-color:rgba(255,204,0,.45);background:rgba(255,204,0,.1)}.phase-next-card{margin:20px 0}.phase-next-card .btn{margin-top:8px}
@media(max-width:700px){.table-actions-vertical{min-width:0}.operational-history table{min-width:820px}.write-field-summary p>span{font-size:16px}.operational-summary{grid-template-columns:1fr}.operational-summary p{grid-template-columns:minmax(90px,.8fr) minmax(130px,1.2fr)}}
@media(max-width:700px){.state-change-flow{grid-template-columns:1fr}.state-change-flow b{transform:rotate(90deg)}}
/* Créditos 3/5 · consulta integrada transitoria */
.credits-query-panel{overflow:visible}.credits-query-panel .panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.credits-query-form{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:12px;padding:20px}.credits-query-form input{width:100%;border:1px solid var(--border);border-radius:10px;padding:13px 14px;background:var(--white);color:var(--ink);font:inherit}.credits-query-form input:focus{outline:2px solid rgba(244,196,0,.24);border-color:#d0a800}.credits-query-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.credits-client-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:20px}.credits-client-strip>div{background:var(--white);padding:17px 19px;min-width:0}.credits-client-strip span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.6px;font-weight:850}.credits-client-strip strong{display:block;margin-top:6px;overflow-wrap:anywhere}.credits-query-limit{padding:13px 18px;background:#fff8d4;color:#6f5a00;font-size:12px;font-weight:750}.btn-compact{padding:8px 11px;font-size:12px;white-space:nowrap}
html[data-theme="dark"] .credits-query-limit{background:#3a3210;color:#eadb87}
@media(max-width:1100px){.credits-client-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.credits-query-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.credits-query-form{grid-template-columns:1fr}.credits-query-form .btn{width:100%}.credits-client-strip,.credits-query-metrics{grid-template-columns:1fr}}

/* Preproducción · Punto de venta profesional */
.pos-page-head{align-items:center}.pos-head-status{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.pos-safety-note{display:flex;align-items:center;gap:12px;margin:-6px 0 18px;padding:12px 15px;border:1px solid rgba(23,138,80,.22);border-radius:12px;background:rgba(23,138,80,.07)}.pos-safety-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:var(--green);color:#fff;font-size:15px;font-weight:950}.pos-safety-note strong,.pos-safety-note small{display:block}.pos-safety-note strong{font-size:13px}.pos-safety-note small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}.pos-pro-context{margin-bottom:16px}.pos-pro-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(500px,.88fr);gap:18px;align-items:start;margin-bottom:28px}.pos-catalog-panel,.pos-checkout-panel{min-width:0;border:1px solid var(--border);border-radius:16px;background:var(--white);box-shadow:var(--shadow)}.pos-catalog-panel{overflow:hidden}.pos-checkout-panel{position:sticky;top:92px;overflow:hidden}.pos-section-head,.pos-checkout-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 20px 15px}.pos-section-head h2,.pos-checkout-head h2{margin:3px 0 0;font-size:20px;letter-spacing:-.25px}.pos-quick-link{border:1px solid var(--border);border-radius:9px;padding:8px 11px;color:#745b00;font-size:11px;font-weight:900;white-space:nowrap}.pos-quick-link:hover{border-color:var(--yellow);background:#fff8d4}.pos-search-box{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:8px;margin:0 20px;padding:5px 7px 5px 11px;border:2px solid var(--yellow);border-radius:12px;background:var(--white);box-shadow:0 0 0 4px rgba(244,196,0,.08)}.pos-search-icon{color:#8b7100;font-size:22px;font-weight:900;line-height:1}.pos-search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);padding:9px 3px;font:inherit;font-size:15px;font-weight:700}.pos-search-box input::placeholder{color:#9a9da3;font-weight:600}.pos-search-box kbd{border:1px solid var(--border);border-bottom-width:2px;border-radius:6px;background:var(--soft,#f6f6f7);color:var(--muted);padding:3px 7px;font:800 11px Consolas,monospace}.pos-search-box button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:#eceef1;color:#555b65;font-size:18px;font-weight:900;cursor:pointer}.pos-search-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 20px 13px;color:var(--muted);font-size:11px}.pos-search-meta>span{font-weight:800}.pos-search-meta small{text-align:right}.pos-product-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));align-content:start;gap:10px;min-height:390px;max-height:calc(100vh - 365px);overflow:auto;padding:2px 20px 20px;scrollbar-gutter:stable}.pos-product-card{display:flex;min-width:0;min-height:132px;flex-direction:column;justify-content:space-between;gap:10px;border:1px solid var(--border);border-radius:12px;background:var(--white);color:var(--ink);padding:14px;text-align:left;font:inherit;cursor:pointer;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}.pos-product-card:hover:not(:disabled){transform:translateY(-2px);border-color:#d4aa00;box-shadow:0 8px 20px rgba(24,24,24,.09)}.pos-product-card:focus-visible{outline:3px solid rgba(244,196,0,.34);outline-offset:2px}.pos-product-card.is-unavailable{cursor:not-allowed;opacity:.58;background:var(--soft,#f7f7f8)}.pos-product-top,.pos-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.pos-product-top strong{max-width:62%;overflow:hidden;color:#775f00;font:900 11px Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.pos-product-top small{font-size:10px;font-weight:800;white-space:nowrap}.pos-product-description{display:-webkit-box;min-height:36px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:13px;font-weight:800;line-height:1.4}.pos-product-bottom{padding-top:9px;border-top:1px solid var(--border)}.pos-product-bottom strong{font-size:18px;letter-spacing:-.3px}.pos-product-bottom small{color:#806600;font-size:10px;font-weight:950}.pos-results-message{grid-column:1/-1;display:flex;min-height:250px;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--muted);text-align:center}.pos-results-message strong{color:var(--ink);font-size:14px}.pos-results-message small{max-width:340px;font-size:11px;line-height:1.45}.pos-loader{width:25px;height:25px;border:3px solid var(--border);border-top-color:var(--yellow);border-radius:50%;animation:pos-spin .7s linear infinite}@keyframes pos-spin{to{transform:rotate(360deg)}}
.pos-checkout-head{border-bottom:1px solid var(--border)}.pos-item-count{border-radius:999px;background:#fff3b3;color:#6f5800;padding:6px 10px;font-size:10px;font-weight:900;white-space:nowrap}.pos-customer-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(145px,.55fr);gap:11px;padding:15px 17px;border-bottom:1px solid var(--border);background:var(--soft,#fafafa)}.pos-customer-grid .field{gap:5px}.pos-customer-grid .field label{font-size:10px;text-transform:uppercase;letter-spacing:.45px}.pos-customer-grid .field select{padding:9px 10px;font-size:12px;font-weight:700}.pos-customer-grid .field small{margin-top:0;font-size:10px}.pos-cart{position:relative}.pos-cart-empty{display:flex;min-height:238px;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:28px;color:var(--muted);text-align:center}.pos-cart-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff5c7;color:#8b6d00;font-size:22px}.pos-cart-empty strong{color:var(--ink);font-size:14px}.pos-cart-empty small{font-size:11px}.pos-cart-rows{display:flex;max-height:390px;flex-direction:column;overflow:auto;scrollbar-gutter:stable}.pos-cart-row{padding:13px 16px;border-bottom:1px solid var(--border);background:var(--white);transition:background .2s ease,box-shadow .2s ease}.pos-cart-row.was-added{background:rgba(244,196,0,.13);box-shadow:inset 4px 0 0 var(--yellow)}.pos-cart-row.has-error{background:rgba(201,59,59,.055);box-shadow:inset 3px 0 0 var(--red)}.pos-cart-product{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.pos-cart-product>div{display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:4px 8px}.pos-cart-code{max-width:150px;overflow:hidden;color:#806500;font:900 10px Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.pos-cart-description{min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.pos-cart-stock{grid-column:1/-1;color:var(--muted);font-size:9px;font-weight:700}.pos-cart-remove{display:grid;place-items:center;width:26px;height:26px;flex:none;border:0;border-radius:7px;background:#feeaea;color:#a92f2f;font-size:17px;font-weight:900;cursor:pointer}.pos-cart-remove:hover{background:#f9d4d4}.pos-cart-controls{display:grid;grid-template-columns:minmax(110px,1fr) minmax(128px,1.08fr) minmax(76px,.72fr) minmax(82px,.78fr);align-items:end;gap:9px}.pos-price-field,.pos-quantity-field,.pos-cart-money{display:flex;min-width:0;flex-direction:column;gap:4px}.pos-price-field>span,.pos-quantity-field>span,.pos-cart-money>span,.pos-observation>span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.45px;text-transform:uppercase}.pos-price-field select{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:8px 7px;font:inherit;font-size:11px;font-weight:750}.pos-stepper{display:grid;grid-template-columns:30px minmax(52px,1fr) 30px;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--white)}.pos-stepper button{border:0;background:var(--soft,#f5f6f8);color:var(--ink);font-size:16px;font-weight:900;cursor:pointer}.pos-stepper button:hover{background:#fff2ae}.pos-stepper input{width:100%;min-width:0;border:0;border-right:1px solid var(--border);border-left:1px solid var(--border);outline:0;background:var(--white);color:var(--ink);padding:8px 3px;text-align:center;font:800 11px inherit;-moz-appearance:textfield}.pos-stepper input::-webkit-outer-spin-button,.pos-stepper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.pos-cart-money strong{min-width:0;overflow:hidden;padding:8px 0 7px;font-size:12px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.pos-line-money strong{font-size:14px}.pos-row-warning{margin-top:8px;border-radius:7px;background:rgba(201,59,59,.1);color:var(--red);padding:7px 9px;font-size:10px;font-weight:800;line-height:1.35}.pos-observation{display:flex;gap:10px;align-items:center;padding:12px 16px;border-top:1px solid var(--border)}.pos-observation>span{min-width:82px}.pos-observation>span small{font-size:8px}.pos-observation input{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:9px 10px;font:inherit;font-size:11px}.pos-checkout-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 17px;background:#17181b;color:#fff}.pos-checkout-summary>div{display:flex;min-width:0;flex-direction:column}.pos-checkout-summary>div>span{color:#bfc2c8;font-size:9px;font-weight:900;letter-spacing:.6px;text-transform:uppercase}.pos-checkout-summary>div>strong{margin:2px 0;font-size:26px;letter-spacing:-.7px}.pos-checkout-summary>div>small{max-width:260px;overflow:hidden;color:#aeb1b7;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.pos-save-button{min-width:165px;flex-direction:column;gap:2px;padding:11px 15px}.pos-save-button>span{font-size:12px}.pos-save-button>small{font-size:8px;font-weight:750;opacity:.72}.pos-save-button:disabled{cursor:not-allowed;filter:grayscale(.75);opacity:.55}
html[data-theme="dark"] .pos-safety-note{background:rgba(69,201,131,.08);border-color:rgba(69,201,131,.2)}html[data-theme="dark"] .pos-catalog-panel,html[data-theme="dark"] .pos-checkout-panel,html[data-theme="dark"] .pos-search-box,html[data-theme="dark"] .pos-product-card,html[data-theme="dark"] .pos-cart-row,html[data-theme="dark"] .pos-price-field select,html[data-theme="dark"] .pos-stepper,html[data-theme="dark"] .pos-stepper input,html[data-theme="dark"] .pos-observation input{background:#1b1d21;border-color:#34373d}html[data-theme="dark"] .pos-customer-grid,html[data-theme="dark"] .pos-product-card.is-unavailable,html[data-theme="dark"] .pos-stepper button{background:#15171a}html[data-theme="dark"] .pos-search-box input,html[data-theme="dark"] .pos-price-field select,html[data-theme="dark"] .pos-stepper input,html[data-theme="dark"] .pos-observation input{color:var(--ink)}html[data-theme="dark"] .pos-quick-link{color:#f4d45a}html[data-theme="dark"] .pos-quick-link:hover{background:#3a3210}html[data-theme="dark"] .pos-item-count{background:#493b00;color:#ffe169}html[data-theme="dark"] .pos-cart-empty>span{background:#3a3210;color:#f4c400}html[data-theme="dark"] .pos-cart-row.was-added{background:rgba(244,196,0,.09)}html[data-theme="dark"] .pos-cart-row.has-error{background:rgba(255,112,112,.07)}
@media(max-width:1250px){.pos-pro-layout{grid-template-columns:1fr}.pos-checkout-panel{position:static}.pos-product-results{max-height:520px}.pos-cart-rows{max-height:none}}
@media(max-width:720px){.pos-head-status{justify-content:flex-start}.pos-pro-context{align-items:stretch;flex-direction:column}.pos-pro-context .pos-warehouse-form{align-items:stretch;flex-direction:column}.pos-pro-context .pos-warehouse-form select{width:100%;min-width:0}.pos-pro-context .pos-cash-status{align-items:flex-start}.pos-section-head,.pos-checkout-head{align-items:flex-start}.pos-search-meta{align-items:flex-start;flex-direction:column}.pos-search-meta small{text-align:left}.pos-product-results{grid-template-columns:1fr;max-height:none;min-height:300px}.pos-customer-grid{grid-template-columns:1fr}.pos-cart-controls{grid-template-columns:1fr 1fr}.pos-cart-money strong{text-align:left}.pos-checkout-summary{align-items:stretch;flex-direction:column}.pos-save-button{width:100%}.pos-checkout-summary>div>small{max-width:none}.pos-observation{align-items:stretch;flex-direction:column}.pos-observation>span{min-width:0}}
@media(max-width:430px){.pos-search-box{margin-right:14px;margin-left:14px}.pos-section-head,.pos-checkout-head{padding-right:14px;padding-left:14px}.pos-product-results{padding-right:14px;padding-left:14px}.pos-cart-controls{grid-template-columns:1fr}.pos-cart-product>div{grid-template-columns:1fr}.pos-cart-stock{grid-column:auto}.pos-search-box kbd{display:none}.pos-search-box{grid-template-columns:25px minmax(0,1fr) auto}}
@media(prefers-reduced-motion:reduce){.pos-product-card,.pos-cart-row{transition:none}.pos-loader{animation:none}}
.pos-stepper input{font-family:inherit;font-size:11px;font-weight:800}

/* Preproducción 0.79.3 · Punto de venta lineal */
#salesDraftForm{margin-top:-4px}.pos-linear-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(315px,360px);gap:18px;align-items:start;margin-bottom:16px}.pos-sale-workspace{min-width:0;overflow:visible;border:1px solid var(--border);border-radius:15px;background:var(--white);box-shadow:var(--shadow)}.pos-customer-bar{display:flex;align-items:end;gap:14px;padding:17px 18px 14px;border-bottom:1px solid var(--border)}.pos-client-field{display:flex;min-width:0;flex:1;flex-direction:column;gap:6px}.pos-client-field>span,.pos-context-grid span,.pos-capture-grid label>span,.pos-capture-quantity>span,.pos-capture-price>span,.pos-payment-field>span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.55px;text-transform:uppercase}.pos-client-field select,.pos-context-grid select,.pos-capture-quantity input,.pos-payment-field select{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:10px 11px;font:inherit;font-size:12px;font-weight:700}.pos-client-actions{display:flex;align-items:center;gap:8px}.pos-client-actions a{border:1px solid var(--border);border-radius:8px;padding:10px 12px;font-size:10px;font-weight:900;white-space:nowrap}.pos-client-actions a.primary{border-color:#2d7938;background:#2d6f35;color:#fff}.pos-client-actions a:hover{border-color:#c99f00}.pos-document-row{display:grid;grid-template-columns:1fr 1.45fr;gap:8px;padding:0 18px 13px}.pos-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:8px}.pos-condition-segments{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-segments button{min-height:38px;border:0;border-right:1px solid var(--border);background:var(--white);color:var(--muted);font:800 11px inherit;cursor:pointer}.pos-segments button:last-child{border-right:0}.pos-segments button.active{background:#1d2b72;color:#fff}.pos-segments button:disabled{cursor:not-allowed;opacity:.52}.pos-context-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:10px;padding:12px 18px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:rgba(127,127,127,.035)}.pos-context-grid>div,.pos-context-grid>label{display:flex;min-width:0;flex-direction:column;gap:5px}.pos-context-grid strong{overflow:hidden;padding:9px 0 0;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.pos-context-grid small{color:var(--muted);font-size:9px}.pos-context-grid select{padding:8px 9px;font-size:11px}.pos-capture-block{position:relative;padding:17px 18px 13px}.pos-capture-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.pos-capture-head h2{margin:3px 0 0;font-size:16px}.pos-capture-head>a{border:1px solid var(--border);border-radius:7px;padding:7px 9px;color:#806500;font-size:9px;font-weight:900}.pos-capture-grid{display:grid;grid-template-columns:minmax(250px,1fr) 92px 130px 132px;gap:10px;align-items:end}.pos-product-search-wrap{position:relative;min-width:0}.pos-product-search-wrap>label{display:block;margin-bottom:6px;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.4px;text-transform:uppercase}.pos-search-input{display:grid;grid-template-columns:24px minmax(0,1fr) auto auto;align-items:center;gap:5px;min-height:44px;border:2px solid #d2aa0b;border-radius:9px;background:var(--white);padding:3px 6px 3px 9px;box-shadow:0 0 0 3px rgba(244,196,0,.07)}.pos-search-input>span{color:#927500;font-size:19px;font-weight:900}.pos-search-input input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);padding:7px 2px;font:700 12px inherit}.pos-search-input kbd,.pos-summary-actions kbd,.pos-shortcut-bar kbd{border:1px solid currentColor;border-radius:5px;padding:2px 5px;font:800 9px Consolas,monospace;opacity:.65}.pos-search-input button{width:28px;height:28px;border:0;border-radius:6px;background:rgba(127,127,127,.13);color:var(--muted);font-size:17px;cursor:pointer}.pos-product-results{position:absolute;z-index:15;top:calc(100% + 5px);right:0;left:0;display:flex;max-height:310px;min-height:0;flex-direction:column;gap:0;overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--white);box-shadow:0 18px 40px rgba(0,0,0,.22);padding:5px}.pos-product-option{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid var(--border);border-radius:6px;background:transparent;color:var(--ink);padding:10px;text-align:left;font:inherit;cursor:pointer}.pos-product-option:last-child{border-bottom:0}.pos-product-option:hover:not(:disabled),.pos-product-option:focus-visible{outline:0;background:rgba(244,196,0,.13)}.pos-product-option>span{display:flex;min-width:0;flex-direction:column;gap:3px}.pos-product-option b{color:#8b6f00;font:900 9px Consolas,monospace}.pos-product-option strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.pos-product-option small{color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}.pos-product-option em{color:var(--ink);font-size:11px;font-style:normal;font-weight:900;white-space:nowrap}.pos-product-option.is-unavailable{cursor:not-allowed;opacity:.5}.pos-results-message{display:flex;min-height:72px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px;color:var(--muted);text-align:center}.pos-results-message strong{font-size:11px}.pos-results-message small{font-size:9px}.pos-capture-quantity{display:flex;min-width:0;flex-direction:column;gap:6px}.pos-capture-quantity input{min-height:44px;padding:10px 8px;text-align:center}.pos-capture-price{display:flex;min-width:0;min-height:64px;flex-direction:column;justify-content:flex-end;gap:4px}.pos-capture-price strong{overflow:hidden;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.pos-capture-price small{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.pos-add-button{display:flex;min-height:44px;align-items:center;justify-content:center;gap:4px;border:0;border-radius:8px;background:#253789;color:#fff;font:900 11px inherit;cursor:pointer}.pos-add-button span{font-size:16px}.pos-add-button:disabled{cursor:not-allowed;filter:grayscale(.8);opacity:.45}.pos-search-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;color:var(--muted);font-size:9px}.pos-search-status>span{font-weight:850}.pos-search-status>small{text-align:right}.pos-lines-area{border-top:1px solid var(--border)}.pos-lines-scroll{min-height:310px;max-height:440px;overflow:auto;scrollbar-gutter:stable}.pos-lines-table{min-width:830px;font-size:11px}.pos-lines-table th{position:sticky;z-index:2;top:0;padding:10px 9px;background:var(--white);font-size:8px}.pos-lines-table td{padding:10px 9px;vertical-align:middle}.pos-lines-table th:first-child,.pos-lines-table td:first-child{width:34px;text-align:center}.pos-lines-table th:nth-child(2),.pos-lines-table td:nth-child(2){width:34px;padding-right:3px;padding-left:3px;text-align:center}.pos-lines-table th:nth-child(4),.pos-lines-table td:nth-child(4),.pos-lines-table th:nth-child(5),.pos-lines-table td:nth-child(5){width:74px;text-align:center}.pos-lines-table th:nth-child(6),.pos-lines-table td:nth-child(6){width:116px;text-align:right}.pos-lines-table th:nth-child(7),.pos-lines-table td:nth-child(7){width:86px;text-align:center}.pos-lines-table th:last-child,.pos-lines-table td:last-child{width:110px;text-align:right}.pos-cart-row{background:var(--white);transition:background .13s ease,box-shadow .13s ease}.pos-cart-row:hover{background:rgba(127,127,127,.035)}.pos-cart-row.is-selected{background:rgba(244,196,0,.1);box-shadow:inset 3px 0 0 var(--yellow)}.pos-cart-row.was-added{background:rgba(36,176,91,.1);box-shadow:inset 3px 0 0 var(--green)}.pos-cart-row.has-error{background:rgba(201,59,59,.065);box-shadow:inset 3px 0 0 var(--red)}.pos-cart-row:focus{outline:0}.pos-line-number{color:var(--muted);font-weight:900}.pos-line-remove{display:grid;width:24px;height:24px;place-items:center;border:0;border-radius:6px;background:rgba(201,59,59,.11);color:var(--red);font-size:15px;font-weight:900;cursor:pointer}.pos-line-product{min-width:270px;white-space:normal}.pos-line-product>strong,.pos-line-product>small,.pos-line-product>em{display:block}.pos-line-product>strong{font-size:11px;line-height:1.3}.pos-line-product>small{margin-top:3px;color:var(--muted);font-size:8px}.pos-line-product>small b{color:#8a6d00;font-family:Consolas,monospace}.pos-line-product>em{margin-top:5px;color:var(--red);font-size:8px;font-style:normal;font-weight:850}.pos-line-stock,.pos-line-tax{font-size:10px;font-weight:800}.pos-line-price{border:0;border-bottom:1px dashed #977900;background:transparent;color:#806500;padding:3px 0;font:900 11px inherit;cursor:pointer}.pos-line-price:disabled{border-bottom-color:transparent;color:var(--ink);cursor:default}.pos-manual-price-label{display:block;margin-top:3px;color:var(--orange);font-size:7px;font-weight:950;text-align:right;text-transform:uppercase}.pos-cart-quantity{width:70px;border:1px solid var(--border);border-radius:7px;background:var(--white);color:var(--ink);padding:7px 5px;text-align:center;font:800 10px inherit}.pos-line-total{font-size:12px}.pos-cart-empty{display:flex;min-height:270px;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);text-align:center}.pos-cart-empty>span{display:grid;width:43px;height:43px;place-items:center;border-radius:12px;background:rgba(244,196,0,.13);color:#8b6d00;font-size:19px}.pos-cart-empty strong{color:var(--ink);font-size:13px}.pos-cart-empty small{font-size:9px}.pos-observation{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 17px;border-top:1px solid var(--border)}.pos-observation>span{display:flex;min-width:92px;flex-direction:column;gap:2px;color:var(--ink);font-size:10px;letter-spacing:0;text-transform:none}.pos-observation>span small{color:var(--muted);font-size:8px;font-weight:600;text-transform:none}.pos-observation input{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:9px 10px;font:inherit;font-size:10px}.pos-observation>b{color:var(--muted);font-size:8px}.pos-sale-summary{position:sticky;top:91px;display:flex;min-width:0;flex-direction:column;gap:12px}.pos-summary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pos-summary-actions button{display:flex;min-height:42px;align-items:center;justify-content:center;gap:5px;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);font:800 9px inherit;cursor:pointer}.pos-summary-actions button:hover:not(:disabled){border-color:#bd9600;background:rgba(244,196,0,.09)}.pos-summary-actions button:disabled{cursor:not-allowed;opacity:.45}.pos-summary-card{border:1px solid #2d3035;border-radius:13px;background:#17181b;color:#f4f5f7;padding:21px 22px;box-shadow:var(--shadow)}.pos-summary-card h2{margin:0;color:#d9e9ff;font-size:14px;text-align:center;text-transform:uppercase}.pos-summary-card>p{margin:9px 0 14px;color:#d9e9ff;font-size:10px;text-align:center}.pos-summary-card dl{margin:0}.pos-summary-card dl>div{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #303238;padding:9px 0}.pos-summary-card dt{font-size:10px}.pos-summary-card dd{margin:0;font-size:11px;font-weight:900}.pos-grand-total{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:13px;padding-top:10px}.pos-grand-total span{font-size:12px}.pos-grand-total strong{color:#ffe168;font-size:30px;letter-spacing:-1px}.pos-summary-card>small{display:block;margin-top:10px;color:#b7bac0;font-size:8px;text-align:center}.pos-payment-field{display:flex;flex-direction:column;gap:6px;border:1px solid var(--border);border-radius:10px;background:var(--white);padding:12px}.pos-payment-field select{padding:9px 10px}.pos-save-button{display:flex;width:100%;min-height:63px;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:10px;background:var(--yellow);color:#171717;padding:12px;font:inherit;cursor:pointer;box-shadow:0 8px 22px rgba(182,143,0,.17)}.pos-save-button>span{font-size:14px;font-weight:950}.pos-save-button>small{font-size:8px;font-weight:750}.pos-save-button:disabled{cursor:not-allowed;filter:grayscale(.8);opacity:.45}.pos-summary-secondary{display:flex;align-items:center;justify-content:space-between;gap:10px}.pos-summary-secondary>a{border:1px solid var(--border);border-radius:7px;padding:8px 10px;font-size:8px;font-weight:900}.pos-summary-secondary>span{color:var(--muted);font-size:8px;text-align:right}.pos-permission-note{display:flex;flex-direction:column;gap:4px;border:1px solid rgba(244,196,0,.28);border-radius:9px;background:rgba(244,196,0,.075);padding:10px 11px}.pos-permission-note strong{font-size:9px}.pos-permission-note small{color:var(--muted);font-size:8px;line-height:1.45}.pos-shortcut-bar{display:flex;align-items:center;justify-content:center;gap:36px;border:1px solid var(--border);border-radius:9px;background:var(--white);padding:10px 15px;color:var(--muted);font-size:9px}.pos-shortcut-bar>span{display:flex;align-items:center;gap:5px}.pos-price-modal{position:fixed;z-index:100;inset:0;display:grid;place-items:center;background:rgba(7,8,10,.78);padding:20px;backdrop-filter:blur(3px)}.pos-price-modal-card{position:relative;width:100%;max-width:570px;border:1px solid #3b3e44;border-radius:14px;background:#191a1d;color:#f3f4f6;padding:25px;box-shadow:0 28px 80px rgba(0,0,0,.45)}.pos-price-modal-card h2{margin:5px 0 3px;font-size:23px}.pos-price-modal-card>p{margin:0 0 18px;color:#c6c9cf;font-size:11px}.pos-modal-close{position:absolute;top:13px;right:13px;width:30px;height:30px;border:0;border-radius:7px;background:#282a2f;color:#fff;font-size:18px;cursor:pointer}.pos-price-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.pos-price-modal-grid label{display:flex;flex-direction:column;gap:6px}.pos-price-modal-grid label.full{grid-column:1/-1}.pos-price-modal-grid label>span{color:#c7c9cf;font-size:9px;font-weight:900;text-transform:uppercase}.pos-price-modal-grid input,.pos-price-modal-grid select{width:100%;border:1px solid #41444b;border-radius:8px;background:#26282c;color:#fff;padding:11px;font:inherit;font-size:12px}.pos-modal-policy{margin-top:13px;border-radius:8px;background:rgba(244,196,0,.11);color:#f0d66a;padding:9px 11px;font-size:9px;line-height:1.4}.pos-modal-error{margin-top:10px;border-radius:8px;background:rgba(255,95,95,.14);color:#ff9898;padding:9px 11px;font-size:10px;font-weight:800}.pos-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.pos-modal-actions button{border:0;border-radius:8px;background:#2a2c31;color:#fff;padding:10px 13px;font:800 10px inherit;cursor:pointer}.pos-modal-actions button:first-child{margin-right:auto}.pos-modal-actions button.primary{background:#2d7036}.pos-modal-open{overflow:hidden}.pos-cart-empty[hidden],.pos-product-results[hidden],.pos-price-modal[hidden],.pos-manual-price-label[hidden],.pos-row-warning[hidden],.pos-modal-error[hidden]{display:none!important}
html[data-theme="dark"] .pos-client-field select,html[data-theme="dark"] .pos-context-grid select,html[data-theme="dark"] .pos-capture-quantity input,html[data-theme="dark"] .pos-payment-field select,html[data-theme="dark"] .pos-search-input,html[data-theme="dark"] .pos-product-results,html[data-theme="dark"] .pos-cart-quantity,html[data-theme="dark"] .pos-observation input{background:#15171a;border-color:#35383f;color:var(--ink)}html[data-theme="dark"] .pos-segments button,html[data-theme="dark"] .pos-summary-actions button{background:#1b1d21;color:var(--ink)}html[data-theme="dark"] .pos-context-grid{background:#17191c}html[data-theme="dark"] .pos-lines-table th{background:#1b1d21}html[data-theme="dark"] .pos-product-option:hover:not(:disabled),html[data-theme="dark"] .pos-product-option:focus-visible{background:rgba(244,196,0,.09)}html[data-theme="dark"] .pos-line-price{color:#f0ce4f}html[data-theme="dark"] .pos-client-actions a.primary{background:#286333}html[data-theme="dark"] .pos-grand-total strong{color:#ffe168}
.pos-line-price-display{display:flex;align-items:center;justify-content:flex-end;gap:3px;white-space:nowrap}.pos-line-discount-percent{color:var(--green);font-size:9px;font-weight:900}.pos-lines-table th:nth-child(6)>small{color:var(--muted);font-size:7px;font-weight:700;text-transform:none}
.pos-print-test{display:flex;width:100%;min-height:48px;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px dashed #d1a900;border-radius:9px;background:rgba(244,196,0,.07);color:var(--ink);font:inherit;cursor:pointer}.pos-print-test span{font-size:11px;font-weight:900}.pos-print-test small{color:var(--muted);font-size:8px}.pos-print-test:hover:not(:disabled){background:rgba(244,196,0,.15)}.pos-print-test:disabled{cursor:not-allowed;opacity:.42}.receipt-paper{position:relative}.receipt-test-watermark{margin:-8px -8px 20px;border:3px solid #b42318;background:#fff0f0;color:#9f1710;padding:11px;text-align:center;font-size:18px;font-weight:950;letter-spacing:1.5px;line-height:1.1}.receipt-test-watermark small{font-size:11px;letter-spacing:2px}.receipt-test-status{border-color:#e0a3a0!important;background:#fff4f3!important}.receipt-test-status strong{color:#a41f18!important}
@media print{.receipt-test-watermark,.receipt-test-status{-webkit-print-color-adjust:exact;print-color-adjust:exact}.receipt-test-watermark{margin:0 0 5mm}}
.receipt-compact-meta{border-bottom:1px solid #dfe1e5;padding:12px 0}.receipt-compact-meta dl{margin:0;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}.receipt-compact-meta dl>div{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px;max-width:720px;margin:2px 0}.receipt-compact-meta dt,.receipt-compact-meta dd{margin:0;color:#171717;font-size:11px;line-height:1.3;overflow-wrap:anywhere}.receipt-compact-meta dt{font-weight:900;text-transform:uppercase}.receipt-compact-meta dd{font-weight:500;text-transform:uppercase}.receipt-thermal .receipt-compact-meta{border-color:#000;padding:7px 0}.receipt-thermal .receipt-compact-meta dl>div{gap:4px;margin:1px 0}.receipt-thermal .receipt-compact-meta dt,.receipt-thermal .receipt-compact-meta dd{font-size:10.5px;line-height:1.25}
@media print{.receipt-compact-meta{break-inside:avoid}.receipt-compact-meta,.receipt-compact-meta *{color:#000!important}}
.receipt-brand b{display:block;font:inherit;font-weight:950;letter-spacing:inherit;line-height:.9}
.receipt-brand{font-size:27px}.receipt-thermal .receipt-brand{font-size:23px}
.receipt-thermal .receipt-lines td:nth-child(2),.receipt-thermal .receipt-lines td:nth-child(4){justify-content:flex-start;gap:4px}
.receipt-product-code{font-size:11px;font-weight:950}.receipt-thermal .receipt-product-code{font-size:10px}

/* Comprobantes 0.98.1 · desglose visible de la forma de pago */
.receipt-payment-breakdown{max-width:380px;margin:-9px 0 18px auto;border-top:1px dashed #777;padding-top:9px}.receipt-payment-breakdown>strong{display:block;margin-bottom:3px;font-size:9px;letter-spacing:.65px;text-transform:uppercase}.receipt-payment-breakdown dl{margin:0}.receipt-payment-breakdown dl>div{display:flex;justify-content:space-between;gap:24px;padding:3px 0}.receipt-payment-breakdown dt,.receipt-payment-breakdown dd{margin:0;font-size:11px}.receipt-payment-breakdown dt{font-weight:800}.receipt-payment-breakdown dd{font-weight:950}.receipt-thermal .receipt-payment-breakdown{max-width:none;margin:-3px 0 10px;padding-top:7px;border-color:#000}.receipt-thermal .receipt-payment-breakdown>strong{font-size:8.5px}.receipt-thermal .receipt-payment-breakdown dt,.receipt-thermal .receipt-payment-breakdown dd{font-size:10.5px;color:#000}@media(max-width:650px){.receipt-payment-breakdown{max-width:none}}@media print{.receipt-payment-breakdown{break-inside:avoid;border-color:#000}.receipt-payment-breakdown dt,.receipt-payment-breakdown dd{color:#000}}

/* Comprobantes 0.99.9 · espacio de firma únicamente en ventas a crédito */
.receipt-customer-signature{width:min(100%,460px);margin:58px auto 8px;border-top:1.5px solid #171717;padding-top:7px;text-align:center;break-inside:avoid}.receipt-customer-signature span{font-size:11px;font-weight:850;color:#171717}.receipt-thermal .receipt-customer-signature{width:86%;margin:38px auto 4px;border-color:#000;padding-top:6px}.receipt-thermal .receipt-customer-signature span{font-size:10.5px;color:#000}@media print{.receipt-customer-signature,.receipt-customer-signature *{color:#000!important;border-color:#000!important}}

/* La existencia permanece operativa, pero no se expone en la vista compartida con clientes. */
.pos-lines-table th:nth-child(4),.pos-lines-table td:nth-child(4){display:none}
@media(max-width:1280px){.pos-linear-shell{grid-template-columns:minmax(0,1fr) 310px}.pos-capture-grid{grid-template-columns:minmax(220px,1fr) 82px 116px 112px}.pos-shortcut-bar{gap:18px}}
@media(max-width:1080px){.pos-linear-shell{grid-template-columns:1fr}.pos-sale-summary{position:static;display:grid;grid-template-columns:1fr 1fr}.pos-summary-actions,.pos-summary-card,.pos-permission-note{grid-column:1/-1}.pos-summary-secondary{align-items:stretch;flex-direction:column}.pos-summary-secondary>span{text-align:left}.pos-shortcut-bar{flex-wrap:wrap}}
@media(max-width:760px){.pos-customer-bar{align-items:stretch;flex-direction:column}.pos-client-actions{justify-content:flex-end}.pos-document-row,.pos-context-grid{grid-template-columns:1fr}.pos-capture-grid{grid-template-columns:1fr 1fr}.pos-product-search-wrap{grid-column:1/-1}.pos-add-button{align-self:end}.pos-search-status{align-items:flex-start;flex-direction:column}.pos-search-status>small{text-align:left}.pos-sale-summary{display:flex}.pos-shortcut-bar{display:none}.pos-price-modal-grid{grid-template-columns:1fr}.pos-price-modal-grid label.full{grid-column:auto}}
@media(max-width:480px){.pos-client-actions{display:grid;grid-template-columns:1fr 1fr}.pos-client-actions a{text-align:center}.pos-capture-grid{grid-template-columns:1fr}.pos-product-search-wrap{grid-column:auto}.pos-document-row{padding-right:12px;padding-left:12px}.pos-customer-bar,.pos-context-grid,.pos-capture-block{padding-right:12px;padding-left:12px}.pos-observation{grid-template-columns:1fr}.pos-observation>b{text-align:right}.pos-price-modal-card{padding:21px 16px}.pos-modal-actions{flex-wrap:wrap}.pos-modal-actions button:first-child{width:100%;margin-right:0}}
@media(prefers-reduced-motion:reduce){.pos-cart-row{transition:none}}
.price-authorization-list{display:flex;flex-direction:column}.price-authorization-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border);padding:13px 18px}.price-authorization-list>div:last-child{border-bottom:0}.price-authorization-list strong{font-size:11px;line-height:1.45}.price-authorization-list small{flex:none;color:var(--muted);font-size:9px;white-space:nowrap}@media(max-width:700px){.price-authorization-list>div{flex-direction:column;gap:5px}.price-authorization-list small{white-space:normal}}

/* Preproducción 0.80.0 · Catálogo e inventario profesional */
.catalog-page-head{align-items:center}.catalog-page-head .action-row{justify-content:flex-end}.catalog-policy-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;overflow:hidden;margin-bottom:18px;border:1px solid var(--border);border-radius:12px;background:var(--border);box-shadow:var(--shadow)}.catalog-policy-strip.compact{grid-template-columns:1.35fr 1fr 1fr}.catalog-policy-strip>div{min-width:0;background:var(--white);padding:13px 15px}.catalog-policy-strip strong,.catalog-policy-strip span{display:block}.catalog-policy-strip strong{font-size:11px}.catalog-policy-strip span{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.45}.catalog-product-form{display:flex;max-width:1240px;flex-direction:column;gap:15px;margin:0 auto}.catalog-form-section{overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--white);box-shadow:var(--shadow);padding:0}.catalog-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border);padding:17px 20px}.catalog-section-head>div{display:grid;min-width:0;grid-template-columns:32px minmax(0,1fr);column-gap:10px}.catalog-section-head>div>span{grid-row:1/3;display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:#17181b;color:var(--yellow);font-size:10px;font-weight:950}.catalog-section-head h2{margin:0;font-size:17px}.catalog-section-head p{grid-column:2;margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.catalog-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:20px}.catalog-field-grid .field>span,.catalog-filter-panel label>span,.catalog-search-field>span,.catalog-adjust-form .field>span,.catalog-danger-zone .field>span{color:#555a62;font-size:10px;font-weight:900;letter-spacing:.35px;text-transform:uppercase}.catalog-field-grid .field small,.catalog-adjust-form .field small{margin-top:0}.catalog-field-grid input:disabled,.catalog-field-grid select:disabled,.catalog-stock-editor input:disabled{cursor:not-allowed;opacity:.62;background:#f0f1f3}.catalog-commercial-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(275px,.45fr);align-items:stretch}.catalog-commercial-grid>.catalog-field-grid{align-content:start}.catalog-margin-card{display:flex;min-width:0;flex-direction:column;gap:8px;background:#17181b;color:#fff;padding:20px}.catalog-margin-card>span{color:#c3c6cb;font-size:9px;font-weight:900;letter-spacing:.65px;text-transform:uppercase}.catalog-margin-card>div{display:grid;grid-template-columns:minmax(70px,.65fr) minmax(50px,.35fr);gap:3px 10px;border:1px solid #34373d;border-radius:9px;padding:10px 11px}.catalog-margin-card>div small{color:#c7cad0;font-size:9px}.catalog-margin-card>div strong{text-align:right;font-size:15px}.catalog-margin-card>div em{grid-column:1/-1;color:#aeb1b7;font-size:8px;font-style:normal}.catalog-margin-card>div.is-positive strong{color:#73dca7}.catalog-margin-card>div.is-negative strong,.catalog-margin-card>div.is-negative em{color:#ff8989}.catalog-margin-card>p{margin:auto 0 0;color:#9498a0;font-size:8px;line-height:1.45}.catalog-stock-toggle{display:flex;align-items:flex-start;gap:11px;margin:16px 20px 0;border:1px solid rgba(244,196,0,.3);border-radius:10px;background:rgba(244,196,0,.07);padding:12px 14px;cursor:pointer}.catalog-stock-toggle input{width:18px;height:18px;margin:1px 0 0;accent-color:#d4aa00}.catalog-stock-toggle span,.catalog-stock-toggle strong,.catalog-stock-toggle small{display:block}.catalog-stock-toggle strong{font-size:11px}.catalog-stock-toggle small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}.catalog-stock-editor{padding:16px 20px 20px}.catalog-stock-editor table{border:1px solid var(--border);border-radius:10px}.catalog-stock-editor th,.catalog-stock-editor td{padding:10px 12px}.catalog-stock-editor td>strong,.catalog-stock-editor td>small{display:block}.catalog-stock-editor td>small{margin-top:3px;color:var(--muted);font-size:9px}.catalog-stock-editor input{width:130px;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:8px 9px;font:inherit;font-size:11px}.catalog-save-bar{position:sticky;z-index:8;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #32353b;border-radius:13px;background:#17181b;color:#fff;padding:14px 17px;box-shadow:0 14px 35px rgba(0,0,0,.2)}.catalog-save-bar>div:first-child{min-width:0}.catalog-save-bar strong,.catalog-save-bar span{display:block}.catalog-save-bar strong{font-size:12px}.catalog-save-bar span{margin-top:3px;color:#aeb1b7;font-size:9px}.catalog-save-bar .form-actions{flex:none;margin:0}.catalog-danger-zone{display:grid;max-width:1240px;grid-template-columns:minmax(0,.8fr) minmax(400px,1.2fr);gap:22px;align-items:center;margin:22px auto 0;border:1px solid rgba(201,59,59,.32);border-radius:14px;background:rgba(201,59,59,.055);padding:20px}.catalog-danger-zone.is-reactivate{border-color:rgba(23,138,80,.32);background:rgba(23,138,80,.055)}.catalog-danger-zone h2{margin:5px 0;font-size:17px}.catalog-danger-zone p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.catalog-danger-zone form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.catalog-danger-zone .field{min-width:0}.catalog-danger-zone .field input{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:9px 10px;font:inherit;font-size:10px}.catalog-created{display:flex;max-width:620px;min-height:430px;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;border:1px solid var(--border);border-radius:20px;background:var(--white);box-shadow:var(--shadow);padding:42px;text-align:center}.catalog-created>span{display:grid;width:70px;height:70px;place-items:center;border-radius:50%;background:#e6f6ed;color:var(--green);font-size:34px;font-weight:950}.catalog-created h1{margin:8px 0;font-size:29px}.catalog-created p{max-width:490px;margin:0;color:var(--muted);font-size:12px;line-height:1.6}.catalog-created>strong{margin-top:18px;font-size:18px}.catalog-created .form-actions{justify-content:center}.catalog-metrics{max-width:none;grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-filter-panel{display:grid;grid-template-columns:minmax(260px,1.4fr) repeat(4,minmax(150px,.65fr)) auto;gap:10px;align-items:end;margin-bottom:16px;border:1px solid var(--border);border-radius:13px;background:var(--white);box-shadow:var(--shadow);padding:14px}.catalog-filter-panel label,.catalog-search-field{display:flex;min-width:0;flex-direction:column;gap:6px}.catalog-filter-panel select,.catalog-search-field input{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:9px 10px;font:inherit;font-size:10px}.catalog-search-field>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.catalog-search-field .btn,.catalog-filter-actions .btn{padding:9px 11px;font-size:9px}.catalog-filter-actions{display:flex;gap:6px}.catalog-table-panel{overflow:hidden}.catalog-product-table{min-width:1180px;font-size:11px}.catalog-product-table th,.catalog-product-table td{padding:10px 11px;vertical-align:middle}.catalog-product-identity{min-width:270px;white-space:normal}.catalog-product-identity>strong,.catalog-product-identity>span,.catalog-product-identity>small{display:block}.catalog-product-identity>strong{font-size:11px;line-height:1.35}.catalog-product-identity>span{margin-top:4px;color:var(--muted);font-size:8px}.catalog-product-identity>span b{color:#806500;font-family:Consolas,monospace}.catalog-product-identity>small{margin-top:3px;color:var(--muted);font-size:8px}.catalog-cell-note{display:block;margin-top:4px;color:var(--muted);font-size:8px;line-height:1.35}.catalog-product-table .stock-list{min-width:190px}.catalog-product-table .stock-entry{padding:5px 7px}.catalog-product-table .stock-entry small{color:var(--muted);font-size:7px}.catalog-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.catalog-row-actions a{color:#806500;font-size:9px;font-weight:900}.catalog-row-actions a:hover{text-decoration:underline}.catalog-row-inactive{opacity:.68}.catalog-row-inactive td{background:rgba(201,59,59,.025)}.catalog-adjust-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:17px;align-items:start}.catalog-adjust-form .catalog-field-grid{padding-bottom:8px}.catalog-adjust-form .form-actions{padding:0 20px 20px}.catalog-balance-card{position:sticky;top:92px;border:1px solid #30333a;border-radius:14px;background:#17181b;color:#fff;padding:22px;box-shadow:var(--shadow)}.catalog-balance-card h2{margin:5px 0 13px;color:var(--yellow);font-size:39px}.catalog-balance-card>p{color:#b7bac0;font-size:11px}.catalog-balance-card dl{margin:0}.catalog-balance-card dl>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #30333a;padding:9px 0}.catalog-balance-card dt{color:#c3c6cb;font-size:10px}.catalog-balance-card dd{margin:0;font-size:11px;font-weight:900}.catalog-balance-preview{display:flex;align-items:center;justify-content:space-between;margin-top:14px;border-radius:9px;background:#26282d;padding:12px}.catalog-balance-preview span{font-size:10px}.catalog-balance-preview strong{font-size:18px}.catalog-balance-card>small{display:block;margin-top:13px;color:#989ca4;font-size:8px;line-height:1.5}.catalog-history-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-audit-list{display:flex;flex-direction:column}.catalog-audit-event{padding:17px 19px;border-bottom:1px solid var(--border)}.catalog-audit-event:last-child{border-bottom:0}.catalog-audit-event>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.catalog-audit-event>header>div{display:flex;align-items:center;gap:9px}.catalog-audit-event>header strong{font-size:11px}.catalog-audit-event time{color:var(--muted);font-size:9px}.catalog-audit-event>p{margin:10px 0;color:var(--muted);font-size:10px;line-height:1.5}.catalog-change-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:7px;margin-top:11px}.catalog-change-grid>div{display:grid;grid-template-columns:minmax(85px,1fr) minmax(55px,.75fr) auto minmax(55px,.75fr);align-items:center;gap:7px;border:1px solid var(--border);border-radius:8px;background:rgba(127,127,127,.035);padding:8px 9px}.catalog-change-grid span{font-size:8px;font-weight:900}.catalog-change-grid small{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.catalog-change-grid b{color:var(--muted);font-size:10px}.catalog-change-grid strong{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.catalog-audit-event>footer{margin-top:10px;color:var(--muted);font-size:8px}.catalog-history-metrics .metric-value{font-size:23px}
html[data-theme="dark"] .catalog-policy-strip>div,html[data-theme="dark"] .catalog-form-section,html[data-theme="dark"] .catalog-filter-panel,html[data-theme="dark"] .catalog-created{background:#1b1d21}html[data-theme="dark"] .catalog-field-grid input:disabled,html[data-theme="dark"] .catalog-field-grid select:disabled,html[data-theme="dark"] .catalog-stock-editor input:disabled{background:#25272c}html[data-theme="dark"] .catalog-stock-toggle{background:rgba(244,196,0,.06)}html[data-theme="dark"] .catalog-filter-panel select,html[data-theme="dark"] .catalog-search-field input,html[data-theme="dark"] .catalog-stock-editor input,html[data-theme="dark"] .catalog-danger-zone .field input{background:#15171a;border-color:#3a3e46;color:var(--ink)}html[data-theme="dark"] .catalog-row-inactive td{background:rgba(255,112,112,.025)}html[data-theme="dark"] .catalog-change-grid>div{background:#17191c}html[data-theme="dark"] .catalog-created>span{background:#123b28}
.catalog-identity-section{overflow:visible;position:relative;z-index:12}.catalog-family-field{position:relative;min-width:0}.catalog-family-field>label{color:#555a62;font-size:10px;font-weight:900;letter-spacing:.35px;text-transform:uppercase}.catalog-family-picker{position:relative;margin-top:6px}.catalog-family-search{display:flex;align-items:stretch;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--white)}.catalog-family-search:focus-within{border-color:#806500;box-shadow:0 0 0 3px rgba(244,196,0,.13)}.catalog-family-search input{min-width:0;flex:1;border:0!important;border-radius:0!important;box-shadow:none!important}.catalog-family-search input::-webkit-search-cancel-button{display:none}.catalog-family-search button{width:38px;flex:none;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted);font-size:18px;cursor:pointer}.catalog-family-search button:hover{background:rgba(244,196,0,.1);color:var(--ink)}.catalog-family-results{position:absolute;z-index:30;top:calc(100% + 6px);right:0;left:0;overflow:auto;max-height:270px;border:1px solid var(--border);border-radius:10px;background:var(--white);box-shadow:0 18px 42px rgba(0,0,0,.18);padding:5px}.catalog-family-results[hidden]{display:none}.catalog-family-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;border:0;border-radius:7px;background:transparent;color:var(--ink);padding:9px 10px;text-align:left;cursor:pointer}.catalog-family-option:hover,.catalog-family-option.is-active{background:rgba(244,196,0,.12)}.catalog-family-option strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.catalog-family-option small{flex:none;color:var(--muted);font-family:Consolas,monospace;font-size:8px}.catalog-family-option.is-create{justify-content:flex-start;color:#806500;font-weight:900}.catalog-family-empty{display:block;padding:10px;color:var(--muted);font-size:9px}.catalog-family-status{margin:6px 0 0;color:var(--muted);font-size:8px;line-height:1.4}.catalog-family-status.is-selected{color:var(--green);font-weight:800}.catalog-family-status.is-new{color:#806500;font-weight:800}html[data-theme="dark"] .catalog-family-search,html[data-theme="dark"] .catalog-family-results{background:#15171a;border-color:#3a3e46}html[data-theme="dark"] .catalog-family-search input{background:#15171a;color:var(--ink)}html[data-theme="dark"] .catalog-family-option:hover,html[data-theme="dark"] .catalog-family-option.is-active{background:#3a3210}html[data-theme="dark"] .catalog-family-option.is-create{color:#f4cf42}
.catalog-classification-section{overflow:visible;position:relative;z-index:11}.catalog-cabys-field{position:relative;min-width:0}.catalog-cabys-field>label{color:#555a62;font-size:10px;font-weight:900;letter-spacing:.35px;text-transform:uppercase}.catalog-cabys-picker{position:relative;margin-top:6px}.catalog-cabys-search{display:flex;align-items:stretch;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--white)}.catalog-cabys-search:focus-within{border-color:#2670d2;box-shadow:0 0 0 3px rgba(38,112,210,.13)}.catalog-cabys-search input{min-width:0;flex:1;border:0!important;border-radius:0!important;box-shadow:none!important}.catalog-cabys-search input::-webkit-search-cancel-button{display:none}.catalog-cabys-search button{width:38px;flex:none;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted);font-size:18px;cursor:pointer}.catalog-cabys-search button:hover{background:rgba(38,112,210,.1);color:var(--ink)}.catalog-cabys-results{position:absolute;z-index:30;top:calc(100% + 6px);right:0;left:0;overflow:auto;max-height:350px;border:1px solid var(--border);border-radius:10px;background:var(--white);box-shadow:0 18px 42px rgba(0,0,0,.2);padding:5px}.catalog-cabys-results[hidden]{display:none}.catalog-cabys-option{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;border:0;border-radius:8px;background:transparent;color:var(--ink);padding:10px;text-align:left;cursor:pointer}.catalog-cabys-option:hover,.catalog-cabys-option.is-active{background:rgba(38,112,210,.09)}.catalog-cabys-option strong{font-size:10px;line-height:1.4}.catalog-cabys-option b{color:#2670d2;font-family:Consolas,monospace;font-size:10px}.catalog-cabys-option small{overflow:hidden;color:var(--muted);font-size:8px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.catalog-cabys-option em{color:var(--muted);font-size:8px;font-style:normal;font-weight:900}.catalog-cabys-message{display:block;padding:12px;color:var(--muted);font-size:9px;line-height:1.45}.catalog-cabys-status{margin:6px 0 0;color:var(--muted);font-size:8px;line-height:1.4}.catalog-cabys-status.is-selected{color:var(--green);font-weight:800}.catalog-cabys-status.is-error{color:var(--red);font-weight:800}html[data-theme="dark"] .catalog-cabys-search,html[data-theme="dark"] .catalog-cabys-results{background:#15171a;border-color:#3a3e46}html[data-theme="dark"] .catalog-cabys-search input{background:#15171a;color:var(--ink)}html[data-theme="dark"] .catalog-cabys-option:hover,html[data-theme="dark"] .catalog-cabys-option.is-active{background:rgba(70,139,230,.14)}html[data-theme="dark"] .catalog-cabys-option b{color:#76aef5}
.catalog-barcode-field small.is-checking{color:#806500}.catalog-barcode-field small.is-available{color:var(--green);font-weight:850}.catalog-barcode-field small.is-duplicate{color:var(--red);font-weight:900}.catalog-barcode-field:has(small.is-available) input{border-color:var(--green);box-shadow:0 0 0 3px rgba(23,138,80,.1)}.catalog-barcode-field:has(small.is-duplicate) input{border-color:var(--red);box-shadow:0 0 0 3px rgba(201,59,59,.1)}html[data-theme="dark"] .catalog-barcode-field small.is-checking{color:#f0ce4f}
.catalog-selection-toolbar{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);background:rgba(127,127,127,.035);padding:11px 14px}.catalog-selection-toolbar .btn{min-height:36px;padding:9px 13px;font-size:9px}.catalog-selection-toolbar .btn-selection-all{border:1px solid #087d8c;background:#087d8c;color:#fff}.catalog-selection-toolbar .btn-selection-all:hover{background:#076d7a}.catalog-selection-toolbar .is-disabled{pointer-events:none;opacity:.42;filter:saturate(.35)}.catalog-selection-toolbar>span{margin-left:auto;color:var(--muted);font-size:9px;font-weight:800}.catalog-select-cell{width:42px;min-width:42px;padding-right:6px!important;padding-left:14px!important;text-align:center}.catalog-select-cell input{width:17px;height:17px;margin:0;accent-color:#087d8c;cursor:pointer}.catalog-product-table tbody tr[data-catalog-product-row]{cursor:pointer;transition:background .14s ease,box-shadow .14s ease}.catalog-product-table tbody tr[data-catalog-product-row].is-selected td{background:rgba(38,112,210,.11);box-shadow:inset 0 1px rgba(38,112,210,.22),inset 0 -1px rgba(38,112,210,.22)}.catalog-product-code{display:inline-block;margin-bottom:5px;border-radius:6px;background:#17181b;color:#ffe05c!important;padding:4px 7px;font-family:Consolas,ui-monospace,monospace;font-size:15px!important;line-height:1;font-weight:950;letter-spacing:.55px}.catalog-product-identity>strong{font-size:12px}.catalog-product-identity>span{margin-top:5px;font-size:9px}html[data-theme="dark"] .catalog-selection-toolbar{background:#17191d}html[data-theme="dark"] .catalog-product-table tbody tr[data-catalog-product-row].is-selected td{background:rgba(70,139,230,.14)}html[data-theme="dark"] .catalog-product-code{background:#0d0e10;color:#ffe168!important}@media(max-width:850px){.catalog-selection-toolbar{align-items:stretch;flex-wrap:wrap}.catalog-selection-toolbar>span{width:100%;margin-left:0}.catalog-selection-toolbar .btn{flex:1;text-align:center}}
.catalog-select-cell{width:58px;min-width:58px;padding-right:8px!important;padding-left:14px!important;text-align:center}.catalog-check-control{position:relative;display:inline-grid;width:31px;height:31px;place-items:center;border:1px solid transparent;border-radius:9px;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}.catalog-check-control:hover{border-color:rgba(244,196,0,.55);background:rgba(244,196,0,.1)}.catalog-check-control:active{transform:scale(.94)}.catalog-check-control input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.catalog-check-control>span{position:relative;display:block;width:19px;height:19px;border:2px solid #9a9ea6;border-radius:6px;background:var(--white);box-shadow:0 1px 3px rgba(0,0,0,.1);transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.catalog-check-control>span::after{position:absolute;top:2px;left:5px;width:5px;height:9px;border:solid #17181b;border-width:0 2px 2px 0;content:"";opacity:0;transform:rotate(45deg) scale(.65);transition:opacity .12s ease,transform .16s ease}.catalog-check-control input:checked+span,.catalog-check-control input:indeterminate+span{border-color:var(--yellow);background:var(--yellow);box-shadow:0 0 0 3px rgba(244,196,0,.16)}.catalog-check-control input:checked+span::after{opacity:1;transform:rotate(45deg) scale(1)}.catalog-check-control input:indeterminate+span::after{top:7px;left:4px;width:8px;height:0;border-width:0 0 2px;opacity:1;transform:none}.catalog-check-control input:focus-visible+span{outline:3px solid rgba(244,196,0,.28);outline-offset:3px}.catalog-check-all{background:rgba(127,127,127,.06)}.catalog-product-table tbody tr[data-catalog-product-row]{cursor:pointer;transition:background .16s ease,box-shadow .16s ease}.catalog-product-table tbody tr[data-catalog-product-row]:hover td{background:rgba(244,196,0,.045)}.catalog-product-table tbody tr[data-catalog-product-row].is-selected td{background:rgba(244,196,0,.105);box-shadow:inset 0 1px rgba(212,170,0,.2),inset 0 -1px rgba(212,170,0,.2)}.catalog-product-table tbody tr[data-catalog-product-row].is-selected .catalog-select-cell{box-shadow:inset 4px 0 0 var(--yellow),inset 0 1px rgba(212,170,0,.2),inset 0 -1px rgba(212,170,0,.2)}.catalog-product-identity{padding-top:14px!important;padding-bottom:14px!important}.catalog-product-code{display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;border:1px solid #30333a;border-radius:7px;background:linear-gradient(180deg,#1d1f23,#111214);color:#ffe168!important;padding:5px 9px;font-family:Consolas,ui-monospace,monospace;font-size:14px!important;line-height:1;font-weight:950;letter-spacing:.65px;box-shadow:0 3px 8px rgba(0,0,0,.13)}.catalog-product-code::before{content:"CÓD";color:#9ca0a8;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:7px;font-weight:900;letter-spacing:.8px}.catalog-product-identity>strong{font-size:12px;line-height:1.42}.catalog-product-identity>span{margin-top:6px;font-size:9px}html[data-theme="dark"] .catalog-check-control>span{background:#202226;border-color:#727780}html[data-theme="dark"] .catalog-check-control input:checked+span,html[data-theme="dark"] .catalog-check-control input:indeterminate+span{background:var(--yellow);border-color:var(--yellow)}html[data-theme="dark"] .catalog-product-table tbody tr[data-catalog-product-row]:hover td{background:rgba(244,196,0,.055)}html[data-theme="dark"] .catalog-product-table tbody tr[data-catalog-product-row].is-selected td{background:rgba(244,196,0,.095)}html[data-theme="dark"] .catalog-product-code{border-color:#35383e;background:linear-gradient(180deg,#111214,#090a0b);color:#ffe168!important}@media(max-width:850px){.catalog-selection-toolbar{align-items:stretch;flex-wrap:wrap}.catalog-selection-toolbar>span{width:100%;margin-left:0}.catalog-selection-toolbar .btn{flex:1;text-align:center}}
.catalog-sort-link{display:inline-flex;min-height:29px;align-items:center;gap:7px;margin:-5px -7px;padding:5px 7px;border:1px solid transparent;border-radius:7px;color:inherit;white-space:nowrap;transition:color .14s ease,background .14s ease,border-color .14s ease}.catalog-sort-link>span{display:grid;width:17px;height:17px;place-items:center;border-radius:5px;background:rgba(127,127,127,.11);color:#8b9098;font-size:10px;line-height:1}.catalog-sort-link:hover{border-color:rgba(244,196,0,.38);background:rgba(244,196,0,.09);color:#705900}.catalog-sort-link.is-active{border-color:rgba(212,170,0,.3);background:rgba(244,196,0,.13);color:#6f5800}.catalog-sort-link.is-active>span{background:var(--yellow);color:#17181b;box-shadow:0 2px 6px rgba(180,140,0,.18)}html[data-theme="dark"] .catalog-sort-link:hover{color:#ffe168}html[data-theme="dark"] .catalog-sort-link.is-active{border-color:rgba(244,196,0,.32);background:rgba(244,196,0,.11);color:#ffe168}html[data-theme="dark"] .catalog-sort-link>span{background:#30333a;color:#c2c5ca}html[data-theme="dark"] .catalog-sort-link.is-active>span{background:var(--yellow);color:#17181b}
.catalog-editor-open{overflow:hidden}.catalog-editor-modal{width:min(1120px,94vw);height:min(920px,92vh);max-width:none;max-height:none;overflow:hidden;border:1px solid #363a42;border-radius:18px;background:var(--white);padding:0;box-shadow:0 30px 90px rgba(0,0,0,.55)}.catalog-editor-modal:not([open]){display:none}.catalog-editor-modal::backdrop{background:rgba(8,9,11,.72);backdrop-filter:blur(3px)}.catalog-editor-modal iframe{display:block;width:100%;height:100%;border:0;background:var(--bg)}.catalog-editor-modal-close{position:absolute;z-index:30;top:15px;right:18px;display:grid;width:40px;height:40px;place-items:center;border:1px solid var(--border);border-radius:11px;background:#1c1e22;color:#fff;font:800 25px/1 inherit;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.22);transition:transform .16s ease,border-color .16s ease,background .16s ease}.catalog-editor-modal-close:hover{border-color:var(--yellow);background:#292c31;transform:translateY(-1px)}.catalog-editor-modal-close:active{transform:scale(.96)}
.catalog-modal-document{min-width:0;background:var(--bg)}.catalog-modal-document>.topbar{display:none}.catalog-modal-document .layout{display:block;min-height:100vh}.catalog-modal-document .sidebar{display:none}.catalog-modal-document .content{width:100%;max-width:none;min-height:100vh;margin:0;padding:14px 16px 100px}.catalog-modal-document .page-head.catalog-page-head{position:sticky;z-index:24;top:0;align-items:center;margin:-14px -16px 12px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--white) 94%,transparent);padding:15px 72px 14px 18px;backdrop-filter:blur(12px)}.catalog-modal-document .catalog-page-head h1{margin:3px 0;font-size:23px}.catalog-modal-document .catalog-page-head p{font-size:10px}.catalog-modal-document .catalog-page-head .back-link{font-size:9px}.catalog-modal-document .catalog-policy-strip{display:none}.catalog-modal-document .catalog-product-form{max-width:none;gap:10px}.catalog-modal-document .catalog-form-section{border-radius:12px;box-shadow:none}.catalog-modal-document .catalog-section-head{padding:13px 15px}.catalog-modal-document .catalog-section-head>div{grid-template-columns:28px minmax(0,1fr);column-gap:9px}.catalog-modal-document .catalog-section-head>div>span{width:28px;height:28px;border-radius:8px}.catalog-modal-document .catalog-section-head h2{font-size:15px}.catalog-modal-document .catalog-section-head p{margin-top:2px;font-size:9px}.catalog-modal-document .catalog-field-grid{gap:10px;padding:14px 15px}.catalog-modal-document .catalog-commercial-grid{grid-template-columns:minmax(0,1.65fr) minmax(245px,.35fr)}.catalog-modal-document .catalog-margin-card{padding:15px}.catalog-modal-document .catalog-stock-toggle{margin:12px 15px 0}.catalog-modal-document .catalog-stock-editor{padding:12px 15px 15px}.catalog-modal-document .catalog-save-bar{z-index:26;bottom:-86px;border-radius:11px;padding:11px 13px}.catalog-modal-document .catalog-danger-zone{max-width:none;margin:12px auto 0;border-radius:12px;padding:15px}.catalog-modal-document .alert{margin-bottom:10px}
@media(max-width:700px){.catalog-editor-modal{width:100vw;height:100dvh;border:0;border-radius:0}.catalog-editor-modal-close{top:9px;right:9px}.catalog-modal-document .content{padding:10px 10px 90px}.catalog-modal-document .page-head.catalog-page-head{margin:-10px -10px 10px;padding:12px 58px 11px 12px}.catalog-modal-document .catalog-commercial-grid{grid-template-columns:1fr}.catalog-modal-document .catalog-save-bar{bottom:-78px}.catalog-modal-document .catalog-danger-zone{grid-template-columns:1fr}}
.catalog-modal-document .catalog-save-bar{bottom:10px}
@media(max-width:700px){.catalog-modal-document .catalog-save-bar{bottom:6px}}
@media(max-width:1300px){.catalog-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-search-field{grid-column:span 2}.catalog-filter-actions{justify-content:flex-end}.catalog-policy-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.catalog-commercial-grid,.catalog-adjust-layout{grid-template-columns:1fr}.catalog-margin-card{min-height:300px}.catalog-balance-card{position:static}.catalog-danger-zone{grid-template-columns:1fr}.catalog-danger-zone form{grid-template-columns:1fr 1fr}.catalog-danger-zone form .btn{grid-column:1/-1}.catalog-metrics,.catalog-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-search-field{grid-column:1/-1}}
@media(max-width:650px){.catalog-policy-strip,.catalog-policy-strip.compact,.catalog-field-grid,.catalog-metrics,.catalog-history-metrics,.catalog-filter-panel{grid-template-columns:1fr}.catalog-search-field{grid-column:auto}.catalog-section-head{align-items:flex-start;flex-direction:column}.catalog-section-head>a{width:100%}.catalog-save-bar{position:static;align-items:stretch;flex-direction:column}.catalog-save-bar .form-actions,.catalog-save-bar .btn{width:100%}.catalog-danger-zone{padding:16px}.catalog-danger-zone form{grid-template-columns:1fr}.catalog-danger-zone form .btn{grid-column:auto}.catalog-stock-editor{padding-right:12px;padding-left:12px}.catalog-created{padding:30px 18px}.catalog-audit-event>header{align-items:flex-start;flex-direction:column}.catalog-change-grid{grid-template-columns:1fr}.catalog-change-grid>div{grid-template-columns:1fr}.catalog-change-grid b{transform:rotate(90deg);text-align:center}.catalog-filter-actions{justify-content:stretch}.catalog-filter-actions .btn{flex:1}}

/* Preproducción 0.81.0 · continuidad, clientes y accesibilidad del POS */
.pos-recovery-note{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-4px 0 16px;border:1px solid rgba(38,112,210,.3);border-radius:13px;background:rgba(38,112,210,.08);padding:13px 16px;color:var(--ink)}.pos-recovery-note[hidden]{display:none!important}.pos-recovery-note>div{display:flex;min-width:0;align-items:flex-start;gap:11px}.pos-recovery-note>div>span{display:grid;width:30px;height:30px;flex:none;place-items:center;border-radius:50%;background:#2670d2;color:#fff;font-weight:950}.pos-recovery-note p{margin:0}.pos-recovery-note strong,.pos-recovery-note small{display:block}.pos-recovery-note strong{font-size:12px}.pos-recovery-note small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.45}.pos-client-field>small{display:block;margin:6px 0 0;color:var(--muted);font-size:9px;line-height:1.4}.client-professional-form{max-width:980px;margin-right:auto;margin-left:auto}.client-policy-strip{max-width:980px;margin-right:auto;margin-left:auto}.client-created{min-height:480px}.client-created h1{max-width:680px}.pos-product-card:focus-visible,.pos-search-box button:focus-visible,.pos-quick-link:focus-visible,.pos-doc-option:focus-visible,.pos-line-action:focus-visible,.pos-checkout-panel button:focus-visible,.pos-checkout-panel a:focus-visible,.pos-price-modal button:focus-visible{outline:3px solid rgba(38,112,210,.7);outline-offset:3px}.pos-search-box:focus-within{border-color:#2670d2;box-shadow:0 0 0 4px rgba(38,112,210,.13)}.pos-price-modal-card:focus{outline:0}.pos-price-modal-card input:focus-visible,.pos-price-modal-card select:focus-visible,.pos-checkout-panel input:focus-visible,.pos-checkout-panel select:focus-visible,.pos-checkout-panel textarea:focus-visible{outline:3px solid rgba(38,112,210,.24);outline-offset:1px;border-color:#2670d2}.pos-product-card[aria-selected="true"]{border-color:#2670d2;box-shadow:0 0 0 3px rgba(38,112,210,.12)}
html[data-theme="dark"] .pos-recovery-note{border-color:rgba(99,164,255,.35);background:rgba(38,112,210,.14)}html[data-theme="dark"] .pos-recovery-note>div>span{background:#4389e5}html[data-theme="dark"] .pos-search-box:focus-within{border-color:#63a4ff;box-shadow:0 0 0 4px rgba(99,164,255,.13)}
.pos-product-option:focus-visible,.pos-add-button:focus-visible,.pos-segments button:focus-visible,.pos-client-actions a:focus-visible,.pos-summary-actions button:focus-visible,.pos-save-button:focus-visible,.pos-line-remove:focus-visible,.pos-line-price:focus-visible,.pos-cart-row:focus-visible{outline:3px solid rgba(38,112,210,.7);outline-offset:2px}.pos-search-input:focus-within{border-color:#2670d2;box-shadow:0 0 0 4px rgba(38,112,210,.12)}
.pos-segments button.active,html[data-theme="dark"] .pos-segments button.active{border-color:#e3b700;background:var(--yellow);color:#171717;box-shadow:inset 0 -3px 0 rgba(111,85,0,.22);font-weight:950}.pos-segments button.active:hover,html[data-theme="dark"] .pos-segments button.active:hover{background:#ffd21a;color:#111}
@media(max-width:700px){.pos-recovery-note{align-items:stretch;flex-direction:column}.pos-recovery-note .btn{width:100%}.client-professional-form,.client-policy-strip{max-width:none}}
@media(prefers-reduced-motion:reduce){.pos-product-card,.pos-price-modal,.pos-price-modal-card{scroll-behavior:auto;transition:none!important}}

/* Arqueo guiado para el cierre de caja */
.cash-manual-card{width:min(100%,920px);margin:0 auto;padding:26px}.cash-manual-card form{display:grid;gap:21px}.cash-manual-card .field>small{color:var(--muted);font-size:10px;line-height:1.45}.cash-manual-reason input{font-size:17px}.cash-manual-amount{max-width:460px}.cash-manual-amount input{font-size:22px;font-weight:850}.cash-withdrawal-types{min-width:0;margin:0;padding:0;border:0}.cash-withdrawal-types legend{margin-bottom:9px;color:var(--muted);font-size:12px;font-weight:800}.cash-withdrawal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cash-withdrawal-option{position:relative;cursor:pointer}.cash-withdrawal-option:last-child{grid-column:1/-1;width:calc(50% - 5px)}.cash-withdrawal-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.cash-withdrawal-option span{display:flex;min-height:54px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:10px;background:var(--bg);padding:12px 16px;text-align:center;font-size:14px;transition:border-color .15s,background .15s,box-shadow .15s}.cash-withdrawal-option input:checked+span{border-color:var(--yellow);background:rgba(244,196,0,.12);box-shadow:0 0 0 2px rgba(244,196,0,.2);font-weight:850}.cash-withdrawal-option input:focus-visible+span{outline:3px solid rgba(38,112,210,.6);outline-offset:2px}.cash-manual-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:5px}.cash-withdrawal-card .cash-manual-actions .btn-primary{min-width:300px}html[data-theme="dark"] .cash-withdrawal-option span{background:#24262a}
.cash-method-types{min-width:0;margin:0;padding:0;border:0}.cash-method-types legend{margin-bottom:9px;color:var(--muted);font-size:12px;font-weight:800}.cash-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cash-method-option{position:relative;cursor:pointer}.cash-method-option:last-child{grid-column:1/-1;width:calc(50% - 5px)}.cash-method-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.cash-method-option span{display:flex;min-height:54px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:10px;background:var(--bg);padding:12px 16px;text-align:center;font-size:14px;transition:border-color .15s,background .15s,box-shadow .15s}.cash-method-option input:checked+span{border-color:var(--yellow);background:rgba(244,196,0,.12);box-shadow:0 0 0 2px rgba(244,196,0,.2);font-weight:850}.cash-method-option input:focus-visible+span{outline:3px solid rgba(38,112,210,.6);outline-offset:2px}.cash-income-card .cash-manual-actions{justify-content:center}.cash-income-card .cash-manual-actions .btn-primary{min-width:350px}html[data-theme="dark"] .cash-method-option span{background:#24262a}
@media(max-width:650px){.cash-manual-card{padding:18px}.cash-withdrawal-grid,.cash-method-grid{grid-template-columns:1fr}.cash-withdrawal-option:last-child,.cash-method-option:last-child{grid-column:auto;width:auto}.cash-manual-amount{max-width:none}.cash-manual-actions{align-items:stretch;flex-direction:column-reverse}.cash-manual-actions .btn,.cash-withdrawal-card .cash-manual-actions .btn-primary,.cash-income-card .cash-manual-actions .btn-primary{width:100%;min-width:0}}

.cash-close-ticket{width:80mm;margin:0 auto 24px;border:1px solid #c8c8c8;background:#fff;color:#000;box-shadow:0 14px 36px rgba(0,0,0,.16);padding:4mm 3.5mm;font-family:Arial,Helvetica,sans-serif;font-size:10.5px;line-height:1.25}.cash-close-ticket header{text-align:center;margin-bottom:11px}.cash-close-ticket header strong,.cash-close-ticket header span{display:block}.cash-close-ticket header strong{font-size:18px}.cash-close-ticket header span{margin-top:2px;color:#555;font-size:9px}.cash-close-ticket-meta{margin:0 0 10px}.cash-close-ticket-meta>div{display:flex;justify-content:space-between;gap:7px;padding:1px 0}.cash-close-ticket-meta dt,.cash-close-ticket-meta dd{margin:0;min-width:0}.cash-close-ticket-meta dt{font-weight:700;flex:none}.cash-close-ticket-meta dd{max-width:45mm;text-align:right;overflow-wrap:anywhere}.cash-close-ticket-section{position:relative;margin-top:11px;padding-top:5px;border-top:2px dashed #000;break-inside:avoid}.cash-close-ticket-section h2{margin:0 0 3px;padding-bottom:4px;border-bottom:2px dashed #000;text-align:center;font-size:11px;text-transform:uppercase;overflow-wrap:anywhere}.cash-close-ticket-note{display:block;margin:4px 0 2px;text-align:center;font-size:8.5px;font-weight:600;overflow-wrap:anywhere}.cash-close-ticket-currency{text-align:right;font-size:8.5px}.cash-close-ticket-row,.cash-close-ticket-subrow{display:flex;justify-content:space-between;gap:6px;padding:2px 0}.cash-close-ticket-row>span,.cash-close-ticket-subrow>span{min-width:0;overflow-wrap:anywhere}.cash-close-ticket-row b,.cash-close-ticket-subrow b{flex:none;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.cash-close-ticket-subrow{padding:0 0 2px 8px;color:#444;font-size:8.5px}.cash-close-ticket-row.total{margin-top:2px;border-top:1px solid #000;padding-top:4px;font-size:11.5px;font-weight:800}.cash-close-ticket>footer{margin-top:12px;padding-top:6px;border-top:1px dashed #000;text-align:center;font-size:8.5px}.cash-close-ticket+.cash-closure-movements{margin-top:20px}
@media print{.cash-close-ticket{width:66mm!important;max-width:66mm!important;margin:0 auto!important;border:0!important;box-shadow:none!important;padding:1mm!important;color:#000!important;background:#fff!important;font-size:12px!important;line-height:1.32!important;overflow:visible!important}.cash-close-ticket,.cash-close-ticket *{color:#000!important;text-shadow:none!important;opacity:1!important;filter:none!important}.cash-close-ticket header strong{font-size:21px!important}.cash-close-ticket header span{font-size:11px!important}.cash-close-ticket-meta{font-size:11.5px!important}.cash-close-ticket-meta dd{max-width:39mm!important}.cash-close-ticket-section{border-color:#000!important}.cash-close-ticket-section h2{border-color:#000!important;font-size:13px!important}.cash-close-ticket-note,.cash-close-ticket-currency,.cash-close-ticket-subrow{font-size:10px!important}.cash-close-ticket-row.total{font-size:13px!important}.cash-close-ticket>footer{font-size:10px!important}}

.cash-count-modal[hidden]{display:none!important}.cash-count-modal{position:fixed;z-index:140;inset:0;display:grid;place-items:center;padding:18px}.cash-count-backdrop{position:absolute;inset:0;background:rgba(4,5,7,.78);backdrop-filter:blur(4px)}.cash-count-dialog{position:relative;width:min(980px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:0 28px 80px rgba(0,0,0,.45);color:var(--ink)}.cash-count-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid var(--border)}.cash-count-head h2{margin:4px 0 3px;font-size:25px}.cash-count-head p{margin:0;color:var(--muted);font-size:12px}.cash-count-close{display:grid;width:38px;height:38px;flex:none;place-items:center;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--ink);font-size:24px;line-height:1;cursor:pointer}.cash-count-layout{display:grid;grid-template-columns:minmax(380px,1.15fr) minmax(310px,.85fr);gap:16px;padding:18px 22px}.cash-count-side{display:flex;flex-direction:column;gap:14px}.cash-count-panel{border:1px solid var(--border);border-radius:13px;background:var(--bg);padding:15px}.cash-count-panel-title{display:flex;justify-content:space-between;gap:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}.cash-count-panel-title strong{font-size:13px}.cash-count-panel-title small{color:var(--muted);font-size:10px}.cash-denominations{display:grid;gap:5px;padding:9px 0}.cash-denomination{display:grid;grid-template-columns:72px minmax(90px,1fr) 120px;align-items:center;gap:10px}.cash-denomination>span{text-align:right;color:var(--muted);font-size:12px;font-weight:800}.cash-denomination input{width:100%;height:34px;border:1px solid var(--border);border-radius:7px;background:var(--white);color:var(--ink);padding:6px 9px;text-align:right;font:800 13px inherit}.cash-denomination input:focus{outline:3px solid rgba(244,196,0,.2);border-color:var(--yellow)}.cash-denomination output{text-align:right;font-size:12px;font-weight:850}.cash-count-total{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--border);padding-top:11px}.cash-count-total span{font-size:12px;font-weight:800}.cash-count-total strong{font-size:18px}.cash-automatic-row{display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.cash-automatic-row span{font-size:12px}.cash-automatic-row strong{font-size:13px}.cash-automatic-row small{grid-column:1/-1;color:var(--muted);font-size:9px}.cash-automatic-panel .cash-count-total{margin-top:10px}.cash-grand-panel{padding:0;overflow:hidden}.cash-grand-row,.cash-expected-row,.cash-difference-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px}.cash-grand-row{background:var(--yellow);color:#151515}.cash-grand-row strong{font-size:19px}.cash-expected-row{border-bottom:1px solid var(--border);font-size:11px}.cash-difference-row{font-size:12px;font-weight:850}.cash-difference-row.is-exact{background:rgba(33,145,87,.14);color:var(--green)}.cash-difference-row.is-surplus,.cash-difference-row.is-short{background:rgba(190,49,49,.12);color:var(--red)}.cash-count-side textarea{resize:vertical;background:var(--bg);color:var(--ink);border-color:var(--border)}.cash-count-actions{display:flex;justify-content:flex-end;gap:10px;padding:15px 22px;border-top:1px solid var(--border);background:var(--bg)}body.cash-count-modal-open{overflow:hidden}
html[data-theme="dark"] .cash-count-dialog{background:#1d1f23}html[data-theme="dark"] .cash-count-panel,html[data-theme="dark"] .cash-count-actions,html[data-theme="dark"] .cash-count-close,html[data-theme="dark"] .cash-count-side textarea{background:#17191d}html[data-theme="dark"] .cash-denomination input{background:#202329}
@media(max-width:760px){.cash-count-modal{padding:0}.cash-count-dialog{max-height:100vh;height:100%;border-radius:0}.cash-count-layout{grid-template-columns:1fr;padding:14px}.cash-count-head{padding:16px}.cash-count-actions{position:sticky;bottom:0;padding:12px 14px}.cash-count-actions .btn{flex:1}.cash-denomination{grid-template-columns:58px minmax(75px,1fr) 100px}}

/* Preproducción 0.81.0 · revisión final 3 de 3 */
.preproduction-page-head{align-items:center}.preproduction-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.preproduction-safety-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-bottom:18px;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--border);box-shadow:var(--shadow)}.preproduction-safety-strip>div{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:11px;align-items:center;background:var(--white);padding:15px 17px}.preproduction-safety-strip>div>span{display:grid;grid-row:1/3;width:31px;height:31px;place-items:center;border-radius:50%;background:#e8f7ef;color:var(--green);font-weight:950}.preproduction-safety-strip strong,.preproduction-safety-strip small{display:block}.preproduction-safety-strip strong{font-size:11px}.preproduction-safety-strip small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}.preproduction-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.preproduction-results{margin:20px 0;overflow:hidden}.preproduction-results .panel-head p{margin:5px 0 0;color:var(--muted);font-size:10px}.preproduction-group-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--border)}.preproduction-group-card{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;background:var(--white);padding:15px}.preproduction-group-card strong,.preproduction-group-card small{display:block}.preproduction-group-card strong{font-size:10px;line-height:1.35}.preproduction-group-card small{margin-top:4px;color:var(--muted);font-size:8px}.preproduction-group-card>span{flex:none;color:var(--green);font-size:17px;font-weight:950}.preproduction-group-card.has-error>span{color:var(--red)}.preproduction-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:18px}.preproduction-check{min-width:0;border:1px solid var(--border);border-radius:11px;background:var(--soft);overflow:hidden}.preproduction-check summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 13px;cursor:pointer;list-style:none}.preproduction-check summary::-webkit-details-marker{display:none}.preproduction-check summary>span{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;background:var(--green);color:#fff;font-weight:950}.preproduction-check summary small,.preproduction-check summary strong{display:block}.preproduction-check summary small{color:var(--muted);font-size:7px;text-transform:uppercase}.preproduction-check summary strong{margin-top:3px;font-size:10px}.preproduction-check summary>b{color:var(--green);font-size:7px}.preproduction-check>p{margin:0;border-top:1px solid var(--border);padding:10px 13px 12px;color:var(--muted);font-size:9px;line-height:1.45}.preproduction-check.failed{border-color:rgba(201,59,59,.38);background:rgba(201,59,59,.06)}.preproduction-check.failed summary>span{background:var(--red)}.preproduction-check.failed summary>b{color:var(--red)}.preproduction-certification-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr);gap:18px;align-items:start;margin:20px 0}.preproduction-certification-form{overflow:hidden}.preproduction-certification-form .panel-head p{margin:5px 0 0;color:var(--muted);font-size:10px}.preproduction-certification-form form{display:grid;gap:14px;padding:20px}.preproduction-certification-form .field{margin:0}.preproduction-certification-form input{width:100%;margin-top:6px;border:1px solid var(--border);border-radius:9px;background:var(--white);color:var(--ink);padding:11px 12px;font:inherit}.preproduction-certification-form code{display:block;margin-top:7px;border-radius:8px;background:#17181b;color:#f4c400;padding:10px 12px;font-size:10px;overflow-wrap:anywhere}.preproduction-blocked{padding:22px}.preproduction-blocked strong{color:var(--red)}.preproduction-blocked p{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:1.5}.preproduction-release-card{border:1px solid #30333a;border-radius:15px;background:#17181b;color:#fff;padding:22px;box-shadow:var(--shadow)}.preproduction-release-card h2{margin:5px 0 13px;font-size:24px}.preproduction-release-card ul{display:grid;gap:9px;margin:0 0 18px;padding-left:18px;color:#d3d5da;font-size:10px;line-height:1.45}.preproduction-release-card>strong{display:block;border-top:1px solid #30333a;padding-top:15px;color:#f4c400;font-size:10px;line-height:1.45}
html[data-theme="dark"] .preproduction-safety-strip>div,html[data-theme="dark"] .preproduction-group-card{background:#1b1d21}html[data-theme="dark"] .preproduction-safety-strip>div>span{background:#123b28}html[data-theme="dark"] .preproduction-check{background:#17191c}html[data-theme="dark"] .preproduction-certification-form input{background:#15171a;border-color:#3a3e46}
@media(max-width:1150px){.preproduction-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.preproduction-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.preproduction-safety-strip,.preproduction-certification-layout{grid-template-columns:1fr}.preproduction-check-list{grid-template-columns:1fr}.preproduction-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.preproduction-page-head{align-items:flex-start}.preproduction-head-actions{justify-content:flex-start}.preproduction-metrics,.preproduction-group-grid{grid-template-columns:1fr}.preproduction-check-list{padding:12px}.preproduction-check summary{grid-template-columns:auto minmax(0,1fr)}.preproduction-check summary>b{grid-column:2}}

/* Preproducción 0.81.1 · resolución guiada de códigos de barras */
.preproduction-barcode-warning{display:flex;align-items:center;justify-content:space-between;gap:22px}.preproduction-barcode-warning>div{min-width:0}.preproduction-barcode-warning p{margin:5px 0 0}.preproduction-barcode-warning .btn{flex:none}.barcode-resolver-head{align-items:center}.barcode-resolver-safety{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-bottom:20px;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--border);box-shadow:var(--shadow)}.barcode-resolver-safety>div{background:var(--white);padding:16px 18px}.barcode-resolver-safety strong,.barcode-resolver-safety span{display:block}.barcode-resolver-safety strong{font-size:11px}.barcode-resolver-safety span{margin-top:5px;color:var(--muted);font-size:9px;line-height:1.45}.barcode-conflict-list{display:grid;gap:18px}.barcode-conflict-card{overflow:hidden}.barcode-conflict-card .panel-head h2{margin:4px 0 0;font:950 23px Consolas,monospace}.barcode-conflict-card .panel-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.barcode-product-options{display:grid;gap:8px;margin:0;border:0;border-bottom:1px solid var(--border);padding:19px}.barcode-product-options legend{width:100%;padding:0 0 11px;font-size:11px;font-weight:900}.barcode-product-options label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--border);border-radius:10px;background:var(--soft);padding:12px 13px;cursor:pointer}.barcode-product-options label:has(input:checked){border-color:#2670d2;background:rgba(38,112,210,.08);box-shadow:0 0 0 2px rgba(38,112,210,.1)}.barcode-product-options label.barcode-none-option{border-style:dashed}.barcode-product-options label.barcode-none-option:has(input:checked){border-color:rgba(201,59,59,.55);background:rgba(201,59,59,.07);box-shadow:0 0 0 2px rgba(201,59,59,.08)}.barcode-product-options input{width:17px;height:17px;accent-color:#2670d2}.barcode-product-options strong,.barcode-product-options small{display:block}.barcode-product-options strong{font-size:10px}.barcode-product-options small{margin-top:4px;color:var(--muted);font-size:8px}.barcode-product-options a{color:#806500;font-size:9px;font-weight:900}.barcode-resolution-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:18px 19px}.barcode-resolution-fields .field{margin:0}.barcode-resolution-fields .full{grid-column:1/-1}.barcode-resolution-fields input{width:100%;margin-top:6px;border:1px solid var(--border);border-radius:9px;background:var(--white);color:var(--ink);padding:10px 11px;font:inherit}.barcode-resolution-fields code{display:block;margin-top:6px;border-radius:8px;background:#17181b;color:#f4c400;padding:9px 11px;font-size:10px;overflow-wrap:anywhere}.barcode-resolution-action{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--border);background:var(--soft);padding:15px 19px}.barcode-resolution-action p{max-width:620px;margin:0;color:var(--muted);font-size:9px;line-height:1.45}.barcode-resolution-action .btn{flex:none}.barcode-resolver-complete{min-height:390px}
html[data-theme="dark"] .barcode-resolver-safety>div{background:#1b1d21}html[data-theme="dark"] .barcode-product-options label,html[data-theme="dark"] .barcode-resolution-action{background:#17191c}html[data-theme="dark"] .barcode-product-options label:has(input:checked){background:rgba(70,139,230,.13)}html[data-theme="dark"] .barcode-resolution-fields input{background:#15171a;border-color:#3a3e46}
@media(max-width:800px){.barcode-resolver-safety{grid-template-columns:1fr}.preproduction-barcode-warning,.barcode-resolution-action{align-items:stretch;flex-direction:column}.preproduction-barcode-warning .btn,.barcode-resolution-action .btn{width:100%}}
@media(max-width:600px){.barcode-resolution-fields{grid-template-columns:1fr}.barcode-resolution-fields .full{grid-column:auto}.barcode-product-options label{grid-template-columns:auto minmax(0,1fr)}.barcode-product-options a{grid-column:2}}

/* Ajustes finos POS 0.82.0 · cantidades táctiles y calculadora de efectivo */
.pos-quantity-stepper{display:grid;grid-template-columns:25px minmax(55px,1fr) 25px;min-width:110px;overflow:hidden;border:1px solid var(--border);border-radius:7px;background:var(--white)}.pos-quantity-stepper button{display:grid;min-width:0;place-items:center;border:0;background:rgba(127,127,127,.08);color:var(--ink);padding:0;font:950 15px inherit;cursor:pointer}.pos-quantity-stepper button:hover:not(:disabled){background:rgba(244,196,0,.18)}.pos-quantity-stepper button:disabled{cursor:not-allowed;opacity:.28}.pos-quantity-stepper .pos-cart-quantity{width:100%;min-width:0;border:0;border-right:1px solid var(--border);border-left:1px solid var(--border);border-radius:0;padding:7px 2px;-moz-appearance:textfield}.pos-quantity-stepper .pos-cart-quantity::-webkit-outer-spin-button,.pos-quantity-stepper .pos-cart-quantity::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.pos-quantity-stepper:focus-within{border-color:#2670d2;box-shadow:0 0 0 3px rgba(38,112,210,.12)}.pos-quantity-stepper button:focus-visible{position:relative;z-index:1;outline:3px solid rgba(38,112,210,.7);outline-offset:-2px}
.pos-cash-assistant{display:grid;gap:10px;border:1px solid rgba(36,140,78,.34);border-radius:11px;background:rgba(36,140,78,.055);padding:12px}.pos-cash-assistant[hidden]{display:none!important}.pos-cash-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.pos-cash-head>div{display:flex;min-width:0;flex-direction:column;gap:3px}.pos-cash-head strong{font-size:11px}.pos-cash-head>small{max-width:142px;color:var(--muted);font-size:7px;line-height:1.4;text-align:right}.pos-cash-input{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}.pos-cash-input>span{color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase}.pos-cash-input input{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:9px 10px;text-align:right;font:900 13px inherit}.pos-cash-input input:focus-visible{outline:3px solid rgba(38,112,210,.24);outline-offset:1px;border-color:#2670d2}.pos-cash-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.pos-cash-shortcuts button{overflow:hidden;border:1px solid var(--border);border-radius:7px;background:var(--white);color:var(--ink);padding:7px 4px;font:850 8px inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.pos-cash-shortcuts button:hover:not(:disabled){border-color:#319152;background:rgba(36,140,78,.1)}.pos-cash-shortcuts button:disabled{cursor:not-allowed;opacity:.4}.pos-cash-shortcuts button[hidden]{display:none!important}.pos-cash-shortcuts button:focus-visible{outline:3px solid rgba(38,112,210,.65);outline-offset:1px}.pos-cash-result{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;border-top:1px solid rgba(36,140,78,.2);padding-top:9px}.pos-cash-result>span{font-size:9px;font-weight:900;text-transform:uppercase}.pos-cash-result>strong{color:var(--green);font-size:20px;text-align:right}.pos-cash-result>small{grid-column:1/-1;color:var(--muted);font-size:8px;line-height:1.4}.pos-cash-result[data-state="pending"]>strong,.pos-cash-result[data-state="pending"]>span{color:var(--red)}.pos-cash-result[data-state="ready"]{border-top-color:rgba(36,140,78,.42)}
html[data-theme="dark"] .pos-quantity-stepper,html[data-theme="dark"] .pos-cash-input input,html[data-theme="dark"] .pos-cash-shortcuts button{background:#15171a;border-color:#3a3e46;color:var(--ink)}html[data-theme="dark"] .pos-quantity-stepper button{background:#202328;color:var(--ink)}html[data-theme="dark"] .pos-cash-assistant{border-color:rgba(69,201,131,.3);background:rgba(69,201,131,.075)}
@media(max-width:1280px){.pos-quantity-stepper{min-width:100px;grid-template-columns:23px minmax(50px,1fr) 23px}}
@media(max-width:480px){.pos-cash-head{flex-direction:column}.pos-cash-head>small{max-width:none;text-align:left}.pos-cash-input{grid-template-columns:1fr}.pos-cash-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* POS 0.83.1 · descuentos controlados y modo de caja inmersivo */
.pos-focus-topbar{position:sticky;z-index:90;top:0;display:flex;height:56px;align-items:center;justify-content:space-between;gap:18px;background:#101114;color:#fff;padding:0 16px;border-bottom:1px solid #292c32}.pos-focus-title{display:flex;min-width:0;align-items:center;gap:11px}.pos-focus-title>button{display:grid;width:38px;height:38px;flex:none;place-items:center;border:1px solid #3b3e45;border-radius:9px;background:#202227;color:#fff;font:900 18px inherit;cursor:pointer}.pos-focus-title>button:hover,.pos-focus-title>button[aria-expanded="true"]{border-color:var(--yellow);color:var(--yellow)}.pos-focus-title>div{min-width:0}.pos-focus-title strong,.pos-focus-title small{display:block}.pos-focus-title strong{font-size:16px;white-space:nowrap}.pos-focus-title small{margin-top:1px;color:#aeb2b9;font-size:7px;letter-spacing:.65px;text-transform:uppercase}.pos-focus-topbar .context-chip{padding-top:5px;padding-bottom:5px}.pos-focus-topbar .theme-toggle{padding:7px 10px}.pos-focus-topbar .btn{padding:8px 12px}.pos-focus-layout{display:block;min-height:calc(100vh - 56px)}.pos-focus-page .content{width:100%;max-width:none;margin:0;padding:11px 14px 18px}.pos-focus-page .pos-page-head{display:none}.pos-focus-page .pos-sale-summary{top:68px}.pos-focus-page .sidebar{position:fixed;z-index:80;top:56px;right:auto;bottom:0;left:0;display:block;width:250px;overflow-y:auto;background:#17181b;padding:16px 12px;transform:translateX(-102%);transition:transform .2s ease;box-shadow:16px 0 38px rgba(0,0,0,.32)}.pos-focus-page.pos-sidebar-open .sidebar{transform:translateX(0)}.pos-sidebar-backdrop{position:fixed;z-index:70;inset:56px 0 0;border:0;background:rgba(4,5,7,.58);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;cursor:pointer}.pos-sidebar-open .pos-sidebar-backdrop{opacity:1;visibility:visible}.pos-focus-page .sidebar .nav-item{justify-content:flex-start;font-size:13px}.pos-focus-page .sidebar .nav-item span{display:inline}.pos-summary-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.pos-line-discount{display:block;margin-top:4px;color:#d08b1c;font-size:8px;font-weight:900;white-space:nowrap}.pos-line-discount[hidden]{display:none!important}.pos-price-modal-grid output{display:flex;min-height:42px;align-items:center;border:1px solid #41444b;border-radius:8px;background:#26282c;color:#ffe168;padding:10px 11px;font-size:11px;font-weight:900}.pos-price-modal-grid input[max="99.999"]{text-align:right}.price-authorization-list.discount-authorization-list strong{color:var(--ink)}html[data-theme="dark"] .pos-line-discount{color:#f0c459}
@media(min-width:1081px){.pos-focus-page .pos-linear-shell{grid-template-columns:minmax(0,1fr) minmax(330px,390px);gap:12px}.pos-focus-page .pos-lines-area{min-height:335px}}
@media(max-width:900px){.pos-focus-topbar .context-chip,.pos-focus-topbar .user-badge{display:none}.pos-focus-topbar .top-actions{gap:7px}}
@media(max-width:650px){.pos-focus-topbar{height:52px;padding:0 9px}.pos-focus-title>button{width:36px;height:36px}.pos-focus-topbar .theme-text{display:none}.pos-focus-layout{min-height:calc(100vh - 52px)}.pos-focus-page .content{padding:8px 8px 76px}.pos-focus-page .sidebar{top:52px;bottom:0;width:min(86vw,290px);padding:13px 10px}.pos-sidebar-backdrop{inset:52px 0 0}.pos-summary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pos-client-picker{position:relative;min-width:0}.pos-client-search{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:10px 11px;font:inherit;font-size:11px;font-weight:700}.pos-client-search:focus{outline:2px solid rgba(244,196,0,.42);border-color:#c49c00}.pos-client-search::placeholder{color:var(--muted);font-weight:600}.pos-client-native{display:none!important}.pos-client-results{position:absolute;z-index:60;top:calc(100% + 5px);right:0;left:0;max-height:290px;overflow:auto;border:1px solid #3a3d43;border-radius:9px;background:#202226;padding:5px;box-shadow:0 18px 45px rgba(0,0,0,.42)}.pos-client-results[hidden]{display:none!important}.pos-client-result{display:block;width:100%;border:0;border-bottom:1px solid #35383e;border-radius:5px;background:transparent;color:#f1f2f4;padding:10px 11px;text-align:left;font:750 11px inherit;cursor:pointer}.pos-client-result:last-child{border-bottom:0}.pos-client-result:hover,.pos-client-result.active{background:#30333a;color:#ffe16a}.pos-client-no-results{padding:14px;color:#c5c8cf;font-size:10px;line-height:1.45;text-align:center}.pos-focus-page .pos-client-field{grid-template-columns:auto minmax(0,1fr)}.pos-focus-page .pos-client-field>.pos-client-picker{grid-column:2;grid-row:1}.pos-focus-page .pos-client-picker input{padding:7px 9px}.pos-focus-page .pos-client-field>small{grid-column:2;grid-row:2}@media(max-width:900px){.pos-focus-page .pos-client-field{display:flex;align-items:stretch;flex-direction:column}.pos-focus-page .pos-client-field>small{white-space:normal}.pos-client-results{max-height:240px}}
@media(prefers-reduced-motion:reduce){.pos-focus-page .sidebar,.pos-sidebar-backdrop{transition:none}}
.text-discount{color:#b86f00}.draft-total-overview{min-width:min(100%,650px);gap:9px}.draft-total-breakdown{display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));gap:1px;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--border)}.draft-total-breakdown>span{display:flex;min-width:0;flex-direction:column;background:var(--white);padding:10px 12px}.draft-total-breakdown small{margin:0;color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase}.draft-total-breakdown strong{margin-top:4px;font-size:14px}.draft-total-breakdown .draft-grand-total{background:#17181b;color:#fff}.draft-total-breakdown .draft-grand-total small{color:#bfc2c8}.draft-total-breakdown .draft-grand-total strong{color:#ffe168;font-size:19px}.draft-observation{max-width:650px;line-height:1.45}html[data-theme="dark"] .draft-total-breakdown>span{background:#1b1d21}html[data-theme="dark"] .draft-total-breakdown .draft-grand-total{background:#101114}html[data-theme="dark"] .text-discount{color:#f0c459}
@media(max-width:1050px){.draft-total{align-items:stretch;flex-direction:column}.draft-total-overview{width:100%}.draft-total .action-row{justify-content:flex-end}}
@media(max-width:650px){.draft-total-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-total .action-row{align-items:stretch;flex-direction:column}.draft-total .action-row .btn{width:100%}}

/* Microinteracciones de los botones del punto de venta. */
.pos-focus-page button:not(.pos-sidebar-backdrop),
.pos-focus-page a.btn,
.pos-focus-page .pos-order-tabs a,
.pos-focus-page .pos-client-actions a,
.pos-focus-page .pos-summary-secondary a{
 transition-property:transform,box-shadow,background-color,border-color,color,opacity,filter;
 transition-duration:150ms;
 transition-timing-function:cubic-bezier(.2,.7,.3,1);
 transform-origin:center;
 will-change:transform;
}
@media(hover:hover){
 .pos-focus-page button:not(:disabled):not(.pos-sidebar-backdrop):hover,
 .pos-focus-page a.btn:hover,
 .pos-focus-page .pos-order-tabs a:hover,
 .pos-focus-page .pos-client-actions a:hover,
 .pos-focus-page .pos-summary-secondary a:hover{
  transform:translateY(-2px);
  filter:brightness(1.045);
  box-shadow:0 5px 12px rgba(0,0,0,.16);
 }
}
.pos-focus-page button:not(:disabled):not(.pos-sidebar-backdrop):active,
.pos-focus-page a.btn:active,
.pos-focus-page .pos-order-tabs a:active,
.pos-focus-page .pos-client-actions a:active,
.pos-focus-page .pos-summary-secondary a:active{
 transform:translateY(0) scale(.97);
 filter:brightness(.97);
 transition-duration:70ms;
}
.pos-focus-page button:disabled{transform:none!important;filter:none!important;box-shadow:none}
@media(prefers-reduced-motion:reduce){
 .pos-focus-page button:not(.pos-sidebar-backdrop),
 .pos-focus-page a.btn,
 .pos-focus-page .pos-order-tabs a,
 .pos-focus-page .pos-client-actions a,
 .pos-focus-page .pos-summary-secondary a{
  transition:none!important;
  transform:none!important;
 }
}

/* POS 0.84.1 · composición compacta según el ancho, independiente de escala */
@media(min-width:1081px){
 html{height:100%}
 body.pos-focus-page{height:100%;overflow:hidden}
 .pos-focus-page .pos-focus-layout{height:calc(100vh - 56px)!important;min-height:0!important}
 body.pos-focus-page .content{box-sizing:border-box;display:flex;height:100%;min-height:0;flex-direction:column;overflow:hidden;padding:6px 8px 8px!important}
 .pos-focus-page .content>.alert{flex:none;margin:0 0 7px;padding:8px 11px}
 .pos-focus-page .pos-recovery-note{min-height:38px;flex:none;gap:10px;margin:0 0 7px;padding:5px 10px;border-radius:9px}
 .pos-focus-page .pos-recovery-note>div{align-items:center;gap:8px}
 .pos-focus-page .pos-recovery-note>div>span{width:25px;height:25px}
 .pos-focus-page .pos-recovery-note p{display:flex;min-width:0;align-items:baseline;gap:8px}
 .pos-focus-page .pos-recovery-note strong{flex:none;font-size:11px}
 .pos-focus-page .pos-recovery-note small{min-width:0;overflow:hidden;margin:0;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
 .pos-focus-page .pos-recovery-note .btn{min-height:30px;flex:none;padding:6px 10px;font-size:9px}
 .pos-focus-page #salesDraftForm{display:flex;min-height:0;flex:1;flex-direction:column;margin:0}
 .pos-focus-page .pos-linear-shell{min-height:0;flex:1;align-items:stretch;gap:10px;margin:0;overflow:hidden}
 .pos-focus-page .pos-sale-workspace{display:flex;min-height:0;flex-direction:column;border-radius:10px}
 .pos-focus-page .pos-customer-bar{align-items:center;gap:10px;padding:6px 12px 5px}
 .pos-focus-page .pos-client-field{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 9px}
 .pos-focus-page .pos-client-field>span{grid-column:1;grid-row:1}
 .pos-focus-page .pos-client-field>select{grid-column:2;grid-row:1;padding:8px 10px}
 .pos-focus-page .pos-client-field>small{grid-column:2;grid-row:2;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .pos-focus-page .pos-client-actions{gap:6px}
 .pos-focus-page .pos-client-actions a{padding:8px 10px}
 .pos-focus-page .pos-document-row{gap:6px;padding:0 12px 6px}
 .pos-focus-page .pos-segments button{min-height:32px}
 .pos-focus-page .pos-context-grid{gap:8px;padding:6px 12px}
 .pos-focus-page .pos-context-grid>div,.pos-focus-page .pos-context-grid>label{gap:3px}
 .pos-focus-page .pos-context-grid strong{padding:7px 0 0}
 .pos-focus-page .pos-context-grid select{padding:7px 8px}
 .pos-focus-page .pos-context-grid small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .pos-focus-page .pos-capture-block{padding:7px 12px 6px}
 .pos-focus-page .pos-capture-head{margin-bottom:5px}
 .pos-focus-page .pos-capture-head>div{display:flex;align-items:baseline;gap:8px}
 .pos-focus-page .pos-capture-head h2{margin:0;font-size:15px}
 .pos-focus-page .pos-capture-head>a{padding:6px 8px}
 .pos-focus-page .pos-capture-grid{grid-template-columns:minmax(250px,1fr) 90px 128px 128px;gap:8px}
 .pos-focus-page .pos-product-search-wrap>label{margin-bottom:4px}
 .pos-focus-page .pos-search-input,.pos-focus-page .pos-capture-quantity input,.pos-focus-page .pos-add-button{min-height:39px}
 .pos-focus-page .pos-capture-price{min-height:54px}
 .pos-focus-page .pos-search-status{margin-top:4px}
 .pos-focus-page .pos-lines-area{min-height:90px!important;flex:1;overflow:hidden}
 .pos-focus-page .pos-lines-scroll{height:100%;min-height:0;max-height:none}
 .pos-focus-page .pos-lines-table th{padding:7px 9px}
 .pos-focus-page .pos-lines-table td{padding:7px 9px}
 .pos-focus-page .pos-cart-empty{min-height:calc(100% - 31px);padding:12px}
 .pos-focus-page .pos-observation{flex:none;gap:8px;padding:6px 12px}
 .pos-focus-page .pos-observation input{padding:7px 9px}
 .pos-focus-page .pos-sale-summary{position:static;height:100%;min-height:0;gap:6px;overflow:auto;padding-right:2px;scrollbar-width:thin}
 .pos-focus-page .pos-summary-actions{gap:5px}
 .pos-focus-page .pos-summary-actions button{min-height:35px}
 .pos-focus-page .pos-summary-card{padding:8px 13px}
 .pos-focus-page .pos-summary-card>p{margin:3px 0 5px}
 .pos-focus-page .pos-summary-card dl>div{padding:4px 0}
 .pos-focus-page .pos-grand-total{margin-top:5px;padding-top:5px}
 .pos-focus-page .pos-summary-card>small{margin-top:3px}
 .pos-focus-page .pos-payment-field{gap:3px;padding:6px 8px}
 .pos-focus-page .pos-payment-field select{padding:6px 8px}
 .pos-focus-page .pos-cash-assistant{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6px;padding:8px}
 .pos-focus-page .pos-cash-head,.pos-focus-page .pos-cash-result{grid-column:1/-1}
 .pos-focus-page .pos-cash-input{gap:6px}
 .pos-focus-page .pos-cash-input input{padding:7px 8px}
 .pos-focus-page .pos-cash-shortcuts{align-items:stretch;gap:4px}
 .pos-focus-page .pos-cash-shortcuts button{padding:6px 3px}
 .pos-focus-page .pos-cash-result{padding-top:5px}
 .pos-focus-page .pos-cash-head>small,.pos-focus-page .pos-cash-result>small{display:none}
 .pos-focus-page .pos-save-button{min-height:43px;padding:6px}
 .pos-focus-page .pos-summary-secondary>a{padding:6px 8px}
 .pos-focus-page .pos-summary-secondary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .pos-focus-page .pos-permission-note{display:none}
 .pos-focus-page .pos-shortcut-bar{min-height:27px;flex:none;gap:24px;margin-top:6px;padding:4px 10px}
}

/* Navegación compacta: aprovecha el ancho completo y se expande al apuntarla. */
@media (min-width:901px){
 body:not(.pos-focus-page) .layout{grid-template-columns:64px minmax(0,1fr)}
 body:not(.pos-focus-page) .layout{transition:grid-template-columns .24s cubic-bezier(.22,.61,.36,1)}
 body:not(.pos-focus-page):has(.sidebar:hover) .layout,body:not(.pos-focus-page):has(.sidebar:focus-within) .layout{grid-template-columns:238px minmax(0,1fr)}
 body:not(.pos-focus-page) .sidebar{position:fixed;z-index:60;top:74px;bottom:0;left:0;width:64px;min-width:64px;overflow-x:hidden;overflow-y:auto;padding:18px 7px;transition:width .24s cubic-bezier(.22,.61,.36,1),box-shadow .24s ease;scrollbar-width:none}
 body:not(.pos-focus-page) .sidebar::-webkit-scrollbar{display:none;width:0;height:0}
 body:not(.pos-focus-page) .sidebar:hover,body:not(.pos-focus-page) .sidebar:focus-within{width:238px!important;min-width:238px!important;max-width:238px!important;inline-size:238px!important;box-shadow:16px 0 32px rgba(0,0,0,.2)}
 body:not(.pos-focus-page) .sidebar .nav-item{justify-content:center;gap:12px;min-height:44px;padding:11px 14px;font-size:18px;white-space:nowrap}
 body:not(.pos-focus-page) .sidebar .nav-item{width:50px;margin:5px auto;padding-right:0;padding-left:0}
 body:not(.pos-focus-page) .sidebar .nav-item span{display:inline-block;max-width:0;overflow:hidden;opacity:0;transform:translateX(-7px);transition:max-width .24s cubic-bezier(.22,.61,.36,1),opacity .16s ease,transform .24s ease}
 body:not(.pos-focus-page) .sidebar:hover .nav-item,body:not(.pos-focus-page) .sidebar:focus-within .nav-item{width:100%;margin:5px 0;padding-right:14px;padding-left:14px;justify-content:flex-start;font-size:14px}
 body:not(.pos-focus-page) .sidebar:hover .nav-item span,body:not(.pos-focus-page) .sidebar:focus-within .nav-item span{max-width:180px;opacity:1;transform:translateX(0)}
 body:not(.pos-focus-page) .content{grid-column:2;width:100%;max-width:none;min-width:0;margin:0;padding-right:20px;padding-left:20px}
}

@media (min-width:651px){
 .pos-focus-page .pos-sidebar-backdrop{display:none!important;pointer-events:none!important;visibility:hidden!important;opacity:0!important}
 .pos-focus-page .sidebar:hover,.pos-focus-page .sidebar:focus-within,.pos-focus-page.pos-sidebar-open .sidebar{width:238px!important;min-width:238px!important;max-width:238px!important;inline-size:238px!important}
 .pos-focus-page .sidebar{scrollbar-width:none!important}
 .pos-focus-page .sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
 .pos-focus-page .sidebar .nav-item{width:50px!important;margin:5px auto!important;padding-right:0!important;padding-left:0!important}
 .pos-focus-page .sidebar:hover .nav-item,.pos-focus-page .sidebar:focus-within .nav-item,.pos-focus-page.pos-sidebar-open .sidebar .nav-item{width:100%!important;margin:5px 0!important;padding-right:12px!important;padding-left:12px!important}
 .pos-focus-page .content{width:calc(100% - 64px)!important;margin-left:64px!important;padding-left:8px!important;transition:width .24s cubic-bezier(.22,.61,.36,1),margin-left .24s cubic-bezier(.22,.61,.36,1)!important}
 .pos-focus-page:has(.sidebar:hover) .content,.pos-focus-page:has(.sidebar:focus-within) .content,.pos-focus-page.pos-sidebar-open .content{width:calc(100% - 238px)!important;margin-left:238px!important}
}

/* Centro de control de inventario */
.control-page-head{align-items:center}.control-page-head .eyebrow{display:block;margin-bottom:7px;color:#9a7800;font-size:10px;font-weight:950;letter-spacing:1px}.control-branch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}.control-branch-card{position:relative;display:flex;min-width:0;min-height:370px;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow);padding:23px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.control-branch-card:before{position:absolute;top:0;right:0;left:0;height:5px;background:var(--yellow);content:""}.control-branch-card:hover{transform:translateY(-3px);border-color:#d4aa00;box-shadow:0 16px 34px rgba(17,18,20,.12)}.control-branch-card.entry:before{background:#2da66b}.control-branch-card.output:before{background:#e15e54}.control-branch-icon{display:grid;width:54px;height:54px;place-items:center;margin-bottom:25px;border-radius:15px;background:#17181b;color:var(--yellow);font-size:25px;font-weight:950}.control-branch-card.entry .control-branch-icon{background:#e6f6ed;color:#177647}.control-branch-card.output .control-branch-icon{background:#feeaea;color:#b73b36}.control-branch-copy>span{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.6px}.control-branch-copy h2{margin:7px 0 9px;font-size:25px}.control-branch-copy p{margin:0;color:var(--muted);font-size:12px;line-height:1.65}.control-branch-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:25px}.control-branch-stats>div{border:1px solid var(--border);border-radius:11px;background:rgba(127,127,127,.035);padding:12px}.control-branch-stats strong,.control-branch-stats span{display:block}.control-branch-stats strong{font-size:20px}.control-branch-stats span{margin-top:4px;color:var(--muted);font-size:9px}.control-branch-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px -23px -23px;border-top:1px solid var(--border);padding:14px 23px}.control-branch-card footer span{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.control-branch-card footer b{flex:none;color:#806500;font-size:10px}.control-flow-note{display:grid;grid-template-columns:minmax(180px,.75fr) repeat(3,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--border);box-shadow:var(--shadow)}.control-flow-note>*{background:var(--white);padding:15px 17px}.control-flow-note>strong{display:flex;align-items:center;font-size:12px}.control-flow-note div span{font-size:9px;font-weight:950;text-transform:uppercase}.control-flow-note div p{margin:5px 0 0;color:var(--muted);font-size:9px;line-height:1.45}.control-summary-cards{max-width:620px;grid-template-columns:repeat(2,minmax(0,1fr))}.control-list-filter{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,.65fr) auto auto;gap:10px;align-items:end;margin-bottom:16px;border:1px solid var(--border);border-radius:13px;background:var(--white);box-shadow:var(--shadow);padding:14px}.control-list-filter label{display:flex;min-width:0;flex-direction:column;gap:6px}.control-list-filter label>span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.35px;text-transform:uppercase}.control-list-filter input,.control-list-filter select{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:10px;font:inherit;font-size:11px}
html[data-theme="dark"] .control-branch-card,html[data-theme="dark"] .control-flow-note>*,html[data-theme="dark"] .control-list-filter{background:#1b1d21;color:#f1f2f4;border-color:#30333a}html[data-theme="dark"] .control-branch-stats>div{background:#202226;border-color:#30333a}html[data-theme="dark"] .control-branch-card footer{border-color:#30333a}html[data-theme="dark"] .control-list-filter input,html[data-theme="dark"] .control-list-filter select{background:#17181b;color:#f1f2f4;border-color:#3b3e45}
@media(max-width:1050px){.control-branch-grid{grid-template-columns:1fr}.control-branch-card{min-height:310px}.control-flow-note{grid-template-columns:1fr 1fr}.control-flow-note>strong{grid-column:1/-1}.control-list-filter{grid-template-columns:1fr 1fr auto auto}}
@media(max-width:650px){.control-flow-note,.control-list-filter,.control-summary-cards{grid-template-columns:1fr}.control-flow-note>strong{grid-column:auto}.control-list-filter .btn{width:100%}}

/* Buscador de productos en traslados */
.transfer-line-builder .panel-head>div{min-width:0}.transfer-product-search{position:relative;min-width:360px}.transfer-product-input{width:100%;border:1px solid var(--border);border-radius:9px;background:var(--white);color:var(--ink);padding:11px 12px 11px 38px;font:inherit;font-size:12px}.transfer-product-search:before{position:absolute;z-index:1;top:50%;left:13px;color:#9a7800;font-size:16px;content:"⌕";transform:translateY(-50%);pointer-events:none}.transfer-product-input:focus{outline:2px solid rgba(244,196,0,.24);border-color:#d0a800}.transfer-product-input::-webkit-search-cancel-button{cursor:pointer}.transfer-product-suggestions{position:fixed;z-index:1000;overflow-y:auto;border:1px solid var(--border);border-radius:11px;background:var(--white);box-shadow:0 20px 48px rgba(0,0,0,.3);padding:6px}.transfer-product-suggestions[hidden]{display:none!important}.transfer-product-suggestions button{display:flex;width:100%;min-height:48px;flex-direction:column;justify-content:center;gap:4px;border:0;border-radius:8px;background:transparent;color:var(--ink);padding:8px 10px;text-align:left;cursor:pointer}.transfer-product-suggestions button:hover,.transfer-product-suggestions button.active{background:rgba(244,196,0,.13)}.transfer-product-suggestions button strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.transfer-product-suggestions button span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.transfer-product-empty{padding:16px 11px;color:var(--muted);font-size:10px;text-align:center}.transfer-line-builder td:first-child{width:100%}.transfer-line-builder td:nth-child(2){width:150px}.transfer-line-builder td:nth-child(2) input{min-width:120px}
html[data-theme="dark"] .transfer-product-input,html[data-theme="dark"] .transfer-product-suggestions{background:#17191d;color:#f1f2f4;border-color:#3b3e45}html[data-theme="dark"] .transfer-product-suggestions button{color:#f1f2f4}html[data-theme="dark"] .transfer-product-suggestions button:hover,html[data-theme="dark"] .transfer-product-suggestions button.active{background:#3b3210}
@media(max-width:650px){.transfer-product-search{min-width:280px}.transfer-product-suggestions{max-width:calc(100vw - 16px)}}

/* Captura rápida compartida por traslados y salidas */
.control-rapid-builder{overflow:visible}.control-rapid-builder .pos-capture-block{border-radius:14px 14px 0 0;background:var(--white)}.control-rapid-capture-grid{grid-template-columns:minmax(300px,1fr) 110px 150px 140px}.control-rapid-stock strong{color:#806500}.control-rapid-lines{position:relative;min-height:245px;overflow:hidden;border-top:1px solid var(--border);border-radius:0 0 14px 14px;background:var(--white)}.control-rapid-table{min-width:720px;font-size:11px}.control-rapid-table th,.control-rapid-table td{padding:11px 12px;vertical-align:middle}.control-rapid-table th:first-child,.control-rapid-table td:first-child{width:42px;text-align:center}.control-rapid-table th:nth-child(2),.control-rapid-table td:nth-child(2){width:38px;padding-right:3px;padding-left:3px;text-align:center}.control-rapid-table th:nth-child(4),.control-rapid-table td:nth-child(4){width:130px;text-align:center}.control-rapid-table th:last-child,.control-rapid-table td:last-child{width:130px;text-align:center}.control-rapid-row{background:var(--white);transition:background .14s ease,box-shadow .14s ease}.control-rapid-row.was-added{background:rgba(36,176,91,.1);box-shadow:inset 3px 0 0 var(--green)}.control-rapid-number{color:var(--muted);font-weight:900}.control-rapid-product{min-width:300px;white-space:normal}.control-rapid-product strong,.control-rapid-product small{display:block}.control-rapid-product strong{font-size:11px;line-height:1.35}.control-rapid-product small{margin-top:4px;color:var(--muted);font-size:8px}.control-rapid-product b{color:#8a6d00;font-family:Consolas,monospace}.control-rapid-available{font-size:11px;font-weight:900}.control-rapid-row-quantity{width:90px}.control-rapid-empty{min-height:205px}.control-rapid-lines:has(.control-rapid-row) .control-rapid-empty{display:none}.control-rapid-builder+.form-actions{margin-top:4px}
html[data-theme="dark"] .control-rapid-builder .pos-capture-block,html[data-theme="dark"] .control-rapid-lines,html[data-theme="dark"] .control-rapid-row{background:#1b1d21}html[data-theme="dark"] .control-rapid-stock strong{color:#f0ce4f}
@media(max-width:900px){.control-rapid-capture-grid{grid-template-columns:minmax(240px,1fr) 95px 125px}.control-rapid-capture-grid .pos-add-button{grid-column:3}}
@media(max-width:650px){.control-rapid-capture-grid{grid-template-columns:1fr 1fr}.control-rapid-capture-grid .pos-product-search-wrap{grid-column:1/-1}.control-rapid-capture-grid .pos-add-button{grid-column:auto}.control-rapid-stock{min-height:55px}}

/* Ajuste directo de existencias dentro de la ficha */
.catalog-stock-cards{display:grid;gap:12px;padding:16px 20px 20px}.catalog-stock-card{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--white)}.catalog-stock-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);background:rgba(127,127,127,.035);padding:14px 16px}.catalog-stock-card h3{margin:3px 0 0;font-size:15px}.catalog-stock-card header small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.catalog-stock-badges{display:flex;gap:7px}.catalog-stock-badges span{display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;padding:7px 10px;color:var(--muted);font-size:9px}.catalog-stock-badges b{color:var(--ink);font-size:10px}.catalog-stock-adjust{padding:16px}.catalog-stock-adjust>strong{display:block;margin-bottom:9px;font-size:11px}.catalog-stock-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:9px;background:rgba(127,127,127,.07)}.catalog-stock-modes label{position:relative;min-width:0;cursor:pointer}.catalog-stock-modes input{position:absolute;opacity:0;pointer-events:none}.catalog-stock-modes span{display:grid;min-height:45px;place-items:center;border-right:1px solid var(--border);color:var(--muted);font-size:11px;font-weight:900;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.catalog-stock-modes label:last-child span{border-right:0}.catalog-stock-modes input:checked+span{background:#616266;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.catalog-stock-modes input:focus-visible+span{outline:2px solid var(--yellow);outline-offset:-3px}.catalog-stock-adjust>p{margin:13px 0 10px;color:var(--muted);font-size:10px}.catalog-stock-adjust>p strong{color:var(--ink);font-size:12px}.catalog-stock-adjust .field>span,.catalog-stock-minimum .field>span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.35px;text-transform:uppercase}.catalog-stock-adjust .field input,.catalog-stock-minimum .field input{width:100%;border:1px solid var(--border);border-radius:9px;background:var(--white);color:var(--ink);padding:11px 12px;text-align:right;font:inherit;font-size:16px;font-weight:900}.catalog-stock-preview{display:flex;align-items:center;justify-content:space-between;margin-top:9px;border-radius:8px;background:rgba(244,196,0,.1);padding:10px 12px}.catalog-stock-preview span{color:var(--muted);font-size:9px}.catalog-stock-preview strong{font-size:15px}.catalog-stock-preview.is-invalid{background:rgba(201,59,59,.1);color:var(--red)}.catalog-stock-minimum{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;border-top:1px solid var(--border);padding:13px 16px}.catalog-stock-minimum .field{max-width:280px}.catalog-stock-minimum .field input{margin-top:6px;font-size:12px}.catalog-stock-card>.phase-note{margin:14px 16px}.catalog-stock-card.is-stock-disabled .catalog-stock-adjust{opacity:.45;pointer-events:none}.catalog-stock-card.is-stock-disabled .catalog-stock-preview{background:rgba(127,127,127,.08)}
html[data-theme="dark"] .catalog-stock-card,html[data-theme="dark"] .catalog-stock-adjust .field input,html[data-theme="dark"] .catalog-stock-minimum .field input{background:#17191d;border-color:#3a3e46;color:var(--ink)}html[data-theme="dark"] .catalog-stock-card>header{background:#202226}
@media(max-width:650px){.catalog-stock-cards{padding:12px}.catalog-stock-card>header{align-items:flex-start;flex-direction:column}.catalog-stock-badges{width:100%;flex-wrap:wrap}.catalog-stock-badges span{flex:1;justify-content:space-between}.catalog-stock-minimum{grid-template-columns:1fr}.catalog-stock-minimum .field{max-width:none}}

/* Buscador inteligente del catálogo */
.catalog-search-row{align-items:start}.catalog-inventory-search{position:relative;min-width:0}.catalog-search-field .catalog-inventory-search>input{padding-right:42px;padding-left:38px}.catalog-inventory-search-icon{position:absolute;z-index:2;top:50%;left:13px;color:#a88700;font-size:18px;line-height:1;transform:translateY(-50%);pointer-events:none}.catalog-inventory-search>[data-inventory-search-clear]{position:absolute;z-index:3;top:1px;right:1px;width:38px;height:calc(100% - 2px);border:0;border-left:1px solid var(--border);border-radius:0 8px 8px 0;background:var(--white);color:var(--muted);font-size:18px;cursor:pointer}.catalog-inventory-search>[data-inventory-search-clear]:hover{background:rgba(244,196,0,.1);color:var(--ink)}.catalog-inventory-suggestions{position:absolute;z-index:90;top:calc(100% + 6px);right:0;left:0;overflow-y:auto;max-height:390px;border:1px solid var(--border);border-radius:11px;background:var(--white);box-shadow:0 20px 48px rgba(0,0,0,.28);padding:6px}.catalog-inventory-suggestions[hidden]{display:none!important}.catalog-inventory-suggestions>button{display:grid;width:100%;grid-template-columns:minmax(0,1.6fr) minmax(135px,.7fr) auto;gap:12px;align-items:center;border:0;border-radius:8px;background:transparent;color:var(--ink);padding:10px;text-align:left;cursor:pointer}.catalog-inventory-suggestions>button:hover,.catalog-inventory-suggestions>button.is-active{background:rgba(244,196,0,.12)}.catalog-inventory-suggestion-identity{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center;min-width:0}.catalog-inventory-suggestion-identity>b{border-radius:6px;background:#17181b;color:var(--yellow);padding:5px 7px;font-family:Consolas,monospace;font-size:10px}.catalog-inventory-suggestion-identity>strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.catalog-inventory-suggestion-details{display:flex;min-width:0;flex-direction:column;gap:3px}.catalog-inventory-suggestion-details small{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.catalog-inventory-suggestion-details b{font-size:9px}.catalog-inventory-suggestions em{border-radius:999px;padding:5px 7px;font-size:8px;font-style:normal;font-weight:900}.catalog-inventory-suggestions em.is-active-product{background:rgba(23,138,80,.12);color:var(--green)}.catalog-inventory-suggestions em.is-inactive-product{background:rgba(201,59,59,.12);color:var(--red)}.catalog-inventory-message{display:flex;min-height:70px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px;text-align:center}.catalog-inventory-message strong{font-size:10px}.catalog-inventory-message small,.catalog-search-field>[data-inventory-search-status]{color:var(--muted);font-size:8px}.catalog-search-field>[data-inventory-search-status]{min-height:11px;margin-top:1px}
html[data-theme="dark"] .catalog-inventory-search>[data-inventory-search-clear],html[data-theme="dark"] .catalog-inventory-suggestions{background:#17191d;border-color:#3a3e46;color:var(--ink)}html[data-theme="dark"] .catalog-inventory-suggestions>button{color:var(--ink)}html[data-theme="dark"] .catalog-inventory-suggestions>button:hover,html[data-theme="dark"] .catalog-inventory-suggestions>button.is-active{background:#3b3210}
@media(max-width:900px){.catalog-inventory-suggestions{min-width:520px}}
@media(max-width:650px){.catalog-search-row{grid-template-columns:1fr}.catalog-inventory-suggestions{right:auto;min-width:calc(100vw - 70px);max-width:calc(100vw - 70px)}.catalog-inventory-suggestions>button{grid-template-columns:1fr auto}.catalog-inventory-suggestion-details{grid-column:1/-1}}

/* Recepciones automáticas por correo */
.receiver-mail-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;border:1px solid var(--border);border-radius:14px;background:var(--white);box-shadow:var(--shadow);padding:14px 16px}.receiver-mail-strip.is-active{border-color:rgba(23,138,80,.35)}.receiver-mail-strip>div:first-child{display:flex;min-width:0;align-items:center;gap:12px}.receiver-mail-icon{display:grid;width:38px;height:38px;flex:none;place-items:center;border-radius:10px;background:#17181b;color:var(--yellow);font-size:18px}.receiver-mail-strip strong,.receiver-mail-strip p{display:block}.receiver-mail-strip strong{font-size:12px}.receiver-mail-strip p{margin:3px 0 0;color:var(--muted);font-size:9px}.receiver-mail-strip .form-actions{flex:none;margin:0}.receiver-mail-strip.is-syncing .receiver-mail-icon{animation:receiver-mail-pulse 1s ease-in-out infinite}.receiver-mail-strip.has-error{border-color:rgba(201,59,59,.45)}@keyframes receiver-mail-pulse{50%{transform:scale(.88);opacity:.6}}.receiver-pending-panel{margin-bottom:18px}.receiver-pending-panel .panel-head>div{min-width:0}.receiver-classify-form{display:grid;min-width:310px;grid-template-columns:minmax(150px,1fr) auto;gap:7px}.receiver-classify-form select{min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--white);color:var(--ink);padding:8px 9px;font:inherit;font-size:9px}.receiver-classify-form .btn{padding:8px 10px;font-size:8px}.receiver-mail-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:16px;align-items:start}.receiver-mail-config{padding:0;overflow:hidden}.receiver-mail-config>.form-actions{padding:0 20px 20px}.receiver-mail-switch{margin:0}.receiver-mail-status{position:sticky;top:90px;background:#17181b;color:#fff}.receiver-mail-status h2{margin:5px 0 15px;color:var(--yellow)}.receiver-mail-status dl{margin:0}.receiver-mail-status dl>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #30333a;padding:9px 0}.receiver-mail-status dt{color:#aeb1b7;font-size:9px}.receiver-mail-status dd{margin:0;text-align:right;font-size:9px;font-weight:900}.receiver-mail-status p{margin:14px 0 0;color:#aeb1b7;font-size:8px;line-height:1.5}.receiver-mail-status .alert{margin:13px 0 0;font-size:8px}
html[data-theme="dark"] .receiver-mail-strip{background:#1b1d21}html[data-theme="dark"] .receiver-classify-form select{background:#15171a;border-color:#3a3e46;color:var(--ink)}
@media(max-width:950px){.receiver-mail-layout{grid-template-columns:1fr}.receiver-mail-status{position:static}}
@media(max-width:650px){.receiver-mail-strip{align-items:stretch;flex-direction:column}.receiver-mail-strip .form-actions,.receiver-mail-strip .btn{width:100%}.receiver-classify-form{min-width:250px;grid-template-columns:1fr}.receiver-mail-config .panel-head{align-items:flex-start;flex-direction:column}.receiver-mail-switch{width:100%}}

/* Bandeja y ficha de recepciones electrónicas */
.receiver-pending-panel{margin:0 0 22px}.receiver-pending-panel>.panel-head{padding:0 2px 12px}.receiver-card-list{display:grid;gap:12px}.receiver-document-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:15px;border:1px solid var(--border);border-left:4px solid #22a851;border-radius:13px;background:var(--white);box-shadow:0 7px 22px rgba(22,29,38,.06);padding:14px 15px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.receiver-document-card:hover{transform:translateY(-1px);border-color:rgba(34,168,81,.42);box-shadow:0 10px 28px rgba(22,29,38,.1)}.receiver-document-icon{display:grid;width:46px;height:46px;place-items:center;border:2px solid #b8e6c6;border-radius:50%;background:#20ad50;color:#fff;font-size:21px;box-shadow:0 0 0 4px rgba(32,173,80,.08)}.receiver-document-body{min-width:0}.receiver-document-title{display:flex;align-items:center;gap:8px;margin-bottom:7px}.receiver-document-title>span{flex:none;border-radius:7px;background:#eef2f6;color:#17314f;padding:4px 8px;font:900 10px/1 var(--mono)}.receiver-document-title h3{overflow:hidden;margin:0;color:var(--ink);font-size:15px;text-overflow:ellipsis;white-space:nowrap}.receiver-document-badges,.receiver-document-meta,.receiver-document-amounts{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.receiver-tag{display:inline-flex;align-items:center;border:1px solid #d5dde8;border-radius:999px;background:#f5f7fa;color:#42536a;padding:4px 8px;font-size:8px;font-weight:850}.receiver-tag.branch,.receiver-tag.valid{border-color:#b7e4c5;background:#ebfff1;color:#087433}.receiver-tag.pending{border-color:#f2d49a;background:#fff7df;color:#8a5b00}.receiver-document-meta{gap:5px 14px;color:var(--muted);font-size:8px;margin:7px 0}.receiver-document-key{overflow:hidden;border:1px solid #dfe4eb;border-radius:7px;background:#f4f6f8;color:#30445d;padding:6px 9px;font:700 9px/1.25 var(--mono);text-overflow:ellipsis;white-space:nowrap}.receiver-document-amounts{justify-content:flex-end;margin-top:7px;color:var(--muted);font-size:8px}.receiver-document-amounts span{display:flex;gap:5px}.receiver-document-amounts strong{color:var(--ink)}.receiver-open-button{align-self:center;min-width:106px;box-shadow:0 4px 10px rgba(13,35,63,.15)}
.receiver-detail-sheet{max-width:1280px;margin:0 auto 28px;border:1px solid var(--border);border-radius:16px;background:var(--panel);box-shadow:0 18px 55px rgba(14,21,30,.13);padding:20px}.receiver-detail-sheet>.receiver-detail-head{margin-bottom:14px;padding-bottom:15px;border-bottom:1px solid var(--border)}.receiver-detail-identity{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:15px;border-radius:13px;background:#17191d;color:#fff;padding:16px 18px}.receiver-detail-identity h2{margin:4px 0 3px;font-size:18px}.receiver-detail-identity p{margin:0;color:#aeb4bf;font-size:9px}.receiver-detail-total{text-align:right}.receiver-detail-total span{display:block;color:#aeb4bf;font-size:8px}.receiver-detail-total strong{display:block;margin-top:4px;color:var(--yellow);font-size:22px}.receiver-detail-key{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;margin:10px 0 18px;border:1px solid var(--border);border-radius:9px;background:var(--white);padding:9px 12px}.receiver-detail-key span{color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase}.receiver-detail-key strong{overflow:hidden;font:750 9px/1.2 var(--mono);text-overflow:ellipsis;white-space:nowrap}.receiver-type-card{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(420px,1.3fr);align-items:center;gap:18px;margin-bottom:16px}.receiver-type-card h2{margin:4px 0;font-size:17px}.receiver-type-card p{margin:0;color:var(--muted);font-size:9px}.receiver-type-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.receiver-type-button{display:flex;min-height:68px;cursor:pointer;flex-direction:column;justify-content:center;border:1px solid var(--border);border-radius:11px;background:var(--panel);color:var(--ink);padding:11px 14px;text-align:left;transition:border-color .18s ease,background .18s ease,transform .18s ease}.receiver-type-button:hover{transform:translateY(-1px);border-color:#738196}.receiver-type-button strong{font-size:12px}.receiver-type-button span{margin-top:4px;color:var(--muted);font-size:8px}.receiver-type-button.is-selected{border-color:#3977ff;background:rgba(57,119,255,.1);box-shadow:0 0 0 2px rgba(57,119,255,.12)}.receiver-complete-card .btn{width:100%;margin-top:12px;padding-block:13px}.receiver-fiscal-card{margin-bottom:16px}.receiver-fiscal-card>.panel-head{margin:-4px 0 15px;padding:0 0 12px}.receiver-fiscal-card .alert a{color:inherit;font-weight:900}.receiver-complete-card .btn:disabled{cursor:not-allowed;filter:grayscale(.5);opacity:.45}
html[data-theme="dark"] .receiver-document-card,html[data-theme="dark"] .receiver-detail-key{background:#1b1d21}html[data-theme="dark"] .receiver-document-title>span{background:#252a31;color:#d8e8ff}html[data-theme="dark"] .receiver-tag{border-color:#3a414b;background:#252930;color:#c1cad8}html[data-theme="dark"] .receiver-tag.branch,html[data-theme="dark"] .receiver-tag.valid{border-color:#245d39;background:#132c1d;color:#6fe398}html[data-theme="dark"] .receiver-tag.pending{border-color:#665124;background:#302712;color:#ffd66e}html[data-theme="dark"] .receiver-document-key{border-color:#343941;background:#15171a;color:#c9d4e5}html[data-theme="dark"] .receiver-detail-sheet{background:#17191d}
@media(max-width:900px){.receiver-document-card{grid-template-columns:46px minmax(0,1fr)}.receiver-open-button{grid-column:1/-1;width:100%}.receiver-type-card{grid-template-columns:1fr}.receiver-detail-identity{grid-template-columns:48px minmax(0,1fr)}.receiver-detail-total{grid-column:1/-1;text-align:left}}
@media(max-width:600px){.receiver-detail-sheet{border-radius:0;padding:13px}.receiver-document-card{grid-template-columns:1fr;padding:13px}.receiver-document-card>.receiver-document-icon{display:none}.receiver-document-title{align-items:flex-start;flex-direction:column}.receiver-document-title h3{white-space:normal}.receiver-document-meta{align-items:flex-start;flex-direction:column}.receiver-document-amounts{justify-content:flex-start}.receiver-type-buttons{grid-template-columns:1fr}.receiver-detail-identity{grid-template-columns:1fr}.receiver-detail-identity>.receiver-document-icon{display:none}.receiver-detail-key{grid-template-columns:1fr}}

/* Directorio de clientes: todas las columnas permanecen dentro de la página. */
.customer-table-panel .table-wrap{overflow-x:hidden}
.customer-directory-table{width:100%;min-width:0;table-layout:fixed}
.customer-directory-table th,.customer-directory-table td{min-width:0;padding:11px 10px;white-space:normal;vertical-align:middle;overflow-wrap:anywhere}
.customer-directory-table th:nth-child(1){width:25%}
.customer-directory-table th:nth-child(2){width:14%}
.customer-directory-table th:nth-child(3){width:22%}
.customer-directory-table th:nth-child(4){width:16%}
.customer-directory-table th:nth-child(5){width:15%}
.customer-directory-table th:nth-child(6){width:8%}
.customer-directory-table td strong,.customer-directory-table td small{display:block}
.customer-directory-table td small{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.35}
.customer-directory-table td code{display:inline-block;max-width:100%;font-size:10px;overflow-wrap:anywhere;white-space:normal}
.customer-directory-table .table-link{display:inline-flex;white-space:nowrap;font-size:10px}
@media(max-width:760px){
 .customer-table-panel .panel-head{align-items:flex-start;gap:10px}
 .customer-directory-table,.customer-directory-table tbody{display:block}
 .customer-directory-table thead{display:none}
 .customer-directory-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;border-bottom:1px solid var(--border);padding:14px}
 .customer-directory-table tr:last-child{border-bottom:0}
 .customer-directory-table td{display:block;width:auto!important;border:0;padding:0;font-size:12px}
 .customer-directory-table td::before{display:block;margin-bottom:4px;color:var(--muted);content:attr(data-label);font-size:8px;font-weight:900;letter-spacing:.55px;text-transform:uppercase}
 .customer-directory-table td:first-child{grid-column:1/-1}
 .customer-directory-table td:last-child{display:flex;align-items:flex-end;justify-content:flex-end}
 .customer-directory-table td:last-child::before{display:none}
 .customer-directory-table .empty{display:block;grid-column:1/-1;padding:22px;text-align:center}
 .customer-directory-table .empty::before{display:none}
}

/* Acceso rápido al último comprobante confirmado de la PC activa. */
.pos-summary-secondary .pos-reprint-last{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.pos-summary-secondary .pos-reprint-last span{font-size:13px;line-height:1}
.pos-summary-secondary .pos-reprint-last.is-disabled{pointer-events:none;cursor:not-allowed;filter:grayscale(1);opacity:.42}
.receipt-toolbar.is-auto-print{border-color:rgba(36,176,91,.45);box-shadow:0 0 0 3px rgba(36,176,91,.08)}
.remote-print-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.remote-print-form label{min-width:210px;max-width:310px;display:grid;gap:4px}.remote-print-form label span{font-size:9px;text-transform:uppercase;letter-spacing:.6px;font-weight:900;color:var(--muted)}.remote-print-form select{min-height:38px;padding:7px 34px 7px 10px}.remote-print-status{align-self:center;font-size:11px;font-weight:850;color:var(--muted)}.remote-print-status[data-state="success"]{color:var(--green)}.remote-print-status[data-state="error"]{color:var(--red)}.remote-print-status[data-state="pending"]{color:var(--gold-dark)}
@media(max-width:650px){.remote-print-form{align-items:stretch}.remote-print-form label,.remote-print-form .btn{width:100%;max-width:none}.remote-print-status{width:100%}}
.last-receipt-quick.is-disabled{pointer-events:none;filter:grayscale(1);opacity:.42}
