:root{--green:#214d3d;--light:#edf2eb;--paper:#f8f7f2;--ink:#26372f;--muted:#748077;--line:#e1e5db}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px system-ui,sans-serif}aside{position:fixed;width:245px;height:100vh;background:var(--green);padding:36px 22px;color:white}.brand{font:32px Georgia,serif;margin:0 10px 46px}.brand span{display:block;font:10px system-ui;letter-spacing:2.5px;margin-top:10px;color:#c5d4c6}nav{display:grid;gap:7px}nav button{background:transparent;color:#d2ded4;border:0;text-align:left;padding:14px;border-radius:8px}nav button.active,nav button:hover{background:#3a6351;color:white}.aside-bottom{position:absolute;bottom:32px;font-size:13px;color:#dae2d4;line-height:1.8}main{margin-left:245px;padding:0 42px;max-width:1700px}header{height:82px;display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:1px;border-bottom:1px solid var(--line)}.pill,.badge{display:inline-block;padding:6px 10px;border-radius:30px;background:#e8eee5;color:var(--green);font-size:12px}.notice{font-size:12px;color:#786838;background:#f1eddf;padding:11px 14px;border-radius:6px;margin-top:20px}h1{font:38px Georgia,serif;letter-spacing:-1px;margin:30px 0 8px}h2{font-size:19px;margin:0 0 18px}h3{font-size:16px}p{line-height:1.6;color:var(--muted)}.intro{margin:0 0 26px}.grid{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:22px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.field{display:grid;gap:7px;margin-bottom:16px;flex:1}.field label, label{font-size:13px;color:#59695d}textarea,input,select{font:inherit;border:1px solid #cfd7cd;border-radius:6px;padding:10px;background:white;color:var(--ink);max-width:100%}textarea{width:100%;min-height:205px;resize:vertical;line-height:1.7}input[type=number]{width:85px}button,.restore{cursor:pointer;font:inherit;padding:10px 15px;border-radius:6px;border:1px solid var(--line);background:white;color:var(--green)}button.primary{background:var(--green);border-color:var(--green);color:white}button:disabled{opacity:.5;cursor:default}button:hover{filter:brightness(.96)}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;background:#f4f6f0;color:#627365;font-size:12px;font-weight:600}th,td{padding:13px 12px;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}td input{width:100%}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.stat{background:white;border:1px solid var(--line);padding:20px;border-radius:10px}.stat strong{display:block;font:32px Georgia;margin-bottom:6px}.stat span{font-size:12px;color:var(--muted)}.step{display:flex;gap:12px;margin:20px 0;line-height:1.6}.step b{background:var(--light);color:var(--green);width:29px;height:29px;border-radius:50%;text-align:center;flex-shrink:0}.step span{font-size:13px;color:#667569}.warn{color:#875d1f;background:#faf0d9;padding:12px;border-radius:6px;font-size:13px;margin:12px 0}.empty{padding:50px 20px;text-align:center;color:var(--muted)}footer{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:20px 0;font-size:12px}footer button,.restore{font-size:12px}.num{font-variant-numeric:tabular-nums}.sub{font-size:12px;color:var(--muted)}@media(max-width:1000px){aside{width:200px;padding:25px 14px}main{margin-left:200px;padding:0 22px}.grid{grid-template-columns:1fr}}@media(max-width:680px){aside{position:static;width:100%;height:auto;padding:18px}.brand{margin:0 0 15px;font-size:26px}nav{display:flex;overflow:auto}nav button{white-space:nowrap;font-size:12px;padding:10px}.aside-bottom{display:none}main{margin:0;padding:0 16px}header{height:55px;font-size:10px}h1{font-size:30px}.card{padding:17px}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:25px}footer{flex-wrap:wrap}}@media print{aside,header,.notice,footer,button,.restore{display:none!important}main{margin:0;padding:0}.card{border:0}body{background:white}h1{font-size:25px}}
.tabs{display:flex;gap:5px;padding:5px;background:#e9ede4;border-radius:10px;flex-wrap:wrap}.tabs button{background:transparent;border:0;color:#5f7061}.tabs button.selected{background:white;color:var(--green);box-shadow:0 1px 4px #203e3115}.tabs span{display:inline-block;font-size:11px;min-width:21px;border-radius:20px;padding:2px 5px;margin-left:5px;background:#e8eee5}.client-toolbar{margin:25px 0}.client-actions{margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}button.danger{color:#a33e32;border-color:#ead4cd}.muted-badge{background:#efede8;color:#786e5b}.paid-badge{background:#dfeee1;color:#2b6a39}.pending-badge{background:#f7edce;color:#80651e}.billing-tabs{width:fit-content;margin:22px 0}.section-title{margin:35px 0 18px}.section-title h2{margin-bottom:8px}details{margin-top:15px;border-top:1px solid var(--line);padding-top:15px}summary{cursor:pointer;color:var(--green);font-weight:600;font-size:14px;padding:5px 0}details form{margin-top:17px}.payment-details[open]{background:#f5f7f1;padding:15px;border-radius:8px}#feedback:not(:empty){position:fixed;bottom:24px;right:24px;max-width:min(500px,90vw);padding:15px 20px;border-radius:8px;background:#214d3d;color:white;box-shadow:0 4px 20px #0003;z-index:10;font-size:14px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #8baf95;outline-offset:2px}
.form-section-label{font-size:11px;letter-spacing:1.5px;color:#73816e;border-top:1px solid var(--line);padding-top:20px;margin:4px 0 17px}.address-fields{display:grid;grid-template-columns:135px 1.25fr 1fr;gap:14px}.billing-address{margin:14px 0;padding:16px;background:#f5f7f1;border-radius:6px;font-size:13px;line-height:1.7}.invoice-design-bar{margin:-8px 0 20px}.invoice-dialog{border:0;border-radius:12px;max-width:850px;width:95vw;max-height:92vh;padding:24px;color:var(--ink)}.invoice-dialog::backdrop{background:#19382fcc}.invoice-dialog h2{margin:0}.invoice-dialog img{display:block;width:100%;height:auto;border:1px solid var(--line);margin:18px 0}.button-link{display:inline-block;background:var(--green);color:white;text-decoration:none;border-radius:6px;padding:12px 18px}@media(max-width:680px){.address-fields{grid-template-columns:1fr}.invoice-dialog{padding:15px}}
.matrix-sheet{position:relative;container-type:inline-size;width:100%;background:white;aspect-ratio:595.2/841.68;color:black;margin-bottom:18px;font-family:Arial,sans-serif}.matrix-sheet img{display:block;width:100%;height:100%;margin:0;border:0}.matrix-sheet span{position:absolute;line-height:1.12;overflow:hidden;white-space:normal;max-height:3em}.invoice-tax-summary{margin:16px 0;padding:12px 16px;background:#f4f6f0;border-radius:6px}.invoice-tax-summary p{margin:6px 0;font-size:13px}.invoice-tax-summary h3{margin:12px 0 5px}@media print{body:has(.matrix-dialog[open])>aside,body:has(.matrix-dialog[open])>main{display:none!important}.matrix-dialog[open]{position:static;display:block;max-width:none;max-height:none;width:100%;height:auto;overflow:visible;padding:0;margin:0}.matrix-dialog> :not(.matrix-sheet){display:none!important}.matrix-sheet{width:100%;height:auto;page-break-after:always;margin:0}.matrix-sheet:last-of-type{page-break-after:auto}html:has(.matrix-dialog[open]),body:has(.matrix-dialog[open]){overflow:visible!important}@page{size:A4;margin:0}}

/* Capa de acceso a servidor V6 de pruebas */
#mm-login-overlay{position:fixed;inset:0;background:rgba(18,41,33,.82);display:grid;place-items:center;z-index:9999;padding:20px}
.mm-login-card{background:#fff;max-width:430px;width:100%;padding:30px;border-radius:18px;box-shadow:0 20px 70px rgba(0,0,0,.25)}
.mm-login-card .brand{color:#214d3d;margin-bottom:24px}.mm-login-card label{display:block;margin:14px 0;font-weight:700}.mm-login-card input{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border:1px solid #cad4cf;border-radius:9px}.mm-login-card button{width:100%;margin-top:10px}.mm-login-card #mm-login-error{min-height:1.4em;color:#a23a2a}
.notice[data-server-kind="ok"]{font-weight:700}.notice[data-server-kind="warn"]{font-weight:700}

/* Módulo Cierres de caja · diseño funcional respetando la identidad existente */
.cash-heading{display:flex;gap:14px;align-items:flex-start;margin-top:28px}.cash-heading h1{margin:0}.cash-step{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--green);color:#fff;font-weight:800;flex:none}.cash-wizard{display:flex;gap:8px;overflow:auto;margin:18px 0 22px}.cash-wizard span{white-space:nowrap;padding:8px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px}.cash-wizard span.active{background:var(--green);border-color:var(--green);color:#fff}.cash-card.narrow{max-width:620px}.cash-two{display:grid;grid-template-columns:1fr 1fr;gap:22px}.cash-row{display:grid;grid-template-columns:1fr 170px;gap:12px;align-items:center;margin:10px 0}.money-input{display:flex;align-items:center;border:1px solid #cfd7cd;border-radius:6px;background:#fff;overflow:hidden}.money-input input{border:0;border-radius:0;width:100%;text-align:right}.money-input span{padding:0 10px;color:var(--muted)}.money-input.compact{min-width:130px}.cash-total{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#edf2eb;border-radius:8px;padding:13px 14px;margin-top:12px}.cash-total strong{font-size:18px}.cash-total.result{background:#dfeee1}.cash-total.bad{background:#f8dfdc;color:#9d2f24}.cash-total.ok{background:#dfeee1;color:#2b6a39}.cash-note{font-size:12px;color:#5d6c61;background:#f3f6f0;border-radius:7px;padding:10px;margin:10px 0 14px}.cash-subhead{margin-top:24px}.cash-table input[type=number]{width:78px}.cash-summary{display:grid;grid-template-columns:1fr auto;gap:10px 18px;padding:12px 0}.cash-summary span{color:#5f7061}.cash-result{position:sticky;top:20px;align-self:start}.cash-nav{justify-content:space-between;margin:0 0 26px}.cash-bad-text{color:#a33e32;font-weight:700}tr[data-open-cash]{cursor:pointer}tr[data-open-cash]:hover{background:#f7f9f5}
@media(max-width:900px){.cash-two{grid-template-columns:1fr}.cash-row{grid-template-columns:1fr 150px}.cash-result{position:static}}
@media(max-width:560px){.cash-row{grid-template-columns:1fr}.cash-wizard{margin-left:-4px;margin-right:-4px}.cash-table{min-width:650px}}

/* Control de caja · administración */
nav button[hidden]{display:none!important}.control-toolbar{margin-top:22px}.control-private{align-self:flex-end}.control-stats{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:12px;margin:20px 0}.control-stats .stat{padding:16px}.control-stats .stat strong{font-size:22px}.control-wide{max-width:none}.control-table{min-width:1650px;font-size:12px}.control-table th,.control-table td{white-space:nowrap;padding:10px 9px}.control-week-total{background:#edf2eb}.control-week-total td{border-top:2px solid #b8c9ba}.control-bank{min-width:1050px}.control-bank td{vertical-align:middle}.control-bank input{min-width:130px}.control-bank [data-bank-note]{min-width:220px}
@media(max-width:1200px){.control-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.control-stats{grid-template-columns:repeat(2,1fr)}.control-stats .stat strong{font-size:18px}}
/* V9 · Control de caja escalable */
.control-all{min-width:1350px}.control-external{min-width:900px}.control-stores{min-width:900px}.control-store-manager{margin-top:22px}.control-new-store{margin:18px 0 24px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#f8faf6}.control-new-store .check{display:flex;align-items:center;gap:8px}.control-new-store input[type=checkbox]{width:auto}.control-stores input{min-width:130px}.control-stores [data-store-name]{min-width:180px}.control-stores [data-store-code]{width:115px}.control-stores select{min-width:95px}

/* V10.3 · fondos configurables y preparación de fondos */
.cash-opening-grid{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:14px;margin:12px 0 22px}.cash-opening-fund{padding:14px;border:1px solid var(--line);border-radius:9px;background:#f8faf6}.cash-opening-fund .sub{margin-top:3px}.cash-wallet-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cash-wallet-title h2{margin-bottom:0}.store-manager-list{display:grid;gap:12px}.store-manager-item{border:1px solid var(--line);border-radius:10px;padding:14px;background:#fff}.store-manager-item>summary{padding:4px 0 12px}.store-funds-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px;margin:14px 0}.store-fund-editor{border:1px solid var(--line);border-radius:10px;padding:14px;background:#f8f8f5}.store-fund-editor.enabled{background:#f2f7ef;border-color:#b8c9ba}.fund-profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.fund-profile-grid label{display:grid;gap:4px;font-size:11px}.fund-profile-grid input{width:100%}.fund-prep-notice{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#f3f7ef}.fund-prep-notice h2{margin-bottom:6px}.fund-prep-toolbar .field{margin-bottom:0;min-width:200px}.fund-prep-card.confirmed{border-color:#a9c5ad}.prep-table{min-width:760px}.prep-table td,.prep-table th{padding:9px}.prep-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0 16px}.prep-totals .cash-total{margin:0}.fund-print-sheet{display:none}.fund-print-grid{display:grid;grid-template-columns:1fr 1fr;gap:7mm}.fund-slip{border:1px dashed #555;padding:4mm;break-inside:avoid;background:#fff}.fund-slip-store{font:700 18px Georgia,serif;color:#214d3d}.fund-slip-name{font-weight:800;font-size:13px;text-transform:uppercase;margin-top:1mm}.fund-slip-date{font-size:9px;color:#666;margin:1mm 0 2mm}.fund-slip table{font-size:10px}.fund-slip th,.fund-slip td{padding:2.2mm 1.8mm}.fund-slip-total,.fund-slip-opening{display:flex;justify-content:space-between;gap:10px;padding:2mm;margin-top:1.5mm;border-radius:4px;background:#edf2eb;font-size:11px}.fund-slip-opening{background:#f5f0df}.fund-slip-check{font-size:9px;margin-top:2mm}.fund-print-header{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:2px solid #214d3d;margin-bottom:5mm;padding-bottom:2mm}.fund-print-header h1{font:700 18px Georgia,serif;margin:0}.fund-print-header p{margin:0;font-size:10px}.fund-print-brand{font:700 22px Georgia,serif;color:#214d3d}
@media(max-width:1050px){.cash-opening-grid,.store-funds-grid{grid-template-columns:1fr}.prep-totals{grid-template-columns:1fr}}
@media print{body:has(.fund-print-sheet) #content>*{display:none!important}body:has(.fund-print-sheet) #content>.fund-print-sheet{display:block!important}body:has(.fund-print-sheet) .fund-print-sheet *{visibility:visible!important}body:has(.fund-print-sheet) .fund-print-sheet{font-family:Arial,sans-serif;color:#222}body:has(.fund-print-sheet) .fund-print-grid{grid-template-columns:1fr 1fr;gap:4mm}body:has(.fund-print-sheet) .fund-slip{padding:2.5mm}body:has(.fund-print-sheet) main{max-width:none}}
.fund-store-print-block{break-inside:avoid;margin-bottom:4mm}.fund-slip-empty{display:grid;align-content:start;min-height:48mm}.fund-slip-empty-text{display:grid;place-items:center;min-height:30mm;color:#999;font-size:12px}.fund-print-sheet{padding:5mm}

/* V10.5 · Presupuestos y cobros: conserva la matriz A4 original. */
.quote-heading-overlay{position:absolute;left:67%;top:7.1%;width:27%;height:6%;background:#fff;display:flex;align-items:center;justify-content:center;font:700 4.1cqw Arial,sans-serif;color:#000;line-height:1;z-index:2}.quote-lines{min-width:690px}.quote-lines input{width:100%}.quote-lines input[type=number]{min-width:76px}.quote-lines td:first-child{min-width:250px}.quote-lines td:nth-child(2),.quote-lines td:nth-child(3){width:110px}.quote-lines td:nth-child(4){width:100px}.quote-actions{display:flex;flex-wrap:wrap;gap:6px}.quote-actions button{padding:7px 10px;font-size:12px}.quote-invoices .card{margin-bottom:15px}.receivable-alert{background:#eff6ea;border:1px solid #bfd4c2}.receivable-alert p{margin:7px 0}@media print{.quote-heading-overlay{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* V10.6 · Compras e Inventario: estilos aislados, no altera pantallas anteriores */
.buy-scope .buy-tabs{margin:20px 0 26px;gap:7px}.buy-scope .buy-tabs button{font-size:13px}.buy-scope .buy-tabs button.selected{color:#214d3d;font-weight:700}.buy-scope .buy-table{min-width:860px}.buy-scope .buy-table td{vertical-align:middle;padding:9px 10px}.buy-scope .buy-table small{display:block;color:#829084;font-size:11px;margin-top:4px}.buy-scope .buy-group td{background:#e8f0e6;color:#214d3d;font-weight:800;letter-spacing:.2px;padding:12px 10px}.buy-scope .buy-xs{width:75px;min-width:66px;padding:7px}.buy-scope .buy-positive{color:#1c6b44}.buy-scope .buy-number{text-align:center;font-variant-numeric:tabular-nums}.buy-scope .buy-mini{font-size:12px;padding:2px 6px;margin-left:4px;border:0;background:transparent}.buy-scope .buy-editor{background:#f0f5ee;border:1px solid #aac5ac;border-radius:10px;padding:17px;margin:17px 0}.buy-scope .buy-shipment{border:1px solid #e1e5db;background:#fafcf9;padding:16px;border-radius:10px;margin-bottom:12px}.buy-scope .buy-shipment p{margin:7px 0}.buy-scope .buy-area-checks{min-width:200px}.buy-scope .buy-area-checks label{display:inline-flex;gap:4px;align-items:center;white-space:nowrap;margin:3px 8px 3px 0;font-size:11px}.buy-scope .buy-check{display:inline-flex;align-items:center;gap:6px}.buy-scope input[type=checkbox]{width:auto}.buy-scope .buy-catalog-table{min-width:1120px}.buy-scope .buy-catalog-table input{width:100%;min-width:88px}.buy-scope .buy-catalog-table td:first-child input{min-width:175px}.buy-scope .buy-catalog-table select{padding:7px}.buy-scope form .field input[type=number]{width:100%}.buy-scope .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.buy-scope .stat strong{font-size:25px}.buy-scope .card>.row+.table-wrap{margin-top:14px}.buy-scope .card .row .field{min-width:145px}.buy-scope h3{margin-top:25px}.buy-scope .pill{white-space:normal}.buy-scope .buy-general{min-width:890px}
@media(max-width:720px){.buy-scope .stats{grid-template-columns:1fr}.buy-scope .buy-tabs{display:flex;flex-wrap:nowrap;overflow:auto}.buy-scope .buy-tabs button{white-space:nowrap}.buy-scope .buy-catalog-table{min-width:1080px}}
@media print{.buy-scope .tabs,.buy-scope button{display:none!important}}

/* V10.6.1: confirmación accesible con listas largas y protección de pedidos vacíos */
.buy-scope.buy-inventory-view{padding-bottom:105px}
.buy-scope .buy-floating-confirm{position:fixed;right:26px;bottom:20px;z-index:8;max-width:calc(100vw - 36px);display:flex;align-items:center;gap:24px;justify-content:space-between;background:#fff;border:1px solid #9bb9a0;border-radius:12px;padding:13px 16px;box-shadow:0 9px 28px #1b382a36}
.buy-scope .buy-floating-confirm .buy-floating-text{display:grid;gap:3px;color:var(--green);font-size:14px}
.buy-scope .buy-floating-confirm .buy-floating-text small{color:var(--muted);font-size:11px}
.buy-scope .buy-floating-confirm button{flex-shrink:0;font-size:13px;padding:12px 16px}
body:has(.buy-inventory-view) #feedback:not(:empty){bottom:105px}
@media(max-width:680px){.buy-scope .buy-floating-confirm{left:12px;right:12px;bottom:12px;gap:8px;padding:11px}.buy-scope .buy-floating-confirm .buy-floating-text{font-size:12px}.buy-scope .buy-floating-confirm .buy-floating-text small{font-size:10px}.buy-scope .buy-floating-confirm button{font-size:12px;padding:11px 9px}}
@media print{.buy-scope .buy-floating-confirm{display:none!important}}
/* V10.6.2 · Compras y recepción por centros: estilo común Masa Madre. */
.buy-scope.buy-purchase-view,.buy-scope.buy-catalog-view{padding-bottom:115px}
.buy-scope .buy-center-select{min-width:235px;max-width:360px}
.buy-scope .buy-filters{margin:8px 0 6px}
.buy-scope .buy-filters .field{min-width:210px;max-width:360px}
.buy-scope .buy-area-row td{background:#f4f7f1;color:#456855;font-size:12px;font-weight:700;padding:7px 10px;border-bottom:1px solid #e0e9df}
.buy-scope .buy-center-table{min-width:750px}
.buy-scope .buy-reception-block,.buy-scope .buy-order-compact{border:1px solid #dde6da;border-radius:9px;margin:12px 0;padding:12px 15px;background:#fcfdfa}
.buy-scope .buy-reception-block summary,.buy-scope .buy-order-compact summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;line-height:1.6}
.buy-scope .buy-reception-block[open],.buy-scope .buy-order-compact[open]{background:#f6f9f4;border-color:#b9cdbc}
.buy-scope .buy-reception-block input[type=number],.buy-scope .buy-order-compact input[type=number]{width:96px}
.buy-scope .buy-floating-actions{position:fixed;left:max(290px,calc((100% - 1300px) / 2));right:26px;bottom:18px;z-index:8;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 15px;border:1px solid #a7c0a7;border-radius:12px;background:#fff;box-shadow:0 10px 30px #163f2a33}
.buy-scope .buy-floating-actions button{padding:11px 15px;font-size:13px}
.buy-scope .buy-floating-actions .buy-action-text{margin-right:auto;font-weight:700;font-size:12px;color:#214d3d}
body:has(.buy-purchase-view) #feedback:not(:empty),body:has(.buy-catalog-view) #feedback:not(:empty){bottom:100px}
@media(max-width:960px){.buy-scope .buy-floating-actions{left:216px;right:12px}}
@media(max-width:680px){.buy-scope .buy-floating-actions{left:9px;right:9px;bottom:8px;padding:10px;justify-content:center}.buy-scope .buy-floating-actions .buy-action-text{flex-basis:100%;text-align:center;margin:0;font-size:11px}.buy-scope .buy-floating-actions button{flex:1 1 auto;padding:9px 10px;font-size:12px}.buy-scope.buy-purchase-view,.buy-scope.buy-catalog-view{padding-bottom:165px}.buy-scope .buy-center-select,.buy-scope .buy-filters .field{max-width:none}}
@media print{.buy-scope .buy-floating-actions{display:none!important}}
/* V10.6.3 — vistas Compras y Recepción por áreas, aisladas de otros módulos. */
.buy-scope .buy-v3-screen{padding:23px 24px 32px}
.buy-scope .buy-v3-title{margin:0 0 15px}
.buy-scope .buy-v3-title h2{font-size:21px;margin:0 0 4px;font-weight:760;letter-spacing:-.35px}
.buy-scope .buy-v3-title p{margin:0;line-height:1.5}
.buy-scope .buy-v3-title .row{align-items:flex-start}
.buy-scope .buy-v3-filters{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:12px;align-items:end;background:#f5f7f2;padding:15px;border-radius:10px;margin:10px 0 16px}
.buy-scope .buy-v3-filters .field{margin:0;min-width:0;max-width:none}
.buy-scope .buy-v3-filters input,.buy-scope .buy-v3-filters select{width:100%;min-width:0;font-size:13px;padding:10px 8px}
.buy-scope .buy-v3-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
.buy-scope .buy-v3-stat{display:flex;gap:12px;align-items:center;border:1px solid #e2e7dc;border-radius:10px;padding:13px;background:white;min-width:0}
.buy-scope .buy-v3-stat strong{display:block;color:#1f3b2f;font-family:Georgia,serif;font-size:24px;white-space:normal}
.buy-scope .buy-v3-stat small{display:block;color:#667568;font-size:11px;line-height:1.35;margin-top:4px}
.buy-scope .buy-v3-stat-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;color:#244c3c;background:#edf5ed;font-size:18px}
.buy-scope .buy-v3-area{border:1px solid #dce6db;border-radius:10px;margin:13px 0;padding:0;background:#fff;overflow:hidden}
.buy-scope .buy-v3-area>summary{background:#e7f0e6;padding:10px 13px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;color:#204b38;cursor:pointer}
.buy-scope .buy-v3-area>summary strong{font-size:13px;letter-spacing:.35px}
.buy-scope .buy-v3-area>summary span{font-size:11px;color:#466a54;font-weight:500}
.buy-scope .buy-v3-area[open]>summary{border-bottom:1px solid #d6e2d4}
.buy-scope .buy-v3-table{width:100%;font-size:12px;border-collapse:collapse;min-width:720px}
.buy-scope .buy-v3-table th{background:#f5f7f1;padding:8px 12px;font-size:11px;color:#52675b;white-space:nowrap}
.buy-scope .buy-v3-table td{padding:7px 12px;vertical-align:middle}
.buy-scope .buy-v3-table .buy-v3-item{min-width:220px}
.buy-scope .buy-v3-table small{display:block;color:#8a968c;margin-top:3px;font-size:10px}
.buy-scope .buy-v3-money,.buy-scope .buy-v3-qty{font-variant-numeric:tabular-nums;white-space:nowrap}
.buy-scope .buy-v3-money{text-align:right}
.buy-scope .buy-v3-pending{font-size:11px;color:#98723b}
.buy-scope .buy-v3-status{padding:4px 9px;border-radius:16px;font-size:11px;white-space:nowrap;display:inline-block;line-height:1.2}
.buy-scope .buy-v3-good{background:#dff2e4;color:#246f43}
.buy-scope .buy-v3-warn{background:#f9e5da;color:#985130}
.buy-scope .buy-v3-wait{background:#fff0ca;color:#81641d}
.buy-scope .buy-v3-info{background:#e2efff;color:#295c83}
.buy-scope .buy-v3-secondary{border:1px solid #dde7db;border-radius:10px;padding:13px;margin:22px 0;background:#fbfcfa}
.buy-scope .buy-v3-secondary>summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
.buy-scope .buy-v3-secondary summary span{color:#687967;font-size:11px;font-weight:400}
.buy-scope .buy-v3-secondary>.card{margin:15px 0 0;padding:16px}
.buy-scope .buy-v3-empty{border:1px dashed #c6d8c7;border-radius:10px;background:#f8faf7;text-align:center;color:#52675a;padding:30px 20px;margin:15px 0}
.buy-scope .buy-v3-empty p{font-size:12px;margin:12px 0}
.buy-scope .buy-v3-reception-area{padding-bottom:8px}
.buy-scope .buy-v3-delivery{margin:10px;border:1px solid #e1e8dc;border-radius:7px;padding:0;background:white}
.buy-scope .buy-v3-delivery>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px;font-size:12px}
.buy-scope .buy-v3-delivery>summary span{font-weight:400;color:#5a6f60;font-size:11px}
.buy-scope .buy-v3-delivery>summary em{font-style:normal;color:#986623;background:#fff0d6;border-radius:30px;padding:4px 8px}
.buy-scope .buy-v3-delivery[open]{background:#fafcf9}
.buy-scope .buy-v3-receipt-table{min-width:960px}
.buy-scope .buy-v3-receipt-table input[type=number]{width:78px;min-width:62px;padding:6px 7px;text-align:center}
.buy-scope .buy-v3-receipt-table input.buy-v3-note{min-width:160px;width:100%;padding:7px;font-size:11px}
.buy-scope .buy-v3-receipt-table input[type=checkbox]{width:16px;height:16px;accent-color:#214d3d;cursor:pointer}
.buy-scope .buy-v3-origin{border-radius:13px;background:#e4efff;color:#275e86;padding:4px 7px;font-size:10px;white-space:nowrap}
.buy-scope .buy-v3-origin.central{background:#fff1d8;color:#8a641f}
.buy-scope .buy-v3-short{color:#b93427;font-weight:700;background:#fce9e7;border-radius:4px}
.buy-scope .buy-v3-diff{font-variant-numeric:tabular-nums;text-align:center}
.buy-scope .buy-v3-receive-form>.row{padding:5px 12px 14px}
.buy-scope .buy-v3-aux{display:flex;gap:11px;flex-wrap:wrap;padding:10px 12px 0}
.buy-scope .buy-v3-aux .field{min-width:160px;margin-bottom:9px}
.buy-scope .buy-v3-bottom-note{color:#657265;font-size:11px;padding:0 7px 100px}
.buy-scope:has(.buy-v3-screen) .buy-floating-actions{bottom:14px}
@media(max-width:1240px){.buy-scope .buy-v3-filters{grid-template-columns:repeat(3,minmax(130px,1fr))}.buy-scope .buy-v3-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.buy-scope .buy-v3-filters{grid-template-columns:repeat(2,minmax(115px,1fr))}.buy-scope .buy-v3-stats{gap:7px}.buy-scope .buy-v3-stat{padding:9px;gap:6px}.buy-scope .buy-v3-stat strong{font-size:19px}.buy-scope .buy-v3-stat-icon{width:26px;height:26px}.buy-scope .buy-v3-screen{padding:15px 12px}.buy-scope .buy-v3-table{min-width:670px}.buy-scope .buy-v3-receipt-table{min-width:900px}.buy-scope .buy-v3-delivery{margin:7px}}
@media print{.buy-scope .buy-v3-screen .buy-v3-filters,.buy-scope .buy-v3-secondary,.buy-scope .buy-v3-stats{display:none!important}}
.buy-scope .buy-v3-issue{margin:8px 11px;padding:9px 12px;border-left:3px solid #cc8a31;background:#fff5e7;color:#845d1d;font-size:12px}

/* V10.6.4: trazabilidad visible entre Compras y Recepción */
.buy-scope .buy-v4-status-table{min-width:850px}
.buy-scope .buy-v4-status-table td{padding:8px 10px}
.buy-scope .buy-v4-delivery-forms{margin:12px 12px 15px;padding:12px;border:1px solid #e0e7df;border-radius:10px;background:#f9fbf8}
.buy-scope .buy-v4-delivery-forms .buy-v3-delivery{margin:8px 0}
.buy-scope .buy-v4-awaiting{padding:12px 14px;color:#5d6d5e;font-size:12px;background:#fafbf7}
.buy-scope .buy-v4-next,.buy-scope .buy-v4-flow{padding:14px 16px;border:1px solid #cfe1d1;background:#eef5ed;border-radius:10px;margin:15px 0;display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:13px}
.buy-scope .buy-v4-next p{margin:3px 0 0}
.buy-scope .buy-v4-muted{background:#f7f8f6;color:#526657}
.buy-scope .buy-v4-flow{display:block;background:#f3f7f2}
.buy-scope .buy-v4-flow strong{display:block;margin-bottom:4px}
.buy-scope .buy-v4-flow span{font-size:12px;color:#4c5e50}
.buy-scope .buy-v4-draft-action{margin:10px;padding:10px;background:#fff8e4;border-radius:8px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.buy-scope .buy-v4-area>summary span{font-size:11px}
@media(max-width:800px){.buy-scope .buy-v4-next{align-items:stretch}.buy-scope .buy-v4-next button{width:100%}}

.mm-test-panel{position:fixed;inset:15%;z-index:10000;background:white;padding:2rem;border:3px solid #9b542c;overflow:auto}
