:root{
  --mk-bg:#f4f6fb;--mk-surface:#fff;--mk-surface-soft:#f8fafc;--mk-text:#101828;--mk-muted:#667085;--mk-muted-2:#98a2b3;--mk-border:#e4e7ec;
  --mk-primary:#4f46e5;--mk-primary-strong:#3730a3;--mk-primary-soft:#eef2ff;--mk-success:#12b76a;--mk-success-soft:#ecfdf3;
  --mk-warning:#f79009;--mk-warning-soft:#fffaeb;--mk-danger:#f04438;--mk-danger-soft:#fef3f2;--mk-info:#0ea5e9;--mk-info-soft:#f0f9ff;
  --mk-purple:#7c3aed;--mk-purple-soft:#f5f3ff;--mk-nav:#0b1220;--mk-nav-2:#111b30;--mk-radius:18px;--mk-radius-sm:12px;
  --mk-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 28px rgba(16,24,40,.06);--mk-shadow-hover:0 12px 34px rgba(16,24,40,.10)
}
*{box-sizing:border-box}html{background:var(--mk-bg)}body{margin:0;background:var(--mk-bg)!important;color:var(--mk-text);font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;-webkit-font-smoothing:antialiased}a{color:var(--mk-primary)}.container{max-width:1320px}.text-primary{color:var(--mk-primary)!important}.bg-primary{background:var(--mk-primary)!important}.border-primary{border-color:var(--mk-primary)!important}

/* Core controls */
.btn{border-radius:11px;font-weight:650;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:.42rem;transition:transform .14s ease,box-shadow .14s ease,background-color .14s ease,border-color .14s ease}.btn:active{transform:translateY(1px)}.btn-sm{min-height:34px;border-radius:10px}.btn-primary{background:var(--mk-primary);border-color:var(--mk-primary)}.btn-primary:hover,.btn-primary:focus{background:var(--mk-primary-strong);border-color:var(--mk-primary-strong);box-shadow:0 5px 16px rgba(79,70,229,.24)}.btn-outline-primary{color:var(--mk-primary);border-color:#c7d2fe}.btn-outline-primary:hover{background:var(--mk-primary);border-color:var(--mk-primary);color:#fff}.btn-danger{background:var(--mk-danger);border-color:var(--mk-danger)}.btn-warning{color:#7a2e0e}.form-control,.form-select,.input-group-text{border-color:#d0d5dd;border-radius:11px;min-height:42px;background:#fff}.form-control:focus,.form-select:focus{border-color:#a5b4fc;box-shadow:0 0 0 .22rem rgba(79,70,229,.11)}.form-label{font-weight:650;color:#344054;font-size:.86rem}.input-group>.form-control,.input-group>.form-select,.input-group>.input-group-text{border-radius:11px}.input-group .input-group-text{background:#f9fafb;color:#667085}.form-check-input:checked{background-color:var(--mk-primary);border-color:var(--mk-primary)}
.card{border:1px solid var(--mk-border)!important;border-radius:var(--mk-radius)!important;box-shadow:none}.shadow-sm{box-shadow:var(--mk-shadow)!important}.alert{border:1px solid var(--mk-border);border-radius:14px}.alert-warning{background:var(--mk-warning-soft);border-color:#fedf89;color:#7a2e0e}.alert-danger{background:var(--mk-danger-soft);border-color:#fecdca}.alert-info{background:var(--mk-info-soft);border-color:#b9e6fe}.alert-secondary{background:#f8fafc;border-color:#e4e7ec;color:#475467}.badge{font-weight:650}
.modal-content{border:1px solid var(--mk-border)!important;border-radius:20px!important;box-shadow:0 24px 60px rgba(16,24,40,.20)!important;overflow:hidden}.modal-header{border-bottom:1px solid var(--mk-border);background:#fff!important;color:var(--mk-text)!important}.modal-footer{border-top:1px solid var(--mk-border);background:#fafafa}.modal-header .btn-close{filter:none!important}.item-scroll,.mk-modal-scroll{max-height:390px;overflow:auto}.swal2-popup{border-radius:20px!important}.swal2-title{color:var(--mk-text)!important;letter-spacing:-.025em!important}.swal2-html-container{color:var(--mk-muted)!important}.swal2-actions .swal2-styled{border-radius:11px!important;font-weight:700!important;min-height:42px!important;padding:.58rem 1rem!important}

/* Navigation */
.maxi-navbar{z-index:1080!important;isolation:isolate;background:linear-gradient(100deg,var(--mk-nav),var(--mk-nav-2))!important;border-bottom:1px solid rgba(255,255,255,.07);box-shadow:0 8px 30px rgba(15,23,42,.14)!important;padding:.55rem 0}.maxi-navbar-spacer{height:72px}.maxi-navbar .navbar-brand{font-size:1rem;letter-spacing:-.01em}.maxi-brand-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#818cf8,#4f46e5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 18px rgba(79,70,229,.28)}.maxi-brand-copy{line-height:1}.maxi-brand-status{position:relative;color:#fff;transition:background .18s ease,box-shadow .18s ease,transform .18s ease}.maxi-brand-status.is-online{background:linear-gradient(135deg,#34d399,#16a34a);box-shadow:inset 0 0 0 1px rgba(255,255,255,.20),0 6px 18px rgba(34,197,94,.30)}.maxi-brand-status.is-offline{background:linear-gradient(135deg,#f87171,#dc2626);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 18px rgba(239,68,68,.28)}.maxi-brand-status.is-checking,.maxi-brand-status.is-recovering{background:linear-gradient(135deg,#60a5fa,#2563eb);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 18px rgba(59,130,246,.30)}.maxi-brand-status.is-checking::after,.maxi-brand-status.is-recovering::after{content:"";position:absolute;inset:-3px;border-radius:12px;border:1px solid rgba(96,165,250,.35);animation:maxiBrandPulse 1.5s ease-in-out infinite}.maxi-brand-status:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.14),inset 0 0 0 1px rgba(255,255,255,.20)}@keyframes maxiBrandPulse{0%{transform:scale(.96);opacity:.25}70%{transform:scale(1.08);opacity:.05}100%{transform:scale(1.1);opacity:0}}.maxi-brand-copy small{display:block;color:#98a2b3;font-size:.62rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-top:3px}.maxi-navbar .nav-link{color:#cbd5e1!important;font-size:.88rem;font-weight:620;border-radius:10px;padding:.48rem .65rem!important}.maxi-navbar .nav-link:hover{color:#fff!important;background:rgba(255,255,255,.07)}.maxi-navbar .nav-link.active{background:rgba(129,140,248,.17);color:#fff!important;box-shadow:inset 0 0 0 1px rgba(165,180,252,.12)}.maxi-navbar .nav-link.disabled{opacity:.38}.maxi-navbar .navbar-toggler{border:1px solid #334155;border-radius:10px;padding:.38rem .55rem}.maxi-navbar .navbar-toggler:focus{box-shadow:0 0 0 .2rem rgba(129,140,248,.2)}.maxi-navbar .btn-outline-light{border-color:#475569;color:#fff}.maxi-navbar .btn-outline-light:hover{background:#fff;color:#111827}.maxi-user-chip{display:flex;align-items:center;gap:.45rem;padding:.38rem .6rem;border-radius:10px;background:rgba(255,255,255,.06);color:#d0d5dd;font-size:.78rem}.maxi-user-avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#334155;color:#fff}.maxi-status{border-radius:999px!important;padding:.45rem .65rem!important;font-weight:650}
.maxi-navbar .dropdown-menu{min-width:200px;padding:.45rem;margin-top:.45rem!important;border:1px solid var(--mk-border)!important;border-radius:13px!important;background:#fff!important;box-shadow:0 16px 38px rgba(16,24,40,.16)!important}.maxi-navbar .dropdown-item{display:flex;align-items:center;gap:.55rem;min-height:40px;padding:.55rem .65rem!important;border-radius:9px;color:#344054!important;font-size:.84rem;font-weight:650}.maxi-navbar .dropdown-item i{color:#667085}.maxi-navbar .dropdown-item:hover,.maxi-navbar .dropdown-item:focus,.maxi-navbar .dropdown-item.active{background:#f5f7ff!important;color:var(--mk-primary)!important}.maxi-navbar .dropdown-item.active i,.maxi-navbar .dropdown-item:hover i{color:var(--mk-primary)}

/* Shared page system */
.mk-page{padding-top:1.35rem;padding-bottom:2.75rem}.mk-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.mk-page-title{font-size:clamp(1.45rem,2vw,1.9rem);letter-spacing:-.035em;font-weight:760;margin:0;color:var(--mk-text)}.mk-page-title i{color:var(--mk-primary)}.mk-page-subtitle{color:var(--mk-muted);font-size:.9rem;line-height:1.5;margin:.35rem 0 0;max-width:none;overflow-wrap:anywhere}.mk-eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.68rem;font-weight:780;color:var(--mk-purple)}.mk-section-title{font-size:1.04rem;font-weight:740;letter-spacing:-.02em;margin:0}.mk-section-subtitle{font-size:.82rem;color:var(--mk-muted);margin-top:.2rem}.mk-panel{background:var(--mk-surface);border:1px solid var(--mk-border);border-radius:var(--mk-radius);box-shadow:var(--mk-shadow);overflow:hidden}.mk-panel-header{padding:1rem 1.1rem;border-bottom:1px solid var(--mk-border)}.mk-panel-body{padding:1rem 1.1rem}
.mk-panel-footer{padding:.78rem 1rem;border-top:1px solid #eef2f6;background:#fafbfc}
.mk-panel-footer.mk-report-footnote{padding:.82rem 1rem;font-size:.68rem;color:#98a2b3;line-height:1.45}
.mk-chip{display:inline-flex;align-items:center;gap:.4rem;border:1px solid var(--mk-border);background:#fff;border-radius:999px;padding:.36rem .65rem;font-size:.76rem;font-weight:650;color:#475467}.mk-filter-panel,.filter-card{border:1px solid var(--mk-border)!important;border-radius:var(--mk-radius)!important;background:#fff!important;box-shadow:var(--mk-shadow)!important;padding:1rem!important;margin-bottom:1.15rem!important}.mk-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin:0 0 .75rem}.mk-list-toolbar .form-control{max-width:340px}.mk-list-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.mk-square-action{width:34px;height:34px;min-height:34px;padding:0!important;display:inline-grid!important;place-items:center}.mk-square-action i{font-size:1rem}.mk-position-icon{pointer-events:none}.mk-tone-primary{background:var(--mk-primary-soft)!important;color:var(--mk-primary)!important}.mk-tone-success{background:var(--mk-success-soft)!important;color:var(--mk-success)!important}.mk-tone-info{background:var(--mk-info-soft)!important;color:var(--mk-info)!important}.mk-tone-warning{background:var(--mk-warning-soft)!important;color:var(--mk-warning)!important}.mk-tone-purple{background:var(--mk-purple-soft)!important;color:var(--mk-purple)!important}.mk-tone-neutral{background:#f2f4f7!important;color:#475467!important}.mk-live-dot{font-size:.55rem!important}

/* Data surfaces / tables */
.table-card,.mk-data-card{border:1px solid var(--mk-border)!important;border-radius:var(--mk-radius)!important;background:#fff!important;box-shadow:var(--mk-shadow)!important;overflow:hidden}.table-responsive{border:1px solid var(--mk-border);border-radius:16px;background:#fff;box-shadow:var(--mk-shadow)!important;overflow:auto}.table-card .table-responsive{border:0;border-radius:0;box-shadow:none!important}.table{--bs-table-bg:transparent;margin-bottom:0}.table thead th,.table th{background:#f8fafc!important;color:#475467!important;border-bottom:1px solid var(--mk-border)!important;font-size:.73rem;text-transform:uppercase;letter-spacing:.04em;font-weight:760;vertical-align:middle;white-space:nowrap}.table tbody td{border-color:#eef2f6;color:#344054;font-size:.86rem;vertical-align:middle}.table-hover>tbody>tr:hover>*{--bs-table-bg-state:#fafbff!important}.table .sortable{cursor:pointer}.table .sortable:hover{color:var(--mk-primary)!important}.money{font-variant-numeric:tabular-nums}.summary-card{border:1px solid var(--mk-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important}.summary-value{font-size:1.35rem;font-weight:760;color:var(--mk-text);letter-spacing:-.025em}.venta-row,.carga-row{cursor:pointer}.venta-row:hover td,.carga-row:hover td{background:#f8faff!important}
.mobile-list{display:none}.venta-card,.carga-card{border:1px solid var(--mk-border);border-radius:14px;background:#fff;padding:14px;margin-bottom:10px;box-shadow:0 1px 2px rgba(16,24,40,.03)}

/* One pagination component everywhere */
.mk-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;clear:both;margin:1.6rem 0 1rem!important;padding:.82rem 1rem!important;min-height:58px;border:1px solid var(--mk-border);border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(16,24,40,.045)!important}.mk-pagination-info{min-width:0;color:#667085;font-size:.82rem;line-height:1.35}.mk-pagination-info strong{color:#344054;font-weight:700}.mk-pagination-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.48rem!important}.mk-pagination-controls>*{margin:0!important}.mk-page-btn,.mk-page-number,.mk-page-current{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.34rem;min-width:36px;height:36px;margin:0!important;padding:0 .68rem!important;border:1px solid #e4e7ec!important;border-radius:9px!important;background:#fff!important;color:#475467!important;text-decoration:none!important;font-size:.82rem!important;font-weight:650!important;line-height:1!important;box-shadow:none!important;transition:border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease}.mk-page-number{padding:0!important}.mk-page-btn:hover:not(:disabled):not(.is-disabled),.mk-page-number:hover:not(.is-active){border-color:#c7d2fe!important;background:#f8faff!important;color:var(--mk-primary)!important}.mk-page-number.is-active,.mk-page-number.activo,.mk-page-current{border-color:var(--mk-primary)!important;background:var(--mk-primary)!important;color:#fff!important;font-weight:750!important}.mk-page-btn:disabled,.mk-page-btn.is-disabled{opacity:.42;cursor:not-allowed;pointer-events:none;background:#f9fafb!important}.mk-page-btn .mk-label{display:inline}.mk-pagination+br{display:none}

/* Dashboard */
.mk-dashboard-hero{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(125deg,#111827 0%,#312e81 57%,#4f46e5 100%);color:#fff;padding:1.7rem 1.8rem;box-shadow:0 18px 44px rgba(49,46,129,.20)}.mk-dashboard-hero:before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;right:-120px;top:-170px;background:rgba(255,255,255,.08)}.mk-dashboard-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:170px;bottom:-135px;background:rgba(56,189,248,.12)}.mk-dashboard-hero>*{position:relative;z-index:1}.mk-dashboard-hero .mk-eyebrow{color:#c7d2fe}.mk-dashboard-hero h1{font-size:clamp(1.55rem,3vw,2.35rem);font-weight:780;letter-spacing:-.045em}.mk-dashboard-hero p{color:#d0d5dd;max-width:720px}.mk-live-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:1.3rem}.mk-live-item{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);border-radius:14px;padding:.78rem .85rem;backdrop-filter:blur(8px)}.mk-live-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#aeb8ca;font-weight:700}.mk-live-value{font-size:.9rem;font-weight:720;margin-top:.18rem;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.mk-metric-card{background:#fff;border:1px solid var(--mk-border);border-radius:17px;padding:1rem;min-height:120px;box-shadow:var(--mk-shadow)}.mk-metric-top{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.mk-metric-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:1rem}.mk-metric-label{font-size:.76rem;font-weight:680;color:#667085}.mk-metric-value{font-size:1.15rem;font-weight:780;letter-spacing:-.025em;margin-top:.5rem}.mk-metric-note{font-size:.72rem;color:#98a2b3;margin-top:.18rem}.mk-future-badge{font-size:.62rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:.3rem .5rem;background:#f2f4f7;color:#667085}.mk-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.mk-tool-card{position:relative;display:block;height:100%;padding:1.05rem;background:#fff;border:1px solid var(--mk-border);border-radius:17px;color:var(--mk-text);text-decoration:none;box-shadow:0 1px 2px rgba(16,24,40,.03);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.mk-tool-card:hover{transform:translateY(-2px);border-color:#c7d2fe;box-shadow:var(--mk-shadow-hover);color:var(--mk-text)}.mk-tool-card.is-disabled{opacity:.62;cursor:default}.mk-tool-card.is-disabled:hover{transform:none;border-color:var(--mk-border);box-shadow:none}.mk-tool-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.mk-tool-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:1.15rem}.mk-tool-title{font-size:.94rem;font-weight:740;margin-top:.85rem}.mk-tool-desc{font-size:.78rem;color:var(--mk-muted);line-height:1.45;margin-top:.28rem}.mk-tool-arrow{color:#98a2b3}.mk-future-card{background:linear-gradient(180deg,#fff,#fafbff);border-style:dashed}.mk-future-card .mk-tool-icon{background:#f2f4f7;color:#667085}

/* Product page */
.mk-product-toolbar{display:flex;align-items:stretch;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin:.25rem 0 .8rem}.mk-price-select.active,.mk-price-select.btn-success{background:var(--mk-primary)!important;border-color:var(--mk-primary)!important;color:#fff!important}#btnActualizarPrecios:disabled{opacity:.42;cursor:not-allowed}#tablaProductos td.descripcion{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arrow{font-size:.72rem;margin-left:4px}.mk-price-scope-copy{color:#667085;font-size:.88rem;margin-top:.25rem}.mk-price-scope-banner{display:flex;align-items:center;gap:.75rem;padding:.75rem .85rem;border:1px solid #c7d2fe;border-radius:13px;background:#f8faff;color:#344054}.mk-price-scope-banner>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--mk-primary-soft);color:var(--mk-primary);flex:0 0 34px}.mk-price-scope-banner strong{display:block;font-size:.8rem}.mk-price-scope-banner span{display:block;color:#667085;font-size:.76rem;margin-top:.08rem}

/* Movement analytics */
.resumen-box{border:1px solid var(--mk-border)!important;border-left:1px solid var(--mk-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important;padding:1rem!important;position:relative;overflow:hidden;height:100%;transition:box-shadow .16s ease}.resumen-box:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#98a2b3}.resumen-ventas:before{background:var(--mk-success)}.resumen-compras:before{background:var(--mk-purple)}.resumen-salidas:before{background:var(--mk-warning)}.resumen-actividad:before{background:var(--mk-info)}.resumen-indicadores:before{background:#06b6d4}.resumen-danger:before{background:var(--mk-danger)}.resumen-box:hover{transform:none!important;box-shadow:var(--mk-shadow)!important}.resumen-box .titulo{font-size:.78rem!important;text-transform:uppercase;letter-spacing:.04em;color:#667085;margin-bottom:.55rem!important;font-weight:700}.progress{background:#f2f4f7}.detalle-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.detalle-bloque{background:#f8fafc!important;border:1px solid var(--mk-border)!important;border-radius:14px!important;padding:1rem}.detalle-titulo{font-size:.9rem;font-weight:700;color:#344054;border-bottom:1px solid var(--mk-border)!important;padding-bottom:.5rem;margin-bottom:.65rem}.detalle-item{font-size:.86rem;margin-bottom:.28rem}.detalle-item i{width:20px}.table-detalle th{font-size:.75rem}.table-detalle td{font-size:.85rem}.tipo-venta td,tr.tipo-venta td{background:#f6fef9!important}.tipo-compra td,tr.tipo-compra td{background:#faf8ff!important}.tipo-salida td,tr.tipo-salida td{background:#fffbf5!important}.tipo-venta:hover td,tr.tipo-venta:hover td{background:#ecfdf3!important}.tipo-compra:hover td,tr.tipo-compra:hover td{background:#f5f3ff!important}.tipo-salida:hover td,tr.tipo-salida:hover td{background:#fff7ed!important}.doc-click{color:var(--mk-primary)!important;text-decoration:none}.doc-click:hover{text-decoration:underline}.mk-movement-summary{background:#fff!important;border:1px solid var(--mk-border)!important}.mk-movement-summary h5{color:var(--mk-text)!important}.mk-movement-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:.8rem 0}.mk-movement-toolbar .form-control{max-width:380px}

/* Catalog */
.mk-catalog-page{max-width:100%}.mk-catalog-header{align-items:center;margin-bottom:.9rem}.mk-catalog-tabs{display:inline-flex;gap:.3rem;padding:.3rem;background:#eaecf0;border:1px solid #e4e7ec;border-radius:13px;margin-bottom:1.15rem}.mk-catalog-tab{display:inline-flex;align-items:center;gap:.45rem;min-height:38px;padding:.45rem .85rem;border-radius:9px;color:#667085;text-decoration:none;font-size:.84rem;font-weight:700;transition:.15s ease}.mk-catalog-tab:hover{color:var(--mk-text);background:rgba(255,255,255,.65)}.mk-catalog-tab.is-active{background:#fff;color:var(--mk-primary);box-shadow:0 1px 3px rgba(16,24,40,.08)}.mk-catalog-toolbar{display:flex;align-items:center;gap:.8rem;padding:.72rem .82rem;box-shadow:none;margin-bottom:1rem!important}.mk-catalog-search{display:flex;align-items:center;flex:1;min-width:0;background:#fff;border:1px solid #d0d5dd;border-radius:12px;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}.mk-catalog-search:focus-within{border-color:#a5b4fc;box-shadow:0 0 0 .22rem rgba(79,70,229,.10)}.mk-catalog-search>span{display:grid;place-items:center;width:42px;align-self:stretch;color:#667085;background:#f9fafb;border-right:1px solid #eaecf0}.mk-catalog-search .form-control{border:0!important;box-shadow:none!important;min-height:42px}.mk-catalog-list{background:transparent;padding:0}.mk-catalog-table{display:block;width:100%;margin:0!important}.mk-catalog-table thead{display:none}.mk-catalog-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;width:100%}.mk-catalog-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;min-height:70px;padding:.8rem .9rem;background:#fff;border:1px solid var(--mk-border);border-radius:15px;box-shadow:0 1px 2px rgba(16,24,40,.025);transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}.mk-catalog-table tbody tr:hover{transform:translateY(-1px);border-color:#c7d2fe;box-shadow:0 7px 20px rgba(16,24,40,.06)}.mk-catalog-table tbody td{border:0!important;padding:0!important;background:transparent!important}.mk-catalog-name-cell{display:flex;align-items:center;gap:.7rem;min-width:0;text-align:left!important}.mk-catalog-item-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;background:var(--mk-primary-soft);color:var(--mk-primary);font-size:.95rem}.mk-catalog-item-name{font-size:.9rem;font-weight:700;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-catalog-actions{display:flex;justify-content:flex-end;align-items:center;gap:.38rem;text-align:right!important}.mk-icon-btn{width:35px;height:35px;border-radius:10px;border:1px solid var(--mk-border);background:#fff;display:inline-grid;place-items:center;padding:0;transition:.14s ease}.mk-icon-btn.is-edit{color:var(--mk-primary);border-color:#c7d2fe;background:#f9faff}.mk-icon-btn.is-edit:hover{background:var(--mk-primary);border-color:var(--mk-primary);color:#fff}.mk-icon-btn.is-delete{color:var(--mk-danger);border-color:#fecdca;background:#fffafa}.mk-icon-btn.is-delete:hover{background:var(--mk-danger);border-color:var(--mk-danger);color:#fff}.mk-catalog-empty-row{grid-column:1/-1!important;display:block!important;text-align:center!important;padding:2.3rem 1rem!important}.mk-catalog-empty-row:hover{transform:none!important;border-color:var(--mk-border)!important;box-shadow:none!important}

/* Auth */
.mk-auth-page{min-height:100vh;background:radial-gradient(circle at 12% 10%,rgba(99,102,241,.18),transparent 35%),radial-gradient(circle at 88% 80%,rgba(14,165,233,.12),transparent 28%),#f7f8fc!important}.mk-auth-shell{width:min(100%,960px);display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid var(--mk-border);border-radius:24px;overflow:hidden;box-shadow:0 28px 70px rgba(16,24,40,.14)}.mk-auth-shell.is-compact{max-width:880px}.mk-auth-brand{background:linear-gradient(145deg,#0b1220,#312e81);color:#fff;padding:2.4rem;display:flex;flex-direction:column;justify-content:space-between;min-height:540px}.mk-auth-brand.is-compact{min-height:470px}.mk-auth-brand .brand-mark{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;font-size:1.4rem;background:linear-gradient(135deg,#818cf8,#4f46e5)}.mk-auth-brand .mk-eyebrow{color:#a5b4fc}.mk-auth-brand h1{font-size:2rem;font-weight:780;letter-spacing:-.045em}.mk-auth-brand p{color:#cbd5e1;max-width:420px}.mk-auth-points{display:grid;gap:.8rem}.mk-auth-point{display:flex;gap:.7rem;align-items:flex-start;color:#dbe4f0;font-size:.83rem}.mk-auth-point i{color:#a5b4fc;margin-top:.1rem}.mk-auth-form{padding:2.4rem;display:flex;flex-direction:column;justify-content:center}.mk-auth-form h2{font-weight:760;letter-spacing:-.035em}.mk-auth-form .form-control,.mk-auth-form .btn{min-height:48px}

/* Responsive */
@media(max-width:1199.98px){.mk-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Acciones generales de la barra */
.maxi-nav-actions{flex:0 0 auto;white-space:nowrap}
.maxi-connection{display:inline-flex;align-items:center;gap:.42rem;min-height:30px;padding:.28rem .48rem;border:1px solid rgba(148,163,184,.16);border-radius:999px;background:rgba(255,255,255,.035);color:#cbd5e1;font-size:.72rem;font-weight:650;white-space:nowrap}
.maxi-connection-dot{width:7px;height:7px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.10);flex:0 0 auto}
.maxi-connection.is-online .maxi-connection-dot{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}
.maxi-connection.is-online .maxi-connection-label{color:#d1fae5}
.maxi-connection.is-offline{border-color:rgba(248,113,113,.2)}
.maxi-connection.is-offline .maxi-connection-dot{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.maxi-connection.is-offline .maxi-connection-label{color:#fecaca}
.maxi-connection.is-recovering .maxi-connection-dot{background:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.12)}
.maxi-connection.is-recovering .maxi-connection-label{color:#bae6fd}
.maxi-connection.is-checking .maxi-connection-label{color:#cbd5e1}
@media(max-width:991.98px){.maxi-navbar-spacer{height:64px}.maxi-navbar .navbar-collapse{max-height:calc(100vh - 76px);overflow:auto;padding:.75rem 0}.maxi-navbar .nav-link{padding:.7rem .65rem!important}.maxi-navbar .navbar-nav{gap:.2rem}.maxi-user-chip{margin-top:.25rem}.maxi-navbar .dropdown-menu{box-shadow:none!important;border-color:#334155!important;background:#111827!important}.maxi-navbar .dropdown-item{color:#d0d5dd!important}.maxi-navbar .dropdown-item i{color:#98a2b3}.maxi-navbar .dropdown-item:hover,.maxi-navbar .dropdown-item:focus,.maxi-navbar .dropdown-item.active{background:rgba(255,255,255,.07)!important;color:#fff!important}.mk-live-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-auth-shell{grid-template-columns:1fr;max-width:520px}.mk-auth-brand{display:none}}
@media(max-width:767.98px){body{font-size:15px}.container{padding-left:14px;padding-right:14px}.mk-page{padding-top:.95rem}.mk-page-header{align-items:stretch;flex-direction:column;margin-bottom:1rem}.mk-dashboard-hero{padding:1.25rem;border-radius:20px}.mk-dashboard-hero p{font-size:.84rem}.mk-live-strip{gap:.55rem}.mk-live-item{padding:.68rem}.mk-metric-grid{grid-template-columns:1fr 1fr;gap:.7rem}.mk-metric-card{min-height:110px;padding:.85rem}.mk-tool-grid{grid-template-columns:1fr;gap:.7rem}.mk-tool-card{padding:.9rem}.form-control,.form-select{font-size:16px!important}.modal-dialog{margin:.55rem}.modal-footer{display:grid!important;grid-template-columns:1fr}.modal-footer .btn{width:100%}.detalle-grid{grid-template-columns:1fr!important;gap:.7rem!important}.table-responsive{border-radius:14px}.page-actions{display:grid!important;grid-template-columns:1fr;gap:.5rem}.page-actions .btn{width:100%}.desktop-only{display:none}.mobile-list{display:block!important}.table-wrap{display:none}.table-card{background:transparent!important;box-shadow:none!important;border:0!important}.mk-list-toolbar,.mk-movement-toolbar{align-items:stretch;flex-direction:column}.mk-list-toolbar .form-control,.mk-movement-toolbar .form-control{max-width:none}.mk-product-toolbar{justify-content:stretch}.mk-product-toolbar .btn{width:100%}.mk-catalog-header{align-items:stretch}.mk-catalog-header .btn{width:100%}.mk-catalog-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.mk-catalog-tab{justify-content:center}.mk-catalog-toolbar{align-items:stretch;flex-direction:column}.mk-catalog-toolbar .mk-chip{align-self:flex-start}.mk-catalog-table tbody{grid-template-columns:1fr}.mk-catalog-table tbody tr{min-height:62px}.mk-pagination{align-items:stretch;flex-direction:column;gap:.7rem!important;margin-top:1.15rem!important;margin-bottom:.85rem!important;padding:.78rem!important}.mk-pagination-info{text-align:center}.mk-pagination-controls{justify-content:center;flex-wrap:nowrap;gap:.38rem!important}.mk-page-btn .mk-label{display:none}.mk-pagination .mk-page-number.mk-page-number-secondary:nth-of-type(n+4){display:none}}
@media(max-width:480px){.mk-live-strip{grid-template-columns:1fr}.mk-metric-grid{grid-template-columns:1fr}.mk-auth-form{padding:1.45rem}.mk-page-title{font-size:1.45rem}}

/* Cardified Product + Movement tables on phones */
@media(max-width:767.98px){#tablaProductos thead,#tabla thead{display:none}#tablaProductos,#tabla,#tablaProductos tbody,#tabla tbody,#tablaProductos tr,#tabla tr{display:block;width:100%}#tablaProductos tbody,#tabla tbody{padding:.45rem}#tablaProductos tr,#tabla tbody tr{border:1px solid var(--mk-border);border-radius:14px;margin:.55rem 0;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}#tablaProductos td,#tabla tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;text-align:right!important;border:0!important;border-bottom:1px solid #f2f4f7!important;padding:.62rem .72rem!important;max-width:none!important;white-space:normal!important}#tablaProductos td:last-child,#tabla tbody td:last-child{border-bottom:0!important}#tablaProductos td::before,#tabla tbody td::before{content:attr(data-label);font-size:.68rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 auto}#tablaProductos td.descripcion{max-width:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important}#tablaProductos td[data-label="Acciones"],#tabla td[data-label="Acciones"]{justify-content:flex-end;flex-wrap:wrap}#tablaProductos td[data-label="Acciones"]::before,#tabla td[data-label="Acciones"]::before{margin-right:auto}#filaSinResultados{display:block!important}#filaSinResultados td{display:block!important;text-align:center!important}#filaSinResultados td::before{display:none}}

/* UI9 · navbar de acciones en menú colapsado */
@media(max-width:991.98px){.maxi-nav-actions{white-space:normal}}

/* FINAL12 UI1 · operaciones/documentos unificados */
.mk-operation-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:0 0 1rem}
.mk-page-loads .mk-operation-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-operation-metric{background:#fff;border:1px solid var(--mk-border);border-radius:15px;padding:.85rem .95rem;box-shadow:0 1px 2px rgba(16,24,40,.03)}.mk-operation-metric-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.045em;color:#98a2b3;font-weight:760}.mk-operation-metric-value{font-size:1.15rem;font-weight:780;letter-spacing:-.025em;color:var(--mk-text);margin-top:.22rem}.mk-operation-metric-note{font-size:.7rem;color:#98a2b3;margin-top:.12rem}
.mk-operation-table tr[data-open]{cursor:pointer}.mk-operation-table td{padding-top:.72rem!important;padding-bottom:.72rem!important}.mk-operation-number{font-weight:760;color:var(--mk-primary)}.mk-operation-user{display:flex;align-items:center;gap:.45rem}.mk-operation-user-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f2f4f7;color:#667085;flex:0 0 28px}.mk-operation-date{font-variant-numeric:tabular-nums}.mk-operation-total{font-weight:780;font-variant-numeric:tabular-nums;color:#101828}.mk-payment-badge,.mk-type-badge{display:inline-flex;align-items:center;gap:.3rem;border:1px solid var(--mk-border);border-radius:999px;padding:.27rem .5rem;background:#fff;font-size:.68rem;font-weight:720;white-space:nowrap}.mk-payment-badge{background:#f8fafc;color:#475467}.mk-type-badge.is-venta{background:var(--mk-success-soft);border-color:#abefc6;color:#067647}.mk-type-badge.is-compra{background:var(--mk-purple-soft);border-color:#ddd6fe;color:#6d28d9}.mk-type-badge.is-salida{background:var(--mk-warning-soft);border-color:#fedf89;color:#b54708}.mk-row-open{width:34px;height:34px;min-height:34px;padding:0!important;border-radius:10px!important}
.mk-operation-mobile-list{display:none}.mk-operation-card{background:#fff;border:1px solid var(--mk-border);border-radius:16px;padding:.9rem;box-shadow:0 1px 2px rgba(16,24,40,.035);margin-bottom:.7rem;cursor:pointer}.mk-operation-card-head{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start}.mk-operation-card-title{font-weight:780;color:#344054}.mk-operation-card-sub{font-size:.76rem;color:#667085;margin-top:.18rem}.mk-operation-card-total{font-size:1.02rem;font-weight:800;white-space:nowrap}.mk-operation-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.75rem;padding-top:.7rem;border-top:1px solid #f2f4f7}
.mk-operation-card-grid.is-single{grid-template-columns:1fr}.mk-operation-card-stat small{display:block;font-size:.62rem;text-transform:uppercase;letter-spacing:.045em;color:#98a2b3;font-weight:720}.mk-operation-card-stat span{display:block;font-size:.8rem;font-weight:650;color:#475467;margin-top:.08rem}

.mk-doc-modal .modal-content{border-radius:22px!important}.mk-doc-modal-header{padding:1rem 1.15rem}.mk-doc-heading{display:flex;align-items:flex-start;gap:.8rem;min-width:0}.mk-doc-type-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:var(--mk-primary-soft);color:var(--mk-primary);font-size:1.1rem;flex:0 0 44px}.mk-doc-compra .mk-doc-type-icon{background:var(--mk-purple-soft);color:var(--mk-purple)}.mk-doc-salida .mk-doc-type-icon{background:var(--mk-warning-soft);color:#b54708}.mk-doc-eyebrow{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#98a2b3}.mk-doc-title{font-size:1.2rem;font-weight:800;letter-spacing:-.03em;margin:.08rem 0 .3rem}.mk-doc-meta{display:flex;flex-wrap:wrap;gap:.35rem}.mk-doc-meta-chip{display:inline-flex;align-items:center;gap:.3rem;font-size:.7rem;color:#667085;background:#f8fafc;border:1px solid #eaecf0;border-radius:999px;padding:.25rem .45rem}.mk-doc-body{background:#f8fafc;padding:1rem 1.15rem 1.2rem}.mk-doc-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.mk-doc-summary-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--mk-border);border-radius:15px;padding:.8rem .85rem;min-width:0}.mk-doc-summary-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#98a2b3}.mk-doc-summary-card.is-success:before{background:var(--mk-success)}.mk-doc-summary-card.is-primary:before{background:var(--mk-primary)}.mk-doc-summary-card.is-purple:before{background:var(--mk-purple)}.mk-doc-summary-card.is-warning:before{background:var(--mk-warning)}.mk-doc-summary-card.is-danger:before{background:var(--mk-danger)}.mk-doc-summary-label{font-size:.66rem;text-transform:uppercase;letter-spacing:.045em;color:#98a2b3;font-weight:760}.mk-doc-summary-value{font-size:1.02rem;font-weight:800;color:#101828;margin-top:.16rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-doc-summary-note{font-size:.65rem;color:#98a2b3;margin-top:.08rem}.mk-doc-secondary{margin-top:.75rem}.mk-doc-disclosure{background:#fff;border:1px solid var(--mk-border);border-radius:14px;overflow:hidden}.mk-doc-disclosure summary{list-style:none;display:flex;align-items:center;gap:.45rem;padding:.72rem .85rem;font-size:.78rem;font-weight:730;color:#475467;cursor:pointer}.mk-doc-disclosure summary::-webkit-details-marker{display:none}.mk-doc-disclosure[open] summary{border-bottom:1px solid #eef2f6}.mk-doc-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:.25rem .85rem .65rem}.mk-doc-info-row{display:flex;justify-content:space-between;gap:.6rem;padding:.45rem .55rem;border-bottom:1px solid #f2f4f7;font-size:.75rem;color:#667085}.mk-doc-info-row strong,.mk-doc-info-row>span:last-child{color:#344054;text-align:right}.mk-doc-reason-strip{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;background:#fff;border:1px solid var(--mk-border);border-radius:14px;padding:.7rem .85rem}.mk-doc-reason-strip>span{font-size:.72rem;color:#667085;font-weight:700}.mk-doc-reason-strip>div{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}.mk-doc-reason{display:inline-flex;align-items:center;border-radius:999px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;padding:.2rem .42rem;font-size:.66rem;font-weight:680}.mk-doc-items-head{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin:1rem 0 .5rem}.mk-doc-section-title{font-size:.88rem;font-weight:800;margin:0;color:#344054}.mk-doc-section-subtitle{font-size:.7rem;color:#98a2b3;margin-top:.1rem}.mk-doc-table-wrap{border-radius:14px;box-shadow:none!important}.mk-doc-table-wrap .table th{font-size:.67rem}.mk-doc-table-wrap .table td{font-size:.79rem;padding:.62rem .65rem}.mk-doc-product-name{font-weight:710;color:#344054;line-height:1.25}.mk-doc-product-meta{font-size:.66rem;color:#98a2b3;margin-top:.16rem;line-height:1.25}.mk-doc-items-mobile{display:none}.mk-doc-item-card{background:#fff;border:1px solid var(--mk-border);border-radius:14px;padding:.75rem;margin-bottom:.6rem}.mk-doc-item-top{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start}.mk-doc-item-top>strong{font-size:.88rem;white-space:nowrap}.mk-doc-item-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin-top:.65rem;padding-top:.6rem;border-top:1px solid #f2f4f7}.mk-doc-item-stats span{font-size:.73rem;color:#344054;font-weight:680}.mk-doc-item-stats small{display:block;font-size:.59rem;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;font-weight:700;margin-bottom:.1rem}.mk-doc-item-reason{display:flex;align-items:center;gap:.35rem;color:#9a3412;background:#fff7ed;border-radius:9px;padding:.42rem .5rem;font-size:.68rem;margin-top:.55rem}.mk-doc-footer{padding:.75rem 1rem}.mk-doc-footer .btn{min-width:140px}

/* Historial de producto: mismo lenguaje documental */
.mk-movement-list-card{border:1px solid var(--mk-border);border-radius:var(--mk-radius);background:#fff;box-shadow:var(--mk-shadow);overflow:hidden}.mk-movement-list-card .table-responsive{border:0;border-radius:0;box-shadow:none!important}.mk-movement-row .mk-type-badge{min-width:70px;justify-content:center}.mk-movement-user{font-size:.78rem;color:#667085}.mk-movement-doc{font-weight:800}.mk-movement-mobile-list{display:none}.mk-movement-mobile-card{background:#fff;border:1px solid var(--mk-border);border-radius:15px;padding:.8rem .85rem;margin-bottom:.65rem;box-shadow:0 1px 2px rgba(16,24,40,.03);cursor:pointer}.mk-movement-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem}.mk-movement-mobile-doc{font-weight:800;color:var(--mk-primary);font-size:.88rem}.mk-movement-mobile-date{font-size:.68rem;color:#98a2b3;margin-top:.1rem}.mk-movement-mobile-amount{font-weight:800;font-size:.95rem;white-space:nowrap}.mk-movement-mobile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:.65rem;padding-top:.6rem;border-top:1px solid #f2f4f7}.mk-movement-mobile-stat small{display:block;font-size:.59rem;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;font-weight:720}.mk-movement-mobile-stat span{display:block;font-size:.74rem;color:#475467;font-weight:650;margin-top:.08rem}.mk-movement-mobile-reason{margin-top:.55rem;font-size:.68rem;color:#9a3412;background:#fff7ed;border-radius:9px;padding:.4rem .48rem}

@media(max-width:991.98px){.mk-operation-metrics,.mk-doc-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-doc-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.mk-operation-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.mk-page-loads .mk-operation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-page-loads .mk-operation-metric:last-child{grid-column:1 / -1}.mk-operation-metric{padding:.72rem}.mk-operation-metric-value{font-size:1rem}.mk-operation-desktop{display:none!important}.mk-operation-mobile-list{display:block}.mk-doc-modal .modal-dialog{margin:0}.mk-doc-modal .modal-content{border-radius:0!important;border:0!important;min-height:100vh}.mk-doc-modal-header{padding:.85rem}.mk-doc-type-icon{width:38px;height:38px;flex-basis:38px;border-radius:11px}.mk-doc-title{font-size:1.08rem}.mk-doc-meta{gap:.28rem}.mk-doc-meta-chip{font-size:.64rem}.mk-doc-body{padding:.75rem}.mk-doc-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.mk-doc-summary-card{padding:.68rem}.mk-doc-summary-value{font-size:.9rem}.mk-doc-info-grid{grid-template-columns:1fr;padding:.2rem .65rem .55rem}.mk-doc-reason-strip{flex-direction:column}.mk-doc-reason-strip>div{justify-content:flex-start}.mk-doc-items-desktop{display:none}.mk-doc-items-mobile{display:block}.mk-doc-item-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-doc-footer{display:grid!important;grid-template-columns:1fr;padding:.7rem}.mk-doc-footer .btn{width:100%;min-width:0}.mk-movement-list-card{background:transparent;border:0;box-shadow:none;overflow:visible}.mk-movement-list-card .table-responsive{display:none}.mk-movement-mobile-list{display:block}.mk-movement-toolbar{margin-bottom:.6rem}.mk-movement-toolbar .btn{width:100%}}
@media(max-width:420px){.mk-operation-metrics,.mk-doc-summary-grid{grid-template-columns:1fr 1fr}.mk-operation-card-grid,.mk-movement-mobile-grid{grid-template-columns:1fr 1fr}.mk-doc-item-stats{grid-template-columns:1fr 1fr}}
.mk-doc-items-actions{display:flex;align-items:center;gap:.4rem}.mk-doc-group-toggle{font-size:.72rem;min-height:32px}.mk-doc-group-row td{background:#f8faff!important;color:#4f46e5!important;font-weight:760!important;text-transform:uppercase;font-size:.67rem!important;letter-spacing:.045em}.mk-doc-group-row i{margin-right:.35rem}.mk-doc-group-label{display:flex;align-items:center;gap:.35rem;color:#4f46e5;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em;margin:.8rem 0 .35rem}.mk-doc-category-summary{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:.5rem .85rem .75rem}.mk-doc-category-summary>div{background:#f8fafc;border:1px solid #eef2f6;border-radius:10px;padding:.55rem .65rem}.mk-doc-category-summary span{display:block;font-size:.62rem;text-transform:uppercase;letter-spacing:.045em;color:#98a2b3;font-weight:730}.mk-doc-category-summary strong{display:block;font-size:.72rem;color:#475467;margin-top:.14rem;line-height:1.35}
@media(max-width:767.98px){.mk-doc-items-head{align-items:flex-end}.mk-doc-items-actions{flex:0 0 auto}.mk-doc-group-toggle{font-size:0;width:34px;padding:0}.mk-doc-group-toggle i{font-size:.9rem}.mk-doc-category-summary{grid-template-columns:1fr;padding:.45rem .65rem .65rem}}

/* ===== FINAL12 UI2: estados vacíos, exportación y paginación coherente ===== */
.mk-empty-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  min-height:128px;
  padding:1.5rem;
  text-align:center;
  color:var(--mk-muted,#64748b);
}
.mk-empty-state i{font-size:1.55rem;color:#94a3b8}
.mk-empty-state strong{color:var(--mk-text,#0f172a);font-size:.98rem}
.mk-empty-state span{max-width:520px;font-size:.88rem}
.mk-pagination.is-info-only{justify-content:flex-start}
.mk-pagination.is-info-only .mk-pagination-controls{display:none!important}
.mk-export-actions{display:flex;justify-content:center;align-items:center;gap:.65rem;flex-wrap:wrap;width:100%;padding:.4rem 0}
.mk-export-actions .btn{min-height:40px;border-radius:10px;font-weight:700}
@media (max-width:575.98px){
  .mk-export-actions{display:grid;grid-template-columns:1fr;width:100%}
  .mk-export-actions .btn{width:100%}
}

/* ===== FIX7A2: estabilidad visual, responsive y sincronización persistente ===== */

/* Sincronización: el grupo de acciones crece hacia la izquierda y no cae de línea en escritorio. */
.mk-sync-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:1rem 1.25rem}
.mk-sync-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:nowrap;white-space:nowrap}
.mk-sync-actions .btn{flex:0 0 auto}
.mk-sync-table{table-layout:fixed;width:100%}
.mk-sync-table th:nth-child(1){width:28%}.mk-sync-table th:nth-child(2){width:22%}.mk-sync-table th:nth-child(3){width:25%}.mk-sync-table th:nth-child(4){width:25%}

/* Productos: anchos deterministas en escritorio. Ordenar ya no redistribuye toda la tabla. */
@media(min-width:768px){
  .mk-products-table{table-layout:fixed;width:100%;min-width:1020px}
  .mk-products-table .mk-col-code{width:118px}
  .mk-products-table .mk-col-stock{width:68px}
  .mk-products-table .mk-col-brand{width:150px}
  .mk-products-table .mk-col-category{width:150px}
  .mk-products-table .mk-col-price{width:110px}
  .mk-products-table .mk-col-cost{width:110px}
  .mk-products-table .mk-col-actions{width:168px}
  .mk-products-table .mk-col-description,.mk-products-table .mk-col-brand,.mk-products-table .mk-col-category{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mk-products-table .mk-col-code,.mk-products-table .mk-col-price,.mk-products-table .mk-col-cost{white-space:nowrap}
  .mk-products-table .mk-col-actions{white-space:nowrap}
}

/* Productos móvil: ninguna acción por fila se muestra hasta tocar la tarjeta. */
@media(max-width:767.98px){
  #tablaProductos .mk-product-row.mk-has-actions{cursor:pointer;outline:none}
  #tablaProductos .mk-product-row.mk-has-actions:focus-visible{box-shadow:0 0 0 3px rgba(79,70,229,.14)}
  #tablaProductos .mk-product-row.mk-has-actions::after{content:"Acciones  ▾";display:block;padding:.48rem .72rem .58rem;text-align:right;color:#98a2b3;font-size:.67rem;font-weight:760;text-transform:uppercase;letter-spacing:.045em;background:#fbfcfe}
  #tablaProductos .mk-product-row.mk-has-actions.is-actions-open::after{content:"Ocultar  ▴";color:var(--mk-primary);background:#f8faff}
  #tablaProductos .mk-mobile-product-actions{display:none!important}
  #tablaProductos .mk-product-row.is-actions-open .mk-mobile-product-actions{display:flex!important;justify-content:flex-end!important;gap:.42rem;flex-wrap:wrap;background:#f8faff!important;padding:.72rem!important;border-top:1px solid #eef2ff!important}
  #tablaProductos .mk-mobile-product-actions::before{display:none!important}
  #tablaProductos .mk-mobile-product-actions .btn{min-width:38px;min-height:36px}
}

/* Gestión de precios: aire en escritorio, una sola columna en tablet/móvil y acciones accesibles. */
.swal2-popup.mk-price-modal{width:min(920px,calc(100vw - 48px))!important;max-height:calc(100vh - 28px);overflow:hidden;margin-left:auto!important;margin-right:auto!important}
.mk-price-modal .swal2-html-container{margin:.25rem 0 0!important;padding:0 .25rem .25rem!important;max-height:calc(100vh - 105px);overflow:auto;text-align:left!important}
.mk-price-modal-grid{font-size:14px;max-width:100%;margin:0!important;text-align:left}
.mk-price-column-left{min-width:0}
.mk-price-column-right{min-width:0}
.mk-price-radio-group{display:flex;flex-wrap:wrap;gap:.55rem .9rem;align-items:center}
.mk-price-radio-group label{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}
.mk-price-inline-field{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.mk-price-inline-field .form-control{flex:0 1 130px;max-width:160px;min-width:105px}
.mk-price-modal-actions{position:sticky;bottom:-1px;z-index:4;display:flex;justify-content:flex-end;gap:.55rem;padding:.75rem 0 .15rem;background:linear-gradient(to bottom,rgba(255,255,255,.88),#fff 32%)}
@media(min-width:992px){
  .mk-price-column-left{border-right:1px solid var(--mk-border);padding-right:1.5rem!important}
  .mk-price-column-right{padding-left:1.5rem!important}
}
@media(max-width:991.98px){
  .swal2-popup.mk-price-modal{width:min(720px,calc(100vw - 18px))!important}
  .mk-price-column-left{padding-bottom:.5rem;border-bottom:1px solid var(--mk-border)}
  .mk-price-column-right{padding-top:.5rem}
}
@media(max-width:575.98px){
  .swal2-popup.mk-price-modal{width:calc(100vw - 10px)!important;max-height:calc(100vh - 8px);padding:.72rem!important}
  .mk-price-modal .swal2-title{font-size:1.18rem!important;margin-bottom:.55rem!important}
  .mk-price-modal .swal2-html-container{max-height:calc(100vh - 82px);padding:0 .08rem .2rem!important}
  .mk-price-radio-group{display:grid;grid-template-columns:1fr;gap:.42rem}
  .mk-price-inline-field{display:grid;grid-template-columns:1fr;width:100%;align-items:stretch}
  .mk-price-inline-field .form-control{max-width:none;width:100%}
  .mk-price-modal-actions{display:grid;grid-template-columns:1fr;gap:.45rem;padding-top:.8rem}
  .mk-price-modal-actions .btn{width:100%}
  .mk-price-scope-banner{align-items:flex-start}
}

/* Ventas/Cargas: geometría estable en escritorio. */
@media(min-width:768px){
  .mk-operation-table{table-layout:fixed;width:100%;min-width:820px}
  .mk-page-sales .mk-operation-table th:nth-child(1){width:90px}.mk-page-sales .mk-operation-table th:nth-child(2){width:105px}.mk-page-sales .mk-operation-table th:nth-child(3){width:80px}.mk-page-sales .mk-operation-table th:nth-child(4){width:190px}.mk-page-sales .mk-operation-table th:nth-child(5){width:150px}.mk-page-sales .mk-operation-table th:nth-child(6){width:135px}.mk-page-sales .mk-operation-table th:nth-child(7){width:64px}
  .mk-page-loads .mk-operation-table th:nth-child(1){width:105px}.mk-page-loads .mk-operation-table th:nth-child(2){width:120px}.mk-page-loads .mk-operation-table th:nth-child(3){width:205px}.mk-page-loads .mk-operation-table th:nth-child(4){width:90px}.mk-page-loads .mk-operation-table th:nth-child(5){width:auto}.mk-page-loads .mk-operation-table th:nth-child(6){width:64px}
  .mk-operation-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Importes largos: en teléfonos muy angostos las métricas dejan de comprimirse. */
@media(max-width:420px){
  .mk-operation-metrics{grid-template-columns:1fr!important}
  .mk-page-loads .mk-operation-metrics{grid-template-columns:1fr!important}
  .mk-page-loads .mk-operation-metric:last-child{grid-column:auto!important}
}

/* Sincronización móvil: tarjetas legibles, sin scroll horizontal. */
@media(max-width:767.98px){
  .mk-sync-card-head{grid-template-columns:1fr;gap:.8rem}
  .mk-sync-actions{justify-content:stretch;flex-wrap:wrap;width:100%}
  .mk-sync-actions .btn{flex:1 1 145px}
}
@media(max-width:575.98px){
  .mk-sync-table-wrap{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .mk-sync-table,.mk-sync-table tbody,.mk-sync-table tr,.mk-sync-table td{display:block;width:100%}
  .mk-sync-table thead{display:none}
  .mk-sync-table tbody{padding:0}
  .mk-sync-table tr{margin:0 0 .65rem;border:1px solid var(--mk-border);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}
  .mk-sync-table td{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:1rem;padding:.58rem .72rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important}
  .mk-sync-table td:last-child{border-bottom:0!important}
  .mk-sync-table td::before{content:attr(data-label);font-size:.65rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left}
  .mk-sync-table td code{font-size:.78rem}
}
@media(min-width:768px){.mk-products-table .mk-col-description,.mk-products-table .mk-col-brand,.mk-products-table .mk-col-category{max-width:none!important}}
@media(max-width:991.98px){.mk-sync-card-head{grid-template-columns:1fr;gap:.8rem}.mk-sync-actions{justify-content:flex-start;flex-wrap:wrap;width:100%}}

/* ===== FIX7A3: navegación agrupada + acciones contextuales ===== */
.maxi-navbar .maxi-nav-menu{min-width:230px}
.maxi-navbar .maxi-nav-menu .dropdown-divider{margin:.35rem .3rem;border-color:#eef2f6}
.maxi-navbar .maxi-nav-menu .dropdown-item>span:not(.badge){min-width:0;flex:1 1 auto}
.maxi-navbar .maxi-nav-menu .dropdown-item small{margin-left:auto;color:#98a2b3;font-size:.64rem;font-weight:650;white-space:nowrap}
.maxi-navbar .maxi-nav-menu .dropdown-item.disabled{opacity:.52;pointer-events:none}
.maxi-navbar .btn-outline-light:hover,.maxi-navbar .btn-outline-light:focus{background:#fff!important;border-color:#fff!important;color:#111827!important}
.maxi-navbar .btn-outline-light:hover i,.maxi-navbar .btn-outline-light:hover span,.maxi-navbar .btn-outline-light:focus i,.maxi-navbar .btn-outline-light:focus span{color:inherit!important}

/* La selección de precios vive junto al listado y sólo aparece si existe selección. */
.mk-price-selection-bar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.4rem .5rem .4rem .7rem;border:1px solid #c7d2fe;border-radius:12px;background:#f8faff;box-shadow:0 1px 2px rgba(79,70,229,.04);min-height:42px;transition:border-color .14s ease,background-color .14s ease,opacity .14s ease}
.mk-price-selection-bar[hidden]{display:none!important}
.mk-price-selection-bar.is-empty{border-color:#e4e7ec;background:#fcfcfd}
.mk-price-selection-bar.is-empty #mkGestionarSeleccion,.mk-price-selection-bar.is-empty #mkSeleccionLimpiar{opacity:.55;pointer-events:none}
.mk-price-selection-bar.is-empty .mk-price-selection-count{color:#98a2b3}
.mk-price-selection-bar .btn{min-height:32px}
.mk-price-selection-clear{text-decoration:none!important}
.mk-price-selection-count{display:inline-flex;align-items:center;gap:.38rem;color:#4338ca;font-size:.78rem;font-weight:650;white-space:nowrap}
.mk-price-selection-count strong{font-variant-numeric:tabular-nums}
.mk-price-selection-clear{min-height:32px!important;padding:.25rem .45rem!important;color:#667085!important;text-decoration:none!important}
.mk-price-selection-clear:hover{color:#344054!important;background:#eef2f6!important}

/* Acción contextual flotante. Se reserva espacio inferior para que no tape el último contenido. */
body.mk-has-fab .mk-page{padding-bottom:6rem}
.mk-context-fab{text-decoration:none;position:fixed;right:max(20px,calc((100vw - 1320px)/2 - 68px));bottom:24px;z-index:1025;width:54px;height:54px;padding:0;border:0;border-radius:50%;background:var(--mk-primary);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 12px 28px rgba(79,70,229,.30);font-weight:760;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}
.mk-context-fab:hover,.mk-context-fab:focus-visible{background:var(--mk-primary-strong);color:#fff;transform:translateY(-1px);box-shadow:0 16px 34px rgba(79,70,229,.35)}
.mk-context-fab:focus-visible{outline:3px solid rgba(165,180,252,.75);outline-offset:3px}
.mk-context-fab i{font-size:1.22rem;line-height:1}
.mk-context-fab-label{position:absolute;right:64px;top:50%;transform:translate(6px,-50%);padding:.42rem .62rem;border-radius:9px;background:#111827;color:#fff;box-shadow:0 8px 20px rgba(16,24,40,.18);font-size:.75rem;font-weight:700;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s ease}
.mk-context-fab:hover .mk-context-fab-label,.mk-context-fab:focus-visible .mk-context-fab-label{opacity:1;visibility:visible;transform:translate(0,-50%)}
.mk-context-fab.mk-fab-tooltip-suppressed .mk-context-fab-label{opacity:0!important;visibility:hidden!important;transform:translate(6px,-50%)!important}

@media(max-width:1455px){
  .mk-context-fab{right:20px}
}
@media(max-width:991.98px){
  .maxi-navbar .maxi-nav-menu{min-width:0;width:100%;margin:.2rem 0 .35rem!important;padding:.3rem .45rem!important}
  .maxi-navbar .maxi-nav-menu .dropdown-divider{border-color:#334155}
  .maxi-navbar .maxi-nav-menu .dropdown-item small{color:#64748b}
}
@media(max-width:767.98px){
  .mk-product-toolbar{gap:.55rem;flex-wrap:wrap}
  .mk-price-selection-bar{order:2;flex:1 1 420px;display:grid;grid-template-columns:1fr auto auto;align-items:center;padding:.55rem .6rem}
  .mk-price-selection-count{grid-column:auto}
  .mk-price-selection-bar #mkGestionarSeleccion{width:auto}
  .mk-product-toolbar #btnPDFProductos{order:1;width:100%;margin-left:0!important}
  .mk-context-fab{right:16px;bottom:16px;width:54px;min-width:54px;padding:0;border-radius:50%}
  .mk-context-fab-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}


/* FIX7A4: fuente de datos visible en consultas históricas. */
.mk-data-source-badge{display:inline-flex;align-items:center;gap:.4rem;align-self:flex-start;padding:.38rem .58rem;border:1px solid var(--mk-border);border-radius:999px;background:#fff;color:#667085;font-size:.68rem;font-weight:780;letter-spacing:.035em;white-space:nowrap;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.mk-data-source-badge.is-replica{background:#f8faff;border-color:#dfe3ff;color:#4338ca}
.mk-data-source-badge.is-live{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}
.mk-data-source-badge.is-warning{background:#fff7ed;border-color:#fed7aa;color:#9a3412}

/* FIX7A4: Gestión de precios es una vista separada del catálogo normal. */
.mk-price-catalog-mode .mk-products-table .mk-col-actions{width:78px}
.mk-price-catalog-mode .mk-product-toolbar{align-items:center}
.mk-price-catalog-mode .mk-price-selection-bar{flex:1 1 auto}

@media(max-width:767.98px){
  .mk-price-catalog-mode #tablaProductos .mk-product-row.mk-has-actions::after{display:none!important}
  .mk-price-catalog-mode #tablaProductos .mk-mobile-product-actions{display:flex!important;justify-content:flex-end!important;gap:.42rem;background:#f8faff!important;padding:.62rem .72rem!important;border-top:1px solid #eef2ff!important}
  .mk-price-catalog-mode #tablaProductos .mk-product-row{cursor:default}
}


/* FIX7A4 · responsable compacto en listado de cargas. */
.mk-page-loads .mk-operation-user-copy{display:flex;min-width:0;flex-direction:column;line-height:1.1}
.mk-page-loads .mk-operation-user-copy>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-page-loads .mk-operation-user-copy small{margin-top:.2rem;color:#98a2b3;font-size:.64rem;font-weight:650}

/* FIX7A4 · controles explícitos de selección masiva en Gestión de precios */
.mk-price-catalog-mode .mk-product-toolbar{display:flex;flex-wrap:wrap;gap:.55rem}
.mk-price-catalog-mode #mkSeleccionarVisibles{white-space:nowrap}
@media(max-width:767.98px){.mk-price-catalog-mode #mkSeleccionarVisibles{width:100%}.mk-price-catalog-mode .mk-price-selection-bar{width:100%}}


/* FIX7A6 — Gestión de precios: tabla adaptable sin scroll horizontal en tablet/escritorio. */
@media (min-width:768px){
  .mk-price-catalog-mode .table-responsive{overflow-x:hidden}
  .mk-price-catalog-mode .mk-products-table{min-width:0!important;width:100%!important;table-layout:fixed}
  .mk-price-catalog-mode .mk-products-table th,.mk-price-catalog-mode .mk-products-table td{padding-left:.42rem!important;padding-right:.42rem!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-code{width:12%!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-stock{width:6%!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-description{width:27%!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-brand{width:13%!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-category{width:13%!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-price{width:10%!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-cost{width:10%!important}
  .mk-price-catalog-mode .mk-products-table .mk-col-actions{width:9%!important}
}

/* FIX7A6 — Cargas: distribución pareja y un dato económico adicional sin dejar un vacío central. */
@media (min-width:768px){
  .mk-page-loads .mk-operation-table{min-width:820px}
  .mk-page-loads .mk-operation-table th:nth-child(1){width:9%!important}
  .mk-page-loads .mk-operation-table th:nth-child(2){width:11%!important}
  .mk-page-loads .mk-operation-table th:nth-child(3){width:17%!important}
  .mk-page-loads .mk-operation-table th:nth-child(4){width:8%!important}
  .mk-page-loads .mk-operation-table th:nth-child(5){width:22%!important}
  .mk-page-loads .mk-operation-table th:nth-child(6){width:26%!important}
  .mk-page-loads .mk-operation-table th:nth-child(7){width:7%!important}
}
.mk-load-payment{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1;white-space:nowrap}
.mk-load-payment>strong{font-weight:760;color:#344054}
.mk-load-payment>small{margin-top:.18rem;font-size:.62rem;color:#98a2b3;font-weight:650}

/* FIX7A6 — Detalle de carga: mismo orden lógico que el PDF. */
.mk-doc-compra .mk-doc-table-wrap table{table-layout:fixed;width:100%}
.mk-doc-compra .mk-doc-table-wrap th,.mk-doc-compra .mk-doc-table-wrap td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* FIX7A9: el código ocupa sólo lo necesario y la descripción puede usar dos líneas. */
.mk-doc-compra .mk-doc-load-code{width:10%;font-variant-numeric:tabular-nums;font-size:.72rem}
.mk-doc-compra .mk-doc-load-qty{width:5%;font-weight:720}
.mk-doc-compra .mk-doc-load-product{width:29%;font-weight:710;color:#344054;white-space:normal!important;overflow:visible;text-overflow:clip;line-height:1.22;overflow-wrap:anywhere}
.mk-doc-compra .mk-doc-load-brand{width:10%}
.mk-doc-compra .mk-doc-load-category{width:10%}
.mk-doc-compra .mk-doc-load-stock{width:9%}
.mk-doc-compra .mk-doc-load-money{width:9%}
.mk-doc-compra .mk-doc-load-total{width:9%}

/* ===== FIX7A7: Reportes de ventas y ganancia ===== */
.mk-report-filter{background:#fff;border:1px solid var(--mk-border);border-radius:18px;padding:1rem;box-shadow:var(--mk-shadow)}
.mk-report-period-label{min-height:42px;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;color:#667085;font-size:.75rem}.mk-report-period-label strong{color:#344054;font-size:.88rem;margin-top:.08rem}
.mk-report-presets{display:flex;gap:.45rem;flex-wrap:wrap}.mk-report-preset{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:.35rem .65rem;border-radius:999px;border:1px solid #e4e7ec;background:#fff;color:#475467;text-decoration:none;font-size:.74rem;font-weight:700}.mk-report-preset:hover{border-color:#c7d2fe;color:var(--mk-primary);background:#f8faff}.mk-report-preset.active{border-color:#c7d2fe;background:var(--mk-primary-soft);color:var(--mk-primary)}
.mk-report-notice{display:flex;align-items:flex-start;gap:.7rem;border:1px solid #fedf89;background:#fffaeb;color:#7a2e0e;border-radius:15px;padding:.75rem .9rem;font-size:.78rem;line-height:1.45}.mk-report-notice>i{font-size:1rem;margin-top:.05rem}.mk-report-notice strong{color:#93370d}
.mk-report-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem}.mk-report-kpi{position:relative;overflow:hidden;background:#fff;border:1px solid var(--mk-border);border-radius:16px;padding:.9rem;min-width:0;box-shadow:0 1px 2px rgba(16,24,40,.03)}.mk-report-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#d0d5dd}.mk-report-kpi.is-sales:before{background:var(--mk-success)}.mk-report-kpi.is-cost:before{background:var(--mk-warning)}.mk-report-kpi.is-profit:before{background:var(--mk-primary)}.mk-report-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:#667085;font-size:.69rem;font-weight:760;text-transform:uppercase;letter-spacing:.035em}.mk-report-kpi-head i{font-size:.95rem;color:#98a2b3}.mk-report-kpi>strong{display:block;margin-top:.45rem;color:#101828;font-size:1.08rem;line-height:1.15;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-report-kpi-note{margin-top:.35rem;color:#98a2b3;font-size:.65rem;line-height:1.3}.mk-report-delta{display:flex;align-items:center;gap:.25rem;margin-top:.35rem;font-size:.64rem;font-weight:700}.mk-report-delta.is-up{color:#027a48}.mk-report-delta.is-down{color:#b42318}.mk-report-delta.is-neutral{color:#667085}
.mk-report-month-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:linear-gradient(110deg,#111827,#312e81);border-radius:18px;color:#fff;overflow:hidden;box-shadow:0 12px 30px rgba(49,46,129,.14)}.mk-report-month-strip>div{padding:1rem 1.1rem;border-right:1px solid rgba(255,255,255,.1);min-width:0}.mk-report-month-strip>div:last-child{border-right:0}.mk-report-month-strip span{display:block;color:#c7d2fe;font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;font-weight:750}.mk-report-month-strip strong{display:block;font-size:1.23rem;margin-top:.28rem;letter-spacing:-.025em}.mk-report-month-strip small{display:block;color:#aeb8ca;font-size:.66rem;margin-top:.13rem}
.mk-report-chart-wrap{position:relative;height:300px;min-width:0}.mk-report-chart-wrap.is-small{height:300px}.mk-report-chart-wrap canvas{max-width:100%}
.mk-payment-summary{display:grid;grid-template-columns:1fr;gap:.5rem}.mk-payment-summary>div,.mk-payment-methods>div{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.62rem .7rem;border:1px solid #eef2f6;border-radius:11px;background:#fafbfc}.mk-payment-summary span,.mk-payment-methods span{font-size:.72rem;color:#667085;font-weight:650}.mk-payment-summary strong,.mk-payment-methods strong{font-size:.8rem;color:#344054;white-space:nowrap}.mk-payment-methods{display:grid;gap:.4rem}.mk-payment-methods small{display:block;color:#98a2b3;font-size:.61rem;font-weight:600;margin-top:.08rem}
.mk-report-table-wrap{border:0;border-radius:0;box-shadow:none!important}.mk-report-product{min-width:0}.mk-report-product strong{display:block;font-size:.8rem;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-report-product small{display:block;font-size:.64rem;color:#98a2b3;margin-top:.08rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-warning-count,.mk-ok-count{display:inline-flex;align-items:center;gap:.38rem;border-radius:999px;padding:.38rem .65rem;font-size:.7rem;font-weight:750;white-space:nowrap}.mk-warning-count{background:var(--mk-warning-soft);color:#b54708;border:1px solid #fedf89}.mk-ok-count{background:var(--mk-success-soft);color:#027a48;border:1px solid #abefc6}.mk-report-warning-copy{padding:.7rem 1.05rem;background:#fffcf5;border-bottom:1px solid #fef0c7;color:#7a2e0e;font-size:.73rem}.mk-report-footnote{color:#98a2b3;font-size:.68rem;line-height:1.45;padding:.25rem .15rem}
@media(max-width:1199.98px){.mk-report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767.98px){.mk-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.mk-report-kpi{padding:.75rem}.mk-report-kpi>strong{font-size:.98rem}.mk-report-period-label{align-items:flex-start}.mk-report-month-strip{grid-template-columns:1fr}.mk-report-month-strip>div{border-right:0;border-bottom:1px solid rgba(255,255,255,.1)}.mk-report-month-strip>div:last-child{border-bottom:0}.mk-report-chart-wrap,.mk-report-chart-wrap.is-small{height:260px}.mk-page-reports .mk-panel-header{padding:.85rem}.mk-page-reports .mk-panel-body{padding:.8rem}.mk-page-reports .table-responsive{overflow-x:visible}.mk-page-reports .table{min-width:0}}
@media(max-width:420px){.mk-report-kpis{grid-template-columns:1fr}.mk-report-kpi>strong{font-size:1.08rem}.mk-report-presets{display:grid;grid-template-columns:1fr 1fr}.mk-report-preset{width:100%}}
@media print{.mk-page-reports .maxi-navbar,.mk-page-reports .maxi-navbar-spacer,.mk-page-reports .mk-report-filter{display:none!important}.mk-page-reports .mk-page{padding-top:0}.mk-page-reports .mk-panel,.mk-report-kpi,.mk-report-month-strip{box-shadow:none!important;break-inside:avoid}.mk-report-chart-wrap{height:260px}}
.mk-dashboard-data-note{display:flex;align-items:flex-start;gap:.45rem;color:#667085;font-size:.68rem;line-height:1.4;padding:.15rem .2rem}.mk-dashboard-data-note i{color:#98a2b3;margin-top:.05rem}

/* ===== FIX7A10: tablero operativo + drill-down ===== */
.mk-report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.mk-dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}
.mk-dashboard-kpi-link{display:block;min-width:0;color:inherit;text-decoration:none}
.mk-dashboard-kpi-link .mk-metric-card{height:100%;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.mk-dashboard-kpi-link:hover .mk-metric-card{transform:translateY(-2px);border-color:#c7d2fe;box-shadow:var(--mk-shadow-hover)}
.mk-dashboard-delta{display:flex;align-items:center;gap:.28rem;margin-top:.38rem;font-size:.66rem;font-weight:700;line-height:1.25}
.mk-dashboard-delta.is-up,.mk-dashboard-month .is-up{color:#027a48}.mk-dashboard-delta.is-down,.mk-dashboard-month .is-down{color:#b42318}.mk-dashboard-delta.is-neutral,.mk-dashboard-month .is-neutral{color:#667085}
.mk-dashboard-month{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border:1px solid var(--mk-border);border-radius:17px;overflow:hidden;box-shadow:var(--mk-shadow)}
.mk-dashboard-month-cell{display:flex;flex-direction:column;gap:.2rem;padding:.9rem 1rem;min-width:0;text-decoration:none;color:inherit;border-right:1px solid #eef2f6;transition:background .14s ease}
.mk-dashboard-month-cell:last-child{border-right:0}.mk-dashboard-month-cell:hover{background:#f8faff;color:inherit}
.mk-dashboard-month-cell>span{font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;font-weight:750;color:#667085}
.mk-dashboard-month-cell>strong{font-size:1rem;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-dashboard-month-cell>small{font-size:.62rem;color:#98a2b3;line-height:1.25}
.mk-dashboard-chart{height:290px;position:relative;min-width:0}.mk-dashboard-chart.is-small{height:245px}.mk-dashboard-chart canvas{max-width:100%}
.mk-dashboard-payment{display:grid;gap:.48rem}.mk-dashboard-payment>a{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:.68rem .72rem;border:1px solid #eef2f6;border-radius:11px;background:#fafbfc;color:inherit;text-decoration:none}.mk-dashboard-payment>a:hover{background:#f8faff;border-color:#dbe3ff}.mk-dashboard-payment span{font-size:.72rem;color:#667085;font-weight:650}.mk-dashboard-payment strong{font-size:.82rem;color:#344054;white-space:nowrap}
.mk-dashboard-payment-methods{display:grid;gap:.35rem}.mk-dashboard-payment-methods>div{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:.38rem .2rem;border-bottom:1px solid #f2f4f7}.mk-dashboard-payment-methods>div:last-child{border-bottom:0}.mk-dashboard-payment-methods span{font-size:.67rem;color:#667085;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mk-dashboard-payment-methods strong{font-size:.7rem;color:#475467;white-space:nowrap}
.mk-dashboard-alerts{display:grid}.mk-dashboard-alerts>a,.mk-dashboard-alert-static{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.72rem .9rem;border-top:1px solid #eef2f6;color:#344054;text-decoration:none}.mk-dashboard-alerts>a:first-child,.mk-dashboard-alert-static:first-child{border-top:0}.mk-dashboard-alerts>a:hover{background:#fafbff}.mk-dashboard-alerts>a>i,.mk-dashboard-alert-static>i{width:30px;height:30px;border-radius:9px;display:grid;place-items:center}.mk-dashboard-alerts span{min-width:0}.mk-dashboard-alerts span strong{display:block;font-size:.76rem}.mk-dashboard-alerts span small{display:block;margin-top:.08rem;font-size:.64rem;color:#98a2b3}.mk-dashboard-alerts b{font-size:1.15rem;color:#98a2b3;font-weight:500}.mk-dashboard-alerts .is-warning>i{background:#fffaeb;color:#b54708}.mk-dashboard-alerts .is-danger>i{background:#fef3f2;color:#b42318}.mk-dashboard-alerts .is-ok>i{background:#ecfdf3;color:#027a48}
.mk-dashboard-ranking-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.mk-dashboard-ranking-title{font-size:.86rem;font-weight:760;margin:0;display:flex;align-items:center;gap:.45rem}.mk-dashboard-ranking-title i{color:var(--mk-primary)}
.mk-dashboard-ranking-list{display:grid}.mk-dashboard-ranking-list>a{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:.62rem;padding:.68rem .9rem;border-top:1px solid #eef2f6;color:inherit;text-decoration:none;min-width:0}.mk-dashboard-ranking-list>a:hover{background:#fafbff}.mk-dashboard-rank{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:#f2f4f7;color:#667085;font-size:.65rem;font-weight:800}.mk-dashboard-rank-copy{min-width:0}.mk-dashboard-rank-copy strong{display:block;font-size:.73rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-dashboard-rank-copy small{display:block;font-size:.61rem;color:#98a2b3;margin-top:.08rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-dashboard-ranking-list>a>b{font-size:.7rem;white-space:nowrap;color:#344054}.mk-dashboard-empty{padding:1rem;color:#98a2b3;font-size:.72rem}
.mk-report-ranking-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.mk-report-mini-title{font-size:.83rem;font-weight:760;margin:0}.mk-report-product-link{display:block;min-width:0;color:inherit;text-decoration:none}.mk-report-product-link:hover strong,.mk-report-category-link:hover{color:var(--mk-primary)}.mk-report-product-link strong{display:block;font-size:.75rem;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-report-product-link small{display:block;font-size:.62rem;color:#98a2b3;margin-top:.08rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-report-category-link{color:#344054;text-decoration:none;font-weight:700;font-size:.75rem}
.mk-report-alert-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;padding:.9rem 1rem;border-top:1px solid #eef2f6;border-bottom:1px solid #eef2f6;background:#fafbfc}.mk-report-alert-summary>div{display:flex;align-items:center;gap:.65rem;padding:.65rem .72rem;border:1px solid #e4e7ec;border-radius:12px;background:#fff;min-width:0}.mk-report-alert-summary i{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}.mk-report-alert-summary span{min-width:0}.mk-report-alert-summary strong{display:block;font-size:.92rem}.mk-report-alert-summary small{display:block;font-size:.63rem;color:#667085;line-height:1.25}.mk-report-alert-summary .is-warning i{background:#fffaeb;color:#b54708}.mk-report-alert-summary .is-danger i{background:#fef3f2;color:#b42318}.mk-report-alert-summary .is-ok i{background:#ecfdf3;color:#027a48}
.mk-report-control-title{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:.72rem 1rem;background:#f8faff;border-top:1px solid #eef2f6;border-bottom:1px solid #eef2f6;color:#344054;font-size:.76rem;font-weight:760}.mk-report-control-title span{color:#98a2b3;font-size:.62rem;font-weight:650}
@media(max-width:1199.98px){.mk-dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-dashboard-month{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-dashboard-month-cell:nth-child(3){border-right:0}.mk-dashboard-month-cell:nth-child(n+4){border-top:1px solid #eef2f6}.mk-dashboard-ranking-grid,.mk-report-ranking-grid{grid-template-columns:1fr}}
@media(max-width:767.98px){.mk-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.mk-dashboard-month{grid-template-columns:1fr 1fr}.mk-dashboard-month-cell{border-right:1px solid #eef2f6;border-top:1px solid #eef2f6}.mk-dashboard-month-cell:nth-child(1),.mk-dashboard-month-cell:nth-child(2){border-top:0}.mk-dashboard-month-cell:nth-child(even){border-right:0}.mk-dashboard-month-cell:last-child{grid-column:1/-1;border-right:0}.mk-dashboard-chart,.mk-dashboard-chart.is-small{height:245px}.mk-report-alert-summary{grid-template-columns:1fr}.mk-report-control-title{align-items:flex-start;flex-direction:column;gap:.2rem}}
@media(max-width:480px){.mk-dashboard-kpis{grid-template-columns:1fr}.mk-dashboard-month{grid-template-columns:1fr}.mk-dashboard-month-cell,.mk-dashboard-month-cell:nth-child(1),.mk-dashboard-month-cell:nth-child(2){border-right:0;border-top:1px solid #eef2f6}.mk-dashboard-month-cell:first-child{border-top:0}.mk-dashboard-month-cell:last-child{grid-column:auto}}


/* FIX7A11 · ficha completa de producto */
.swal2-popup.mk-product-editor{width:min(1040px,calc(100vw - 48px))!important;max-width:1040px!important;margin-left:auto!important;margin-right:auto!important}
.swal2-popup.mk-product-editor .swal2-html-container{margin:.8rem .3rem .25rem!important;padding:0 .2rem!important;overflow:visible!important}
.mk-product-editor-form{margin:0!important}
.mk-product-form-section{border:1px solid var(--mk-border);border-radius:14px;background:#fff;padding:14px 16px}
.mk-product-form-section-muted{background:#f8fafc}
.mk-product-form-section-title{display:flex;align-items:center;gap:.45rem;font-weight:750;color:var(--mk-text);font-size:.94rem;margin-bottom:.8rem}
.mk-product-switch{min-height:32px;display:flex;align-items:center;gap:.35rem}
.mk-product-switch .form-check-input{width:2.45rem;height:1.3rem;margin-top:0}

.mk-product-subtitle{font-size:.82rem;font-weight:750;color:#475467;text-transform:uppercase;letter-spacing:.025em}
.mk-promo-layout{display:grid;grid-template-columns:1fr;gap:.85rem;align-items:start}
.mk-promo-editor-card,.mk-promo-status-card{border:1px solid #e4e7ec;border-radius:14px;background:#fff;padding:1rem;min-width:0;box-shadow:0 1px 2px rgba(16,24,40,.03);height:auto}
.mk-promo-editor-card{display:flex;flex-direction:column}.mk-promo-editor-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.42fr);gap:.85rem 1.25rem;align-items:end}.mk-promo-price-switch{align-self:end;margin-bottom:.5rem}.mk-promo-price-field{min-width:0}.mk-promo-editor-help{grid-column:1 / -1;margin-top:.1rem;line-height:1.5;max-width:none}.mk-promo-editor-card .mk-promo-current{margin-top:.85rem!important}.mk-promo-temporal-card{background:linear-gradient(180deg,#fbfcff,#f8faff);border-color:#dfe3ff}.mk-promo-status-card{display:flex;flex-direction:column}.mk-promo-status-card>.form-text{line-height:1.55}.mk-promo-qty-card .mk-promo-qty-list{margin-bottom:auto}
.mk-promo-status-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem;font-size:.84rem;font-weight:700;color:#344054}
.mk-promo-status-head>span:first-child{display:flex;align-items:center;gap:.4rem;min-width:0}
.mk-promo-current{font-size:.8rem;color:var(--mk-muted);border:1px solid #eaecf0;border-radius:12px;background:#fcfcfd;padding:.72rem .8rem}
.mk-promo-qty-list{display:flex;flex-direction:column;gap:.45rem}
.mk-promo-qty-item{border-top:1px solid #e4e7ec;padding-top:.45rem}
.mk-promo-qty-item:first-child{border-top:0;padding-top:0}
.mk-promo-qty-item>div{display:flex;flex-direction:column;min-width:0}
.mk-promo-qty-item strong{font-size:.82rem;color:#344054;overflow-wrap:anywhere}
.mk-promo-qty-item small{font-size:.78rem;color:var(--mk-muted)}
.mk-field-muted{opacity:.58}
.mk-component-search-results{border:1px solid var(--mk-border);border-radius:11px;background:#fff;max-height:210px;overflow:auto;margin-bottom:.7rem}
.mk-component-result{width:100%;border:0;border-bottom:1px solid #eef2f6;background:#fff;padding:.62rem .7rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;text-align:left;color:var(--mk-text)}
.mk-component-result:last-child{border-bottom:0}
.mk-component-result:hover:not(:disabled),.mk-component-result:focus-visible:not(:disabled){background:#f8fafc;outline:none}
.mk-component-result:disabled{opacity:.55;cursor:default}
.mk-component-result>span:first-child{display:flex;flex-direction:column;min-width:0}
.mk-component-result small{color:var(--mk-muted);white-space:normal}
.mk-component-list-head,.mk-component-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 42px;gap:.65rem;align-items:center}
.mk-component-list-head{padding:.35rem .55rem;color:var(--mk-muted);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.mk-component-row{padding:.55rem;border-top:1px solid #eef2f6}
.mk-component-main{display:flex;flex-direction:column;min-width:0}
.mk-component-main strong{font-size:.86rem;overflow-wrap:anywhere}
.mk-component-main span{font-size:.8rem;color:var(--mk-muted);white-space:normal;overflow-wrap:anywhere}
.mk-component-empty{border:1px dashed #d0d5dd;border-radius:10px;padding:.8rem;text-align:center;color:var(--mk-muted);font-size:.84rem}
.mk-component-qty{min-width:0}
@media (max-width:575.98px){
  .swal2-popup.mk-product-editor{width:calc(100vw - 10px)!important;padding:.75rem!important}
  .swal2-popup.mk-product-editor .swal2-title{font-size:1.15rem!important}
  .mk-product-form-section{padding:12px}
  .mk-component-list-head{display:none}
  .mk-component-row{grid-template-columns:minmax(0,1fr) 88px 40px;gap:.45rem;padding:.6rem 0}
  .mk-component-search-results{max-height:180px}
}

@media (max-width:767.98px){.mk-promo-editor-body{grid-template-columns:1fr}.mk-promo-status-head{align-items:flex-start}.mk-promo-status-head .badge{white-space:nowrap}}


/* FIX7A11I · configuración general de promociones */
.mk-promo-config-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:1rem;align-items:start}
.mk-promo-config-form{display:grid;gap:1rem}.mk-promo-config-card{border:1px solid var(--mk-border);border-radius:16px;background:#fff;padding:1rem;box-shadow:0 1px 2px rgba(16,24,40,.03);min-width:0}
.mk-promo-config-title{display:flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:760;color:#344054;margin-bottom:.25rem}.mk-promo-config-copy{font-size:.76rem;color:#667085;line-height:1.45;margin-bottom:.8rem}
.mk-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.mk-choice-card{position:relative;display:flex;align-items:flex-start;gap:.65rem;border:1px solid #e4e7ec;border-radius:13px;padding:.8rem;background:#fcfcfd;cursor:pointer;min-width:0}.mk-choice-card:has(input:checked){border-color:#a5b4fc;background:#f8faff;box-shadow:0 0 0 2px rgba(79,70,229,.07)}.mk-choice-card input{margin-top:.18rem;flex:0 0 auto}.mk-choice-card strong{display:block;font-size:.8rem;color:#344054}.mk-choice-card small{display:block;margin-top:.12rem;font-size:.68rem;line-height:1.35;color:#667085}
.mk-promo-config-summary{position:sticky;top:86px}.mk-promo-config-summary-list{display:grid;gap:.55rem}.mk-promo-config-summary-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.62rem .7rem;border:1px solid #eef2f6;border-radius:11px;background:#fafbfc}.mk-promo-config-summary-row span{font-size:.7rem;color:#667085}.mk-promo-config-summary-row strong{font-size:.76rem;color:#344054;text-align:right}.mk-promo-module-state{display:flex;align-items:flex-start;gap:.7rem;padding:.78rem .85rem;border:1px solid #dbe3ff;border-radius:14px;background:#f8faff}.mk-promo-module-state>i{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#eef2ff;color:var(--mk-primary);flex:0 0 auto}.mk-promo-module-state strong{display:block;font-size:.78rem}.mk-promo-module-state span{display:block;font-size:.7rem;color:#667085;margin-top:.1rem}.mk-promo-config-actions{display:flex;justify-content:flex-end;gap:.55rem}.mk-promo-config-link{display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid #e4e7ec;border-radius:8px;background:#fff;color:#667085;text-decoration:none}.mk-promo-config-link:hover{color:var(--mk-primary);border-color:#c7d2fe;background:#f8faff}

/* FIX7A11I · blindaje responsive global: ninguna página debe ensanchar el viewport. */
html,body{max-width:100%;overflow-x:hidden}.container,.container-fluid,main,.mk-page,.mk-panel,.card,.row>*{min-width:0}img,svg,canvas{max-width:100%}.modal-dialog,.swal2-popup{max-width:calc(100vw - 1rem)}

/* Reportes: en teléfono no se usa una tabla ancha ni scrollbar horizontal. */
@media(max-width:767.98px){
  .mk-page-reports .mk-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.6rem!important}
  .mk-page-reports .mk-report-filter{padding:.8rem}
  .mk-page-reports .mk-report-table-wrap{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .mk-page-reports .mk-report-card-table,.mk-page-reports .mk-report-card-table tbody,.mk-page-reports .mk-report-card-table tr,.mk-page-reports .mk-report-card-table td{display:block;width:100%;min-width:0!important}
  .mk-page-reports .mk-report-card-table{table-layout:auto!important}
  .mk-page-reports .mk-report-card-table thead{display:none}
  .mk-page-reports .mk-report-card-table tbody{padding:.45rem .55rem}
  .mk-page-reports .mk-report-card-table tr{margin:0 0 .6rem;border:1px solid #e4e7ec;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}
  .mk-page-reports .mk-report-card-table tr:last-child{margin-bottom:0}
  .mk-page-reports .mk-report-card-table td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:.8rem;padding:.56rem .65rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere}
  .mk-page-reports .mk-report-card-table td:last-child{border-bottom:0!important}
  .mk-page-reports .mk-report-card-table td::before{content:attr(data-label);font-size:.62rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 34%}
  .mk-page-reports .mk-report-card-table td[colspan]{display:block!important;text-align:center!important}.mk-page-reports .mk-report-card-table td[colspan]::before{display:none}
  .mk-page-reports .mk-report-product,.mk-page-reports .mk-report-product-link{min-width:0;max-width:66%;text-align:right}.mk-page-reports .mk-report-product strong,.mk-page-reports .mk-report-product small,.mk-page-reports .mk-report-product-link strong,.mk-page-reports .mk-report-product-link small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .mk-page-reports .mk-report-category-link{overflow-wrap:anywhere}
  .mk-page-reports .mk-report-control-title{padding:.65rem .75rem}
  .mk-page-reports .mk-report-alert-summary{padding:.7rem}
  .mk-page-reports .mk-report-month-strip{grid-template-columns:1fr!important}
  .mk-page-reports .mk-report-footnote{overflow-wrap:anywhere}
  .mk-promo-config-grid{grid-template-columns:1fr}.mk-promo-config-summary{position:static}.mk-promo-config-actions{display:grid;grid-template-columns:1fr}.mk-promo-config-actions .btn{width:100%}
}
@media(max-width:420px){.mk-page-reports .mk-report-kpis{grid-template-columns:1fr!important}.mk-choice-grid{grid-template-columns:1fr}.mk-promo-config-card{padding:.8rem}.mk-promo-config-summary-row{flex-direction:column;gap:.2rem}.mk-promo-config-summary-row strong{text-align:left}}

/* Ajustes finales de componentes que podían forzar ancho en pantallas pequeñas. */
@media(max-width:767.98px){
  .mk-page .input-group,.mk-page .form-control,.mk-page .form-select{min-width:0}
  .mk-operation-card-head,.mk-movement-mobile-head{min-width:0}.mk-operation-card-head>div:first-child,.mk-movement-mobile-head>div:first-child{min-width:0}.mk-operation-card-sub,.mk-movement-mobile-date{overflow-wrap:anywhere}
  .mk-payment-badge,.mk-type-badge{max-width:100%;white-space:normal;text-align:center}
  .mk-pagination-controls{max-width:100%;overflow:hidden}.mk-pagination-controls>*{min-width:0}
  .maxi-navbar .dropdown-menu{max-width:100%}
}

/* FIX7A12 · Cola de operaciones web */
.mk-queue-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}
.mk-queue-summary>div{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-width:0;padding:.72rem .78rem;border:1px solid #eef2f6;border-radius:12px;background:#fafbfc}
.mk-queue-summary span{min-width:0;color:#667085;font-size:.7rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-queue-summary strong{font-size:.92rem;font-variant-numeric:tabular-nums}
.mk-queue-table th:nth-child(1){width:15%}.mk-queue-table th:nth-child(2){width:34%}.mk-queue-table th:nth-child(3){width:14%}.mk-queue-table th:nth-child(4){width:8%}.mk-queue-table th:nth-child(5){width:14%}.mk-queue-table th:nth-child(6){width:15%}
.mk-queue-operation{display:flex;flex-direction:column;gap:.12rem;min-width:0}
.mk-queue-operation strong{font-size:.8rem;color:#344054}
.mk-queue-operation small{display:block;max-width:100%;color:#667085;font-size:.67rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.mk-queue-operation code{align-self:flex-start;margin-top:.12rem;color:#98a2b3;font-size:.61rem}
.mk-queue-date{font-size:.73rem;color:#475467;white-space:nowrap}
.mk-queue-actions{display:flex;justify-content:flex-end;align-items:center;gap:.35rem;flex-wrap:wrap}
.mk-queue-actions .btn{min-height:31px;padding:.28rem .46rem;font-size:.68rem}.mk-queue-actions .btn i{font-size:.78rem}
@media(max-width:991.98px){.mk-queue-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767.98px){
  .mk-queue-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
  .mk-queue-summary>div{padding:.62rem .68rem}
  .mk-queue-table td[data-label="Operación"]{align-items:flex-start!important}
  .mk-queue-table td[data-label="Operación"]::before{padding-top:.15rem}
  .mk-queue-table .mk-queue-operation{align-items:flex-end;text-align:right;max-width:70%}
  .mk-queue-table .mk-queue-operation code{align-self:flex-end}
  .mk-queue-actions{max-width:72%;justify-content:flex-end}
  .mk-queue-actions .btn span{display:none}
}
@media(max-width:420px){.mk-queue-summary{grid-template-columns:1fr}}

/* FIX7A12B · Reportes sin privilegio de costo */
.mk-report-ranking-grid.is-single{grid-template-columns:minmax(0,1fr)}


/* FIX7A13 · administración de promociones por cantidad */
.mk-page-promotions .mk-page-header>div{width:100%}.mk-page-promotions .mk-page-subtitle{max-width:none}.mk-page-promotions .mk-section-subtitle{max-width:none;line-height:1.5}.mk-promo-qty-admin{scroll-margin-top:86px}.mk-promo-qty-controls{display:grid;grid-template-columns:1fr;gap:.65rem;align-items:stretch}.mk-promo-qty-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;padding:.65rem .75rem;border:1px solid #e4e7ec;border-radius:13px;background:#fafbfc}.mk-promo-qty-toolbar .form-control{width:min(100%,430px);max-width:430px;min-width:220px}.mk-promo-qty-toolbar .mk-chip{flex:0 0 auto}.mk-promo-qty-list-shell>.mk-empty-state{min-height:96px;border:1px dashed #d0d5dd;border-radius:14px;background:#fafbfc;padding:1rem!important}.mk-promo-qty-table td,.mk-promo-qty-table th{vertical-align:middle}.mk-promo-qty-name{display:flex;flex-direction:column;min-width:0}.mk-promo-qty-name strong{font-size:.82rem;color:#344054}.mk-promo-qty-name small{font-size:.67rem;color:#98a2b3}.mk-promo-qty-actions{display:flex;align-items:center;justify-content:flex-end;gap:.35rem}.mk-promo-qty-modal .modal-dialog{max-width:min(920px,calc(100vw - 2rem))!important}.mk-promo-qty-modal .modal-content{overflow:hidden}.mk-promo-qty-form-grid{display:grid;grid-template-columns:120px minmax(0,1fr) 140px 170px;gap:.75rem;align-items:end;margin-bottom:1.15rem}.mk-promo-qty-code .form-control{background:#f8fafc}.mk-promo-components-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.25rem}.mk-promo-article-search-results{border:1px solid #e4e7ec;border-radius:12px;background:#fff;max-height:210px;overflow:auto}.mk-promo-article-result{width:100%;border:0;border-bottom:1px solid #eef2f6;background:#fff;padding:.62rem .72rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;text-align:left}.mk-promo-article-result:last-child{border-bottom:0}.mk-promo-article-result:hover{background:#f8faff}.mk-promo-article-result span{display:flex;flex-direction:column;min-width:0}.mk-promo-article-result strong{font-size:.78rem;overflow-wrap:anywhere}.mk-promo-article-result small{font-size:.67rem;color:#667085;overflow-wrap:anywhere}.mk-promo-selected-list{display:grid;gap:.42rem}.mk-promo-selected-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.58rem .65rem;border:1px solid #eef2f6;border-radius:11px;background:#fafbfc}.mk-promo-selected-item>span{display:flex;flex-direction:column;min-width:0}.mk-promo-selected-item strong{font-size:.76rem;color:#344054;overflow-wrap:anywhere}.mk-promo-selected-item small{font-size:.65rem;color:#98a2b3;overflow-wrap:anywhere}.mk-promo-selected-empty{padding:.8rem;border:1px dashed #d0d5dd;border-radius:11px;color:#667085;font-size:.74rem;text-align:center}.mk-promo-qty-module{display:flex;align-items:flex-start;gap:.65rem;border:1px solid #e4e7ec;border-radius:13px;background:#fafbfc;padding:.72rem .8rem}.mk-promo-qty-module i{margin-top:.05rem}.mk-promo-qty-module strong{display:block;font-size:.78rem}.mk-promo-qty-module span{display:block;margin-top:.08rem;color:#667085;font-size:.68rem}.mk-promo-qty-card .mk-promo-config-link{flex:0 0 auto}
@media(max-width:767.98px){.mk-promo-qty-controls{grid-template-columns:1fr}.mk-promo-qty-toolbar{align-items:stretch;flex-direction:column}.mk-promo-qty-toolbar .form-control,.mk-promo-qty-toolbar .btn{width:100%;max-width:none;min-width:0}.mk-promo-qty-toolbar .mk-chip{align-self:flex-start}.mk-promo-qty-form-grid{grid-template-columns:1fr 1fr}.mk-promo-qty-form-grid .mk-promo-qty-description{grid-column:1 / -1}.mk-promo-qty-table,.mk-promo-qty-table tbody,.mk-promo-qty-table tr,.mk-promo-qty-table td{display:block;width:100%}.mk-promo-qty-table thead{display:none}.mk-promo-qty-table tbody{display:grid;gap:.65rem;padding:.65rem}.mk-promo-qty-table tr{border:1px solid #e4e7ec;border-radius:13px;overflow:hidden;background:#fff}.mk-promo-qty-table td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:.8rem;padding:.56rem .65rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important;white-space:normal!important}.mk-promo-qty-table td:last-child{border-bottom:0!important}.mk-promo-qty-table td::before{content:attr(data-label);font-size:.62rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 34%}.mk-promo-qty-table .mk-promo-qty-name{max-width:66%;align-items:flex-end;text-align:right}.mk-promo-qty-actions{max-width:66%;flex-wrap:wrap}}


/* FIX7A14 · Administración de usuarios + Auditoría */
.mk-user-source{display:flex;align-items:center;gap:.75rem;padding:.72rem .85rem;border:1px solid var(--mk-border);border-radius:14px;background:#fff}.mk-user-source>i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 34px}.mk-user-source.is-live>i{background:var(--mk-success-soft);color:var(--mk-success)}.mk-user-source.is-replica>i{background:var(--mk-primary-soft);color:var(--mk-primary)}.mk-user-source strong,.mk-user-source span{display:block}.mk-user-source strong{font-size:.8rem}.mk-user-source span{font-size:.72rem;color:var(--mk-muted);margin-top:.08rem}
.mk-user-permission-count{display:inline-flex;align-items:center;gap:.38rem;color:#475467;font-size:.76rem;font-weight:650}.mk-user-actions{display:inline-flex;gap:.4rem}.mk-users-mobile{display:none}.mk-user-permissions-section{border:1px solid var(--mk-border);border-radius:15px;padding:1rem;background:#fcfcfd}.mk-user-permission{display:flex;align-items:flex-start;gap:.6rem;min-height:42px;padding:.65rem .7rem;border:1px solid #eaecf0;border-radius:11px;background:#fff;cursor:pointer}.mk-user-permission:hover{border-color:#c7d2fe;background:#fafbff}.mk-user-permission .form-check-input{margin-top:.12rem;flex:0 0 auto}.mk-user-permission span{font-size:.82rem;font-weight:620;color:#344054;line-height:1.3}.mk-user-admin-toggle{display:flex;gap:.7rem;align-items:flex-start;padding:.78rem .85rem;border:1px solid #c7d2fe;border-radius:12px;background:#f8faff;cursor:pointer}.mk-user-admin-toggle .form-check-input{margin-top:.15rem}.mk-user-admin-toggle span{min-width:0}.mk-user-admin-toggle strong,.mk-user-admin-toggle small{display:block}.mk-user-admin-toggle small{margin-top:.16rem;color:#667085;font-size:.69rem;line-height:1.35}
.mk-user-card{border:1px solid var(--mk-border);border-radius:14px;background:#fff;padding:.85rem;box-shadow:0 1px 2px rgba(16,24,40,.03)}.mk-user-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.mk-user-card-head>div{min-width:0}.mk-user-card-head strong{display:block;margin-top:.15rem;font-size:.86rem}.mk-user-card-stats{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-top:.75rem}.mk-user-card-stats span{padding:.55rem .6rem;border:1px solid #eef2f6;border-radius:10px;background:#fafbfc;font-size:.78rem;font-weight:700;color:#344054}.mk-user-card-stats small{display:block;color:#98a2b3;font-size:.62rem;font-weight:650;margin-bottom:.15rem}.mk-user-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.75rem}
.mk-audit-origin-tabs{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem;border:1px solid var(--mk-border);border-radius:13px;background:#fff}.mk-audit-origin-tab{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:36px;padding:.42rem .72rem;border-radius:9px;text-decoration:none;color:#667085;font-size:.78rem;font-weight:720}.mk-audit-origin-tab:hover{background:#f8faff;color:var(--mk-primary)}.mk-audit-origin-tab.active{background:var(--mk-primary-soft);color:var(--mk-primary)}.mk-audit-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.7rem}.mk-audit-summary>div{padding:.72rem .8rem;border:1px solid var(--mk-border);border-radius:12px;background:#fff;min-width:0}.mk-audit-summary span,.mk-audit-summary strong{display:block}.mk-audit-summary span{font-size:.64rem;color:#98a2b3;text-transform:uppercase;letter-spacing:.035em;font-weight:740}.mk-audit-summary strong{margin-top:.22rem;font-size:.78rem;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-audit-date{display:block;font-size:.76rem;font-weight:680}.mk-audit-desktop td small{display:block;color:#98a2b3;font-size:.62rem;margin-top:.08rem}.mk-audit-component{min-width:0;max-width:330px}.mk-audit-component>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.72rem;color:#667085}.mk-audit-component>a{display:inline-block;margin-top:.18rem;text-decoration:none}.mk-audit-mobile{display:none}.mk-audit-card{border:1px solid var(--mk-border);border-radius:14px;background:#fff;padding:.85rem;box-shadow:0 1px 2px rgba(16,24,40,.03)}.mk-audit-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem}.mk-audit-card-head>div{min-width:0}.mk-audit-card-head strong{display:block;font-size:.8rem;line-height:1.35}.mk-audit-card-head small{display:block;margin-top:.2rem;color:#98a2b3;font-size:.63rem}.mk-audit-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.7rem}.mk-audit-card-grid span,.mk-audit-card-component{border:1px solid #eef2f6;border-radius:10px;background:#fafbfc;padding:.55rem .6rem;font-size:.73rem;color:#344054;min-width:0}.mk-audit-card-grid small,.mk-audit-card-component small{display:block;color:#98a2b3;font-size:.6rem;font-weight:650;margin-bottom:.12rem}.mk-audit-card-component{margin-top:.5rem}.mk-audit-card-component>span{display:block;overflow-wrap:anywhere}.mk-audit-card-component>a{display:inline-flex;align-items:center;gap:.35rem;margin-top:.35rem;text-decoration:none;font-size:.68rem}
@media(max-width:767.98px){.mk-users-desktop,.mk-audit-desktop{display:none!important}.mk-users-mobile,.mk-audit-mobile{display:grid!important;gap:.65rem}.mk-user-permissions-section{padding:.8rem}.mk-user-permission{min-height:0}.mk-audit-origin-tabs{display:grid;grid-template-columns:repeat(3,1fr);width:100%}.mk-audit-summary{grid-template-columns:1fr}.mk-audit-page .mk-filter-panel .btn{width:100%}.mk-user-card-actions .btn{width:100%}}
@media(max-width:420px){.mk-user-card-stats,.mk-audit-card-grid{grid-template-columns:1fr}.mk-user-card-actions{grid-template-columns:1fr}.mk-audit-origin-tab{padding:.4rem .45rem;font-size:.72rem}}


/* FIX7A14A · autorización independiente de acceso web */
.mk-user-web-access{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid #c7d2fe;border-radius:15px;background:#f8faff}.mk-user-web-access-copy{min-width:0}.mk-user-web-switch{display:flex;align-items:flex-start;gap:.7rem;flex:0 0 min(420px,45%);margin:0;padding:.8rem .9rem;border:1px solid #dbe3ff;border-radius:12px;background:#fff;cursor:pointer}.mk-user-web-switch .form-check-input{margin-left:0;margin-top:.15rem;flex:0 0 auto}.mk-user-web-switch span{min-width:0}.mk-user-web-switch strong,.mk-user-web-switch small{display:block}.mk-user-web-switch strong{font-size:.8rem;color:#344054}.mk-user-web-switch small{margin-top:.15rem;font-size:.68rem;line-height:1.35;color:#667085}.mk-web-security-events{border:1px solid #dbe3ff;border-radius:14px;background:#f8faff;overflow:hidden}.mk-web-security-events-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.8rem .9rem;border-bottom:1px solid #e4e7ec}.mk-web-security-events-head strong{display:block;font-size:.8rem}.mk-web-security-events-head span{display:block;margin-top:.08rem;color:#667085;font-size:.68rem}.mk-web-security-event{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(0,1fr);gap:.75rem;padding:.65rem .9rem;border-top:1px solid #eef2f6;background:#fff}.mk-web-security-event:first-of-type{border-top:0}.mk-web-security-event small{display:block;color:#98a2b3;font-size:.61rem}.mk-web-security-event strong{font-size:.74rem;color:#344054}.mk-web-security-event span{font-size:.72rem;color:#475467;min-width:0;overflow-wrap:anywhere}
@media(max-width:767.98px){.mk-user-web-access{align-items:stretch;flex-direction:column}.mk-user-web-switch{flex:1 1 auto;width:100%}.mk-web-security-event{grid-template-columns:1fr}.mk-web-security-events-head{flex-direction:column}}


/* FIX7A14B · modal de usuarios: cabecera y acciones siempre visibles; contenido desplazable */
.mk-user-modal .modal-dialog{height:calc(100vh - 2rem);max-height:calc(100vh - 2rem);margin:1rem auto}
.mk-user-modal .modal-content{height:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden}
.mk-user-modal .modal-header,.mk-user-modal .modal-footer{flex:0 0 auto}
.mk-user-modal .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:1.25rem}
.mk-user-modal .modal-footer{position:relative;z-index:2;box-shadow:0 -8px 18px rgba(16,24,40,.04)}
@media(max-width:767.98px){
  .mk-user-modal .modal-dialog{height:calc(100dvh - 1rem);max-height:calc(100dvh - 1rem);margin:.5rem}
  .mk-user-modal .modal-content{border-radius:16px!important}
  .mk-user-modal .modal-body{padding:.85rem}
}

@media(max-width:520px){.mk-promo-qty-form-grid{grid-template-columns:1fr}.mk-promo-qty-form-grid .mk-promo-qty-description{grid-column:auto}.mk-promo-qty-modal .modal-dialog{max-width:calc(100vw - 1rem)!important}}


/* FIX7A14F · modales: ancho contenido y centrado consistente en toda la web */
@media (min-width:768px){
  .modal:not(.mk-doc-modal) .modal-dialog{
    width:calc(100% - 3rem)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .modal:not(.mk-doc-modal) .modal-dialog:not(.modal-lg):not(.modal-xl){max-width:600px!important}
  .modal:not(.mk-doc-modal) .modal-dialog.modal-lg{max-width:840px!important}
  .modal:not(.mk-doc-modal) .modal-dialog.modal-xl{max-width:1040px!important}
  .mk-user-modal .modal-dialog{max-width:1040px!important}
  .mk-promo-qty-modal .modal-dialog{max-width:840px!important}
  .swal2-popup.mk-product-editor,.swal2-popup.mk-price-modal{justify-self:center!important}
}
@media (max-width:767.98px){
  .modal:not(.mk-doc-modal) .modal-dialog{
    width:calc(100% - 1rem)!important;
    max-width:none!important;
    margin:.5rem auto!important;
  }
  .swal2-popup.mk-product-editor,.swal2-popup.mk-price-modal{
    width:calc(100vw - 1rem)!important;
    max-width:calc(100vw - 1rem)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}


/* FIX7A14G · detalle de ventas/cargas más contenido y tickets más legibles */
@media (min-width:768px){
  .mk-doc-modal .modal-dialog{
    width:calc(100% - 3rem)!important;
    max-width:1040px!important;
    margin:1.25rem auto!important;
  }
  .mk-doc-modal .modal-content{max-height:calc(100vh - 2.5rem)}
}
@media (max-width:767.98px){
  .mk-promo-editor-body{grid-template-columns:1fr;gap:.7rem}
  .mk-promo-price-switch{margin-bottom:0}
  .mk-promo-editor-help{grid-column:auto}
}


/* FIX7A14H · auditoría visual integral: texto, responsive y lenguaje de usuario */
.mk-page-header>div:first-child{min-width:0;flex:1 1 auto}
.mk-page-header .mk-page-subtitle{width:100%;max-width:none}
.mk-panel-header>div,.mk-sync-card-head>div,.mk-web-security-events-head>div{min-width:0}
.mk-section-subtitle,.form-text,.mk-tool-desc,.mk-report-footnote,.mk-dashboard-data-note{overflow-wrap:anywhere}
.mk-section-subtitle{max-width:none;line-height:1.5}
.table-responsive{max-width:100%}
.mk-page code{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.mk-audit-component{max-width:none}
.mk-audit-component>span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.mk-audit-summary strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.mk-queue-operation code{display:none!important}
.mk-sync-table .replica-cursor{font-family:inherit;color:inherit;background:transparent;padding:0}

@media(max-width:767.98px){
  .mk-page-header{width:100%}
  .mk-page-header>*{min-width:0;max-width:100%}
  .mk-page-subtitle,.mk-section-subtitle,.form-text{width:100%;max-width:none!important}
  .mk-page .row,.mk-page [class*="col-"]{min-width:0}
  .mk-page .table-responsive{width:100%;max-width:100%}
  .mk-panel-header.d-flex>div,.d-flex.justify-content-between>div{min-width:0}
  .mk-sync-table td,.mk-queue-table td{min-width:0;overflow-wrap:anywhere}
  .mk-sync-table td>*{max-width:72%;min-width:0}
  .mk-sync-table td::before{flex:0 0 28%}
}

/* FIX7A14H · tablet también sin barras horizontales en vistas operativas */
@media(max-width:991.98px){
  /* Ventas y cargas: usar tarjetas desde tablet. */
  .mk-page-sales .mk-operation-desktop,.mk-page-loads .mk-operation-desktop{display:none!important}
  .mk-page-sales .mk-operation-mobile-list,.mk-page-loads .mk-operation-mobile-list{display:block!important}

  /* Movimientos: usar la lista adaptable desde tablet. */
  .mk-page-movements .mk-movement-list-card{background:transparent;border:0;box-shadow:none;overflow:visible}
  .mk-page-movements .mk-movement-list-card .table-responsive{display:none!important}
  .mk-page-movements .mk-movement-mobile-list{display:block!important}

  /* Usuarios y auditoría: evitar tablas comprimidas. */
  .mk-users-desktop,.mk-audit-desktop{display:none!important}
  .mk-users-mobile,.mk-audit-mobile{display:grid!important;gap:.65rem}

  /* Sincronización: tabla -> tarjetas. */
  .mk-sync-table-wrap{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .mk-sync-table,.mk-sync-table tbody,.mk-sync-table tr,.mk-sync-table td{display:block;width:100%;min-width:0!important}
  .mk-sync-table thead{display:none}
  .mk-sync-table tbody{padding:0}
  .mk-sync-table tr{margin:0 0 .65rem;border:1px solid var(--mk-border);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}
  .mk-sync-table td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:1rem;padding:.58rem .72rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important;white-space:normal!important}
  .mk-sync-table td:last-child{border-bottom:0!important}
  .mk-sync-table td::before{content:attr(data-label);font-size:.65rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 28%}
  .mk-sync-table td>*{max-width:72%;min-width:0;overflow-wrap:anywhere}

  /* Productos: tabla -> tarjetas para no depender de 1020 px. */
  .mk-page-products .table-responsive{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .mk-page-products #tablaProductos,.mk-page-products #tablaProductos tbody,.mk-page-products #tablaProductos tr{display:block;width:100%;min-width:0!important}
  .mk-page-products #tablaProductos{table-layout:auto!important}
  .mk-page-products #tablaProductos thead{display:none}
  .mk-page-products #tablaProductos tbody{padding:.35rem}
  .mk-page-products #tablaProductos tr{border:1px solid var(--mk-border);border-radius:14px;margin:.55rem 0;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}
  .mk-page-products #tablaProductos td{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:1rem;text-align:right!important;border:0!important;border-bottom:1px solid #f2f4f7!important;padding:.62rem .72rem!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere}
  .mk-page-products #tablaProductos td:last-child{border-bottom:0!important}
  .mk-page-products #tablaProductos td::before{content:attr(data-label);font-size:.68rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 28%}
  .mk-page-products #tablaProductos td.descripcion{overflow:visible!important;text-overflow:clip!important;white-space:normal!important}
  .mk-page-products #tablaProductos td[data-label="Acciones"],.mk-page-products #tablaProductos td[data-label="Sel."]{justify-content:flex-end!important;flex-wrap:wrap}
  .mk-page-products #tablaProductos td[data-label="Acciones"]::before,.mk-page-products #tablaProductos td[data-label="Sel."]::before{margin-right:auto}

  /* Promociones por cantidad: tabla -> tarjetas. */
  .mk-promo-qty-table,.mk-promo-qty-table tbody,.mk-promo-qty-table tr,.mk-promo-qty-table td{display:block;width:100%;min-width:0!important}
  .mk-promo-qty-table thead{display:none}
  .mk-promo-qty-table tbody{display:grid;gap:.65rem;padding:.65rem}
  .mk-promo-qty-table tr{border:1px solid #e4e7ec;border-radius:13px;overflow:hidden;background:#fff}
  .mk-promo-qty-table td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:.8rem;padding:.56rem .65rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important;white-space:normal!important}
  .mk-promo-qty-table td:last-child{border-bottom:0!important}
  .mk-promo-qty-table td::before{content:attr(data-label);font-size:.62rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 34%}
  .mk-promo-qty-table .mk-promo-qty-name{max-width:66%;align-items:flex-end;text-align:right}
  .mk-promo-qty-actions{max-width:66%;flex-wrap:wrap}

  /* Reportes: conservar el formato de tarjetas también en tablet. */
  .mk-page-reports .mk-report-table-wrap{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .mk-page-reports .mk-report-card-table,.mk-page-reports .mk-report-card-table tbody,.mk-page-reports .mk-report-card-table tr,.mk-page-reports .mk-report-card-table td{display:block;width:100%;min-width:0!important}
  .mk-page-reports .mk-report-card-table{table-layout:auto!important}
  .mk-page-reports .mk-report-card-table thead{display:none}
  .mk-page-reports .mk-report-card-table tbody{padding:.45rem .55rem}
  .mk-page-reports .mk-report-card-table tr{margin:0 0 .6rem;border:1px solid #e4e7ec;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}
  .mk-page-reports .mk-report-card-table td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:.8rem;padding:.56rem .65rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere}
  .mk-page-reports .mk-report-card-table td:last-child{border-bottom:0!important}
  .mk-page-reports .mk-report-card-table td::before{content:attr(data-label);font-size:.62rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 34%}
  .mk-page-reports .mk-report-card-table td[colspan]{display:block!important;text-align:center!important}.mk-page-reports .mk-report-card-table td[colspan]::before{display:none}
  .mk-page-reports .mk-report-product,.mk-page-reports .mk-report-product-link{min-width:0;max-width:66%;text-align:right}
  .mk-page-reports .mk-report-product strong,.mk-page-reports .mk-report-product small,.mk-page-reports .mk-report-product-link strong,.mk-page-reports .mk-report-product-link small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
}
@media(max-width:991.98px){
  .mk-page-products #tablaProductos td[data-label="Seleccionar"]{justify-content:flex-end!important;flex-wrap:wrap}
  .mk-page-products #tablaProductos td[data-label="Seleccionar"]::before{margin-right:auto}
  .mk-page-products #tablaProductos td[colspan]{display:block!important;text-align:center!important}
  .mk-page-products #tablaProductos td[colspan]::before{display:none!important}
}

/* FIX7A15B — resolución asistida de conflictos de Gestión masiva de precios */
.mk-conflict-resolution-table th{font-size:.67rem}
.mk-conflict-resolution-table td{font-size:.78rem}
.mk-conflict-resolution-table .form-select{min-width:190px}
@media(max-width:991.98px){
  .mk-conflict-resolution-table thead{display:none}
  .mk-conflict-resolution-table,.mk-conflict-resolution-table tbody,.mk-conflict-resolution-table tr,.mk-conflict-resolution-table td{display:block;width:100%}
  .mk-conflict-resolution-table tr{border:1px solid #e4e7ec;border-radius:12px;padding:.6rem;margin-bottom:.65rem;background:#fff}
  .mk-conflict-resolution-table td{border:0!important;padding:.32rem .2rem!important}
  .mk-conflict-resolution-table td:before{content:attr(data-label);display:block;color:#667085;font-size:.65rem;font-weight:750;text-transform:uppercase;margin-bottom:.12rem}
  .mk-conflict-resolution-table .form-select{min-width:0;width:100%}
}

/* FIX7A15C · resolución parcial de lotes y centrado estable de Gestión de precios */
.mk-conflict-choice-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.mk-conflict-choice-guide>div{border:1px solid #e3e7ef;border-radius:10px;background:#f8f9fc;padding:.65rem .75rem;min-width:0}
.mk-conflict-choice-guide strong{display:block;font-size:.76rem;color:#344054;margin-bottom:.18rem}
.mk-conflict-choice-guide span{display:block;font-size:.69rem;line-height:1.35;color:#667085}
.mk-conflict-resolution-table th{white-space:normal;line-height:1.2;vertical-align:bottom}
.mk-conflict-resolution-table .form-select{min-width:230px}
@media (min-width:992px){
  .mk-price-conflict-modal .modal-dialog{max-width:1040px!important}
}
@media (max-width:991.98px){
  .mk-conflict-choice-guide{grid-template-columns:1fr}
  .mk-conflict-resolution-table .form-select{min-width:0;width:100%}
}

/* SweetAlert de Gestión de precios: ocupar el viewport real y centrar por flex,
   sin depender de la grilla interna de SweetAlert. */
.swal2-container.mk-price-modal-container{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:none!important;
  padding:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
  width:min(980px,calc(100vw - 28px))!important;
  max-width:980px!important;
  max-height:calc(100dvh - 28px)!important;
  margin:0!important;
  justify-self:auto!important;
  align-self:auto!important;
}
.swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{
  max-height:calc(100dvh - 112px)!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
@media (max-width:991.98px){
  .swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
    width:min(760px,calc(100vw - 18px))!important;
    max-width:760px!important;
  }
}
@media (max-width:767.98px){
  .swal2-container.mk-price-modal-container{padding:6px!important}
  .swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
  }
  .swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{
    max-height:calc(100dvh - 88px)!important;
  }
}


/* FIX7A15D · resolución de conflictos legible y Gestión de precios estable */
.mk-price-conflict-modal .modal-content{overflow:hidden}
.mk-price-conflict-modal .modal-body{padding:1rem 1.1rem 1.15rem}
.mk-price-conflict-modal .modal-footer{padding:.8rem 1rem}
.mk-conflict-bulk-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.mk-price-conflict-list{display:grid;gap:.8rem}
.mk-price-conflict-card{border:1px solid #e4e7ec;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.035)}
.mk-price-conflict-card-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:1rem;align-items:end;padding:.9rem 1rem;border-bottom:1px solid #eef2f6;background:#fbfcfe}
.mk-price-conflict-product,.mk-price-conflict-decision{min-width:0}
.mk-price-conflict-product>span,.mk-price-conflict-decision>label,.mk-price-conflict-values span{display:block;font-size:.64rem;font-weight:760;text-transform:uppercase;letter-spacing:.045em;color:#98a2b3;margin-bottom:.2rem}
.mk-price-conflict-product>strong{display:block;font-size:.98rem;line-height:1.2;color:#101828;overflow-wrap:anywhere}
.mk-price-conflict-product>small{display:block;margin-top:.22rem;font-size:.72rem;color:#667085}
.mk-price-conflict-decision .form-select{width:100%;min-width:0}
.mk-price-conflict-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:0}
.mk-price-conflict-values>div{min-width:0;padding:.8rem 1rem;border-right:1px solid #eef2f6}
.mk-price-conflict-values>div:last-child{border-right:0}
.mk-price-conflict-values strong{display:block;font-size:.78rem;line-height:1.45;color:#344054;overflow-wrap:anywhere}
.mk-conflict-footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:.8rem 1rem!important;align-items:center!important}
.mk-conflict-footer-hint{margin:0!important;min-width:0;line-height:1.35}
.mk-conflict-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}
@media(min-width:992px){.mk-price-conflict-modal .modal-dialog{max-width:940px!important}}
@media(max-width:767.98px){
  .mk-price-conflict-modal .modal-body{padding:.8rem}
  .mk-conflict-choice-guide{grid-template-columns:1fr!important}
  .mk-conflict-bulk-actions{display:grid;grid-template-columns:1fr}
  .mk-conflict-bulk-actions .btn{width:100%}
  .mk-price-conflict-card-head{grid-template-columns:1fr;align-items:stretch;padding:.8rem}
  .mk-price-conflict-values{grid-template-columns:1fr 1fr}
  .mk-price-conflict-values>div:nth-child(2){border-right:0}
  .mk-price-conflict-values>div:nth-child(-n+2){border-bottom:1px solid #eef2f6}
  .mk-conflict-footer{grid-template-columns:1fr!important}
  .mk-conflict-footer-actions{display:grid;grid-template-columns:1fr;width:100%}
  .mk-conflict-footer-actions .btn{width:100%}
}
@media(max-width:480px){
  .mk-price-conflict-values{grid-template-columns:1fr}
  .mk-price-conflict-values>div{border-right:0!important;border-bottom:1px solid #eef2f6!important}
  .mk-price-conflict-values>div:last-child{border-bottom:0!important}
}

/* Gestión de precios: SweetAlert funciona como modal real con cabecera fija,
   cuerpo desplazable y acciones siempre visibles. */
.swal2-container.mk-price-modal-container{padding:12px!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
  display:flex!important;flex-direction:column!important;
  width:min(920px,calc(100vw - 24px))!important;max-width:920px!important;
  max-height:calc(100dvh - 24px)!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
  border-radius:20px!important;
}
.mk-price-modal .swal2-title{
  flex:0 0 auto!important;width:100%!important;
  margin:0!important;padding:1.05rem 1.25rem .95rem!important;
  border-bottom:1px solid #eef2f6;font-size:1.55rem!important;line-height:1.2!important;
}
.swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{
  flex:1 1 auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:1rem 1.15rem 0!important;
  overflow-y:auto!important;overflow-x:hidden!important;text-align:left!important;
  overscroll-behavior:contain;
}
.mk-price-modal-grid{--bs-gutter-x:1rem;--bs-gutter-y:1rem;margin:0!important}
.mk-price-column-left,.mk-price-column-right{padding:0!important;border:0!important}
.mk-price-section{border:1px solid #e4e7ec;border-radius:15px;background:#fff;padding:1rem 1.05rem;box-shadow:0 1px 2px rgba(16,24,40,.025)}
.mk-price-section-title{display:flex;align-items:center;justify-content:center;gap:.45rem;margin:0 0 1rem;padding:0 0 .7rem;border-bottom:1px solid #eef2f6;font-size:1.05rem;font-weight:700;color:#344054}
.mk-price-section .rounded-3.shadow-sm{box-shadow:none!important}
.mk-price-section #grupo-valores{margin-left:0!important;margin-right:0!important}
.mk-price-modal-actions{
  position:sticky!important;bottom:0!important;z-index:10!important;
  display:flex!important;justify-content:flex-end!important;gap:.6rem!important;
  margin:0 -1.15rem!important;padding:.85rem 1.15rem!important;
  border-top:1px solid #e4e7ec;background:#fff!important;
  box-shadow:0 -8px 18px rgba(16,24,40,.055)!important;
}
.mk-price-modal-actions .btn{min-width:140px;min-height:42px}
.mk-price-modal .swal2-validation-message{flex:0 0 auto;margin:0!important;border-radius:0!important}
@media(max-width:991.98px){
  .swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{width:min(760px,calc(100vw - 18px))!important;max-width:760px!important}
  .mk-price-section{padding:.9rem}
}
@media(max-width:575.98px){
  .swal2-container.mk-price-modal-container{padding:5px!important}
  .swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important;max-height:calc(100dvh - 10px)!important;border-radius:15px!important}
  .mk-price-modal .swal2-title{font-size:1.18rem!important;padding:.85rem .9rem .75rem!important}
  .swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{padding:.75rem .75rem 0!important}
  .mk-price-modal-actions{display:grid!important;grid-template-columns:1fr!important;margin:0 -.75rem!important;padding:.7rem .75rem!important}
  .mk-price-modal-actions .btn{width:100%;min-width:0}
}


/* FIX7A15E · coherencia visual de Gestión de precios y resolución de conflictos */
/* Barra de selección: un único bloque compacto, sin franja azul vacía. */
.mk-price-catalog-mode .mk-product-toolbar.mk-price-toolbar{
  display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-bottom:.8rem;
}
.mk-price-toolbar-panel{
  display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;
  padding:.45rem .55rem;border:1px solid #e4e7ec;border-radius:12px;background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.025);min-width:0;
}
.mk-price-catalog-mode .mk-price-selection-bar{
  flex:0 1 auto!important;display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;
  min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
.mk-price-selection-count{
  display:inline-flex;align-items:center;gap:.35rem;min-height:31px;padding:.32rem .62rem;
  border:1px solid #e4e7ec;border-radius:999px;background:#f8fafc;color:#475467;white-space:nowrap;
}
.mk-price-selection-bar:not(.is-empty) .mk-price-selection-count{border-color:#c7d2fe;background:#eef2ff;color:#3730a3}
.mk-price-selection-clear{padding-inline:.45rem!important;text-decoration:none!important;color:#667085!important}
.mk-price-selection-clear:hover{color:#344054!important;background:#f2f4f7!important}
.mk-price-toolbar-pdf{margin-left:auto}
@media(max-width:767.98px){
  .mk-price-toolbar-panel{width:100%;display:grid;grid-template-columns:1fr;gap:.5rem}
  .mk-price-toolbar-panel>#mkSeleccionarVisibles{width:100%}
  .mk-price-catalog-mode .mk-price-selection-bar{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .mk-price-selection-count{grid-column:1/-1;justify-content:center}
  .mk-price-selection-bar .btn{width:100%}
  .mk-price-toolbar-pdf{margin-left:0;width:100%}
}

/* Conflictos: usar el comportamiento estándar de modal; pie y cabecera acompañan al contenido. */
.mk-price-conflict-modal .modal-dialog{max-width:900px!important}
.mk-price-conflict-modal .modal-content{overflow:visible!important}
.mk-price-conflict-modal .modal-body{padding:1rem 1rem 1.1rem!important;overflow:visible!important}
.mk-price-conflict-modal .modal-footer{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:.7rem!important;flex-wrap:wrap!important;
  padding:.8rem 1rem!important;background:#fff;position:static!important;box-shadow:none!important;
}
.mk-conflict-footer-hint{flex:1 1 260px;margin:0!important}
.mk-conflict-footer-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-left:auto}
.mk-conflict-choice-guide{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-bottom:.7rem!important}
.mk-conflict-choice-guide>div{padding:.62rem .7rem;border-radius:12px;background:#f9fafb}
.mk-conflict-bulk-actions{margin-bottom:.75rem!important;padding-bottom:.75rem;border-bottom:1px solid #eef2f6}
.mk-price-conflict-list{gap:.75rem}
.mk-price-conflict-card{border-radius:12px;box-shadow:none}
.mk-price-conflict-card-head{
  grid-template-columns:minmax(0,1fr) minmax(240px,310px);gap:.8rem;align-items:center;
  padding:.8rem .9rem;background:#fff;border-bottom:1px solid #eef2f6;
}
.mk-price-conflict-product>span,.mk-price-conflict-decision>label,.mk-price-conflict-values span{font-size:.62rem}
.mk-price-conflict-identity{display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap;min-width:0}
.mk-price-conflict-code{font-weight:800;color:#101828;font-size:.9rem;letter-spacing:.01em}
.mk-price-conflict-name{font-weight:700;color:#344054;font-size:.9rem;min-width:0;overflow-wrap:anywhere}
.mk-price-conflict-product>small{margin-top:.3rem}
.mk-price-conflict-values>div{padding:.7rem .9rem}
.mk-price-conflict-values strong{font-size:.76rem}
@media(max-width:767.98px){
  .mk-price-conflict-modal .modal-dialog{max-width:none!important;margin:.5rem!important}
  .mk-price-conflict-card-head{grid-template-columns:1fr;align-items:stretch}
  .mk-price-conflict-values{grid-template-columns:1fr 1fr}
  .mk-conflict-footer-actions{width:100%;display:grid;grid-template-columns:1fr}
  .mk-conflict-footer-actions .btn{width:100%}
}

/* Gestión de precios: mismo criterio que el resto de los modales. Las acciones están al final
   del formulario y aparecen al llegar al final, no quedan flotando sobre el contenido. */
.swal2-container.mk-price-modal-container{padding:18px!important;align-items:center!important;justify-content:center!important;overflow-y:auto!important}
.swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
  display:block!important;width:min(900px,calc(100vw - 36px))!important;max-width:900px!important;
  max-height:calc(100dvh - 36px)!important;padding:0!important;margin:auto!important;overflow:hidden!important;border-radius:18px!important;
}
.mk-price-modal .swal2-title{margin:0!important;padding:1rem 1.15rem .9rem!important;border-bottom:1px solid #eef2f6;font-size:1.4rem!important}
.swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{
  display:block!important;max-height:calc(100dvh - 116px)!important;min-height:0!important;
  margin:0!important;padding:1rem 1rem 1rem!important;overflow-y:auto!important;overflow-x:hidden!important;text-align:left!important;
}
.mk-price-modal-grid{margin:0!important}
.mk-price-modal-actions{
  position:static!important;display:flex!important;justify-content:flex-end!important;gap:.6rem!important;
  margin:1rem 0 0!important;padding:.9rem 0 0!important;border-top:1px solid #e4e7ec!important;background:transparent!important;box-shadow:none!important;
}
.mk-price-modal-actions .btn{min-width:135px;min-height:40px}
@media(max-width:575.98px){
  .swal2-container.mk-price-modal-container{padding:6px!important}
  .swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:14px!important}
  .swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{max-height:calc(100dvh - 88px)!important;padding:.75rem!important}
  .mk-price-modal-actions{display:grid!important;grid-template-columns:1fr!important}
  .mk-price-modal-actions .btn{width:100%;min-width:0}
}

/* FIX7A16 — Carga de mercadería */
.mk-page-load-entry .mk-page{max-width:1320px}.mk-load-compose-card{background:#fff;border:1px solid var(--mk-border,#e5e7eb);border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(15,23,42,.05);margin-bottom:18px}.mk-load-compose-top{display:flex;gap:16px;align-items:flex-end}.mk-load-date-field{width:190px;flex:0 0 190px}.mk-load-empty{min-height:220px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;color:#64748b}.mk-load-empty i{font-size:2.25rem;color:#94a3b8}.mk-load-empty strong{color:#334155}.mk-load-lines{display:grid;gap:14px}.mk-load-line{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.04);overflow:hidden}.mk-load-line-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #eef2f7;background:#fbfdff}.mk-load-line-head>div{display:flex;align-items:center;gap:9px;min-width:0}.mk-load-line-head strong{overflow:hidden;text-overflow:ellipsis}.mk-load-line-head small{color:#64748b}.mk-load-line-badge{font-size:.68rem;font-weight:800;letter-spacing:.05em;border-radius:999px;padding:4px 8px}.mk-load-line-badge.is-existing{background:#e0f2fe;color:#075985}.mk-load-line-badge.is-new{background:#dcfce7;color:#166534}.mk-load-line-grid{padding:16px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:end}.mk-load-field{min-width:0}.mk-load-field label{display:block;font-size:.76rem;font-weight:700;color:#475569;margin-bottom:5px}.mk-load-field small{display:block;color:#64748b;font-size:.7rem;margin-top:4px}.mk-load-field.mk-span-2{grid-column:span 2}.mk-load-price-preview{grid-column:span 2;border:1px solid #dbeafe;background:#f8fbff;border-radius:12px;padding:9px 12px;display:flex;flex-direction:column;min-height:62px;justify-content:center}.mk-load-price-preview small{color:#64748b;font-size:.72rem}.mk-load-price-preview strong{color:#0f172a;font-size:1.08rem}.mk-load-price-preview span{color:#64748b;font-size:.68rem}.mk-load-summary{position:sticky;bottom:12px;z-index:10;margin-top:18px;background:rgba(15,23,42,.96);color:#fff;border-radius:18px;padding:14px 16px;display:flex;gap:20px;align-items:center;box-shadow:0 18px 45px rgba(15,23,42,.22);backdrop-filter:blur(8px)}.mk-load-summary-metric{display:flex;flex-direction:column;min-width:95px}.mk-load-summary-metric small{color:#cbd5e1;font-size:.7rem;text-transform:uppercase;letter-spacing:.04em}.mk-load-summary-metric strong{font-size:1.05rem}.mk-load-summary-actions{margin-left:auto;display:flex;gap:9px}.mk-load-summary .btn-outline-secondary{color:#e2e8f0;border-color:#64748b}.mk-load-summary .btn-outline-secondary:hover{background:#334155;color:#fff}.mk-load-entry-header .btn{white-space:nowrap}
@media(max-width:991.98px){.mk-load-line-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-load-price-preview{grid-column:span 1}.mk-load-compose-top{align-items:stretch}.mk-load-summary{position:static;flex-wrap:wrap}.mk-load-summary-actions{width:100%;margin-left:0}.mk-load-summary-actions .btn{flex:1}}
@media(max-width:575.98px){.mk-load-compose-top{flex-direction:column}.mk-load-date-field{width:100%;flex-basis:auto}.mk-load-line-grid{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.mk-load-field.mk-span-2,.mk-load-price-preview{grid-column:1/-1}.mk-load-line-head{align-items:flex-start}.mk-load-line-head>div{align-items:flex-start;flex-wrap:wrap}.mk-load-summary{border-radius:14px;gap:12px}.mk-load-summary-metric{min-width:calc(33.333% - 8px)}.mk-load-summary-actions{flex-direction:column}.mk-load-entry-header{align-items:flex-start!important}}
/* FIX7A16C — Carga compacta en grilla con editores bajo demanda */
.mk-page-load-entry .mk-page{max-width:1500px}
.mk-load-compose-compact{padding:14px 16px;margin-bottom:14px}
.mk-load-context{display:flex;gap:12px;align-items:flex-end}
.mk-load-context-item{flex:0 0 175px;min-height:72px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:9px 12px;display:flex;flex-direction:column;justify-content:center}
.mk-load-context-item>span{font-size:.68rem;text-transform:uppercase;letter-spacing:.045em;font-weight:800;color:#64748b}
.mk-load-context-item>strong{font-size:1.02rem;color:#0f172a;line-height:1.2;margin-top:2px}
.mk-load-context-item>small{font-size:.62rem;color:#94a3b8;line-height:1.25;margin-top:3px}
.mk-load-add-zone .form-label{font-size:.76rem;font-weight:750;margin-bottom:5px}
.mk-load-empty-compact{min-height:180px}
.mk-load-table-card{background:#fff;border:1px solid #e2e8f0;border-radius:15px;box-shadow:0 8px 22px rgba(15,23,42,.045);overflow:hidden}
.mk-load-table-wrap{max-height:clamp(300px,52vh,570px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.mk-load-table{width:100%;min-width:1180px;border-collapse:separate;border-spacing:0;table-layout:fixed;margin:0;font-size:.78rem}
.mk-load-table thead th{position:sticky;top:0;z-index:4;background:#f8fafc;color:#475569;font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em;padding:9px 9px;border-bottom:1px solid #dbe3ed;white-space:nowrap}
.mk-load-table tbody td{padding:7px 9px;border-bottom:1px solid #eef2f7;vertical-align:middle;background:#fff}
.mk-load-table tbody tr:last-child td{border-bottom:0}
.mk-load-table tbody tr:hover td{background:#fbfdff}
.mk-load-table .mk-col-qty{width:70px}.mk-load-table .mk-col-code{width:110px}.mk-load-table .mk-col-desc{width:230px}.mk-load-table .mk-col-brand{width:105px}.mk-load-table .mk-col-rubro{width:105px}.mk-load-table .mk-col-money{width:95px}.mk-load-table .mk-col-stock{width:85px}.mk-load-table .mk-col-actions{width:220px}
.mk-cell-qty .form-control{height:32px;padding:.25rem .35rem;font-size:.8rem;font-weight:750}
.mk-load-code{font-weight:800;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-cell-desc,.mk-cell-muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mk-cell-desc{font-weight:650;color:#334155}.mk-cell-muted{color:#64748b}
.mk-cell-number{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700;color:#334155}.mk-cell-number.is-negative{color:#b42318}
.mk-load-row-state{display:inline-block;margin-top:3px;padding:2px 5px;border-radius:999px;font-size:.54rem;font-weight:850;letter-spacing:.04em}.mk-load-row-state.is-pending{background:#fff3cd;color:#856404}.mk-load-row-state.is-new{background:#dcfce7;color:#166534}
.mk-load-actions-cell{display:flex;gap:5px;align-items:center;white-space:nowrap}.mk-load-actions-cell .btn{font-size:.68rem;padding:.28rem .45rem}.mk-load-actions-cell .btn i{margin-right:.2rem}.mk-load-actions-cell .mk-load-remove{padding-left:.42rem;padding-right:.42rem}.mk-load-actions-cell .mk-load-remove i{margin-right:0}
.mk-load-summary{margin-top:12px;padding:11px 14px;border-radius:15px}
.mk-load-price-info{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mk-load-price-info>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}.mk-load-price-info span,.mk-load-price-result span{font-size:.67rem;text-transform:uppercase;letter-spacing:.03em;font-weight:750;color:#64748b}.mk-load-price-info strong{font-size:.9rem;color:#0f172a}
.mk-load-price-result{border:1px solid #dbeafe;background:#f8fbff;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}.mk-load-price-result strong{font-size:1.15rem;color:#0f172a}.mk-load-price-result small{color:#64748b;margin-top:2px}
@media(max-width:991.98px){.mk-load-context{flex-wrap:wrap}.mk-load-context-item{flex:1 1 180px}.mk-load-add-zone{flex-basis:100%}.mk-load-table-wrap{max-height:50vh}.mk-load-summary{position:static}}
@media(max-width:575.98px){.mk-load-compose-compact{padding:12px}.mk-load-context{gap:8px}.mk-load-context-item{flex:1 1 calc(50% - 4px);min-height:66px}.mk-load-add-zone{flex-basis:100%}.mk-load-table{min-width:1100px}.mk-load-table-wrap{max-height:48vh}.mk-load-actions-cell .btn span{display:none}.mk-load-actions-cell .btn i{margin-right:0}.mk-load-table .mk-col-actions{width:120px}.mk-load-price-info{grid-template-columns:1fr}.mk-load-summary-actions{flex-direction:column}}

/* ========================================================================== */
/* FIX7A16D — Carga compacta: sin scroll horizontal + borradores persistentes */
/* ========================================================================== */
.mk-load-page-fluid{max-width:1500px!important}
.mk-load-context{align-items:stretch}
.mk-load-context-item{height:76px;min-height:76px;justify-content:flex-start;padding-top:10px}
.mk-load-add-zone{display:flex;flex-direction:column;justify-content:flex-start;min-width:0}
.mk-load-add-zone .input-group{min-height:42px}
.mk-load-draft-state{display:inline-flex;align-items:center;gap:5px;max-width:260px;font-size:.68rem;font-weight:750;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-load-draft-state span{overflow:hidden;text-overflow:ellipsis}
.mk-load-draft-state.is-saved{color:#15803d}.mk-load-draft-state.is-saving{color:#2563eb}.mk-load-draft-state.is-error{color:#b45309}
.mk-load-table-card{width:100%;overflow:hidden}
.mk-load-table-wrap{width:100%;max-height:clamp(300px,52vh,570px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
.mk-load-table{width:100%;min-width:0!important;table-layout:fixed;font-size:.75rem}
.mk-load-table thead th,.mk-load-table tbody td{padding-left:6px;padding-right:6px}
.mk-load-table .mk-col-qty{width:5.5%}.mk-load-table .mk-col-code{width:8.5%}.mk-load-table .mk-col-desc{width:19%}.mk-load-table .mk-col-brand{width:9%}.mk-load-table .mk-col-rubro{width:9%}.mk-load-table .mk-col-money{width:7.5%}.mk-load-table .mk-col-stock{width:7.2%}.mk-load-table .mk-col-actions{width:11.2%}
.mk-load-table td:not(.mk-load-actions-cell):not(.mk-cell-qty){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-load-actions-cell{display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;overflow:visible!important}
.mk-icon-btn{width:30px;height:30px;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;border-radius:8px!important}
.mk-icon-btn i{margin:0!important;font-size:.82rem}
.mk-load-table tbody tr.has-conflict td{background:#fffaf0}
.mk-load-row-state.is-conflict{background:#fef3c7;color:#92400e;margin-left:3px}
.mk-select-add{width:42px;display:inline-flex;align-items:center;justify-content:center}
.mk-load-summary-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.mk-load-summary .btn-outline-light{border-color:#94a3b8;color:#f8fafc}.mk-load-summary .btn-outline-light:hover{background:#f8fafc;color:#0f172a}
.mk-load-summary .btn-outline-danger{border-color:#f87171;color:#fecaca}.mk-load-summary .btn-outline-danger:hover{background:#dc2626;color:#fff}
.mk-load-conflict-grid{display:grid;gap:8px}.mk-conflict-line{display:flex;flex-direction:column;gap:3px;border:1px solid #fde68a;background:#fffbeb;border-radius:10px;padding:10px 12px}.mk-conflict-line span{color:#64748b;font-size:.82rem}.mk-conflict-row{display:grid;grid-template-columns:100px 1fr 24px 1fr;align-items:center;gap:8px;border:1px solid #e2e8f0;border-radius:10px;padding:9px 10px}.mk-conflict-row>strong{font-size:.78rem}.mk-conflict-row>div{min-width:0;display:flex;flex-direction:column}.mk-conflict-row small{font-size:.62rem;text-transform:uppercase;color:#94a3b8}.mk-conflict-row span{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mk-conflict-row>i{text-align:center;color:#94a3b8}

@media(max-width:1199.98px){
  .mk-load-table{font-size:.71rem}.mk-load-table thead th{font-size:.6rem}.mk-load-table .mk-col-desc{width:18%}.mk-load-table .mk-col-brand,.mk-load-table .mk-col-rubro{width:8.5%}.mk-load-table .mk-col-actions{width:12%}.mk-icon-btn{width:28px;height:28px}
  .mk-load-context-item{flex:0 0 170px}
}
@media(max-width:991.98px){
  .mk-load-context{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.mk-load-context-item{width:auto;min-width:0;flex:none}.mk-load-add-zone{grid-column:1/-1}.mk-load-table-wrap{max-height:50vh}
  .mk-load-table{font-size:.68rem}.mk-load-table thead th,.mk-load-table tbody td{padding-left:4px;padding-right:4px}.mk-load-table .mk-col-qty{width:6%}.mk-load-table .mk-col-code{width:8%}.mk-load-table .mk-col-desc{width:18%}.mk-load-table .mk-col-brand,.mk-load-table .mk-col-rubro{width:9%}.mk-load-table .mk-col-money{width:8%}.mk-load-table .mk-col-stock{width:7.5%}.mk-load-table .mk-col-actions{width:13%}.mk-icon-btn{width:26px;height:27px}
  .mk-load-summary{position:static}.mk-load-summary-actions{width:auto;margin-left:auto;flex-wrap:wrap}
}
@media(max-width:767.98px){
  .mk-load-table-card{background:transparent;border:0;box-shadow:none}.mk-load-table-wrap{overflow-x:hidden;max-height:55vh;padding-right:2px}.mk-load-table,.mk-load-table tbody{display:block;width:100%}.mk-load-table thead{display:none}.mk-load-table tbody{display:grid;gap:8px}.mk-load-table tbody tr{display:grid;grid-template-columns:80px 1fr 1fr;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:8px;box-shadow:0 4px 12px rgba(15,23,42,.04)}.mk-load-table tbody tr.has-conflict{border-color:#fbbf24}.mk-load-table tbody td{display:flex!important;min-width:0!important;width:auto!important;border:0!important;padding:4px 6px!important;background:transparent!important;align-items:center;gap:6px;white-space:normal!important;overflow:visible!important}.mk-load-table tbody td::before{content:attr(data-label);display:block;flex:0 0 auto;font-size:.58rem;text-transform:uppercase;letter-spacing:.03em;color:#94a3b8;font-weight:800}.mk-load-table .mk-cell-qty{grid-row:1/3;grid-column:1;flex-direction:column;align-items:stretch!important}.mk-load-table .mk-cell-qty input{height:100%;min-height:50px}.mk-load-table .mk-cell-code{grid-column:2}.mk-load-table .mk-cell-desc{grid-column:3}.mk-load-table .mk-cell-muted{grid-column:auto}.mk-load-table .mk-cell-number{justify-content:space-between}.mk-load-actions-cell{grid-column:1/-1!important;justify-content:flex-end!important;border-top:1px solid #eef2f7!important;padding-top:7px!important}.mk-load-actions-cell::before{margin-right:auto}.mk-icon-btn{width:34px;height:32px}.mk-load-row-state{margin-top:0;margin-left:3px}
  .mk-load-summary{gap:9px;padding:10px}.mk-load-summary-metric{min-width:calc(33.333% - 7px)}.mk-load-summary-actions{width:100%;display:grid;grid-template-columns:repeat(2,1fr);margin-left:0}.mk-load-summary-actions .btn{width:100%}.mk-load-summary-actions #btnConfirmarCarga{grid-column:1/-1}.mk-load-draft-state{max-width:180px}
  .mk-conflict-row{grid-template-columns:1fr}.mk-conflict-row>i{transform:rotate(90deg)}
}
@media(max-width:480px){.mk-load-context{grid-template-columns:1fr}.mk-load-add-zone{grid-column:1}.mk-load-context-item{height:auto;min-height:66px}.mk-load-summary-actions{grid-template-columns:1fr}.mk-load-summary-actions #btnConfirmarCarga{grid-column:1}.mk-load-summary-actions .btn span{display:inline}.mk-load-entry-header{gap:8px}.mk-load-entry-header .btn{width:100%}}
/* FIX7A16D alignment refinement: keep the actions TD as a real table cell. */
.mk-load-table td.mk-load-actions-cell{display:table-cell!important;overflow:visible!important;white-space:nowrap;text-align:center}
.mk-load-actions{display:flex;align-items:center;justify-content:center;gap:4px}
@media(max-width:767.98px){.mk-load-table tbody td.mk-load-actions-cell{display:flex!important}.mk-load-actions{margin-left:auto}}

/* FIX7A16G — más aire en los datos de cabecera de Carga de mercadería. */
.mk-load-context-item{padding:12px 15px!important;justify-content:center!important}
.mk-load-context-item>span{margin-bottom:2px}
.mk-load-context-item>small{margin-top:5px}


/* ==========================================================================
   FIX7A16H — usuario código 0 válido + alineación de cabecera de carga
   ========================================================================== */
@media(min-width:992px){
  .mk-load-context{
    display:grid;
    grid-template-columns:175px 175px minmax(0,1fr);
    gap:12px;
    align-items:stretch;
  }
  .mk-load-context-item{
    width:auto;
    height:auto;
    min-height:0;
    align-self:stretch;
    justify-content:flex-start!important;
    padding:11px 15px 10px!important;
  }
  .mk-load-add-zone{
    min-height:100%;
  }
}

/* FIX7A16J · paginación y filtros de la cola de escrituras */
@media(min-width:992px){
  .mk-queue-table th:nth-child(1){width:16%}
  .mk-queue-table th:nth-child(2){width:34%}
  .mk-queue-table th:nth-child(3){width:15%}
  .mk-queue-table th:nth-child(4){width:8%}
  .mk-queue-table th:nth-child(5){width:12%}
  .mk-queue-table th:nth-child(6){width:15%}
}
.mk-queue-filters{display:grid;grid-template-columns:minmax(145px,1.1fr) minmax(190px,1.55fr) minmax(170px,1.35fr) 96px auto;gap:.7rem;align-items:end;padding:.85rem;border:1px solid var(--mk-border);border-radius:14px;background:#f8fafc}
.mk-queue-filter-field{min-width:0}
.mk-queue-filter-field .form-label{margin-bottom:.3rem;font-size:.72rem;font-weight:750;color:#475467}
.mk-queue-filter-field .form-select{width:100%;min-width:0}
.mk-queue-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;white-space:nowrap}
.mk-queue-filter-actions .btn{min-height:38px}
.mk-queue-filter-note{display:flex;align-items:flex-start;gap:.4rem;color:#667085;font-size:.77rem;line-height:1.35}
.mk-queue-filter-note i{margin-top:.05rem;color:#98a2b3}
@media(max-width:991.98px){
  .mk-queue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mk-queue-filter-size{max-width:none}
  .mk-queue-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:575.98px){
  .mk-queue-filters{grid-template-columns:1fr;padding:.72rem}
  .mk-queue-filter-actions{grid-column:auto;display:grid;grid-template-columns:1fr auto;width:100%}
  .mk-queue-filter-actions .btn:first-child{width:100%}
  .mk-queue-filter-note{font-size:.73rem}
}


/* FIX7A16M P1 - confirmación de Carga de mercadería */
.mk-load-confirm-popup{width:min(540px,calc(100vw - 28px))!important;padding:1.65rem 1.55rem 1.35rem!important;border-radius:22px!important}
.mk-load-confirm-popup .swal2-icon{margin:0 auto 1rem!important}
.mk-load-confirm-popup .swal2-title{padding:0!important;margin:0 0 1rem!important;font-size:1.75rem!important;line-height:1.2!important}
.mk-load-confirm-html{margin:0!important;padding:0!important;text-align:left!important}
.mk-load-confirm-card{display:grid;gap:14px;color:#1f2937}
.mk-load-confirm-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mk-load-confirm-meta>div,.mk-load-confirm-summary>div{min-width:0;border:1px solid #e5e7eb;background:#f8fafc;border-radius:12px;padding:10px 12px}
.mk-load-confirm-meta span,.mk-load-confirm-summary span{display:block;color:#64748b;font-size:.76rem;font-weight:700;letter-spacing:.02em;margin-bottom:3px}
.mk-load-confirm-meta strong{display:block;font-size:1rem;color:#111827;overflow-wrap:anywhere}
.mk-load-confirm-summary{display:grid;grid-template-columns:.72fr .9fr 1.45fr;gap:10px}
.mk-load-confirm-summary strong{display:block;font-size:1.04rem;color:#111827;white-space:nowrap}
.mk-load-confirm-summary .is-total{background:#f0fdf4;border-color:#bbf7d0}
.mk-load-confirm-summary .is-total strong{color:#166534}
.mk-load-confirm-note{display:flex;align-items:flex-start;gap:9px;padding-top:2px;color:#6b7280;font-size:.88rem;line-height:1.45}
.mk-load-confirm-note i{color:#198754;font-size:1rem;margin-top:1px;flex:none}
.mk-load-confirm-actions{gap:10px!important;margin:1.35rem 0 0!important}
.mk-load-confirm-actions .swal2-styled{margin:0!important;min-width:132px;border-radius:10px!important;font-weight:700!important}
@media(max-width:575.98px){
  .mk-load-confirm-popup{padding:1.35rem 1rem 1.1rem!important;border-radius:18px!important}
  .mk-load-confirm-popup .swal2-title{font-size:1.5rem!important}
  .mk-load-confirm-meta{grid-template-columns:1fr 1fr}
  .mk-load-confirm-summary{grid-template-columns:1fr 1fr}
  .mk-load-confirm-summary .is-total{grid-column:1/-1}
  .mk-load-confirm-actions{width:100%;grid-template-columns:1fr 1fr;display:grid!important}
  .mk-load-confirm-actions .swal2-styled{width:100%;min-width:0}
}
@media(max-width:380px){.mk-load-confirm-meta{grid-template-columns:1fr}.mk-load-confirm-summary{grid-template-columns:1fr 1fr}}


/* FIX34 · Productos: una fila compacta en escritorio, campos condicionales y
   rubro/marca cruzados. Móvil: controles legibles sin desbordes. */
.mk-page-products .mk-products-filter-grid {
  display:grid;
  grid-template-columns:minmax(170px,190px) minmax(180px,1fr) max-content minmax(138px,155px) minmax(70px,82px);
  gap:.55rem .7rem;
  align-items:end;
  margin:0;
}
.mk-page-products .mk-products-filter-grid .mk-pf-field{min-width:0;width:auto;max-width:none;grid-row:1}
.mk-page-products .mk-products-filter-grid .mk-pf-main{grid-column:1}
.mk-page-products .mk-products-filter-grid .mk-pf-search{grid-column:2}
.mk-page-products .mk-products-filter-grid .mk-pf-price-state{grid-column:3}
.mk-page-products .mk-products-filter-grid .mk-pf-actions{grid-column:4;align-self:end}
.mk-page-products .mk-products-filter-grid .mk-pf-size{grid-column:5}
.mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] {
  grid-template-columns:minmax(150px,185px) minmax(130px,1fr) minmax(130px,1fr) minmax(160px,1.3fr) max-content minmax(138px,155px) minmax(65px,80px);
}
.mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-rubro{grid-column:2}
.mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-marca{grid-column:3}
.mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-search{grid-column:4}
.mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-price-state{grid-column:5}
.mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-actions{grid-column:6}
.mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-size{grid-column:7}
.mk-page-products .mk-products-filter-grid .form-control,
.mk-page-products .mk-products-filter-grid .form-select{width:100%;min-width:0}
.mk-page-products .mk-products-filter-grid .mk-pf-actions .btn{min-width:0;padding-inline:.6rem;white-space:nowrap}
.mk-page-products .mk-products-filter-grid .mk-pf-actions .btn[type=submit]{flex:1 1 auto}
.mk-page-products .mk-products-filter-grid .mk-pf-price-check{
  display:inline-flex;align-items:center;gap:.4rem;min-height:42px;padding:0 .5rem;
  margin:0;white-space:nowrap
}
.mk-page-products .mk-products-filter-grid .mk-pf-price-check .form-check-input{
  margin:0;float:none;flex:none;cursor:pointer
}
.mk-page-products .mk-products-filter-grid .mk-pf-price-check .form-check-label{
  font-size:.83rem;font-weight:600;cursor:pointer;line-height:1.1
}
@media(max-width:1199.98px){
  .mk-page-products .mk-products-filter-grid,
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] {
    grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(180px,2fr);
  }
  .mk-page-products .mk-products-filter-grid .mk-pf-field,
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-field {grid-column:auto;grid-row:auto}
  .mk-page-products .mk-products-filter-grid .mk-pf-main{grid-column:1}
  .mk-page-products .mk-products-filter-grid .mk-pf-search{grid-column:2/span 2}
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-main{grid-column:1}
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-rubro{grid-column:2}
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-marca{grid-column:3}
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-search{grid-column:1/span 3}
  .mk-page-products .mk-products-filter-grid .mk-pf-price-state{grid-column:1}
  .mk-page-products .mk-products-filter-grid .mk-pf-size{grid-column:3}
  .mk-page-products .mk-products-filter-grid .mk-pf-actions{grid-column:2}
}
@media(max-width:767.98px){
  .mk-page-products .mk-products-filter-grid,
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .65rem}
  .mk-page-products .mk-products-filter-grid .mk-pf-field,
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-field{grid-column:span 2;grid-row:auto}
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-rubro,
  .mk-page-products .mk-products-filter-grid[data-filter-mode="rubro_marca"] .mk-pf-marca{grid-column:span 1}
  .mk-page-products .mk-products-filter-grid .mk-pf-price-state{grid-column:1}
  .mk-page-products .mk-products-filter-grid .mk-pf-size{grid-column:2}
  .mk-page-products .mk-products-filter-grid .mk-pf-actions{grid-column:1/span 2}
  .mk-page-products .mk-products-filter-grid .mk-pf-actions .btn[type=submit]{flex:1 1 auto}
}

/* FIX7A16M_P2D — detalle auditable de operaciones WEB */
.mk-queue-info-modal .modal-content{border:0;border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(16,24,40,.22)}
.mk-queue-info-modal .modal-header{align-items:flex-start;padding:1rem 1.15rem;border-bottom:1px solid #eaecf0;background:#fff}
.mk-queue-info-modal .modal-body{padding:1rem 1.15rem 1.25rem;background:#f8fafc}
.mk-queue-info-modal .modal-footer{padding:.8rem 1rem;background:#fff;border-top:1px solid #eaecf0}
.mk-queue-info-subtitle{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:.35rem;color:#667085;font-size:.73rem}
.mk-queue-info-loading{display:flex;align-items:center;justify-content:center;gap:.65rem;min-height:180px;color:#667085;font-weight:650}
.mk-queue-info-meta,.mk-queue-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin-bottom:1rem}
.mk-queue-info-stat{min-width:0;padding:.78rem .85rem;border:1px solid #e4e7ec;border-radius:12px;background:#fff}
.mk-queue-info-stat>span{display:block;margin-bottom:.2rem;color:#98a2b3;font-size:.63rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.mk-queue-info-stat>strong{display:block;min-width:0;color:#101828;font-size:.86rem;line-height:1.35;overflow-wrap:anywhere}
.mk-queue-info-stat>small{display:block;margin-top:.2rem;color:#667085;font-size:.68rem}
.mk-queue-info-stat code{font-size:.69rem;color:#475467;word-break:break-all}
.mk-queue-info-heading{margin:1rem 0 .55rem;color:#344054;font-size:.82rem;font-weight:800}
.mk-queue-info-table-wrap{border:1px solid #e4e7ec;border-radius:12px;overflow:auto;background:#fff;max-height:430px}
.mk-queue-info-table{min-width:720px}
.mk-queue-info-table thead th{position:sticky;top:0;z-index:1;padding:.62rem .72rem;background:#f9fafb;color:#667085;font-size:.65rem;text-transform:uppercase;letter-spacing:.035em;border-bottom:1px solid #e4e7ec;white-space:nowrap}
.mk-queue-info-table tbody td{padding:.62rem .72rem;color:#475467;font-size:.75rem;border-color:#f0f2f5;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.mk-queue-info-table tbody td strong{color:#344054}
.mk-queue-info-table tbody tr:last-child td{border-bottom:0}
.mk-queue-info-table.is-load th:nth-child(2),.mk-queue-info-table.is-load th:nth-child(5),.mk-queue-info-table.is-load th:nth-child(6),.mk-queue-info-table.is-load th:nth-child(7){text-align:right}
.mk-queue-info-table.is-prices td:nth-child(2)>div{display:grid;grid-template-columns:52px minmax(90px,auto) 20px minmax(90px,auto);align-items:center;gap:.35rem;margin:.16rem 0}
.mk-queue-info-table.is-prices td:nth-child(2)>div span{color:#98a2b3;font-size:.65rem;font-weight:750;text-transform:uppercase}
.mk-queue-info-table.is-prices td:nth-child(2)>div i{text-align:center;color:#98a2b3}
.mk-queue-timeline{display:grid;gap:.2rem;padding:.1rem .15rem}
.mk-queue-timeline-item{display:grid;grid-template-columns:16px minmax(0,1fr);gap:.55rem;position:relative;padding:.28rem 0 .7rem}
.mk-queue-timeline-item:not(:last-child)::before{content:"";position:absolute;left:7px;top:18px;bottom:-2px;width:1px;background:#d0d5dd}
.mk-queue-timeline-dot{width:10px;height:10px;margin-top:.22rem;border-radius:50%;background:#98a2b3;box-shadow:0 0 0 3px #f2f4f7;z-index:1}
.mk-queue-timeline-dot.is-aplicada{background:#12b76a;box-shadow:0 0 0 3px #ecfdf3}.mk-queue-timeline-dot.is-error,.mk-queue-timeline-dot.is-conflicto{background:#f04438;box-shadow:0 0 0 3px #fef3f2}.mk-queue-timeline-dot.is-pendiente,.mk-queue-timeline-dot.is-requiere_revision{background:#f79009;box-shadow:0 0 0 3px #fffaeb}.mk-queue-timeline-dot.is-enviando{background:#2e90fa;box-shadow:0 0 0 3px #eff8ff}
.mk-queue-timeline-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;color:#344054;font-size:.73rem}
.mk-queue-timeline-head span{color:#98a2b3;font-size:.66rem;white-space:nowrap}
.mk-queue-timeline-item p{margin:.12rem 0 0;color:#667085;font-size:.71rem;line-height:1.35}.mk-queue-event-actor{display:block;margin-top:.16rem;color:#98a2b3;font-size:.64rem}
@media(max-width:991.98px){.mk-queue-info-meta,.mk-queue-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-queue-info-modal .modal-dialog{margin:.6rem}}
@media(max-width:575.98px){.mk-queue-info-modal .modal-dialog{margin:.35rem}.mk-queue-info-modal .modal-header,.mk-queue-info-modal .modal-body{padding:.8rem}.mk-queue-info-meta,.mk-queue-info-grid{grid-template-columns:1fr 1fr;gap:.45rem}.mk-queue-info-stat{padding:.62rem}.mk-queue-info-subtitle{font-size:.68rem}.mk-queue-info-table-wrap{max-height:52vh}.mk-queue-timeline-head{align-items:flex-start;flex-direction:column;gap:.08rem}}
@media(min-width:992px){
  .mk-queue-table th:nth-child(2){width:31%}
  .mk-queue-table th:nth-child(6){width:18%}
}

/* FIX7A16M_P2F · buscador de Productos: icono integrado, sin cortes ni input-group partido */
.mk-page-products .mk-products-filter-grid .mk-search-field{position:relative;width:100%;min-width:0}
.mk-page-products .mk-products-filter-grid .mk-search-field-icon{position:absolute;left:.9rem;top:50%;transform:translateY(-50%);z-index:2;color:#667085;font-size:1rem;pointer-events:none}
.mk-page-products .mk-products-filter-grid .mk-search-field-input{width:100%;padding-left:2.65rem;border-radius:11px!important}

/* FIX7A16M_P2F · mantenimiento seguro de datos de prueba */
.mk-reset-options{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.mk-reset-option{display:flex;align-items:flex-start;gap:.75rem;border:1px solid #d0d5dd;border-radius:14px;padding:1rem;background:#fff;cursor:pointer}
.mk-reset-option:hover{border-color:#a5b4fc;background:#fafbff}
.mk-reset-option.is-danger:hover{border-color:#fda29b;background:#fffafa}
.mk-reset-option .form-check-input{margin-top:.18rem;flex:0 0 auto}
.mk-reset-option span{display:block;min-width:0}.mk-reset-option strong{display:block;color:#101828;margin-bottom:.25rem}.mk-reset-option small{display:block;color:#667085;line-height:1.45}
@media(max-width:767.98px){.mk-reset-options{grid-template-columns:1fr}}

/* ========================================================================== */
/* FIX7A16M_P3G — auditoría integral de interfaz y experiencia móvil          */
/* ========================================================================== */

/* El contenido nunca debe ensanchar el viewport por textos, códigos o flex. */
html,body{max-width:100%;overflow-x:hidden}
.mk-page,.mk-page>*,.mk-panel,.mk-panel-body,.mk-panel-header,.mk-filter-panel,.mk-data-card,.table-card{min-width:0;max-width:100%}
.mk-page-header>* ,.mk-list-toolbar>* ,.mk-operation-card-head>* ,.mk-user-card-head>* ,.mk-audit-card-head>*{min-width:0}
.mk-page-title,.mk-page-subtitle,.mk-section-title,.mk-section-subtitle,.alert,.mk-chip,.badge{overflow-wrap:anywhere}
.mk-operation-card-title,.mk-operation-card-sub,.mk-operation-card-stat span,.mk-user-card-head strong,.mk-audit-card-head strong{overflow-wrap:anywhere}

/* Destinos táctiles coherentes sin agrandar de más la interfaz de escritorio. */
@media(max-width:991.98px){
  .maxi-navbar .nav-link,.maxi-navbar .dropdown-item{min-height:44px}
  .maxi-navbar .navbar-toggler{min-width:44px;min-height:40px}
  .mk-icon-btn,.mk-square-action,.mk-row-open{min-width:40px;min-height:40px}
}

/* Cabeceras y barras de acción: en móvil nunca quedan botones flotando o cortados. */
@media(max-width:767.98px){
  .mk-page-header{gap:.8rem}
  .mk-page-header>.btn,.mk-page-header>.mk-list-actions,.mk-page-header>.page-actions{width:100%}
  .mk-page-header>.btn{justify-content:center}
  .mk-page-header>.mk-list-actions,.mk-page-header>.page-actions{display:grid!important;grid-template-columns:1fr;gap:.5rem}
  .mk-page-header>.mk-list-actions .btn,.mk-page-header>.page-actions .btn{width:100%}
  .mk-panel-header.d-flex,.mk-panel-header>.d-flex.justify-content-between,.mk-panel-header>.d-flex.flex-wrap.justify-content-between{align-items:stretch!important;flex-direction:column!important}
  .mk-panel-header .btn{max-width:100%}
  .mk-list-actions{width:100%}
  .mk-list-actions .btn{flex:1 1 auto}
  .alert.d-flex.justify-content-between,.alert.d-flex.flex-wrap.justify-content-between{align-items:stretch!important;flex-direction:column!important}
  .alert.d-flex.justify-content-between .btn,.alert.d-flex.flex-wrap.justify-content-between .btn{width:100%}
}

/* Filtros: ningún control puede desbordar su columna. */
.mk-filter-panel .row>* ,.mk-report-filter .row>*{min-width:0}
.mk-filter-panel .input-group,.mk-filter-panel .form-control,.mk-filter-panel .form-select,
.mk-report-filter .input-group,.mk-report-filter .form-control,.mk-report-filter .form-select{min-width:0;max-width:100%}
@media(max-width:575.98px){
  .mk-filter-panel,.mk-report-filter{padding:.8rem!important;border-radius:15px!important}
  .mk-filter-panel .btn,.mk-report-filter .btn{min-height:44px}
}

/* Paginación compacta: permite 320–430 px sin scroll horizontal. */
@media(max-width:575.98px){
  .mk-pagination{padding:.7rem!important}
  .mk-pagination-controls{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem!important}
  .mk-pagination-controls>.mk-page-number,.mk-pagination-controls>.mk-page-current{display:none!important}
  .mk-pagination-controls>.mk-page-btn{width:100%;min-width:0;height:40px;padding:0 .5rem!important}
  .mk-pagination-controls>.mk-page-btn .mk-label{display:inline}
  .mk-pagination-info{font-size:.76rem}
}
@media(max-width:350px){
  .mk-pagination-controls>.mk-page-btn .mk-label{display:none}
  .mk-pagination-controls>.mk-page-btn{min-width:44px}
}

/* Tarjetas de operaciones: importes y nombres largos no fuerzan ancho. */
.mk-operation-card-head{min-width:0}
.mk-operation-card-head>div:first-child{min-width:0;flex:1 1 auto}
.mk-operation-card-total{flex:0 0 auto;max-width:48%;text-align:right;overflow-wrap:anywhere;white-space:normal}
@media(max-width:420px){
  .mk-operation-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}
  .mk-operation-card-total{max-width:42vw;font-size:.94rem}
}

/* Catálogo: en teléfono se prioriza el nombre completo y acciones cómodas. */
@media(max-width:575.98px){
  .mk-catalog-table tbody tr{grid-template-columns:minmax(0,1fr) auto;padding:.72rem}
  .mk-catalog-item-name{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3}
  .mk-catalog-actions{align-self:center}
  .mk-catalog-search>span{width:40px;flex:0 0 40px}
}

/* Promociones: herramientas y artículos seleccionados legibles en pantallas chicas. */
@media(max-width:575.98px){
  .mk-promo-config-actions{display:grid!important;grid-template-columns:1fr!important}
  .mk-promo-config-actions .btn{width:100%}
  .mk-promo-qty-toolbar{padding:.6rem}
  .mk-promo-qty-toolbar .mk-chip{align-self:stretch;justify-content:center}
  .mk-promo-selected-item{grid-template-columns:minmax(0,1fr) auto}
  .mk-promo-article-result{align-items:flex-start}
  .mk-promo-article-result .btn{flex:0 0 auto}
}

/* Usuarios y auditoría: cabeceras que se acomodan sin superponer badges. */
@media(max-width:420px){
  .mk-user-card-head,.mk-audit-card-head{flex-direction:column;align-items:stretch}
  .mk-user-card-head>div:last-child,.mk-audit-card-head>div:last-child{justify-content:flex-start!important}
}

/* Sincronización: acciones y contenido de las tarjetas ocupan el ancho útil. */
@media(max-width:575.98px){
  .mk-sync-actions{display:grid!important;grid-template-columns:1fr!important}
  .mk-sync-actions .btn{width:100%}
  .mk-sync-table td{gap:.65rem!important}
  .mk-sync-table td::before{flex-basis:34%!important}
  .mk-sync-table td>*{max-width:66%!important}
  .mk-queue-actions{justify-content:flex-end;flex-wrap:wrap}
}

/* Detalle de cola: en móvil deja de ser una tabla horizontal de 720 px. */
@media(max-width:767.98px){
  .mk-queue-info-table-wrap{overflow:visible;max-height:none;border:0;background:transparent}
  .mk-queue-info-table{min-width:0!important;display:block;width:100%}
  .mk-queue-info-table thead{display:none}
  .mk-queue-info-table tbody{display:grid;gap:.65rem}
  .mk-queue-info-table tr{display:block;width:100%;border:1px solid #e4e7ec;border-radius:12px;background:#fff;overflow:hidden}
  .mk-queue-info-table td{display:flex!important;align-items:flex-start;justify-content:space-between;gap:.7rem;width:100%;padding:.55rem .65rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere}
  .mk-queue-info-table td:last-child{border-bottom:0!important}
  .mk-queue-info-table td::before{content:attr(data-label);flex:0 0 34%;text-align:left;color:#98a2b3;font-size:.62rem;font-weight:780;text-transform:uppercase;letter-spacing:.035em}
  .mk-queue-info-table td>*{min-width:0;max-width:66%}
  .mk-queue-info-table.is-prices td:nth-child(2)>div{grid-template-columns:44px minmax(70px,1fr) 18px minmax(70px,1fr);width:66%;margin-left:auto}
  .mk-queue-info-table.is-prices td:nth-child(2)::before{align-self:flex-start}
}
@media(max-width:420px){
  .mk-queue-info-meta,.mk-queue-info-grid{grid-template-columns:1fr!important}
  .mk-queue-info-table td{flex-direction:column;text-align:left!important;gap:.22rem}
  .mk-queue-info-table td::before{flex-basis:auto}
  .mk-queue-info-table td>*{max-width:100%}
  .mk-queue-info-table.is-prices td:nth-child(2)>div{width:100%;margin-left:0;grid-template-columns:44px 1fr 18px 1fr}
}

/* Modales y SweetAlert: respetar el alto visual real del teléfono y safe areas. */
@media(max-width:767.98px){
  .modal:not(.mk-doc-modal) .modal-dialog{max-height:calc(100dvh - 1rem)!important}
  .modal:not(.mk-doc-modal) .modal-content{max-height:calc(100dvh - 1rem)!important}
  .modal:not(.mk-doc-modal) .modal-body{overflow-y:auto;overscroll-behavior:contain}
  .modal-footer{padding-bottom:max(.75rem,env(safe-area-inset-bottom))}
  .swal2-container{padding:max(6px,env(safe-area-inset-top)) 6px max(6px,env(safe-area-inset-bottom))!important}
  .swal2-popup{max-width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important}
  .swal2-html-container{max-width:100%;overflow-wrap:anywhere}
}

/* Navegación móvil: el menú puede desplazarse completo incluso con safe areas. */
@media(max-width:991.98px){
  .maxi-navbar .navbar-collapse{max-height:calc(100dvh - 64px);overscroll-behavior:contain;padding-bottom:max(.75rem,env(safe-area-inset-bottom))}
  .maxi-nav-actions{padding-bottom:.25rem!important}
  .maxi-user-chip{max-width:100%;overflow:hidden}
  .maxi-user-chip>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Anclas internas quedan visibles debajo de la barra fija. */
[id]{scroll-margin-top:88px}

/* P3G · los importes críticos nunca se ocultan detrás de puntos suspensivos. */
@media(max-width:767.98px){
  .mk-report-kpi>strong,.mk-report-month-strip strong,.mk-doc-summary-value,
  .mk-payment-summary strong,.mk-payment-methods strong,.summary-value{
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere
  }
  .mk-report-kpi>strong{font-size:clamp(.9rem,4vw,1.05rem)}
  .mk-doc-summary-value{line-height:1.25}
}

/* La grilla compacta de Carga conserva densidad en tablet; en teléfono ya usa tarjetas. */
@media(min-width:768px) and (max-width:991.98px){
  .mk-load-table .mk-icon-btn{min-width:28px;min-height:28px;width:28px;height:28px}
}

/* P4 RC12 — Auditoría: jerarquía legible de actividad administrativa/seguridad. */
.mk-web-security-event{grid-template-columns:180px minmax(210px,.9fr) minmax(280px,1.35fr) minmax(190px,.85fr);gap:1rem;padding:.78rem .95rem;align-items:start}
.mk-web-security-event>div{min-width:0}
.mk-web-security-event>div>small{display:block;margin-bottom:.2rem;color:#98a2b3;font-size:.61rem;font-weight:700;text-transform:uppercase;letter-spacing:.025em}
.mk-web-security-event>div>strong{display:block;color:#344054;font-size:.75rem;line-height:1.35;overflow-wrap:anywhere}
.mk-web-security-event>div>span:not(.badge):not(.mk-audit-event-status){display:block;margin-top:.22rem;color:#667085;font-size:.69rem;line-height:1.4;overflow-wrap:anywhere}
.mk-audit-event-datetime{white-space:nowrap;overflow-wrap:normal!important}
.mk-audit-event-status{display:inline-flex;align-items:center;width:max-content;margin-top:.32rem;padding:.15rem .42rem;border-radius:999px;font-size:.6rem!important;font-weight:800;line-height:1.2;letter-spacing:.02em}
.mk-audit-event-status.is-ok{background:#ecfdf3;color:#027a48}
.mk-audit-event-status.is-offline{background:#fff7ed;color:#b54708}
.mk-audit-event-status.is-neutral{background:#f2f4f7;color:#475467}
@media(max-width:1099.98px){.mk-web-security-event{grid-template-columns:180px minmax(0,1fr)}.mk-web-security-event>div:nth-child(3),.mk-web-security-event>div:nth-child(4){padding-top:.15rem}}
@media(max-width:767.98px){.mk-web-security-event{grid-template-columns:1fr;gap:.7rem;padding:.8rem}.mk-web-security-event>div{padding:0!important}.mk-audit-event-datetime{white-space:normal}}

/* P4 RC13 — paginación compacta e independiente para Actividad administrativa WEB. */
.mk-admin-events-pagination{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.65rem .9rem;border-top:1px solid #e4e7ec;background:#f8faff;color:#667085;font-size:.7rem}
.mk-admin-events-pagination>div{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}
.mk-admin-events-pagination strong{color:#344054}
.mk-admin-page-btn{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:32px;padding:.38rem .62rem;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#475467;text-decoration:none;font-size:.7rem;font-weight:700;transition:border-color .15s ease,background-color .15s ease,color .15s ease}
.mk-admin-page-btn:hover:not(.disabled){border-color:#c7d2fe;background:#f8faff;color:var(--mk-primary)}
.mk-admin-page-btn.disabled{opacity:.4;pointer-events:none;cursor:default}
@media(max-width:767.98px){.mk-admin-events-pagination{align-items:stretch;flex-direction:column}.mk-admin-events-pagination>div{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.4rem}.mk-admin-page-btn{min-height:38px}.mk-admin-events-pagination>div>span{text-align:center;white-space:nowrap}}
@media(max-width:420px){.mk-admin-events-pagination>div{grid-template-columns:1fr 1fr}.mk-admin-events-pagination>div>span{grid-column:1/-1;grid-row:1}.mk-admin-page-btn{grid-row:2}}

/* P4 RC16 FIX5 — Turnos multi-caja */
.mk-turn-active-grid{display:flex;flex-wrap:wrap;gap:.8rem;align-items:stretch}.mk-turn-active-card{width:min(100%,420px);background:#fff;border:1px solid var(--mk-border);border-radius:18px;padding:1rem;box-shadow:var(--mk-shadow)}.mk-turn-active-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem}.mk-turn-active-head h3{font-size:.92rem;font-weight:760;margin:.45rem 0 .06rem}.mk-turn-active-head small{display:block;color:#98a2b3;font-size:.66rem}.mk-turn-active-head>strong{font-size:1rem;color:#667085}.mk-turn-active-meta{display:grid;gap:.3rem;margin-top:.75rem;padding-top:.7rem;border-top:1px solid #eef2f6}.mk-turn-active-meta span{display:flex;align-items:center;gap:.4rem;font-size:.72rem;color:#667085}.mk-turn-active-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;margin-top:.7rem}.mk-turn-active-values>div{background:#f8fafc;border-radius:10px;padding:.52rem}.mk-turn-active-values small{display:block;font-size:.6rem;color:#98a2b3}.mk-turn-active-values strong{display:block;font-size:.73rem;margin-top:.08rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-turn-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.mk-turn-health-card{background:#fff;border:1px solid var(--mk-border);border-radius:16px;padding:.8rem .95rem;box-shadow:var(--mk-shadow);min-height:0}.mk-turn-health-card.is-warning{background:#fffcf5}.mk-turn-health-card.is-info{background:#f9fbff}.mk-turn-health-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:#667085;font-size:.72rem;font-weight:760}.mk-turn-health-head i{font-size:.9rem;color:#98a2b3}.mk-turn-health-value{font-size:1.35rem;font-weight:820;letter-spacing:-.03em;color:#101828;line-height:1.05;margin-top:.45rem}.mk-turn-health-sub{font-size:.72rem;color:#667085;line-height:1.35;margin-top:.25rem;max-width:28ch}.mk-turn-pc{display:flex;flex-direction:column}.mk-turn-pc strong{font-size:.77rem}.mk-turn-pc small{font-size:.62rem;color:#98a2b3}.mk-turn-table td,.mk-turn-table th{white-space:nowrap}.mk-turn-mobile{display:none}.mk-turn-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.mk-turn-detail-grid>div{border:1px solid #eef2f6;background:#fafbfc;border-radius:11px;padding:.65rem;min-width:0}.mk-turn-detail-grid small{display:block;color:#98a2b3;font-size:.62rem;text-transform:uppercase;letter-spacing:.04em;font-weight:720}.mk-turn-detail-grid strong{display:block;margin-top:.15rem;font-size:.78rem;overflow-wrap:anywhere}.mk-turn-config-list{display:grid;gap:.65rem}.mk-turn-config-row{display:grid;grid-template-columns:minmax(220px,1.15fr) minmax(210px,1fr) minmax(210px,.9fr) auto;gap:.8rem;align-items:end;padding:.8rem;border:1px solid #e4e7ec;border-radius:14px;background:#fafbfc}.mk-turn-config-ident{display:flex;align-items:center;gap:.65rem;min-width:0}.mk-turn-config-ident>div{min-width:0}.mk-turn-config-ident strong{display:block;font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mk-turn-config-ident small{display:block;color:#98a2b3;font-size:.64rem;margin-top:.08rem}.mk-turn-config-switch{display:flex;align-items:center;gap:.55rem;margin:0;padding:.55rem .5rem .55rem 2.7rem;border:1px solid #e4e7ec;border-radius:11px;background:#fff;min-height:40px}.mk-turn-config-switch .form-check-input{margin-left:-2rem}.mk-turn-config-switch span{display:flex;flex-direction:column}.mk-turn-config-switch strong{font-size:.72rem}.mk-turn-config-switch small{font-size:.6rem;color:#98a2b3}.mk-turn-config-row .form-label{font-size:.66rem;margin-bottom:.25rem;color:#667085;font-weight:680}
@media(max-width:991.98px){.mk-turn-config-row{grid-template-columns:1fr 1fr}.mk-turn-config-row>button{width:100%}}
@media(max-width:767.98px){.mk-turn-desktop{display:none}.mk-turn-mobile{display:grid;gap:.65rem}.mk-turn-health-grid{grid-template-columns:1fr}.mk-turn-active-card{width:100%}.mk-turn-card{background:#fff;border:1px solid var(--mk-border);border-radius:15px;padding:.8rem;box-shadow:var(--mk-shadow)}.mk-turn-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem}.mk-turn-card-head>div{display:flex;flex-direction:column;align-items:flex-start;gap:.28rem;min-width:0}.mk-turn-card-head strong{font-size:.82rem;overflow-wrap:anywhere}.mk-turn-card-head small{font-size:.66rem;color:#667085}.mk-turn-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.7rem;padding-top:.65rem;border-top:1px solid #eef2f6}.mk-turn-card-grid span{display:flex;flex-direction:column;font-size:.7rem;font-weight:650;min-width:0}.mk-turn-card-grid small{font-size:.58rem;color:#98a2b3;text-transform:uppercase;letter-spacing:.04em}.mk-turn-detail-grid{grid-template-columns:1fr 1fr}.mk-turn-config-row{grid-template-columns:1fr;align-items:stretch}.mk-turn-config-row>button{width:100%}}
@media(max-width:420px){.mk-turn-detail-grid{grid-template-columns:1fr}.mk-turn-card-grid{grid-template-columns:1fr}.mk-turn-health-sub{max-width:none}}

/* P4 RC16 FIX6 — reportes de turno, vista previa y continuidad por cortes */
.mk-turn-candidate{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem;margin-bottom:.8rem;border:1px solid #fedf89;border-radius:12px;background:#fffaeb}.mk-turn-candidate>div{min-width:0}.mk-turn-candidate small,.mk-turn-candidate span{display:block;color:#667085;font-size:.66rem}.mk-turn-candidate strong{display:block;margin:.12rem 0;font-size:.78rem;color:#344054}.mk-turn-report-paper{max-width:920px;margin:0 auto;background:#fff;border:1px solid #d0d5dd;border-radius:18px;box-shadow:0 12px 34px rgba(16,24,40,.08);padding:1.35rem}.mk-turn-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:2px solid #101828}.mk-turn-report-brand{font-size:.64rem;font-weight:800;letter-spacing:.1em;color:#667085}.mk-turn-report-head h2{margin:.18rem 0 .15rem;font-size:1.28rem;font-weight:850;letter-spacing:.025em}.mk-turn-report-head p{margin:0;color:#667085;font-size:.72rem}.mk-turn-report-status{display:inline-flex;align-items:center;gap:.35rem;padding:.42rem .62rem;border-radius:999px;font-size:.67rem;font-weight:850;white-space:nowrap}.mk-turn-report-status.is-open{background:#ecfdf3;color:#027a48}.mk-turn-report-status.is-closed{background:#f2f4f7;color:#344054}.mk-turn-report-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;padding:1rem 0}.mk-turn-report-meta>div{padding:.62rem;border:1px solid #eaecf0;border-radius:10px;background:#fafafa}.mk-turn-report-meta small{display:block;color:#98a2b3;font-size:.58rem;font-weight:800;letter-spacing:.05em}.mk-turn-report-meta strong{display:block;margin-top:.12rem;font-size:.72rem;color:#344054;overflow-wrap:anywhere}.mk-turn-report-note{margin:.65rem 0;padding:.7rem .8rem;border-left:4px solid #2e90fa;border-radius:8px;background:#eff8ff;color:#344054;font-size:.72rem;line-height:1.45}.mk-turn-report-note.is-recovery{border-left-color:#f79009;background:#fffaeb}.mk-turn-report-note.is-digital{border-left-color:#7f56d9;background:#f9f5ff}.mk-turn-report-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.75fr);gap:1rem;margin-top:1rem}.mk-turn-report-lines{border-top:1px solid #101828}.mk-turn-report-lines>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.48rem .15rem;border-bottom:1px dashed #d0d5dd;font-size:.74rem}.mk-turn-report-lines span{color:#344054;font-weight:720}.mk-turn-report-lines span small{font-weight:500;color:#98a2b3}.mk-turn-report-lines strong{font-size:.79rem;white-space:nowrap}.mk-turn-report-lines .is-digital{background:#fbf9ff}.mk-turn-report-totalbox{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;padding:1rem;border:2px solid #101828;border-radius:12px;text-align:right}.mk-turn-report-totalbox small{font-size:.58rem;font-weight:850;letter-spacing:.05em;color:#667085}.mk-turn-report-totalbox strong{margin:.18rem 0;font-size:1.4rem;color:#101828}.mk-turn-report-totalbox span{font-size:.62rem;color:#98a2b3;line-height:1.35}.mk-turn-report-basecheck{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem .8rem;align-items:center;margin-top:.8rem;padding:.62rem .75rem;background:#f8fafc;border-radius:10px;font-size:.7rem}.mk-turn-report-basecheck span{font-weight:720}.mk-turn-report-basecheck strong{font-size:.8rem}.mk-turn-report-basecheck small{grid-column:1/-1;color:#667085;line-height:1.35}.mk-turn-report-section{margin-top:1.2rem}.mk-turn-report-section h3{margin:0 0 .45rem;font-size:.82rem;font-weight:820;text-transform:uppercase;letter-spacing:.035em}.mk-turn-report-table{font-size:.69rem}.mk-turn-report-table th{font-size:.58rem;color:#667085;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.mk-turn-report-table td small{display:block;color:#98a2b3;font-size:.57rem}.mk-turn-report-footnote{margin:.35rem 0 0;color:#667085;font-size:.64rem}.mk-turn-report-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.25rem;padding-top:.7rem;border-top:1px solid #d0d5dd;color:#98a2b3;font-size:.61rem}.mk-turn-recovery-offer{display:flex;align-items:center;justify-content:space-between;gap:1rem}.mk-turn-recovery-offer>div{min-width:0}.mk-turn-recovery-offer h3{font-size:.95rem;margin:.2rem 0}.mk-turn-recovery-offer p{margin:0;color:#667085;font-size:.72rem;line-height:1.45}
@media(max-width:767.98px){.mk-turn-report-paper{padding:.9rem;border-radius:14px}.mk-turn-report-head{flex-direction:column}.mk-turn-report-meta{grid-template-columns:1fr 1fr}.mk-turn-report-main{grid-template-columns:1fr}.mk-turn-report-totalbox{align-items:flex-start;text-align:left}.mk-turn-recovery-offer,.mk-turn-candidate{align-items:stretch;flex-direction:column}.mk-turn-recovery-offer form .btn,.mk-turn-candidate form .btn{width:100%}.mk-turn-segments{min-width:780px}}
@media(max-width:420px){.mk-turn-report-meta{grid-template-columns:1fr}.mk-turn-report-footer{align-items:flex-start;flex-direction:column}.mk-turn-report-lines>div{align-items:flex-start;flex-direction:column;gap:.12rem}.mk-turn-report-lines strong{white-space:normal}}
@media print{body.mk-page-turn-report{background:#fff!important}.mk-page-turn-report .maxi-navbar,.mk-page-turn-report .mk-no-print{display:none!important}.mk-page-turn-report .mk-page{padding:0!important;margin:0!important;max-width:none!important}.mk-turn-report-paper{max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.mk-turn-report-note{-webkit-print-color-adjust:exact;print-color-adjust:exact}.mk-turn-report-table{font-size:8.5pt}.mk-turn-report-head h2{font-size:15pt}.mk-turn-report-totalbox strong{font-size:17pt}.mk-turn-report-section{break-inside:avoid}.mk-no-print-soft{break-inside:auto}}

/* P4 RC16 FIX7 — Turnos integrados en Ventas + reportes ampliados */
.mk-turn-card-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.mk-turn-card-actions .btn{min-width:0;white-space:nowrap}.mk-turn-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:.35rem}.mk-turn-row-actions .btn span{display:inline}.mk-turn-filter-link{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:.24rem .45rem;border-radius:8px;background:var(--mk-primary-soft);color:var(--mk-primary);font-size:.75rem;font-weight:800;text-decoration:none}.mk-turn-filter-link:hover{background:#e0e7ff;color:var(--mk-primary-strong)}
.mk-turn-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fff;border:1px solid var(--mk-border);border-radius:var(--mk-radius);box-shadow:var(--mk-shadow);padding:1rem 1.1rem;margin-bottom:.85rem}.mk-turn-hero-main{display:flex;align-items:center;gap:.85rem;min-width:0}.mk-turn-hero-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;display:grid;place-items:center;background:var(--mk-primary-soft);color:var(--mk-primary);font-size:1.15rem}.mk-turn-hero h2{font-size:1.08rem;font-weight:800;margin:0;letter-spacing:-.02em}.mk-turn-hero p{margin:.2rem 0 0;color:var(--mk-muted);font-size:.78rem}.mk-turn-hero-side{display:flex;flex-direction:column;align-items:flex-end;text-align:right}.mk-turn-hero-side small{font-size:.61rem;text-transform:uppercase;letter-spacing:.055em;color:var(--mk-muted-2);font-weight:780}.mk-turn-hero-side strong{font-size:.75rem;color:#475467;margin-top:.1rem}.mk-turn-state-pill{display:inline-flex;align-items:center;gap:.3rem;border-radius:999px;padding:.26rem .48rem;font-size:.62rem;font-weight:800;letter-spacing:.035em}.mk-turn-state-pill.is-open{background:var(--mk-success-soft);color:#027a48}.mk-turn-state-pill.is-closed{background:#f2f4f7;color:#475467}.mk-turn-state-pill.is-recovery{background:var(--mk-warning-soft);color:#b54708}
.mk-turn-view-tabs{display:flex;align-items:center;gap:.45rem;background:#fff;border:1px solid var(--mk-border);border-radius:15px;padding:.4rem;box-shadow:var(--mk-shadow);margin-bottom:.85rem;overflow:auto}.mk-turn-view-tabs a{display:flex;align-items:center;gap:.45rem;padding:.55rem .7rem;border-radius:10px;text-decoration:none;color:#667085;font-size:.78rem;font-weight:720;white-space:nowrap}.mk-turn-view-tabs a:hover{background:#f8fafc;color:var(--mk-primary)}.mk-turn-view-tabs a.active{background:var(--mk-primary-soft);color:var(--mk-primary)}.mk-turn-view-tabs em{font-style:normal;background:#f2f4f7;color:#667085;border-radius:999px;padding:.12rem .38rem;font-size:.61rem}.mk-turn-view-tabs a.active em{background:#fff;color:var(--mk-primary)}
.mk-turn-inline-alert{display:flex;align-items:flex-start;gap:.65rem;border:1px solid var(--mk-border);border-radius:14px;padding:.72rem .8rem;margin-bottom:.7rem;background:#fff}.mk-turn-inline-alert>i{font-size:1rem;margin-top:.02rem}.mk-turn-inline-alert strong{display:block;font-size:.76rem}.mk-turn-inline-alert span{display:block;font-size:.7rem;color:#667085;margin-top:.08rem;line-height:1.4}.mk-turn-inline-alert.is-info{background:var(--mk-info-soft);border-color:#b9e6fe}.mk-turn-inline-alert.is-info>i{color:var(--mk-info)}.mk-turn-inline-alert.is-warning{background:var(--mk-warning-soft);border-color:#fedf89}.mk-turn-inline-alert.is-warning>i{color:var(--mk-warning)}.mk-turn-inline-alert.is-purple{background:var(--mk-purple-soft);border-color:#ddd6fe}.mk-turn-inline-alert.is-purple>i{color:var(--mk-purple)}
.mk-turn-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.7rem;margin-bottom:.2rem}.mk-turn-kpi{display:flex;align-items:center;gap:.65rem;background:#fff;border:1px solid var(--mk-border);border-radius:15px;padding:.78rem .82rem;box-shadow:var(--mk-shadow);min-width:0}.mk-turn-kpi-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center}.mk-turn-kpi-icon.is-blue{background:var(--mk-primary-soft);color:var(--mk-primary)}.mk-turn-kpi-icon.is-green{background:var(--mk-success-soft);color:var(--mk-success)}.mk-turn-kpi-icon.is-purple{background:var(--mk-purple-soft);color:var(--mk-purple)}.mk-turn-kpi-icon.is-amber{background:var(--mk-warning-soft);color:var(--mk-warning)}.mk-turn-kpi-icon.is-neutral{background:#f2f4f7;color:#475467}.mk-turn-kpi-icon.is-indigo{background:#eef2ff;color:#4338ca}.mk-turn-kpi>div{min-width:0}.mk-turn-kpi small{display:block;color:#98a2b3;font-size:.58rem;text-transform:uppercase;letter-spacing:.04em;font-weight:760}.mk-turn-kpi strong{display:block;font-size:.9rem;color:#101828;margin-top:.08rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-turn-kpi em{display:block;font-style:normal;color:#98a2b3;font-size:.59rem;margin-top:.06rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-turn-cash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.mk-turn-cash-grid>div{border:1px solid #eef2f6;background:#fafbfc;border-radius:12px;padding:.72rem;min-width:0}.mk-turn-cash-grid>div.is-highlight{background:var(--mk-primary-soft);border-color:#c7d2fe}.mk-turn-cash-grid>div.is-digital{background:var(--mk-purple-soft);border-color:#ddd6fe}.mk-turn-cash-grid small{display:block;font-size:.62rem;color:#667085;font-weight:700}.mk-turn-cash-grid strong{display:block;font-size:1rem;margin-top:.12rem;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-turn-cash-grid em{display:block;font-style:normal;font-size:.58rem;color:#98a2b3;margin-top:.1rem}.mk-turn-movement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.mk-turn-movement-grid>div{display:flex;align-items:center;gap:.55rem;border:1px solid #eef2f6;border-radius:11px;padding:.58rem;background:#fff}.mk-turn-movement-grid>div>i{width:29px;height:29px;flex:0 0 29px;border-radius:9px;display:grid;place-items:center;background:#f2f4f7;color:#667085}.mk-turn-movement-grid span{min-width:0}.mk-turn-movement-grid small{display:block;font-size:.58rem;color:#98a2b3;text-transform:uppercase;font-weight:730}.mk-turn-movement-grid strong{display:block;font-size:.73rem;margin-top:.05rem}.mk-turn-difference{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.65rem .75rem;border-radius:11px;background:#f8fafc;border:1px solid #eef2f6;font-size:.72rem}.mk-turn-difference span{color:#667085;font-weight:700}.mk-turn-difference strong{font-size:.82rem}.mk-turn-info-list{display:grid;gap:0}.mk-turn-info-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.62rem 0;border-bottom:1px solid #f2f4f7}.mk-turn-info-list>div:last-child{border-bottom:0}.mk-turn-info-list span{font-size:.68rem;color:#667085}.mk-turn-info-list strong{font-size:.72rem;color:#344054;text-align:right;overflow-wrap:anywhere}
.mk-turn-modern-table{box-shadow:none!important}.mk-turn-modern-table th{font-size:.64rem!important}.mk-turn-modern-table td{font-size:.78rem!important;padding:.62rem .7rem}.mk-turn-modern-table td small{display:block;color:#98a2b3;font-size:.58rem;margin-top:.08rem}.mk-turn-modern-table tfoot th{background:#f8fafc!important;border-top:2px solid var(--mk-border)!important;color:#344054!important}.mk-mini-progress{display:inline-block;width:72px;height:6px;background:#eef2f6;border-radius:999px;overflow:hidden;vertical-align:middle;margin-right:.35rem}.mk-mini-progress span{display:block;height:100%;background:var(--mk-primary);border-radius:999px}.mk-turn-modern-table td>small{display:inline-block}.mk-turn-report-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}.mk-turn-toolbar-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.mk-turn-toolbar-actions .input-group{width:260px}.mk-turn-toolbar-actions .form-select{width:180px}.mk-turn-report-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-bottom:1px solid var(--mk-border);background:#fafbfc}.mk-turn-report-metrics>div{padding:.75rem .9rem;border-right:1px solid var(--mk-border);min-width:0}.mk-turn-report-metrics>div:last-child{border-right:0}.mk-turn-report-metrics small{display:block;font-size:.58rem;color:#98a2b3;text-transform:uppercase;letter-spacing:.04em;font-weight:760}.mk-turn-report-metrics strong{display:block;font-size:.88rem;margin-top:.1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mk-turn-sale-number{font-weight:800;text-decoration:none}.mk-turn-items-table code{font-size:.7rem;color:#475467;background:#f2f4f7;border-radius:6px;padding:.18rem .32rem}.mk-turn-items-table .mk-type-badge{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1199.98px){.mk-turn-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-turn-cash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:991.98px){.mk-turn-report-toolbar{align-items:stretch;flex-direction:column}.mk-turn-toolbar-actions{width:100%}.mk-turn-toolbar-actions .input-group{flex:1 1 260px;width:auto}.mk-turn-toolbar-actions .form-select{flex:1 1 180px;width:auto}.mk-turn-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-turn-report-metrics>div{border-bottom:1px solid var(--mk-border)}.mk-turn-row-actions .btn span{display:none}}
@media(max-width:767.98px){.mk-turn-hero{align-items:flex-start;flex-direction:column}.mk-turn-hero-side{align-items:flex-start;text-align:left;padding-left:3.85rem;margin-top:-.55rem}.mk-turn-view-tabs{margin-left:-.15rem;margin-right:-.15rem}.mk-turn-view-tabs a{padding:.5rem .58rem}.mk-turn-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-turn-cash-grid,.mk-turn-movement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-turn-card-actions{grid-template-columns:1fr}.mk-turn-card-actions .btn{width:100%}.mk-turn-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-turn-modern-table{min-width:720px}.mk-turn-items-table{min-width:840px}.mk-turn-toolbar-actions{display:grid;grid-template-columns:1fr;width:100%}.mk-turn-toolbar-actions .input-group,.mk-turn-toolbar-actions .form-select{width:100%}.mk-turn-inline-alert{padding:.65rem}.mk-turn-row-actions{gap:.25rem}}
@media(max-width:420px){.mk-turn-kpi-grid,.mk-turn-cash-grid,.mk-turn-movement-grid,.mk-turn-report-metrics{grid-template-columns:1fr}.mk-turn-hero-side{padding-left:0;margin-top:0}.mk-turn-hero-icon{width:42px;height:42px;flex-basis:42px}.mk-turn-info-list>div{flex-direction:column;gap:.15rem}.mk-turn-info-list strong{text-align:left}.mk-turn-view-tabs a span{display:none}.mk-turn-view-tabs a{min-width:44px;justify-content:center}.mk-turn-view-tabs em{display:none}}
@media print{.mk-page-turn-report .mk-turn-hero,.mk-page-turn-report .mk-turn-view-tabs,.mk-page-turn-report .mk-turn-inline-alert.mk-no-print{display:none!important}.mk-page-turn-report .mk-panel,.mk-page-turn-report .mk-turn-kpi{box-shadow:none!important}.mk-page-turn-report .mk-turn-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-page-turn-report .mk-turn-modern-table{min-width:0!important;font-size:8.5pt}.mk-page-turn-report .mk-turn-report-toolbar{display:block}.mk-page-turn-report .mk-turn-toolbar-actions{display:none!important}.mk-page-turn-report .mk-turn-report-metrics{break-inside:avoid}.mk-page-turn-report .mk-panel{break-inside:auto}}
.mk-turn-active-values{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ==========================================================================
   P4 RC16 FIX9 — regresión Ventas + pulido integral de Turnos
   ========================================================================== */
/* Ventas: FIX7 agregó Turno como 8ª columna. Reasignar anchos para que TOTAL
   no herede el ancho de 64px que antes correspondía al botón de detalle. */
@media(min-width:768px){
  .mk-page-sales .mk-operation-table{min-width:900px!important}
  .mk-page-sales .mk-operation-table th:nth-child(1){width:88px!important}
  .mk-page-sales .mk-operation-table th:nth-child(2){width:104px!important}
  .mk-page-sales .mk-operation-table th:nth-child(3){width:78px!important}
  .mk-page-sales .mk-operation-table th:nth-child(4){width:76px!important}
  .mk-page-sales .mk-operation-table th:nth-child(5){width:165px!important}
  .mk-page-sales .mk-operation-table th:nth-child(6){width:140px!important}
  .mk-page-sales .mk-operation-table th:nth-child(7){width:138px!important}
  .mk-page-sales .mk-operation-table th:nth-child(8){width:56px!important}
  .mk-page-sales .mk-operation-table td:nth-child(7),
  .mk-page-sales .mk-operation-table .mk-operation-total{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
}

/* Turnos: una única entrada por turno. Las pestañas internas hacen el resto. */
.mk-turn-active-grid{grid-template-columns:1fr!important}
.mk-turn-active-card{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(420px,1.55fr) auto;grid-template-rows:auto auto;column-gap:1rem;row-gap:.45rem;align-items:center;padding:1rem 1.05rem}
.mk-turn-active-head{grid-column:1;grid-row:1}
.mk-turn-active-meta{grid-column:1;grid-row:2;margin-top:0;padding-top:.45rem}
.mk-turn-active-values{grid-column:2;grid-row:1/3;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0;gap:.55rem}
.mk-turn-active-values>div{border:1px solid #eef2f6;background:#f8fafc;border-radius:13px;padding:.68rem .7rem}
.mk-turn-active-values strong{font-size:.82rem;overflow:visible;text-overflow:clip}
.mk-turn-active-card>.mk-turn-card-actions{grid-column:3;grid-row:1/3;margin:0!important;display:block;min-width:150px}
.mk-turn-active-card>.mk-turn-card-actions .btn{width:100%;min-height:40px;border-radius:11px!important}
.mk-turn-open-btn{display:inline-flex;align-items:center;justify-content:center;gap:.38rem;min-width:110px;border-radius:10px!important}
.mk-turn-card-actions{grid-template-columns:1fr!important}

/* Las tablas de Turnos deben sentirse como el resto del sistema: contenedor
   redondeado y separación respecto del encabezado, no pegadas a bordes rectos. */
.mk-turn-table-shell{border:1px solid var(--mk-border);border-radius:14px;overflow:auto;background:#fff}
.mk-turn-table-shell .table{margin-bottom:0}
.mk-turn-table-shell .table thead th:first-child{border-top-left-radius:13px}
.mk-turn-table-shell .table thead th:last-child{border-top-right-radius:13px}
.mk-turn-report-metrics{border:1px solid var(--mk-border);border-radius:14px;overflow:hidden;background:#fafbfc}
.mk-turn-report-metrics>div{border-bottom:0}
.mk-turn-audit-disclosure{background:#fff;border:1px solid var(--mk-border);border-radius:16px;box-shadow:var(--mk-shadow);overflow:hidden}
.mk-turn-audit-disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;cursor:pointer;color:#344054}
.mk-turn-audit-disclosure>summary::-webkit-details-marker{display:none}
.mk-turn-audit-disclosure>summary>span{display:flex;align-items:center;gap:.7rem;min-width:0}
.mk-turn-audit-disclosure>summary>span>i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--mk-primary-soft);color:var(--mk-primary);flex:0 0 34px}
.mk-turn-audit-disclosure>summary strong{display:block;font-size:.78rem}
.mk-turn-audit-disclosure>summary small{display:block;color:#98a2b3;font-size:.65rem;margin-top:.06rem}
.mk-turn-audit-chevron{color:#98a2b3;transition:transform .18s ease}
.mk-turn-audit-disclosure[open] .mk-turn-audit-chevron{transform:rotate(180deg)}
.mk-turn-audit-body{padding:.85rem 1rem 1rem;border-top:1px solid #eef2f6;background:#fafbfc}
.mk-turn-related-actions{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.7rem .8rem;border:1px solid var(--mk-border);border-radius:14px;background:#fff;box-shadow:var(--mk-shadow)}
.mk-turn-related-actions>span{display:flex;align-items:center;gap:.4rem;color:#667085;font-size:.72rem;font-weight:700}

/* Reporte imprimible fiel al concepto de MaxiKiosco. En pantalla se conserva
   la vista moderna; al imprimir/PDF se usa la maqueta original. */
.mk-turn-print-original{display:none}
@media print{
  @page{size:A4 portrait;margin:8mm 8mm 9mm 8mm}
  body.mk-page-turn-report{background:#fff!important;color:#000!important}
  .mk-page-turn-report .mk-turn-screen,
  .mk-page-turn-report .mk-page-header,
  .mk-page-turn-report .maxi-navbar,
  .mk-page-turn-report>.navbar{display:none!important}
  .mk-page-turn-report .mk-turn-print-original{display:block!important;font-family:Arial,Helvetica,sans-serif;color:#000;width:100%}
  .mk-turn-print-original *{box-sizing:border-box}
  .mk-turn-print-date{text-align:right;font-size:8pt;margin-bottom:1.5mm}
  .mk-turn-print-original h1{text-align:center;font-size:13.2pt;font-weight:700;margin:0 0 3mm}
  .mk-turn-print-user{display:flex;align-items:center;gap:3mm;width:50%;margin:0 0 3mm 0;font-size:9pt}
  .mk-turn-print-user span{flex:1;border:1px solid #111;padding:1.6mm 2.4mm;min-height:6mm}
  .mk-turn-print-summary{width:100%;border-collapse:collapse;table-layout:fixed;margin-bottom:2mm;font-size:6.9pt}
  .mk-turn-print-summary th{font-weight:700;text-align:center;padding:.9mm .45mm;border-bottom:1px solid #777}
  .mk-turn-print-summary th small{font-size:5.8pt;font-weight:600}
  .mk-turn-print-summary td{text-align:center;padding:1.2mm .45mm;vertical-align:top;white-space:nowrap}
  .mk-turn-print-totals{display:flex;align-items:center;justify-content:space-between;gap:4mm;margin:1.5mm 0 3mm}
  .mk-turn-print-totals>div{border:1px solid #111;padding:1.5mm 2.2mm;font-size:8.8pt}
  .mk-turn-print-totals>div:last-child{margin-left:auto;min-width:43mm;display:flex;justify-content:space-between;gap:4mm;align-items:center}
  .mk-turn-print-totals b{font-size:10.4pt}
  .mk-turn-print-warning{font-size:7.2pt;border:1px dashed #555;padding:1.4mm 2.2mm;margin:0 0 2.5mm}
  .mk-turn-print-lines,.mk-turn-print-sales,.mk-turn-print-items{width:100%;margin:0;border-collapse:collapse;font-size:8.3pt}
  .mk-turn-print-lines th,.mk-turn-print-sales th,.mk-turn-print-items th{font-weight:700;text-align:left;padding:1.0mm 1.4mm;border-bottom:1px solid #222}
  .mk-turn-print-lines td,.mk-turn-print-sales td,.mk-turn-print-items td{padding:.95mm 1.4mm;vertical-align:top}
  .mk-turn-print-lines th:first-child,.mk-turn-print-lines td:first-child{width:17%;text-align:right;padding-right:4mm}
  .mk-turn-print-lines th:last-child,.mk-turn-print-lines td:last-child{width:23%;text-align:right}
  .mk-turn-print-items th:first-child,.mk-turn-print-items td:first-child{width:20%}
  .mk-turn-print-items th:nth-child(3),.mk-turn-print-items td:nth-child(3){width:16%;text-align:right}
  .mk-turn-print-items th:last-child,.mk-turn-print-items td:last-child{width:22%;text-align:right}
  .mk-turn-print-sales th:nth-last-child(-n+3),.mk-turn-print-sales td:nth-last-child(-n+3){text-align:right}
  .mk-turn-print-group-date{display:flex;gap:4mm;width:38%;border:1px solid #111;border-radius:3px;padding:1.4mm 2.2mm;margin:0 0 2mm 0;font-size:8.2pt}
  .mk-turn-print-group-date+table{margin-bottom:3mm}
  .mk-turn-print-grand{margin:3mm 0 0 auto;border:1px solid #111;border-radius:3px;display:flex;justify-content:flex-end;gap:8mm;padding:1.5mm 2.8mm;width:max-content;min-width:42%;font-size:8.9pt}
  .mk-turn-print-grand strong{margin-right:auto}
}

@media(max-width:991.98px){
  .mk-turn-active-card{display:block}
  .mk-turn-active-meta{margin-top:.65rem;padding-top:.6rem}
  .mk-turn-active-values{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:.7rem}
  .mk-turn-active-card>.mk-turn-card-actions{margin-top:.75rem!important;min-width:0}
  .mk-turn-related-actions{align-items:flex-start;flex-direction:column}
}
@media(max-width:575.98px){.mk-turn-active-values{grid-template-columns:1fr 1fr}.mk-turn-open-btn{width:100%}.mk-turn-audit-body{padding:.7rem}.mk-turn-report-metrics{grid-template-columns:1fr 1fr}}


/* P4 RC16 FIX11 — paginación y pulido de reportes de turno */
.mk-turn-local-pager{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.75rem;padding:.7rem .8rem;border:1px solid var(--mk-border);border-radius:13px;background:#fafbfc}
.mk-turn-local-page-info{font-size:.72rem;color:#667085}
.mk-turn-local-page-controls{display:flex;align-items:center;gap:.4rem}
.mk-turn-page-size{width:auto!important;min-width:128px}
.mk-turn-items-table td:nth-child(2)>strong{display:block;line-height:1.25}
.mk-turn-item-tickets{display:flex!important;align-items:center;gap:.3rem!important;margin-top:.25rem!important;color:#98a2b3!important;font-size:.6rem!important;font-weight:600!important;line-height:1.2}
.mk-turn-item-tickets i{font-size:.62rem}
@media(max-width:767.98px){.mk-turn-local-pager{align-items:stretch;flex-direction:column}.mk-turn-local-page-controls{justify-content:center}.mk-turn-page-size{width:100%!important}}
@media print{.mk-turn-local-pager{display:none!important}}


/* P4 RC16 FIX12 — ajuste fino de proporciones y layout de turnos */
.mk-turn-active-grid{display:flex!important;flex-wrap:wrap;gap:.9rem;align-items:stretch}
.mk-turn-active-card{flex:1 1 430px;max-width:560px;display:block;padding:.95rem 1rem;border-radius:18px}
.mk-turn-active-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}
.mk-turn-active-head h3{margin:.45rem 0 .06rem;font-size:.94rem}
.mk-turn-active-meta{display:grid;gap:.3rem;margin-top:.7rem;padding-top:.65rem;border-top:1px solid #eef2f6}
.mk-turn-active-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.75rem}
.mk-turn-active-values>div{border:1px solid #eef2f6;background:#f8fafc;border-radius:12px;padding:.65rem .7rem}
.mk-turn-active-values small{display:block;font-size:.61rem;color:#98a2b3}
.mk-turn-active-values strong{display:block;font-size:.83rem;margin-top:.12rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-turn-active-card>.mk-turn-card-actions{margin-top:.8rem!important;display:flex;justify-content:flex-end;min-width:0}
.mk-turn-active-card>.mk-turn-card-actions .btn{width:auto;min-width:150px;min-height:40px;border-radius:11px!important}

.mk-turn-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.mk-turn-health-card{padding:.68rem .8rem;border-radius:14px;min-height:auto}
.mk-turn-health-head{font-size:.69rem}
.mk-turn-health-head i{font-size:.82rem}
.mk-turn-health-value{font-size:1.16rem;line-height:1.05;margin-top:.28rem}
.mk-turn-health-sub{font-size:.67rem;line-height:1.25;margin-top:.18rem;max-width:22ch}

.mk-turn-digital-panel .mk-panel-body{padding-top:.8rem;padding-bottom:.8rem}
.mk-turn-digital-panel .mk-turn-table-shell{border-radius:12px}

.mk-turn-audit-disclosure>summary>span>span{display:flex;flex-direction:column;gap:.12rem;min-width:0}
.mk-turn-segments td:first-child strong{display:block}
.mk-turn-segments td:first-child small{display:block;margin-top:.18rem;color:#98a2b3}

@media(max-width:991.98px){
  .mk-turn-active-card{max-width:none;flex:1 1 100%}
  .mk-turn-health-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767.98px){
  .mk-turn-active-values{grid-template-columns:1fr 1fr}
  .mk-turn-active-card>.mk-turn-card-actions{justify-content:stretch}
  .mk-turn-active-card>.mk-turn-card-actions .btn{width:100%}
  .mk-turn-health-grid{grid-template-columns:1fr}
}
@media(max-width:575.98px){
  .mk-turn-active-values{grid-template-columns:1fr 1fr}
  .mk-turn-health-card{padding:.7rem .8rem}
  .mk-turn-health-sub{max-width:none}
}


/* P4 RC16 FIX13 — selector de impresión + reporte clásico reorganizado */
.mk-print-choice-modal{border:0;border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(16,24,40,.22)}
.mk-print-choice-modal .modal-header{padding:1rem 1.1rem;border-bottom:1px solid var(--mk-border)}
.mk-print-choice-modal .modal-body{display:grid;gap:.7rem;padding:1rem}
.mk-print-choice{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;text-align:left;border:1px solid var(--mk-border);background:#fff;border-radius:14px;padding:.9rem;color:#344054;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.mk-print-choice:hover{border-color:#c7d2fe;box-shadow:0 8px 22px rgba(79,70,229,.08);transform:translateY(-1px)}
.mk-print-choice-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#f2f4f7;color:#475467;font-size:1.05rem}
.mk-print-choice-icon.is-web{background:var(--mk-primary-soft);color:var(--mk-primary)}
.mk-print-choice strong{display:block;font-size:.82rem;color:#101828}
.mk-print-choice small{display:block;margin-top:.15rem;font-size:.68rem;color:#667085;line-height:1.4}
.mk-print-choice>i{color:#98a2b3}

@media print{
  @page{size:A4 portrait;margin:7mm 8mm 8mm}
  body.mk-page-turn-report{background:#fff!important;color:#000!important}
  body.mk-page-turn-report .maxi-navbar,
  body.mk-page-turn-report>.navbar,
  body.mk-page-turn-report .mk-page-header,
  body.mk-page-turn-report #printChoiceModal{display:none!important}

  /* Por defecto y en modo fiel: sólo la maqueta tipo MaxiKiosco. */
  body.mk-page-turn-report:not(.mk-print-mode-web) .mk-turn-screen,
  body.mk-page-turn-report.mk-print-mode-faithful .mk-turn-screen{display:none!important}
  body.mk-page-turn-report:not(.mk-print-mode-web) .mk-turn-print-original,
  body.mk-page-turn-report.mk-print-mode-faithful .mk-turn-print-original{display:block!important;font-family:Arial,Helvetica,sans-serif;color:#000;width:100%;font-variant-numeric:tabular-nums}

  /* Vista WEB: imprime sólo el contenido moderno visible. */
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-print-original{display:none!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen{display:block!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-no-print,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-view-tabs,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-toolbar-actions,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-local-pager,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-audit-disclosure,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-related-actions,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-recovery-offer{display:none!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-panel,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-kpi,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-hero{box-shadow:none!important;break-inside:avoid}
  body.mk-page-turn-report.mk-print-mode-web .mk-panel{border:1px solid #d0d5dd!important;break-inside:auto}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-modern-table{min-width:0!important;font-size:8pt!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-report-metrics{break-inside:avoid}
  body.mk-page-turn-report.mk-print-mode-web tr[hidden]{display:table-row!important}

  /* Fiel: compacta, pero legible y equilibrada. */
  .mk-turn-print-original *{box-sizing:border-box}
  .mk-turn-print-topline{display:flex;justify-content:space-between;align-items:center;min-height:4mm;font-size:7.5pt;margin:0 0 .5mm}
  .mk-turn-print-original h1{text-align:center;font-size:13.5pt;font-weight:700;line-height:1.15;margin:0 0 3.2mm}
  .mk-turn-print-user{display:grid;grid-template-columns:auto minmax(0,72mm);align-items:center;justify-content:start;gap:3mm;margin:0 0 3mm 2mm;font-size:8.7pt}
  .mk-turn-print-user strong{font-size:8pt}
  .mk-turn-print-user span{border:1px solid #111;padding:1.35mm 2mm;min-height:5.6mm;display:flex;align-items:center}
  .mk-turn-print-summary{width:100%;border-collapse:collapse;table-layout:fixed;margin:0 0 2mm;font-size:7.2pt}
  .mk-turn-print-summary th{font-weight:700;text-align:center;padding:.8mm .4mm .65mm;border-bottom:1px solid #777;line-height:1.15}
  .mk-turn-print-summary th small{font-size:5.9pt;font-weight:600}
  .mk-turn-print-summary td{text-align:center;padding:1.1mm .4mm;vertical-align:top;white-space:nowrap;font-size:6.9pt}
  .mk-turn-print-totals{display:grid;grid-template-columns:minmax(48mm,68mm) minmax(48mm,58mm);align-items:center;justify-content:space-between;gap:8mm;margin:1mm 1mm 3mm}
  .mk-turn-print-totals>div{border:1px solid #111;padding:1.3mm 2mm;font-size:8.6pt;min-height:6.3mm;display:flex;align-items:center;justify-content:space-between;gap:3mm}
  .mk-turn-print-totals>div:last-child{margin-left:0;min-width:0}
  .mk-turn-print-totals b{font-size:9.7pt;white-space:nowrap}
  .mk-turn-print-warning{font-size:7pt;border:1px dashed #555;padding:1.2mm 2mm;margin:0 1mm 2.5mm;line-height:1.3}
  .mk-turn-print-lines,.mk-turn-print-sales,.mk-turn-print-items{width:94%;margin:0 auto;border-collapse:collapse;font-size:8.15pt}
  .mk-turn-print-lines th,.mk-turn-print-sales th,.mk-turn-print-items th{font-weight:700;text-align:left;padding:.9mm 1.3mm;border-bottom:1px solid #222}
  .mk-turn-print-lines td,.mk-turn-print-sales td,.mk-turn-print-items td{padding:.78mm 1.3mm;vertical-align:top;line-height:1.2}
  .mk-turn-print-lines th:first-child,.mk-turn-print-lines td:first-child{width:18%;text-align:right;padding-right:5mm}
  .mk-turn-print-lines th:last-child,.mk-turn-print-lines td:last-child{width:24%;text-align:right}
  .mk-turn-print-items th:first-child,.mk-turn-print-items td:first-child{width:20%}
  .mk-turn-print-items th:nth-child(3),.mk-turn-print-items td:nth-child(3){width:16%;text-align:right}
  .mk-turn-print-items th:last-child,.mk-turn-print-items td:last-child{width:22%;text-align:right}
  .mk-turn-print-sales th:nth-last-child(-n+3),.mk-turn-print-sales td:nth-last-child(-n+3){text-align:right}
  .mk-turn-print-group-date{display:flex;gap:4mm;width:38%;border:1px solid #111;border-radius:3px;padding:1.2mm 2mm;margin:0 0 2mm 3%;font-size:8pt}
  .mk-turn-print-group-date+table{margin-bottom:3mm}
  .mk-turn-print-grand{margin:3mm 3% 0 auto;border:1px solid #111;border-radius:3px;display:flex;justify-content:flex-end;gap:8mm;padding:1.35mm 2.5mm;width:max-content;min-width:42%;font-size:8.7pt}
  .mk-turn-print-grand strong{margin-right:auto}
}


/* P4 RC16 FIX14 — cabecera de auditoría unificada y más limpia */
.mk-turn-audit-disclosure>summary{align-items:flex-start;padding:.82rem .95rem}
.mk-turn-audit-summary{display:flex;flex-direction:column;gap:.18rem;min-width:0;flex:1}
.mk-turn-audit-title-row{display:flex;align-items:center;gap:.48rem;min-width:0}
.mk-turn-audit-title-row i{font-size:.9rem;color:var(--mk-primary);flex:0 0 auto}
.mk-turn-audit-title-row strong{display:block;font-size:.8rem;line-height:1.2;margin:0}
.mk-turn-audit-summary small{display:block;color:#98a2b3;font-size:.67rem;line-height:1.35;margin:0}
.mk-turn-audit-chevron{margin-top:.1rem}
@media(max-width:575.98px){
  .mk-turn-audit-disclosure>summary{padding:.78rem .85rem;gap:.7rem}
  .mk-turn-audit-summary small{font-size:.65rem}
}


/* P4 RC16 FIX15 — cabecera de auditoría tipo barra compacta */
.mk-turn-audit-disclosure{border-radius:18px;overflow:hidden}
.mk-turn-audit-disclosure>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.78rem .95rem .72rem;background:#fff}
.mk-turn-audit-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:.16rem;min-width:0}
.mk-turn-audit-title-row{display:flex;align-items:center;gap:.42rem;min-width:0}
.mk-turn-audit-title-row i{font-size:.78rem;color:#8b5cf6;opacity:.95;transform:translateY(-.5px)}
.mk-turn-audit-title-row strong{font-size:.76rem;line-height:1.18;color:#344054;font-weight:800;letter-spacing:0}
.mk-turn-audit-summary small{font-size:.64rem;line-height:1.3;color:#98a2b3;max-width:none}
.mk-turn-audit-chevron{font-size:.82rem;color:#98a2b3;align-self:start;margin-top:.08rem}
.mk-turn-audit-body{padding:.72rem .9rem .9rem;border-top:1px solid #eef2f6;background:#fafbfc}
@media(max-width:575.98px){
  .mk-turn-audit-disclosure>summary{padding:.72rem .82rem .66rem;gap:.6rem}
  .mk-turn-audit-title-row strong{font-size:.74rem}
  .mk-turn-audit-summary small{font-size:.63rem}
  .mk-turn-audit-body{padding:.65rem .78rem .82rem}
}

/* P4 RC16 FIX16 — auditoría unificada con paneles estándar */
.mk-turn-segments td:first-child small{display:block;margin-top:.16rem;color:#98a2b3;font-size:.7rem}


/* P4 RC16 FIX17 — auditoría desplegable con el mismo formato base de panel */
.mk-turn-panel-disclosure{overflow:hidden}
.mk-turn-panel-disclosure>summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;justify-content:space-between;gap:.85rem}
.mk-turn-panel-disclosure>summary::-webkit-details-marker{display:none}
.mk-turn-panel-summary-main{min-width:0;flex:1}
.mk-turn-panel-summary-title{display:flex;align-items:center;gap:.48rem;min-width:0}
.mk-turn-panel-summary-title i{color:var(--mk-primary);font-size:.9rem;flex:0 0 auto;margin-top:.05rem}
.mk-turn-panel-summary .mk-section-title{margin:0}
.mk-turn-panel-summary .mk-section-subtitle{margin-top:.18rem}
.mk-turn-panel-chevron{font-size:.9rem;color:#98a2b3;transition:transform .18s ease;flex:0 0 auto;margin-top:.08rem}
.mk-turn-panel-disclosure[open] .mk-turn-panel-chevron{transform:rotate(180deg)}
.mk-turn-panel-disclosure:not([open]) .mk-panel-body{display:none}
@media(max-width:575.98px){.mk-turn-panel-disclosure>summary{gap:.65rem}}


/* P4 RC16 FIX18 — paneles de turno como una sola unidad visual */
.mk-turn-flush-panel>.mk-panel-header{border-bottom:1px solid var(--mk-border)}
.mk-turn-flush-table{width:100%;border:0;border-radius:0;background:#fff;overflow-x:auto}
.mk-turn-flush-table .table{width:100%;margin:0;border:0;border-radius:0}
.mk-turn-flush-table .table thead th{background:#f8fafc;border-top:0;border-bottom:1px solid var(--mk-border);padding:.62rem .72rem}
.mk-turn-flush-table .table tbody td{padding:.68rem .72rem}
.mk-turn-flush-panel .mk-turn-panel-summary{border-bottom:1px solid var(--mk-border)}
.mk-turn-panel-disclosure:not([open]) .mk-turn-flush-table,
.mk-turn-panel-disclosure:not([open]) .mk-turn-flush-actions,
.mk-turn-panel-disclosure:not([open]) .mk-turn-flush-note{display:none}
.mk-turn-flush-actions{display:flex;justify-content:flex-end;gap:.5rem;padding:.55rem .75rem;border-bottom:1px solid #eef2f6;background:#fff}
.mk-turn-flush-note{padding:.55rem .75rem;border-top:1px solid #eef2f6;background:#fafbfc;color:#667085;font-size:.68rem}
.mk-turn-segments td:first-child small{margin-top:.16rem}
@media(max-width:767.98px){
  .mk-turn-flush-table .table thead th,.mk-turn-flush-table .table tbody td{padding:.58rem .62rem}
}


/* P4 RC16 FIX19 — turnos abiertos compactos + indicadores en chips */
.mk-turn-summary-chips{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:flex-end;align-items:center}
.mk-chip.mk-chip-warning{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.mk-chip.mk-chip-warning i,.mk-chip.mk-chip-warning strong{color:#9a3412}
.mk-chip.mk-chip-muted{background:#f8fafc;border-color:#e4e7ec;color:#667085}
.mk-chip.mk-chip-muted i,.mk-chip.mk-chip-muted strong{color:#667085}

.mk-turn-active-grid{display:flex;flex-wrap:wrap;gap:.85rem;align-items:flex-start}
.mk-turn-active-card{width:min(100%,360px);padding:.9rem .95rem;border-radius:18px}
.mk-turn-active-head h3{margin:.3rem 0 .05rem;font-size:.9rem}
.mk-turn-active-head>strong{font-size:.96rem}
.mk-turn-active-meta{margin-top:.62rem;padding-top:.58rem;gap:.24rem}
.mk-turn-active-meta span{font-size:.7rem}
.mk-turn-active-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem;margin-top:.62rem}
.mk-turn-active-values>div{padding:.56rem .58rem;border:1px solid #eef2f6;border-radius:11px}
.mk-turn-active-values small{font-size:.59rem}
.mk-turn-active-values strong{font-size:.82rem;margin-top:.12rem}
.mk-turn-active-card>.mk-turn-card-actions{margin-top:.72rem!important;display:flex;justify-content:flex-end}
.mk-turn-active-card>.mk-turn-card-actions .btn{min-width:150px;border-radius:11px}

@media(max-width:991.98px){.mk-turn-summary-chips{justify-content:flex-start}}
@media(max-width:767.98px){.mk-turn-active-card{width:100%}.mk-turn-summary-chips{width:100%}}


/* P4 RC16 FIX20 — ubicación correcta de indicadores + tarjeta activa realmente compacta */
.mk-turn-history-chips{display:flex;align-items:center;justify-content:flex-end;gap:.42rem;flex-wrap:wrap}

.mk-page-turns .mk-turn-active-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,380px))!important;gap:.8rem!important;justify-content:start!important;align-items:start!important}
.mk-page-turns .mk-turn-active-card{width:auto!important;max-width:none!important;min-width:0!important;display:block!important;padding:.82rem .88rem!important;border-radius:16px!important}
.mk-page-turns .mk-turn-active-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:.65rem!important}
.mk-page-turns .mk-turn-active-head h3{font-size:.86rem!important;margin:.28rem 0 .02rem!important}
.mk-page-turns .mk-turn-active-head small{font-size:.62rem!important}
.mk-page-turns .mk-turn-active-head>strong{font-size:.9rem!important}
.mk-page-turns .mk-turn-active-meta{display:flex!important;flex-wrap:wrap!important;gap:.35rem .8rem!important;margin-top:.52rem!important;padding-top:.5rem!important}
.mk-page-turns .mk-turn-active-meta span{font-size:.66rem!important}
.mk-page-turns .mk-turn-active-values{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.4rem!important;margin-top:.52rem!important}
.mk-page-turns .mk-turn-active-values>div{padding:.46rem .5rem!important;border-radius:10px!important}
.mk-page-turns .mk-turn-active-values small{font-size:.56rem!important}
.mk-page-turns .mk-turn-active-values strong{font-size:.76rem!important;margin-top:.08rem!important}
.mk-page-turns .mk-turn-active-card>.mk-turn-card-actions{display:flex!important;justify-content:flex-end!important;margin-top:.58rem!important;min-width:0!important}
.mk-page-turns .mk-turn-active-card>.mk-turn-card-actions .btn{width:auto!important;min-width:132px!important;min-height:34px!important;padding:.38rem .65rem!important;font-size:.72rem!important;border-radius:10px!important}

@media(max-width:991.98px){
  .mk-turn-history-chips{justify-content:flex-start}
  .mk-page-turns .mk-turn-active-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}
}
@media(max-width:767.98px){
  .mk-page-turns .mk-turn-active-grid{grid-template-columns:1fr!important}
  .mk-page-turns .mk-turn-active-card{width:100%!important}
  .mk-turn-history-chips{width:100%}
}


/* P4 RC16 FIX21 — tarjeta de turno abierto compacta + impresión refinada */
.mk-page-turns .mk-turn-active-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(320px,390px))!important;gap:.8rem!important;justify-content:start!important;align-items:start!important}
.mk-page-turns .mk-turn-active-card{width:auto!important;max-width:none!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"head actions" "meta meta" "values values"!important;row-gap:.55rem!important;column-gap:.75rem!important;padding:.82rem .88rem!important;border-radius:16px!important}
.mk-page-turns .mk-turn-active-head{grid-area:head!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:.6rem!important;min-width:0!important}
.mk-page-turns .mk-turn-active-head h3{font-size:.86rem!important;margin:.28rem 0 .02rem!important}
.mk-page-turns .mk-turn-active-head small{font-size:.62rem!important}
.mk-page-turns .mk-turn-active-head>strong{font-size:.9rem!important;flex:0 0 auto}
.mk-page-turns .mk-turn-active-meta{grid-area:meta!important;margin-top:0!important;padding-top:.5rem!important;gap:.45rem!important;display:flex!important;flex-wrap:wrap!important;border-top:1px solid #eef2f6!important}
.mk-page-turns .mk-turn-active-meta span{font-size:.68rem!important}
.mk-page-turns .mk-turn-active-values{grid-area:values!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.4rem!important;margin-top:.1rem!important}
.mk-page-turns .mk-turn-active-values>div{padding:.46rem .5rem!important;border-radius:10px!important}
.mk-page-turns .mk-turn-active-values small{font-size:.56rem!important}
.mk-page-turns .mk-turn-active-values strong{font-size:.76rem!important;margin-top:.08rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.mk-page-turns .mk-turn-active-card>.mk-turn-card-actions{grid-area:actions!important;display:flex!important;justify-content:flex-end!important;align-items:flex-start!important;margin:0!important;min-width:0!important}
.mk-page-turns .mk-turn-active-card>.mk-turn-card-actions .btn{width:auto!important;min-width:128px!important;min-height:34px!important;padding:.38rem .65rem!important;font-size:.72rem!important;border-radius:10px!important}
@media(max-width:767.98px){
  .mk-page-turns .mk-turn-active-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}
  .mk-page-turns .mk-turn-active-card{grid-template-columns:1fr!important;grid-template-areas:"head" "meta" "values" "actions"!important}
  .mk-page-turns .mk-turn-active-card>.mk-turn-card-actions{justify-content:flex-end!important}
}

@media print{
  @page{size:A4 portrait;margin:5mm 7mm 7mm}
  body.mk-page-turn-report.mk-print-mode-web .mk-page{padding:0!important;margin:0!important;max-width:none!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen{max-width:none!important;margin:0!important;padding:0!important}
  body.mk-page-turn-report.mk-print-mode-web .row>[class*='col-']{flex:0 0 100%!important;max-width:100%!important;width:100%!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.45rem!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.45rem!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-panel-header{padding:.55rem .7rem!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-panel-body{padding:.55rem .7rem!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-modern-table{min-width:0!important;font-size:7.8pt!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-modern-table th,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-modern-table td{padding:.42rem .45rem!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-hero{padding:.7rem!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-panel,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-hero{margin-bottom:.45rem!important}

  .mk-turn-print-topline{min-height:0!important;font-size:7pt!important;margin:0 0 .2mm!important}
  .mk-turn-print-original h1{margin:0 0 2mm!important;font-size:12.8pt!important}
  .mk-turn-print-user{margin:0 0 2mm 0!important;gap:2.2mm!important;font-size:8.4pt!important}
  .mk-turn-print-user span{padding:1.1mm 1.8mm!important;min-height:5mm!important}
  .mk-turn-print-summary{margin:0 0 1.4mm!important;font-size:6.95pt!important}
  .mk-turn-print-summary th{padding:.65mm .35mm .55mm!important}
  .mk-turn-print-summary td{padding:.95mm .35mm!important}
  .mk-turn-print-totals{margin:.6mm 0 .2mm!important;gap:5mm!important}
  .mk-turn-print-totals>div{padding:1.1mm 1.8mm!important;min-height:5.7mm!important;font-size:8.2pt!important}
  .mk-turn-print-totals b{font-size:9.2pt!important}
  .mk-turn-print-warning{margin:0 0 1.8mm!important;padding:1.05mm 1.7mm!important;font-size:6.8pt!important}
  .mk-turn-print-lines,.mk-turn-print-sales,.mk-turn-print-items{width:100%!important;margin:0!important;font-size:8pt!important}
  .mk-turn-print-lines td,.mk-turn-print-sales td,.mk-turn-print-items td{padding:.7mm 1.1mm!important;line-height:1.16!important}
  .mk-turn-print-lines th,.mk-turn-print-sales th,.mk-turn-print-items th{padding:.82mm 1.1mm!important}
  .mk-turn-print-group-date{margin:0 0 1.5mm 0!important;width:34%!important;padding:1mm 1.8mm!important;font-size:7.7pt!important}
  .mk-turn-print-group-date+table{margin-bottom:2mm!important}
  .mk-turn-print-grand{margin:2mm 0 0 auto!important;padding:1.2mm 2.2mm!important;min-width:38%!important;font-size:8.4pt!important}
}


/* P4 RC16 FIX22 — tarjeta activa, buscador y paginación de historial */
.mk-page-turns .mk-turn-active-section{margin-bottom:1.8rem!important}
.mk-page-turns .mk-turn-active-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(320px,390px))!important;gap:.8rem!important;justify-content:start!important;align-items:start!important}
.mk-page-turns .mk-turn-active-card{width:auto!important;max-width:none!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"head side" "details details"!important;row-gap:.5rem!important;column-gap:.7rem!important;padding:.82rem .88rem 1rem!important;border-radius:16px!important}
.mk-page-turns .mk-turn-active-head{grid-area:head!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;min-width:0!important}
.mk-page-turns .mk-turn-active-head>div{min-width:0!important}
.mk-page-turns .mk-turn-active-head h3{font-size:.86rem!important;margin:.28rem 0 .02rem!important}
.mk-page-turns .mk-turn-active-head small{font-size:.62rem!important}
.mk-page-turns .mk-turn-active-side{grid-area:side!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:flex-start!important;gap:.42rem!important;min-width:128px!important}
.mk-page-turns .mk-turn-active-number{font-size:.9rem!important;color:#667085!important;line-height:1.1!important}
.mk-page-turns .mk-turn-active-side .btn{width:auto!important;min-width:128px!important;min-height:34px!important;padding:.38rem .65rem!important;font-size:.72rem!important;border-radius:10px!important}
.mk-page-turns .mk-turn-active-meta{grid-area:meta!important;display:flex!important;flex-wrap:wrap!important;gap:.45rem!important;margin-top:0!important;padding-top:.5rem!important;border-top:1px solid #eef2f6!important}
.mk-page-turns .mk-turn-active-meta span{font-size:.68rem!important}
.mk-page-turns .mk-turn-active-values{grid-area:values!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.4rem!important;margin-top:.05rem!important}
.mk-page-turns .mk-turn-active-values>div{padding:.46rem .5rem!important;border-radius:10px!important}
.mk-page-turns .mk-turn-active-values small{font-size:.56rem!important}
.mk-page-turns .mk-turn-active-values strong{font-size:.76rem!important;margin-top:.08rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

.mk-turn-history-filter{background:#fff;border:1px solid var(--mk-border);border-radius:15px;box-shadow:var(--mk-shadow);padding:.72rem .8rem}
.mk-turn-history-filter-main{display:grid;grid-template-columns:minmax(240px,1.5fr) 145px 145px 150px 92px auto;gap:.55rem;align-items:end}
.mk-turn-history-filter .form-label{font-size:.62rem;color:#667085;font-weight:720;margin:0 0 .25rem}
.mk-turn-history-search{position:relative;align-self:end}
.mk-turn-history-search>i{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);color:#98a2b3;z-index:2}
.mk-turn-history-search .form-control{padding-left:2rem}
.mk-turn-history-filter-actions{display:flex;gap:.4rem;align-items:end}
.mk-turn-history-filter-actions .btn{white-space:nowrap}
.mk-turn-pagination{margin-top:1.6rem!important}

@media(max-width:1199.98px){.mk-turn-history-filter-main{grid-template-columns:minmax(220px,1fr) repeat(2,140px) 140px 90px}.mk-turn-history-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:767.98px){.mk-page-turns .mk-turn-active-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}.mk-turn-history-filter-main{grid-template-columns:1fr 1fr}.mk-turn-history-search{grid-column:1/-1}.mk-turn-history-filter-actions{grid-column:1/-1;justify-content:stretch}.mk-turn-history-filter-actions .btn{flex:1}}
@media(max-width:520px){.mk-page-turns .mk-turn-active-card{grid-template-columns:1fr!important;grid-template-areas:"head" "side" "details"!important}.mk-page-turns .mk-turn-active-side{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-width:0!important}.mk-page-turns .mk-turn-active-number{text-align:left!important}.mk-page-turns .mk-turn-active-side .btn{width:auto!important}.mk-turn-history-filter-main{grid-template-columns:1fr}.mk-turn-history-search,.mk-turn-history-filter-actions{grid-column:auto}}


/* P4 RC16 FIX23 — resumen de turnos vigentes en Panel */
.mk-dashboard-turn-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:.85rem}
.mk-dashboard-turn-card{background:#fff;border:1px solid var(--mk-border);border-radius:17px;padding:.9rem 1rem;box-shadow:var(--mk-shadow);min-width:0}
.mk-dashboard-turn-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.9rem;padding-bottom:.68rem;border-bottom:1px solid #eef2f6}
.mk-dashboard-turn-head h3{font-size:.9rem;font-weight:780;margin:.36rem 0 .22rem;color:#101828}
.mk-dashboard-turn-meta{display:flex;flex-wrap:wrap;gap:.35rem .75rem;color:#667085;font-size:.67rem}
.mk-dashboard-turn-meta span{display:flex;align-items:center;gap:.3rem}
.mk-dashboard-turn-side{display:flex;flex-direction:column;align-items:flex-end;gap:.45rem;flex:0 0 auto}
.mk-dashboard-turn-side>strong{font-size:.86rem;color:#667085}
.mk-dashboard-turn-side .btn{white-space:nowrap;border-radius:10px!important}
.mk-dashboard-turn-values{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin-top:.7rem}
.mk-dashboard-turn-values>div{background:#f8fafc;border:1px solid #eef2f6;border-radius:11px;padding:.52rem .58rem;min-width:0}
.mk-dashboard-turn-values small{display:block;font-size:.57rem;color:#98a2b3;text-transform:uppercase;letter-spacing:.035em;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-dashboard-turn-values strong{display:block;margin-top:.1rem;font-size:.76rem;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-dashboard-turn-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border:1px solid var(--mk-border);border-radius:15px;overflow:hidden;box-shadow:var(--mk-shadow)}
.mk-dashboard-turn-summary>div{padding:.68rem .8rem;border-right:1px solid #eef2f6;min-width:0}
.mk-dashboard-turn-summary>div:last-child{border-right:0}
.mk-dashboard-turn-summary small{display:block;font-size:.57rem;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;font-weight:720}
.mk-dashboard-turn-summary strong{display:block;margin-top:.08rem;font-size:.82rem;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-dashboard-turn-empty{display:flex;align-items:center;gap:.65rem;padding:.78rem .9rem;border:1px solid var(--mk-border);border-radius:14px;background:#fff;box-shadow:var(--mk-shadow)}
.mk-dashboard-turn-empty>i{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#ecfdf3;color:#027a48;flex:0 0 32px}
.mk-dashboard-turn-empty span{display:flex;flex-direction:column;min-width:0}.mk-dashboard-turn-empty strong{font-size:.76rem}.mk-dashboard-turn-empty small{font-size:.65rem;color:#98a2b3;margin-top:.08rem}
@media(max-width:1199.98px){.mk-dashboard-turn-values{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-dashboard-turn-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-dashboard-turn-summary>div:nth-child(3){border-right:0}.mk-dashboard-turn-summary>div:nth-child(n+4){border-top:1px solid #eef2f6}}
@media(max-width:767.98px){.mk-dashboard-turn-grid{grid-template-columns:1fr}.mk-dashboard-turn-head{gap:.6rem}.mk-dashboard-turn-values{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-dashboard-turn-summary{grid-template-columns:1fr 1fr}.mk-dashboard-turn-summary>div{border-top:1px solid #eef2f6}.mk-dashboard-turn-summary>div:nth-child(1),.mk-dashboard-turn-summary>div:nth-child(2){border-top:0}.mk-dashboard-turn-summary>div:nth-child(even){border-right:0}.mk-dashboard-turn-side .btn .bi{margin-right:.15rem}}
@media(max-width:420px){.mk-dashboard-turn-head{flex-direction:column}.mk-dashboard-turn-side{width:100%;align-items:stretch;display:grid;grid-template-columns:1fr auto;align-items:center}.mk-dashboard-turn-side .btn{justify-self:end}.mk-dashboard-turn-values{grid-template-columns:1fr 1fr}.mk-dashboard-turn-summary{grid-template-columns:1fr}}


/* P4 RC16 FIX24 — pulido final del resumen de turno en Panel */
.mk-dashboard-turns>.d-flex{margin-bottom:.7rem!important}
.mk-dashboard-turn-updated{display:inline-flex;align-items:center;gap:.22rem;margin-left:.35rem;color:#98a2b3;font-size:.68rem;white-space:nowrap}
.mk-dashboard-turn-updated i{font-size:.68rem}
.mk-dashboard-turn-card{padding:.72rem .85rem;border-radius:16px}
.mk-dashboard-turn-head{padding-bottom:.5rem;gap:.7rem}
.mk-dashboard-turn-head h3{margin:.25rem 0 .14rem;font-size:.88rem}
.mk-dashboard-turn-meta{font-size:.65rem;gap:.28rem .65rem}
.mk-dashboard-turn-side{gap:.35rem}
.mk-dashboard-turn-side>strong{font-size:.82rem}
.mk-dashboard-turn-side .btn{padding:.34rem .62rem;font-size:.72rem;min-height:34px}
.mk-dashboard-turn-values{gap:.42rem;margin-top:.55rem}
.mk-dashboard-turn-values>div{padding:.43rem .5rem;border-radius:10px}
.mk-dashboard-turn-values small{font-size:.54rem}
.mk-dashboard-turn-values strong{margin-top:.07rem;font-size:.74rem}
.mk-dashboard-turn-summary>div{padding:.55rem .7rem}
.mk-dashboard-turn-summary small{font-size:.54rem}
.mk-dashboard-turn-summary strong{font-size:.78rem}
@media(max-width:767.98px){.mk-dashboard-turn-updated{display:block;margin:.2rem 0 0}}


/* P4 RC16 FIX26 — configuración de unidades por producto */
.mk-product-report-flag{display:flex;align-items:center;gap:.25rem;margin-top:.2rem;color:#7c3aed;font-size:.6rem;font-weight:700;line-height:1.2}
.mk-product-report-flag i{font-size:.62rem}
.mk-product-report-switch{display:flex;align-items:flex-start;gap:.6rem;margin:0;padding:.72rem .8rem .72rem 2.8rem;border:1px solid #e4e7ec;border-radius:12px;background:#fafbfc}
.mk-product-report-switch .form-check-input{margin-left:-2rem;margin-top:.18rem;flex:0 0 auto}
.mk-product-report-switch .form-check-label{display:flex;flex-direction:column;gap:.12rem;min-width:0}
.mk-product-report-switch .form-check-label strong{font-size:.76rem;color:#344054}
.mk-product-report-switch .form-check-label span{font-size:.66rem;line-height:1.4;color:#667085;font-weight:400}

/* ===== FIX30C: Administración > Tablas auxiliares ===== */
.maxi-navbar .maxi-nav-submenu{position:relative}
.maxi-navbar .maxi-submenu-toggle{width:100%;border:0;background:transparent;text-align:left}
.maxi-navbar .maxi-submenu-toggle .maxi-submenu-arrow{margin-left:auto;font-size:.72rem;transition:transform .14s ease}
.maxi-navbar .maxi-nav-submenu-menu{display:none;position:absolute;top:-.45rem;left:calc(100% + .35rem);margin:0!important;min-width:210px;z-index:1090}
.maxi-navbar .maxi-nav-submenu.is-open>.maxi-nav-submenu-menu{display:block}
.maxi-navbar .maxi-nav-submenu.is-open>.maxi-submenu-toggle{background:#f5f7ff!important;color:var(--mk-primary)!important}
.maxi-navbar .maxi-nav-submenu.is-open>.maxi-submenu-toggle .maxi-submenu-arrow{transform:rotate(90deg);color:var(--mk-primary)}
@media(max-width:991.98px){
  .maxi-navbar .maxi-nav-submenu-menu{position:static;left:auto;top:auto;width:100%;min-width:0;margin:.15rem 0 .25rem!important;padding:.2rem .35rem .25rem .9rem!important;border:0!important;border-left:1px solid #334155!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .maxi-navbar .maxi-nav-submenu.is-open>.maxi-submenu-toggle{background:rgba(255,255,255,.07)!important;color:#fff!important}
  .maxi-navbar .maxi-nav-submenu-menu .dropdown-item{padding-left:.75rem!important}
}


/* P4 RC16 FIX30E · navegación, modales y salidas coherentes */
/* El estado activo debe distinguirse del elemento que sólo está bajo el mouse. */
@media(min-width:992px){
  .maxi-navbar .dropdown-item:not(.active):not(.disabled):hover,
  .maxi-navbar .dropdown-item:not(.active):not(.disabled):focus{background:#f8fafc!important;color:#344054!important}
  .maxi-navbar .dropdown-item:not(.active):not(.disabled):hover i,
  .maxi-navbar .dropdown-item:not(.active):not(.disabled):focus i{color:#475467!important}
  .maxi-navbar .dropdown-item.active{background:#eef2ff!important;color:var(--mk-primary)!important;box-shadow:inset 3px 0 0 var(--mk-primary);font-weight:760}
  .maxi-navbar .maxi-nav-submenu.is-open>.maxi-submenu-toggle:not(.active){background:#f8fafc!important;color:#344054!important;box-shadow:inset 0 0 0 1px #eef2f6}
  .maxi-navbar .maxi-nav-submenu.is-open>.maxi-submenu-toggle:not(.active) i{color:#475467!important}
  .maxi-navbar .nav-link:not(.active):hover{background:rgba(255,255,255,.075)!important;color:#fff!important}
  .maxi-navbar .nav-link.active{background:rgba(99,102,241,.28)!important;box-shadow:inset 0 0 0 1px rgba(199,210,254,.22)}
}
/* El detalle documental debe quedar por encima de toda la interfaz, incluida la barra fija. */
body.modal-open .maxi-navbar,body.swal2-shown .maxi-navbar{z-index:1040!important}
/* Salidas comparte interacción de filas con Ventas y Cargas. */
.mk-page-outputs .mk-operation-table tr[data-open]{cursor:pointer}
.mk-page-outputs .mk-operation-table tr[data-open]:hover td{background:#fafbff}

/* FIX30H — aviso de réplica compacto en Panel */
.mk-replica-hold-alert{display:flex;align-items:center;gap:.48rem;padding:.5rem .7rem!important;margin-bottom:1rem!important;border-radius:11px!important;font-size:.76rem;line-height:1.35;color:#175cd3}
.mk-replica-hold-alert>i{flex:0 0 auto;font-size:.82rem;color:#1570ef}
.mk-replica-hold-alert strong{font-weight:720}
@media(max-width:767.98px){.mk-replica-hold-alert{align-items:flex-start;padding:.48rem .62rem!important;font-size:.72rem;line-height:1.32}.mk-replica-hold-alert>i{margin-top:.08rem}}


/* P4 RC16 FIX30T — Mis operaciones + aviso administrativo de conflictos */
.maxi-myops-btn{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;border:1px solid rgba(255,255,255,.26);color:#fff;background:rgba(255,255,255,.08);white-space:nowrap}
.maxi-myops-btn:hover,.maxi-myops-btn:focus,.maxi-myops-btn.is-active{color:#fff;background:rgba(255,255,255,.17);border-color:rgba(255,255,255,.42)}
.maxi-myops-btn .badge{font-size:.67rem;line-height:1;padding:.32rem .4rem}
.mk-admin-review-alert{border:1px solid rgba(245,158,11,.3)}
.mk-myops-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.mk-myops-summary .mk-myops-stat{background:#fff;border:1px solid var(--bs-border-color);border-radius:14px;padding:.9rem 1rem;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.mk-myops-stat small{display:block;color:#6b7280;font-weight:600;margin-bottom:.2rem}
.mk-myops-stat strong{font-size:1.55rem;line-height:1;color:#111827}
.mk-myops-list{display:grid;gap:.75rem}
.mk-myop{background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:1rem 1.05rem;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.mk-myop.is-review{border-color:#f6c65b;background:#fffdf7}
.mk-myop.is-error{border-color:#f1aeb5;background:#fff9fa}
.mk-myop.is-pending{border-color:#b8d4ff;background:#fbfdff}
.mk-myop-head{display:flex;gap:.75rem;align-items:flex-start;justify-content:space-between}
.mk-myop-title{min-width:0}
.mk-myop-title strong{display:block;color:#111827;font-size:1rem}
.mk-myop-title small{display:block;color:#6b7280;margin-top:.18rem}
.mk-myop-status{display:flex;align-items:center;gap:.42rem;flex:0 0 auto;font-size:.82rem;font-weight:700;border-radius:999px;padding:.32rem .58rem;background:#f3f4f6;color:#374151}
.mk-myop-status.is-success{background:#e9f8ef;color:#187443}.mk-myop-status.is-warning{background:#fff4cf;color:#8a5b00}.mk-myop-status.is-danger{background:#fdecef;color:#a32638}.mk-myop-status.is-info{background:#eaf2ff;color:#245cad}
.mk-myop-message{margin:.8rem 0 0;padding:.68rem .78rem;border-radius:10px;background:#f8fafc;color:#475569;font-size:.88rem}
.mk-myop.is-review .mk-myop-message{background:#fff7dd;color:#795607}.mk-myop.is-error .mk-myop-message{background:#fff0f2;color:#8d2638}
.mk-myop-meta{display:flex;flex-wrap:wrap;gap:.45rem 1rem;margin-top:.75rem;color:#6b7280;font-size:.8rem}
.mk-myop-details{margin-top:.75rem;border-top:1px solid #edf0f3;padding-top:.75rem}
.mk-myop-details summary{cursor:pointer;color:#334155;font-weight:700;font-size:.84rem;list-style:none;display:inline-flex;gap:.35rem;align-items:center}
.mk-myop-details summary::-webkit-details-marker{display:none}.mk-myop-details summary:before{content:'›';font-size:1rem;transition:transform .15s}.mk-myop-details[open] summary:before{transform:rotate(90deg)}
.mk-myop-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-top:.7rem}
.mk-myop-detail-box{border:1px solid #e7eaf0;border-radius:10px;padding:.65rem .72rem;background:#fff}
.mk-myop-detail-box small{display:block;color:#6b7280;margin-bottom:.12rem}.mk-myop-detail-box strong{font-size:.86rem;color:#111827;overflow-wrap:anywhere}
.mk-myops-help{border:1px solid #dbe5f2;background:#f8fbff;border-radius:14px;padding:.9rem 1rem;color:#40536b}
@media (max-width:991.98px){.maxi-myops-btn{justify-content:flex-start}.mk-myops-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:575.98px){.mk-myops-summary{grid-template-columns:1fr 1fr;gap:.55rem}.mk-myops-summary .mk-myops-stat{padding:.72rem .78rem}.mk-myops-stat strong{font-size:1.28rem}.mk-myop-head{flex-direction:column}.mk-myop-status{align-self:flex-start}.mk-myop-detail-grid{grid-template-columns:1fr}}

/* FIX30V: alineación consistente de acciones del navbar */
.maxi-nav-actions{display:flex;align-items:center;gap:.5rem}
.maxi-nav-actions > .btn,.maxi-nav-actions > .maxi-user-chip,.maxi-nav-actions > .maxi-myops-btn,.maxi-nav-actions > form .btn{min-height:38px}
.maxi-myops-btn{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;border:1px solid rgba(255,255,255,.26);color:#fff;background:rgba(255,255,255,.08);white-space:nowrap;border-radius:12px;padding:.46rem .8rem;line-height:1;position:relative}
.maxi-myops-btn .badge{font-size:.67rem;line-height:1;padding:.28rem .4rem;min-width:1.2rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;transform:translateY(-1px)}
.maxi-user-chip{display:flex;align-items:center;gap:.45rem;padding:.34rem .65rem;border-radius:12px;background:rgba(255,255,255,.06);color:#d0d5dd;font-size:.78rem;line-height:1}
.maxi-user-avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#334155;color:#fff;flex:0 0 auto}
.maxi-nav-actions form{display:flex;align-items:center;margin:0}
.maxi-nav-actions form .btn-outline-light{min-height:38px;border-radius:12px;padding:.44rem .7rem;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:991.98px){.maxi-nav-actions{align-items:stretch}.maxi-myops-btn{justify-content:flex-start}}

/* FIX30W: Mis operaciones compacta, en tarjetas y con paginación */
.mk-myops-summary{margin-bottom:1rem!important}
.mk-myops-summary .mk-myops-stat{padding:.72rem .85rem;border-radius:12px;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.mk-myops-summary .mk-myops-stat:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,23,42,.07);border-color:#ccd5e1}
.mk-myops-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;align-items:start}
.mk-myop{padding:.82rem .88rem;border-radius:14px;min-width:0;height:100%}
.mk-myop-head{gap:.55rem;align-items:flex-start}
.mk-myop-title strong{font-size:.94rem;line-height:1.2}
.mk-myop-title small{font-size:.78rem;margin-top:.12rem}
.mk-myop-status{font-size:.72rem;padding:.28rem .48rem;cursor:help}
.mk-myop-message{margin:.58rem 0 0;padding:.52rem .62rem;font-size:.79rem;line-height:1.35}
.mk-myop-meta{gap:.3rem .72rem;margin-top:.55rem;font-size:.72rem}
.mk-myop-details{margin-top:.55rem;padding-top:.52rem}
.mk-myop-details summary{font-size:.76rem;gap:.3rem}
.mk-myop-detail-grid{grid-template-columns:1fr 1fr;gap:.45rem;margin-top:.55rem}
.mk-myop-detail-box{padding:.5rem .56rem;border-radius:9px}
.mk-myop-detail-box small{font-size:.7rem}.mk-myop-detail-box strong{font-size:.77rem}
.mk-myops-help{padding:.62rem .78rem;border-radius:12px;font-size:.8rem;line-height:1.4}
.mk-myops-pagination{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.55rem .1rem}
.mk-myops-pagination .btn{min-width:34px}
@media(max-width:991.98px){.mk-myops-list{grid-template-columns:1fr}.mk-myop{height:auto}}
@media(max-width:575.98px){.mk-myops-pagination{justify-content:center}.mk-myops-pagination>span{width:100%;text-align:center}.mk-myop-detail-grid{grid-template-columns:1fr}}


/* FIX30X — tooltips visuales consistentes y acciones admin en Mis operaciones */
.tooltip.mk-tooltip{--bs-tooltip-opacity:1;--bs-tooltip-max-width:280px;z-index:2000}
.tooltip.mk-tooltip .tooltip-inner{background:#0f172a;color:#f8fafc;border:1px solid rgba(148,163,184,.22);border-radius:10px;padding:.48rem .62rem;font-size:.75rem;font-weight:600;line-height:1.3;box-shadow:0 10px 28px rgba(15,23,42,.24)}
.tooltip.mk-tooltip.bs-tooltip-top .tooltip-arrow::before{border-top-color:#0f172a}
.tooltip.mk-tooltip.bs-tooltip-bottom .tooltip-arrow::before{border-bottom-color:#0f172a}
.tooltip.mk-tooltip.bs-tooltip-start .tooltip-arrow::before{border-left-color:#0f172a}
.tooltip.mk-tooltip.bs-tooltip-end .tooltip-arrow::before{border-right-color:#0f172a}
.mk-myop-admin-actions{display:flex;flex-wrap:wrap;gap:.42rem;margin-top:.62rem;padding-top:.58rem;border-top:1px dashed #e2e8f0}
.mk-myop-admin-actions .btn{display:inline-flex;align-items:center;gap:.32rem;border-radius:9px;font-size:.74rem;font-weight:700;padding:.34rem .52rem}
.mk-myop-admin-actions .btn i{font-size:.82rem}
@media(max-width:575.98px){.mk-myop-admin-actions .btn{flex:1 1 auto;justify-content:center}}


/* FIX30Y — acciones admin compactas a la derecha + iconos perfectamente centrados */
.mk-myop-admin-actions{
  justify-content:flex-end;
  align-items:center;
  gap:.34rem;
  margin-top:.56rem;
  padding-top:.5rem;
}
.mk-myop-admin-actions .btn{
  min-height:30px;
  padding:.27rem .44rem;
  border-radius:8px;
  font-size:.7rem;
  line-height:1;
  gap:.26rem;
}
.mk-myop-admin-actions .btn i,
.mk-myop-status i,
.mk-myop-meta i,
.mk-myop-details summary i,
.maxi-myops-btn > i{
  width:1em;
  height:1em;
  display:inline-grid;
  place-items:center;
  line-height:1!important;
  vertical-align:middle;
  flex:0 0 auto;
}
.mk-myop-admin-actions .btn i::before,
.mk-myop-status i::before,
.mk-myop-meta i::before,
.mk-myop-details summary i::before,
.maxi-myops-btn > i::before{
  display:block;
  line-height:1!important;
  margin:0!important;
}
.mk-myop-status{align-items:center;line-height:1.15}
.mk-myop-status i{font-size:.86em}
.mk-myop-meta{align-items:center}
.mk-myop-meta span{display:inline-flex;align-items:center}
.mk-myop-details summary{align-items:center}
@media(max-width:575.98px){
  .mk-myop-admin-actions{justify-content:flex-end}
  .mk-myop-admin-actions .btn{flex:0 0 auto;justify-content:center}
}

/* FIX30Z: centrado geométrico de Mis operaciones */
.maxi-myops-btn{height:38px!important;min-height:38px!important;padding:0 .58rem!important;display:inline-grid!important;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center!important;justify-content:center!important;column-gap:.42rem;line-height:1!important}
.maxi-myops-icon{width:20px;height:20px;display:grid;place-items:center;line-height:0;flex:none}
.maxi-myops-icon i{display:block!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;font-size:14px!important;line-height:1!important;transform:none!important}
.maxi-myops-icon i::before{display:block!important;margin:0!important;line-height:1!important;transform:none!important}
.maxi-myops-count{box-sizing:border-box;min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:grid;place-items:center;font-size:11px;font-weight:700;line-height:1;color:#fff;transform:none!important;margin:0}
.maxi-myops-count.is-danger{background:#dc3545}
.maxi-myops-count.is-warning{background:#f59e0b;color:#111827}
.maxi-myops-label{line-height:1!important;align-self:center}
@media(max-width:991.98px){.maxi-myops-btn{display:flex!important;justify-content:flex-start!important}}

/* FIX30AA · Cola admin: acciones en una sola fila en escritorio */
.mk-queue-table th:nth-child(1){width:14%}.mk-queue-table th:nth-child(2){width:31%}.mk-queue-table th:nth-child(3){width:13%}.mk-queue-table th:nth-child(4){width:8%}.mk-queue-table th:nth-child(5){width:11%}.mk-queue-table th:nth-child(6){width:23%}
.mk-queue-table td:last-child{white-space:nowrap}
.mk-queue-actions{display:flex;justify-content:flex-end;align-items:center;gap:.4rem;flex-wrap:nowrap;white-space:nowrap}
.mk-queue-actions .btn{flex:0 0 auto;min-height:32px;padding:.3rem .52rem;border-radius:10px;font-size:.69rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;gap:.32rem}
.mk-queue-actions .btn i{font-size:.8rem;line-height:1}
@media(max-width:991.98px){.mk-queue-actions{flex-wrap:wrap;white-space:normal}}
@media(max-width:767.98px){.mk-queue-actions{max-width:72%;justify-content:flex-end;flex-wrap:wrap}.mk-queue-actions .btn span{display:none}}

/* FIX31 · Tablas auxiliares y ajuste rápido de stock */
.mk-aux-tabs{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:thin;padding-bottom:.2rem}
.mk-aux-tabs .mk-catalog-tab{flex:0 0 auto;white-space:nowrap}
.mk-payment-table th:nth-child(1){width:52%}.mk-payment-table th:nth-child(2),.mk-payment-table th:nth-child(3){width:15%}.mk-payment-table th:nth-child(4){width:18%}
.mk-payment-number{text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:#344054}
.mk-stock-search-wrap{min-width:0;flex:1 1 520px}
.mk-stock-adjust-summary{display:flex;align-items:flex-end;justify-content:flex-end;gap:.55rem;flex-wrap:wrap;flex:0 1 auto}
.mk-stock-adjust-summary>div{min-width:120px;padding:.55rem .7rem;border:1px solid #e4e7ec;border-radius:11px;background:#fff}
.mk-stock-adjust-summary>div span{display:block;color:#98a2b3;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.mk-stock-adjust-summary>div strong{display:block;margin-top:.08rem;color:#101828;font-size:1rem;font-variant-numeric:tabular-nums}
.mk-stock-adjust-table{min-width:860px}
.mk-stock-adjust-table thead th{background:#f8fafc;color:#475467;font-size:.68rem;text-transform:uppercase;letter-spacing:.035em;border-bottom:1px solid #e4e7ec;padding:.7rem .75rem;white-space:nowrap}
.mk-stock-adjust-table tbody td{vertical-align:middle;padding:.62rem .75rem;color:#344054}
.mk-stock-adjust-table tbody tr:has(.mk-stock-diff.is-positive),.mk-stock-adjust-table tbody tr:has(.mk-stock-diff.is-negative){background:#fffdf6}
.mk-stock-input{width:118px;text-align:right;font-variant-numeric:tabular-nums}
.mk-stock-current{font-weight:700;font-variant-numeric:tabular-nums}
.mk-stock-diff{display:inline-flex;min-width:60px;justify-content:flex-end;font-weight:800;font-variant-numeric:tabular-nums;color:#667085}
.mk-stock-diff.is-positive{color:#067647}.mk-stock-diff.is-negative{color:#b42318}
@media(max-width:991.98px){.mk-load-topbar{align-items:stretch}.mk-stock-adjust-summary{justify-content:flex-start;width:100%}.mk-stock-search-wrap{flex-basis:100%}}
@media(max-width:767.98px){.mk-payment-table,.mk-payment-table tbody,.mk-payment-table tr,.mk-payment-table td{display:block;width:100%}.mk-payment-table thead{display:none}.mk-payment-table tbody{display:grid;gap:.65rem;padding:.65rem}.mk-payment-table tr{border:1px solid #e4e7ec;border-radius:13px;background:#fff;overflow:hidden}.mk-payment-table td{display:flex!important;align-items:center;justify-content:space-between;gap:.8rem;padding:.56rem .65rem!important;border:0!important;border-bottom:1px solid #f2f4f7!important;text-align:right!important}.mk-payment-table td:last-child{border-bottom:0!important}.mk-payment-table td::before{content:attr(data-label);font-size:.62rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;text-align:left;flex:0 0 34%}.mk-payment-table .mk-catalog-name-cell{justify-content:flex-end}.mk-payment-table .mk-catalog-name-cell::before{margin-right:auto}.mk-stock-adjust-summary>div{min-width:calc(50% - .3rem);flex:1 1 calc(50% - .3rem)}.mk-stock-adjust-summary .btn{flex:1 1 auto}}


/* ===== P4 RC16 FIX32: estados coherentes, FAB transversal y ajuste de stock ===== */
.mk-catalog-empty-row{grid-column:1/-1!important;width:100%!important;min-height:190px!important;padding:0!important}
.mk-catalog-empty-row>td{display:block!important;width:100%!important}
.mk-catalog-empty-row .mk-empty-state{width:100%;min-height:190px;padding:2rem 1rem}
.mk-catalog-unavailable{display:grid;place-items:center;min-height:220px;padding:1rem}
.mk-catalog-unavailable .mk-empty-state{width:100%;min-height:188px}
.mk-stock-adjust-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:.9rem;padding:.9rem 1rem;box-shadow:none}
.mk-stock-adjust-search{min-width:0}
.mk-stock-adjust-actions{display:grid;grid-template-columns:minmax(135px,auto) minmax(135px,auto) auto auto;gap:.65rem;align-items:stretch;justify-content:end}
.mk-stock-adjust-actions>div{min-width:135px;border:1px solid var(--mk-border);border-radius:12px;background:#fff;padding:.62rem .75rem}
.mk-stock-adjust-actions>div span{display:block;color:#98a2b3;font-size:.62rem;font-weight:780;text-transform:uppercase;letter-spacing:.035em}
.mk-stock-adjust-actions>div strong{display:block;margin-top:.14rem;color:var(--mk-text);font-size:1rem;font-variant-numeric:tabular-nums}
.mk-stock-adjust-actions>.btn{min-height:52px;align-self:stretch}
@media(max-width:991.98px){.mk-stock-adjust-actions{grid-template-columns:1fr 1fr}.mk-stock-adjust-actions>.btn{width:100%}}
@media(max-width:575.98px){.mk-stock-adjust-toolbar{padding:.75rem}.mk-stock-adjust-actions{grid-template-columns:1fr 1fr;gap:.5rem}.mk-stock-adjust-actions>div{min-width:0}.mk-stock-adjust-actions>.btn{grid-column:span 1;font-size:.82rem;padding:.55rem .45rem}}


/* ===== P4 RC16 FIX32 · cierre visual transversal ===== */
/* Estados sin filas: el mensaje reemplaza visualmente a la tabla, no queda un
   encabezado suelto ni una grilla parcialmente ocupada. */
.mk-table-state-wrap{overflow:visible!important}
table.mk-table-state-only{width:100%!important;min-width:0!important;table-layout:auto!important;margin:0!important}
table.mk-table-state-only thead{display:none!important}
table.mk-table-state-only tbody{display:block!important;width:100%!important}
table.mk-table-state-only tbody tr{display:block!important;width:100%!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
table.mk-table-state-only tbody td{display:block!important;width:100%!important;max-width:none!important;padding:0!important;border:0!important;text-align:center!important}
table.mk-table-state-only tbody td::before{display:none!important}
table.mk-table-state-only .mk-empty-state{
  box-sizing:border-box;
  width:100%!important;
  min-height:190px;
  padding:2rem 1.25rem!important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Estado vacío reutilizable fuera de tablas. */
.mk-result-state{
  box-sizing:border-box;
  min-height:190px;
  width:100%;
  padding:1.5rem 1rem;
  display:flex;
  flex-direction:column;
  gap:.32rem;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#667085;
}
.mk-result-state>i{font-size:1.45rem;color:#98a2b3}
.mk-result-state>strong{color:#344054;font-size:.92rem}
.mk-result-state>span:not(.spinner-border){max-width:620px;font-size:.78rem;color:#667085}
.mk-result-state>.mk-empty-state{width:100%;min-height:190px}

/* Indicador de comportamiento especial de producto: chip integrado, no texto
   suelto debajo de la descripción. */
.mk-product-description-stack{
  display:flex;
  align-items:center;
  gap:.42rem;
  min-width:0;
  width:100%;
}
.mk-product-description-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mk-product-report-flag{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:.28rem;
  flex:0 0 auto;
  margin:0!important;
  padding:.16rem .42rem;
  border:1px solid #d9d6fe;
  border-radius:999px;
  background:#f4f3ff;
  color:#5925dc!important;
  font-size:.59rem!important;
  font-weight:760!important;
  line-height:1!important;
  white-space:nowrap;
  vertical-align:middle;
}
.mk-product-report-flag i{font-size:.66rem!important;line-height:1!important}
.mk-product-report-flag[data-mk-tooltip]{cursor:help}

@media(max-width:767.98px){
  .mk-product-description-stack{
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:.3rem .42rem;
  }
  .mk-product-description-text{white-space:normal;text-align:right;overflow:visible}
  .mk-product-report-flag{font-size:.58rem!important}
}

/* El bloque de Ajuste de stock mantiene una composición estable con y sin datos. */
.mk-stock-adjust-page .mk-stock-adjust-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1rem;
  align-items:end;
}
.mk-stock-adjust-page .mk-stock-adjust-actions{
  align-self:end;
  display:grid;
  grid-template-columns:repeat(2,minmax(132px,auto)) auto auto;
  gap:.55rem;
  align-items:stretch;
}
.mk-stock-adjust-page .mk-stock-adjust-actions>.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.mk-stock-adjust-page #barraPag:empty,
.mk-stock-adjust-page #barraPag.is-empty{display:none!important}
@media(max-width:1100px){
  .mk-stock-adjust-page .mk-stock-adjust-toolbar{grid-template-columns:1fr}
  .mk-stock-adjust-page .mk-stock-adjust-actions{justify-content:start}
}
@media(max-width:767.98px){
  .mk-stock-adjust-page .mk-stock-adjust-actions{grid-template-columns:1fr 1fr;width:100%}
  .mk-stock-adjust-page .mk-stock-adjust-actions>.btn{width:100%}
}

/* Ayuda visual uniforme para elementos con tooltip explícito. */
[data-mk-tooltip]:not(button):not(a):not([role="button"]){cursor:help}


/* ===== P4 RC16 FIX33 · coherencia visual transversal ===== */
/* Producto: la descripción vuelve a quedar centrada y el indicador secundario
   ocupa una segunda línea estable, sin empujar el nombre hacia un costado. */
.mk-products-table td.mk-col-description{text-align:center!important}
.mk-products-table .mk-product-description-stack{
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.22rem;
  text-align:center;
}
.mk-products-table .mk-product-description-text{
  display:block;
  width:100%;
  text-align:center;
}
.mk-products-table .mk-product-report-flag{
  align-self:center;
  margin:0 auto!important;
  padding:.17rem .46rem;
}
@media(max-width:767.98px){
  .mk-products-table td.mk-col-description{text-align:right!important}
  .mk-products-table .mk-product-description-stack{align-items:flex-end;justify-content:center;text-align:right}
  .mk-products-table .mk-product-description-text{text-align:right}
  .mk-products-table .mk-product-report-flag{align-self:flex-end;margin:0!important}
}

/* Medios de pago se presentan como tarjetas con valores identificados. */
.mk-payment-table tbody tr{
  grid-template-columns:minmax(0,1fr) auto auto;
  grid-template-areas:"payment-name payment-recargo payment-actions" "payment-name payment-porcentaje payment-actions";
  row-gap:.28rem;
  column-gap:.8rem;
}
.mk-payment-table tbody td:nth-child(1){grid-area:payment-name}
.mk-payment-table tbody td:nth-child(2){grid-area:payment-recargo}
.mk-payment-table tbody td:nth-child(3){grid-area:payment-porcentaje}
.mk-payment-table tbody td:nth-child(4){grid-area:payment-actions;align-self:center}
.mk-payment-table .mk-payment-number{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.5rem;
  min-width:150px;
  text-align:right;
}
.mk-payment-field-label{font-size:.61rem;font-weight:760;text-transform:uppercase;letter-spacing:.035em;color:#98a2b3}
.mk-payment-table .mk-payment-number strong{min-width:48px;color:#101828;font-size:.8rem;font-variant-numeric:tabular-nums}
@media(max-width:767.98px){
  .mk-payment-table tbody tr{display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:"payment-name payment-actions" "payment-recargo payment-recargo" "payment-porcentaje payment-porcentaje"!important}
  .mk-payment-table td{display:flex!important;width:auto!important}
  .mk-payment-table td::before{display:none!important}
  .mk-payment-table .mk-payment-number{min-width:0;justify-content:space-between;padding:.45rem .15rem!important;border-top:1px solid #f2f4f7!important}
}

/* Ajuste rápido: búsqueda en una fila y resumen/acciones en una segunda línea;
   el bloque no cambia de geometría según haya o no resultados. */
.mk-stock-adjust-page .mk-stock-adjust-toolbar{
  display:flex!important;
  flex-direction:column;
  align-items:stretch!important;
  gap:.8rem!important;
  padding:.9rem 1rem!important;
}
.mk-stock-adjust-page .mk-stock-adjust-search{width:100%}
.mk-stock-adjust-page .mk-stock-adjust-actions{
  width:100%;
  display:flex!important;
  flex-wrap:wrap;
  justify-content:flex-end!important;
  align-items:stretch!important;
  gap:.55rem!important;
}
.mk-stock-adjust-page .mk-stock-adjust-actions>div{min-width:135px;flex:0 0 135px}
.mk-stock-adjust-page .mk-stock-adjust-actions>.btn{min-height:52px;flex:0 0 auto}
@media(max-width:767.98px){
  .mk-stock-adjust-page .mk-stock-adjust-toolbar{padding:.75rem!important}
  .mk-stock-adjust-page .mk-stock-adjust-actions{display:grid!important;grid-template-columns:1fr 1fr;justify-content:stretch!important}
  .mk-stock-adjust-page .mk-stock-adjust-actions>div{min-width:0;flex:auto}
  .mk-stock-adjust-page .mk-stock-adjust-actions>.btn{width:100%;min-width:0}
}

/* Un estado vacío/error/cargando sustituye por completo la grilla. */
.table-responsive.mk-table-state-wrap{border:1px solid var(--mk-border);background:#fff}
.table-responsive.mk-table-state-wrap table.mk-table-state-only{background:#fff}
table.mk-table-state-only .mk-empty-state{min-height:210px!important}

/* FIX33B — detalles humanos de cola y refinamientos finales */
.mk-queue-info-table.is-output td:nth-child(n+3),.mk-queue-info-table.is-output th:nth-child(n+3),
.mk-queue-info-table.is-stock td:nth-child(n+2),.mk-queue-info-table.is-stock th:nth-child(n+2){white-space:nowrap}
.mk-products-table td.mk-col-description .mk-product-description-stack{min-height:40px}
.mk-products-table .mk-product-report-flag{font-size:.61rem!important;line-height:1.1!important;background:#f5f3ff!important;border-color:#ddd6fe!important;color:#5b3df5!important}
@media(min-width:768px){
  .mk-products-table td.mk-col-description{padding-left:1rem!important;padding-right:1rem!important}
  .mk-products-table .mk-product-description-text{max-width:100%;margin-inline:auto}
}

/* FIX33A: acciones compactas de Ajuste rápido de stock.
   Los contadores mantienen su altura y ambos botones se centran sin estirarse. */
.mk-stock-adjust-page .mk-stock-adjust-actions{align-items:center!important}
.mk-stock-adjust-page .mk-stock-adjust-actions>.btn{
  box-sizing:border-box;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  align-self:center!important;
  padding:.5rem .85rem;
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:767.98px){
  .mk-stock-adjust-page .mk-stock-adjust-actions>.btn{
    width:100%;
    min-width:0;
    padding:.5rem .4rem;
  }
}

/* FIX33B: contadores de Ajuste rápido con texto y valor en una sola línea. */
.mk-stock-adjust-page .mk-stock-adjust-actions>div{
  min-width:170px!important;
  flex:0 0 170px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:.65rem!important;
  min-height:44px;
  padding:.58rem .75rem!important;
}
.mk-stock-adjust-page .mk-stock-adjust-actions>div span{
  display:block!important;
  margin:0!important;
  line-height:1.15;
}
.mk-stock-adjust-page .mk-stock-adjust-actions>div strong{
  display:block!important;
  margin:0!important;
  line-height:1;
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:767.98px){
  .mk-stock-adjust-page .mk-stock-adjust-actions>div{
    min-width:0!important;
    flex:auto!important;
  }
}

/* FIX35 — reconocimiento de código durante la carga; sin agrandar el formulario. */
.mk-rec-popup .swal2-html-container{margin: .7rem 1.1rem .2rem;text-align:left}
.mk-rec-box{width:100%;text-align:left;font-size:.92rem}
.mk-rec-code{display:inline-flex;gap:.5rem;align-items:center;background:var(--bs-tertiary-bg,#eef2f6);padding:.36rem .7rem;border-radius:9px;font-weight:650;letter-spacing:.025em}
.mk-rec-label{font-weight:650;font-size:.88rem}
.mk-rec-results{max-height:248px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--bs-border-color,#dfe3ea);border-radius:11px;margin-top:.4rem;padding:.25rem}
.mk-rec-result{display:flex;flex-direction:column;width:100%;gap:2px;text-align:left;border:0;border-bottom:1px solid var(--bs-border-color,#e5e7eb);background:transparent;color:inherit;padding:.65rem .65rem;cursor:pointer;border-radius:7px}
.mk-rec-result:last-child{border-bottom:0}
.mk-rec-result:hover,.mk-rec-result:focus-visible{background:var(--bs-tertiary-bg,#eef2f6);outline:2px solid transparent}
.mk-rec-description{font-weight:650;line-height:1.25}
.mk-rec-result small{font-size:.75rem;overflow-wrap:anywhere;color:var(--bs-secondary-color,#64748b)}
.mk-rec-result .mk-rec-reason{font-size:.7rem;color:var(--bs-primary,#0d6efd)}
@media(max-width:575px){.mk-rec-popup{width:calc(100vw - 18px)!important;padding:.8rem}.mk-rec-popup .swal2-html-container{margin:.65rem 0 0}.mk-rec-results{max-height:32vh}}

/* FIX35A — identificación externa y candidatos del catálogo en dos columnas. */
.mk-rec-popup{width:min(960px,calc(100vw - 24px))!important;max-width:960px!important}
.mk-rec-popup .swal2-html-container{margin:.5rem 1rem .15rem!important;overflow:visible!important}
.mk-rec-header{display:flex;align-items:center;gap:.65rem;justify-content:space-between;flex-wrap:wrap;margin-bottom:.65rem}
.mk-rec-header #rec-status{flex:1;text-align:right}
.mk-rec-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem;align-items:start}
.mk-rec-pane{border:1px solid var(--bs-border-color,#dfe3ea);border-radius:12px;min-width:0;padding:.85rem;background:var(--bs-body-bg,#fff)}
.mk-rec-source{overflow-wrap:anywhere;margin-top:.5rem;min-height:38px}
.mk-rec-suggestion{background:var(--bs-tertiary-bg,#f6f8fb);padding:.45rem .65rem;border-radius:8px;margin-top:.55rem;overflow-wrap:anywhere}
.mk-rec-suggestion:empty{display:none}
.mk-rec-suggestion strong{display:block;font-size:.9rem}
.mk-rec-popup .mk-rec-results{max-height:340px;min-height:100px}
.mk-rec-popup .mk-rec-result{padding:.48rem .55rem}
.mk-rec-footer{display:flex;align-items:center;gap:.7rem;justify-content:space-between;margin-top:.8rem;flex-wrap:wrap}
.mk-rec-footer .btn{flex:0 0 auto}
.mk-rec-footer>div{flex:1;text-align:right}
@media(max-width:760px){
 .mk-rec-popup{width:calc(100vw - 18px)!important;padding:.8rem!important}
 .mk-rec-popup .swal2-html-container{margin:.5rem 0 0!important;overflow-y:auto!important;max-height:calc(100dvh - 165px)!important}
 .mk-rec-grid{grid-template-columns:minmax(0,1fr);gap:.55rem}
 .mk-rec-pane{padding:.65rem}
 .mk-rec-popup .mk-rec-results{max-height:190px;min-height:60px}
 .mk-rec-header #rec-status{text-align:left;flex-basis:100%}
 .mk-rec-footer>div{text-align:left;flex-basis:100%}
}


/* FIX35C - pulido visual del reconocimiento de productos */
.mk-rec-popup{width:min(980px,calc(100vw - 24px))!important;max-width:980px!important}
.mk-rec-box{font-size:.915rem}
.mk-rec-header{margin-bottom:.75rem}
.mk-rec-code{background:var(--bs-tertiary-bg,#eef2f6);border:1px solid var(--bs-border-color-translucent,rgba(0,0,0,.08))}
.mk-rec-header #rec-status{font-size:.82rem}
.mk-rec-grid{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:.9rem;align-items:stretch}
.mk-rec-pane{display:flex;flex-direction:column;gap:.55rem;border:1px solid var(--bs-border-color,#dfe3ea);border-radius:14px;padding:.9rem;background:var(--bs-body-bg,#fff);box-shadow:0 1px 0 rgba(0,0,0,.02)}
.mk-rec-label{display:flex;align-items:center;gap:.35rem;font-weight:700;font-size:.9rem;color:var(--bs-heading-color,#24324b)}
.mk-rec-source{margin-top:0;min-height:unset;padding:0;overflow-wrap:anywhere}
.mk-rec-source-card{border:1px solid var(--bs-border-color,#e2e8f0);background:var(--bs-tertiary-bg,#f8fafc);border-radius:12px;padding:.8rem .85rem}
.mk-rec-source-top{display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:.45rem}
.mk-rec-source-title{font-weight:700;line-height:1.3;color:var(--bs-heading-color,#24324b)}
.mk-rec-meta{display:flex;flex-direction:column;gap:.18rem;margin-top:.45rem;font-size:.78rem;color:var(--bs-secondary-color,#64748b)}
.mk-rec-link{font-size:.76rem;text-decoration:none}
.mk-rec-link:hover{text-decoration:underline}
.mk-rec-empty{padding:.15rem 0;color:var(--bs-secondary-color,#64748b)}
.mk-rec-suggestion{margin-top:0;border:1px solid var(--bs-border-color,#e2e8f0);background:#fff;padding:.7rem .8rem;border-radius:12px;min-height:86px;display:flex;flex-direction:column;justify-content:center;gap:.18rem;overflow-wrap:anywhere}
.mk-rec-suggestion strong{display:block;font-size:1rem;line-height:1.28;color:var(--bs-heading-color,#24324b);letter-spacing:.01em}
.mk-rec-note{margin-top:auto;padding-top:.15rem;line-height:1.35}
.mk-rec-popup .mk-rec-results{max-height:332px;min-height:188px;margin-top:.15rem}
.mk-rec-result{padding:.6rem .65rem;border-radius:10px}
.mk-rec-result small{line-height:1.25}
.mk-rec-result .mk-rec-reason{font-size:.71rem;font-weight:600}
.mk-rec-footer{display:flex;align-items:center;justify-content:space-between;gap:.85rem;margin-top:.85rem;flex-wrap:wrap}
.mk-rec-footer .btn{min-width:210px}
.mk-rec-footer>div{flex:1;text-align:right;max-width:500px;line-height:1.35}
@media(max-width:767.98px){
 .mk-rec-grid{grid-template-columns:minmax(0,1fr);gap:.65rem}
 .mk-rec-pane{padding:.75rem}
 .mk-rec-popup{width:calc(100vw - 18px)!important;padding:.8rem!important}
 .mk-rec-popup .swal2-html-container{margin:.5rem 0 0!important;overflow-y:auto!important;max-height:calc(100dvh - 165px)!important}
 .mk-rec-popup .mk-rec-results{max-height:190px;min-height:72px}
 .mk-rec-header #rec-status{text-align:left;flex-basis:100%}
 .mk-rec-footer>div{text-align:left;flex-basis:100%;max-width:none}
 .mk-rec-footer .btn{width:100%}
}


/* FIX35D — encabezado operativo, tipografía compacta y acciones siempre visibles. */
.mk-rec-popup .swal2-title{font-size:1.35rem!important;font-weight:730!important;line-height:1.2!important;margin:.15rem 1rem .75rem!important;padding:0!important}
.mk-rec-popup .swal2-html-container{margin:.4rem 1rem .5rem!important;overflow:visible!important}
.mk-rec-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin-bottom:.25rem}
.mk-rec-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.4rem;margin-left:auto}
.mk-rec-header-actions .btn{font-size:.78rem!important;font-weight:650!important;padding:.38rem .7rem!important;line-height:1.25!important;min-height:32px!important;white-space:nowrap;border-radius:9px!important}
.mk-rec-status{font-size:.71rem!important;line-height:1.25!important;min-height:0;margin:0 0 .6rem!important;overflow-wrap:anywhere}
.mk-rec-source-title{font-size:.83rem!important;line-height:1.28!important}
.mk-rec-label{font-size:.83rem!important}
.mk-rec-suggestion{min-height:75px;padding:.6rem .72rem}
.mk-rec-suggestion strong{font-size:.86rem!important;font-weight:700!important;line-height:1.3!important;letter-spacing:0!important}
.mk-rec-suggestion .small,.mk-rec-note,.mk-rec-source-top .badge{font-size:.71rem!important;line-height:1.3!important}
.mk-rec-results .mk-rec-description{font-size:.83rem!important}
.mk-rec-footer{display:block!important;font-size:.71rem!important;text-align:left!important;max-width:none!important;margin:.6rem 0 0!important;line-height:1.3!important}
@media(max-width:575.98px){
 .mk-rec-popup .swal2-title{font-size:1.16rem!important;margin:.1rem .3rem .5rem!important}
 .mk-rec-header-actions{width:100%;margin-left:0;justify-content:space-between}
 .mk-rec-header-actions .btn{flex:1 1 auto}
 .mk-rec-popup .swal2-html-container{margin:.4rem 0!important;overflow-y:auto!important;max-height:calc(100dvh - 120px)!important}
}
/* Altura acotada: el modal debe dejar visibles las acciones superiores incluso
   en pantallas de escritorio bajas; los candidatos siguen siendo desplazables. */
.mk-rec-popup .mk-rec-results{max-height:min(265px,34vh);min-height:120px;overflow-y:auto}
@media(max-width:767.98px){.mk-rec-popup .mk-rec-results{max-height:190px;min-height:65px}}


/* FIX35E: dar aire al título sin cambiar controles, tamaño del modal ni las columnas. */
.mk-rec-popup .swal2-title{margin:.65rem 1rem 1.4rem!important}
@media(max-width:575.98px){
 .mk-rec-popup .swal2-title{margin:.4rem .3rem 1rem!important}
}


/* FIX35F - tarjeta de referencia externa con jerarquía visual más sobria */
.mk-rec-source-card{padding:.82rem .9rem}
.mk-rec-source-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem;align-items:start}
.mk-rec-source-title{font-size:.86rem!important;font-weight:700!important;line-height:1.3!important;margin:0}
.mk-rec-source-side{display:flex;flex-direction:column;align-items:flex-end;gap:.12rem;text-align:right;min-width:120px}
.mk-rec-source-tag{font-size:.64rem;line-height:1.15;font-weight:600;color:var(--bs-secondary-color,#6b7280);text-transform:none;letter-spacing:.01em}
.mk-rec-link{font-size:.66rem!important;line-height:1.15;color:var(--bs-secondary-color,#667085);text-decoration:none}
.mk-rec-link i{font-size:.72em}
.mk-rec-link:hover{color:var(--bs-primary,#4f46e5);text-decoration:underline}
.mk-rec-meta{margin-top:.5rem;font-size:.77rem;gap:.22rem}
.mk-rec-meta strong{font-weight:700}
@media(max-width:575.98px){
 .mk-rec-source-head{grid-template-columns:minmax(0,1fr)}
 .mk-rec-source-side{align-items:flex-start;text-align:left;min-width:0}
}


/* FIX35G — tamaño constante y jerarquía clara del reconocimiento.
   Sólo afecta a este SweetAlert; los demás modales permanecen intactos. */
@media(min-width:768px){
 .swal2-popup.mk-rec-popup{
   width:min(980px,calc(100vw - 28px))!important;
   max-width:980px!important;
   height:min(570px,calc(100dvh - 28px))!important;
   min-height:0!important;
   max-height:calc(100dvh - 28px)!important;
   padding:1rem 1.3rem .95rem!important;
   display:flex!important;
   flex-direction:column!important;
 }
 .swal2-popup.mk-rec-popup>.swal2-title{
   flex:0 0 auto;
   margin:.2rem 0 .95rem!important;
   padding:0!important;
   text-align:center;
   font-size:1.31rem!important;
   line-height:1.25!important;
 }
 .swal2-popup.mk-rec-popup>.swal2-html-container{
   flex:1 1 auto!important;
   min-height:0!important;
   width:100%!important;
   margin:0!important;
   padding:0!important;
   display:flex!important;
   overflow:hidden!important;
 }
 .mk-rec-popup .mk-rec-box{display:flex;flex-direction:column;height:100%;min-height:0;min-width:0;width:100%}
 .mk-rec-popup .mk-rec-header{flex:0 0 auto;margin-bottom:.75rem}
 .mk-rec-popup .mk-rec-grid{flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);align-items:stretch}
 .mk-rec-popup .mk-rec-pane{height:100%;min-height:0;overflow:hidden}
 .mk-rec-popup .mk-rec-pane:first-child{overflow-y:auto}
 .mk-rec-popup .mk-rec-results{flex:1 1 auto;min-height:0!important;max-height:none!important;overflow-y:auto}
}
.mk-rec-popup .mk-rec-source-card{padding:.8rem .85rem}
.mk-rec-popup .mk-rec-source-title{font-size:.86rem!important;font-weight:700!important;line-height:1.3!important}
.mk-rec-popup .mk-rec-meta{margin-top:.5rem}
.mk-rec-popup .mk-rec-source-bottom{
 display:flex;justify-content:flex-end;align-items:center;gap:.65rem;flex-wrap:wrap;
 margin-top:.65rem;font-size:.65rem;line-height:1.2;
}
.mk-rec-popup .mk-rec-source-tag{font-weight:500!important;color:var(--bs-secondary-color,#667085)}
.mk-rec-popup .mk-rec-link{font-size:.65rem!important;color:var(--bs-secondary-color,#667085);white-space:nowrap}
.mk-rec-popup .mk-rec-link:hover{color:var(--bs-primary,#4f46e5)}
.mk-rec-popup .mk-rec-pane-status{
 font-size:.69rem;line-height:1.3;color:var(--bs-secondary-color,#667085);
 overflow-wrap:anywhere;
}
.mk-rec-popup .mk-rec-pane-status:empty{display:none}
.mk-rec-popup .mk-rec-note{margin-top:auto;padding-top:.6rem}
.mk-rec-popup .mk-rec-safety{
 margin-top:.15rem;padding-top:.4rem;border-top:1px solid var(--bs-border-color,#e2e8f0);
 font-size:.68rem;line-height:1.32;
}
.mk-rec-popup .mk-rec-header-actions{margin-left:auto}
@media(max-width:767.98px){
 .swal2-popup.mk-rec-popup{
   height:auto!important;min-height:0!important;max-height:calc(100dvh - 12px)!important;
   padding:.8rem!important;
 }
 .swal2-popup.mk-rec-popup>.swal2-title{
   margin:.25rem 0 .75rem!important;
   font-size:1.16rem!important;
   line-height:1.25!important;
 }
 .swal2-popup.mk-rec-popup>.swal2-html-container{
   display:block!important;overflow-y:auto!important;max-height:calc(100dvh - 90px)!important;
   margin:0!important;padding:0!important;
 }
 .mk-rec-popup .mk-rec-box{height:auto!important;display:block}
 .mk-rec-popup .mk-rec-header{margin-bottom:.6rem}
 .mk-rec-popup .mk-rec-grid{grid-template-columns:minmax(0,1fr);align-items:stretch}
 .mk-rec-popup .mk-rec-pane{height:auto;min-height:0;overflow:visible}
 .mk-rec-popup .mk-rec-results{max-height:190px!important;min-height:72px!important;overflow-y:auto}
 .mk-rec-popup .mk-rec-note{margin-top:.4rem}
 .mk-rec-popup .mk-rec-safety{margin-top:.4rem}
}


/* FIX35H — foto Pricely opcional dentro de la tarjeta, sin cambiar el modal. */
.mk-rec-popup .mk-rec-source-main{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;align-items:center;min-width:0}
.mk-rec-popup .mk-rec-source-main.has-photo{grid-template-columns:68px minmax(0,1fr)}
.mk-rec-popup .mk-rec-photo-frame{width:68px;height:68px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;border:1px solid var(--bs-border-color,#dfe3ea);border-radius:8px;flex:0 0 auto}
.mk-rec-popup .mk-rec-photo{display:block;width:100%;height:100%;max-width:68px;max-height:68px;object-fit:contain;object-position:center}
.mk-rec-popup .mk-rec-source-detail{min-width:0;overflow-wrap:anywhere}
.mk-rec-popup .mk-rec-source-bottom{border-top:1px solid var(--bs-border-color,#e2e8f0);padding-top:.4rem;margin-top:.5rem}
@media(max-width:380px){
 .mk-rec-popup .mk-rec-source-main.has-photo{grid-template-columns:54px minmax(0,1fr);gap:.5rem}
 .mk-rec-popup .mk-rec-photo-frame{width:54px;height:54px}
 .mk-rec-popup .mk-rec-photo{max-width:54px;max-height:54px}
}

/* FIX35I — confirmación de cambio de código: resumen sobrio y advertencia compacta.
   Sólo se aplica al SweetAlert de reemplazo, sin tocar otros diálogos. */
.swal2-popup.mk-rec-replace-popup{
  width:min(560px,calc(100vw - 24px))!important;
  max-width:560px!important;
  padding:1.25rem 1.3rem 1.2rem!important;
  border-radius:19px!important;
}
.mk-rec-replace-popup .swal2-title{
  margin:0 0 1rem!important;padding:0!important;
  text-align:left!important;font-size:1.24rem!important;
  font-weight:750!important;line-height:1.3!important;
}
.mk-rec-replace-popup .swal2-html-container.mk-rec-replace-html{
  margin:0!important;padding:0!important;text-align:left!important;
  color:var(--mk-text,#101828)!important;overflow:visible!important;
}
.mk-rec-replace-content{display:grid;gap:.75rem;min-width:0}
.mk-rec-replace-kicker{
  display:flex;align-items:center;gap:.35rem;font-size:.7rem;font-weight:700;
  line-height:1.25;color:var(--mk-muted,#667085);
}
.mk-rec-replace-product{display:flex;flex-direction:column;gap:.22rem;min-width:0}
.mk-rec-replace-product strong{
  font-size:.97rem;line-height:1.35;color:var(--mk-text,#101828);
  font-weight:760;overflow-wrap:anywhere;
}
.mk-rec-replace-codes{
  display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);
  align-items:center;gap:.55rem;
}
.mk-rec-replace-codes>div{
  min-width:0;display:flex;flex-direction:column;gap:.25rem;
  padding:.68rem .72rem;border:1px solid var(--mk-border,#e4e7ec);
  background:#f8fafc;border-radius:11px;
}
.mk-rec-replace-codes>div>span{font-size:.69rem;color:var(--mk-muted,#667085);font-weight:650}
.mk-rec-replace-codes>div>strong{font-size:.88rem;line-height:1.3;color:#344054;overflow-wrap:anywhere}
.mk-rec-replace-codes>i{font-size:.92rem;text-align:center;color:#98a2b3}
.mk-rec-replace-codes>div.mk-rec-replace-new{border-color:#c7d2fe;background:#f5f6ff}
.mk-rec-replace-codes>div.mk-rec-replace-new>strong{color:#3730a3}
.mk-rec-replace-external{
  display:flex;flex-direction:column;gap:.2rem;min-width:0;
  padding:.65rem .8rem;border:1px solid #e4e7ec;border-radius:11px;
}
.mk-rec-replace-external strong{font-size:.83rem;font-weight:720;color:#344054;line-height:1.35;overflow-wrap:anywhere}
.mk-rec-replace-external small{font-size:.7rem;color:var(--mk-muted,#667085);line-height:1.32}
.mk-rec-replace-warning{
  display:flex;align-items:flex-start;gap:.6rem;
  padding:.68rem .78rem;border:1px solid #f9db9b;background:#fffaf0;
  border-radius:11px;color:#854d0e;
}
.mk-rec-replace-warning>i{font-size:1rem;flex:0 0 auto;margin-top:.02rem}
.mk-rec-replace-warning>div{display:flex;flex-direction:column;gap:.24rem;min-width:0}
.mk-rec-replace-warning strong{font-size:.79rem;line-height:1.32}
.mk-rec-replace-warning span{font-size:.75rem;line-height:1.43}
.mk-rec-replace-popup .swal2-actions.mk-rec-replace-actions{
  width:100%;display:flex!important;justify-content:flex-end!important;
  flex-wrap:wrap;gap:.55rem!important;margin:1rem 0 0!important;padding:0!important;
}
.mk-rec-replace-actions .swal2-styled{
  margin:0!important;min-height:38px!important;border-radius:9px!important;
  padding:.55rem .8rem!important;font-size:.79rem!important;
  font-weight:720!important;box-shadow:none!important;
}
.mk-rec-replace-actions .swal2-cancel{background:#fff!important;color:#475467!important;border:1px solid #d0d5dd!important}
.mk-rec-replace-actions .swal2-confirm{background:var(--mk-primary,#4f46e5)!important;color:#fff!important}
.mk-rec-replace-actions .swal2-confirm:hover{background:var(--mk-primary-strong,#3730a3)!important}

/* FIX35I — formulario de artículo, sin alterar modales de precios/otras pantallas. */
.mk-load-article-modal .modal-dialog{max-width:620px!important;width:calc(100% - 24px);margin:12px auto}
.mk-load-article-modal .modal-content{border-radius:17px!important}
.mk-load-article-modal .modal-header{
  align-items:flex-start;gap:.8rem;padding:1rem 1.1rem .85rem!important;
}
.mk-load-article-heading{min-width:0;flex:1}
.mk-load-article-modal .modal-title{font-size:1.08rem!important;font-weight:760!important;line-height:1.3}
.mk-load-article-intro{font-size:.75rem;line-height:1.42;color:var(--mk-muted,#667085);margin-top:.28rem;max-width:58ch}
.mk-load-article-modal .btn-close{flex:0 0 auto;margin:.05rem 0 0!important;opacity:.65}
.mk-load-article-modal .modal-body{padding:1rem 1.1rem .9rem!important}
.mk-load-article-fields{--bs-gutter-x:.8rem;--bs-gutter-y:.8rem}
.mk-load-article-modal .form-label{font-size:.78rem!important;font-weight:740;margin-bottom:.28rem}
.mk-load-article-modal .form-control,.mk-load-article-modal .form-select{font-size:.88rem;min-height:40px;height:40px}
.mk-load-article-modal .mk-select-add{width:40px;min-height:40px;height:40px}
.mk-load-article-modal .mk-load-article-select-help{
  margin-top:.7rem;display:flex;align-items:flex-start;gap:.4rem;
  font-size:.69rem;line-height:1.35;color:var(--mk-muted,#667085);
}
.mk-load-article-select-help i{font-size:.76rem;margin-top:.02rem;flex:none}
.mk-load-article-unit-option{
  margin-top:.8rem;border:1px solid var(--mk-border,#e4e7ec);
  background:#f9fafb;border-radius:11px;padding:.72rem .8rem;
}
.mk-load-article-unit-option .form-check{display:flex;align-items:center;gap:.52rem;padding-left:0;min-height:22px}
.mk-load-article-unit-option .form-check-input{flex:0 0 auto;float:none;margin:0!important;cursor:pointer}
.mk-load-article-unit-option .form-check-label{
  font-size:.78rem;font-weight:700;line-height:1.3;color:#344054;cursor:pointer;
}
.mk-load-article-unit-help{margin-top:.27rem;margin-left:0;font-size:.7rem;line-height:1.37;color:var(--mk-muted,#667085)}
.mk-load-article-modal .modal-footer{gap:.5rem;padding:.7rem 1.1rem!important;background:#fff}
.mk-load-article-modal .modal-footer .btn{min-height:38px!important;padding:.45rem .85rem;font-size:.81rem!important}
@media(max-width:575.98px){
 .swal2-popup.mk-rec-replace-popup{padding:1rem .9rem!important}
 .mk-rec-replace-popup .swal2-title{font-size:1.1rem!important;margin-bottom:.8rem!important}
 .mk-rec-replace-codes{gap:.35rem;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr)}
 .mk-rec-replace-codes>div{padding:.55rem .5rem}
 .mk-rec-replace-popup .swal2-actions.mk-rec-replace-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:.4rem!important}
 .mk-rec-replace-actions .swal2-styled{width:100%;font-size:.72rem!important;padding:.52rem .35rem!important;white-space:normal;line-height:1.25}
 .mk-load-article-modal .modal-dialog{width:calc(100% - 16px);margin:8px auto}
 .mk-load-article-modal .modal-header{padding:.85rem .8rem!important}
 .mk-load-article-modal .modal-body{padding:.85rem .8rem!important}
 .mk-load-article-modal .modal-footer{padding:.7rem .8rem!important}
 .mk-load-article-fields{--bs-gutter-y:.65rem}
}
/* Acciones accesibles en pantallas angostas: volver a la izquierda, confirmar a la derecha. */
@media(max-width:575.98px){
 .mk-rec-replace-actions .swal2-cancel{grid-column:1;grid-row:1}
 .mk-rec-replace-actions .swal2-confirm{grid-column:2;grid-row:1}
 .swal2-popup.mk-rec-replace-popup{max-height:calc(100dvh - 16px)!important;overflow-y:auto!important}
}
/* Ancho específico del editor: prevalece sobre el ancho global de Bootstrap. */
@media(min-width:768px){
 .modal.mk-load-article-modal .modal-dialog:not(.modal-lg):not(.modal-xl){max-width:620px!important}
}

/* FIX35J — Buscadores legibles y adaptables, sin ensanchar el viewport. */
.mk-movement-toolbar{min-width:0;flex-wrap:wrap}
.mk-movement-toolbar .mk-movement-search-wrap{flex:1 1 460px;min-width:0;max-width:680px}
.mk-movement-toolbar .mk-movement-search-wrap .form-control{width:100%;max-width:none;min-width:0;min-height:40px;font-size:.86rem}
.mk-page-loads .mk-filter-panel .row>div,.mk-page-outputs .mk-filter-panel .row>div{min-width:0}
.mk-page-loads .mk-filter-panel #buscar,.mk-page-outputs .mk-filter-panel #buscar{width:100%;min-width:0}
.mk-turn-toolbar-actions .input-group{width:clamp(280px,33vw,420px);max-width:100%;min-width:0}
.mk-turn-toolbar-actions .input-group .form-control{min-width:0}
.mk-stock-adjust-page .mk-stock-adjust-search .input-group{min-width:0;flex-wrap:wrap}
.mk-stock-adjust-page .mk-stock-adjust-search .input-group .form-control{min-width:180px;flex:1 1 240px}
@media(max-width:991.98px){
 .mk-page-loads .mk-filter-panel .row>div:nth-child(3),.mk-page-outputs .mk-filter-panel .row>div:nth-child(3){flex:0 0 100%;max-width:100%}
 .mk-turn-toolbar-actions .input-group{width:auto;flex:1 1 320px}
}
@media(max-width:767.98px){
 .mk-movement-toolbar .mk-movement-search-wrap{width:100%;max-width:none;flex:1 1 100%}
 .mk-movement-toolbar #btnPDF{width:100%}
 .mk-page-loads .mk-filter-panel .row>div:last-child{flex:0 0 100%;max-width:100%}
 .mk-page-outputs .mk-filter-panel .row>div:nth-child(4),.mk-page-outputs .mk-filter-panel .row>div:nth-child(5){flex:0 0 50%;max-width:50%}
 .mk-turn-toolbar-actions .input-group{width:100%;flex:1 1 100%}
}
@media(max-width:420px){
 .mk-page-outputs .mk-filter-panel .row>div:nth-child(4),.mk-page-outputs .mk-filter-panel .row>div:nth-child(5){flex:0 0 100%;max-width:100%}
 .mk-stock-adjust-page .mk-stock-adjust-search .input-group .form-control{flex-basis:calc(100% - 52px)}
 .mk-stock-adjust-page .mk-stock-adjust-search .input-group #btnBuscar{flex:1 1 100%;border-radius:10px!important}
}

/* Auditoría transversal FIX35J: buscadores dentro de barras y paneles.
   Los controles flex no pueden conservar un min-width intrínseco que corte texto. */
.mk-list-toolbar>div,.mk-catalog-toolbar>div,.mk-promo-qty-toolbar>div,
.mk-turn-toolbar-actions>div,.mk-turn-history-search,.mk-stock-search-wrap{min-width:0}
.mk-list-toolbar input[type="search"],.mk-list-toolbar input[type="text"],
.mk-catalog-search .form-control,.mk-promo-qty-toolbar .form-control,
.mk-turn-history-search .form-control,.mk-filter-panel input:not([type="checkbox"]):not([type="radio"]){min-width:0;width:100%;max-width:100%}
.mk-catalog-toolbar .mk-catalog-search{flex:1 1 330px;min-width:0}
.mk-page-loads .mk-filter-panel #buscar,.mk-page-outputs .mk-filter-panel #buscar{min-height:42px}
@media(max-width:575.98px){
 .mk-page-outputs .mk-filter-panel .row>div:nth-child(1),
 .mk-page-outputs .mk-filter-panel .row>div:nth-child(2){flex:0 0 100%;max-width:100%}
 .mk-page-loads .mk-filter-panel #buscar,.mk-page-outputs .mk-filter-panel #buscar{font-size:16px}
 .mk-catalog-toolbar .mk-catalog-search{flex:1 1 100%;width:100%}
}

/* FIX35O: barra de estado de sesión/copia compacta y coherente. Sólo presentación. */
.mk-page .mk-state-banner.alert{
  display:flex;align-items:center;gap:.65rem;min-width:0;
  margin:0 0 .85rem;padding:.58rem .78rem;
  border:1px solid #f0dca9;border-radius:11px;
  background:#fffcf4;color:#854d0e;
  box-shadow:0 1px 2px rgba(146,91,19,.025);
  font-size:.78rem;line-height:1.35;
}
.mk-page .mk-state-banner--revalidate{border-color:#f4d38b;background:#fff9eb}
.mk-page .mk-state-banner-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:29px;height:29px;min-width:29px;flex:0 0 29px;
  border-radius:8px;background:#fff0ca;color:#a16207;font-size:.88rem;
}
.mk-page .mk-state-banner--copy .mk-state-banner-icon{background:#fff2d9;color:#975b13}
.mk-page .mk-state-banner-content{
  display:flex;align-items:baseline;flex-wrap:wrap;column-gap:.5rem;row-gap:.12rem;
  flex:1 1 auto;min-width:0;max-width:100%;
}
.mk-page .mk-state-banner-title{font-size:.8rem;font-weight:750;line-height:1.35;white-space:normal;color:#7c3e0b}
.mk-page .mk-state-banner-detail{font-size:.755rem;line-height:1.4;color:#855927;min-width:0;overflow-wrap:break-word}
@media(max-width:575.98px){
  .mk-page .mk-state-banner.alert{align-items:flex-start;gap:.55rem;padding:.56rem .65rem;margin-bottom:.75rem}
  .mk-page .mk-state-banner-icon{width:26px;height:26px;min-width:26px;flex-basis:26px;font-size:.81rem}
  .mk-page .mk-state-banner-content{display:block}
  .mk-page .mk-state-banner-title{display:block;font-size:.77rem;margin-bottom:.1rem}
  .mk-page .mk-state-banner-detail{display:block;font-size:.73rem}
}

/* FIX35S: un único estado/acción de sesión, sin doble botón amarillo. */
.maxi-navbar .maxi-session-indicator{
  display:inline-flex;align-items:center;justify-content:center;gap:.35rem;
  flex:0 0 auto;align-self:center;min-height:30px;max-width:100%;
  padding:.28rem .55rem;border:1px solid #b98a32;border-radius:9px;
  background:rgba(245,158,11,.12);color:#fcd88e;
  font-size:.715rem;font-weight:700;line-height:1.1;white-space:nowrap;text-decoration:none;
}
.maxi-navbar .maxi-session-indicator i{font-size:.81rem;line-height:1}
.maxi-navbar .maxi-session-indicator.is-copy{border-color:#876536;background:rgba(245,158,11,.09);color:#e7bd69;cursor:default}
.maxi-navbar .maxi-session-indicator.is-pending{border-color:#60523d;background:rgba(245,158,11,.07);color:#dbc18d;cursor:default}
.maxi-navbar a.maxi-session-indicator.is-action{border-color:#d6a849;background:rgba(245,158,11,.17);color:#ffe3a3}
.maxi-navbar a.maxi-session-indicator.is-action:hover,.maxi-navbar a.maxi-session-indicator.is-action:focus-visible{
  border-color:#fbbf24;background:#fbbf24;color:#422006;text-decoration:none;
}
/* Bootstrap d-none debe prevalecer incluso sobre el display del indicador. */
.maxi-navbar .maxi-session-indicator.d-none{display:none!important}
@media(max-width:991.98px){
  .maxi-navbar .maxi-session-indicator{align-self:stretch;min-height:38px}
}


/* FIX35T: confirmación de revalidación, no desplaza el contenido ni el menú. */
.mk-session-toast{
  position:fixed;z-index:1070;top:calc(72px + .5rem);right:clamp(12px,2vw,24px);
  display:flex;align-items:center;gap:.45rem;
  width:max-content;max-width:calc(100vw - 24px);min-height:34px;
  padding:.38rem .44rem .38rem .7rem;border:1px solid #b9e5d0;border-radius:10px;
  background:#f0fbf5;color:#176444;box-shadow:0 5px 18px rgba(15,23,42,.08);
  font-size:.75rem;font-weight:600;line-height:1.35;
  transition:opacity .18s ease,transform .18s ease;
}
.mk-session-toast>i{font-size:.83rem;color:#249963;flex:0 0 auto}
.mk-session-toast>span{min-width:0;overflow-wrap:anywhere}
.mk-session-toast.is-hiding{opacity:0;transform:translateY(-4px);pointer-events:none}
.mk-session-toast-close{
  display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;margin-left:.18rem;
  border:0;border-radius:6px;background:transparent;color:#49725b;font-size:1.05rem;
}
.mk-session-toast-close:hover,.mk-session-toast-close:focus-visible{background:#d7f3e3;color:#155e3c;outline-offset:2px}
@media(max-width:991.98px){.mk-session-toast{top:calc(64px + .5rem)}}
@media(prefers-reduced-motion:reduce){.mk-session-toast{transition:none}}

/* FIX35U · Editor de productos por pestañas. Las cuatro vistas comparten el mismo formulario. */
.swal2-popup.mk-product-editor{
  max-height:calc(100vh - 24px)!important;
  max-height:calc(100dvh - 24px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.swal2-popup.mk-product-editor .swal2-title{
  flex:0 0 auto;
  padding:.85rem .7rem .3rem!important;
  font-size:1.5rem!important;
}
.swal2-popup.mk-product-editor .swal2-html-container{
  flex:1 1 auto;
  min-height:0;
  width:calc(100% - .8rem)!important;
  max-width:none!important;
  margin:.55rem .4rem 0!important;
  padding:0 .25rem .5rem!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  text-align:left!important;
  scrollbar-gutter:stable;
}
.swal2-popup.mk-product-editor .swal2-actions{
  flex:0 0 auto;
  margin:.55rem auto .25rem!important;
  padding:.1rem .4rem!important;
}
.swal2-popup.mk-product-editor .swal2-validation-message{
  flex:0 0 auto;
  margin:.4rem .65rem .1rem!important;
  font-size:.8rem!important;
}
.mk-product-editor-tabs-form{display:block!important;min-width:0}
.mk-product-tabs{
  position:sticky;top:0;z-index:4;
  display:flex;align-items:stretch;gap:.4rem;
  overflow-x:auto;overscroll-behavior-x:contain;
  margin:0 0 .85rem;padding:.42rem;
  border:1px solid #e3e8f0;border-radius:13px;
  background:#f2f4f8;
  scrollbar-width:thin;
}
.mk-product-tab{
  display:inline-flex;align-items:center;justify-content:center;gap:.44rem;
  flex:1 0 auto;min-width:0;
  padding:.68rem .73rem;border:1px solid transparent;border-radius:10px;
  background:transparent;color:#475467;font-size:.82rem;font-weight:700;
  line-height:1.15;white-space:nowrap;cursor:pointer;transition:background .14s,color .14s,border-color .14s;
}
.mk-product-tab:hover{background:#e7eaf2;color:#344054}
.mk-product-tab.is-active{background:#fff;color:#3535b9;border-color:#e1e5ef;box-shadow:0 1px 3px rgba(16,24,40,.07)}
.mk-product-tab:focus-visible{outline:2px solid #5755da;outline-offset:-2px}
.mk-product-tab>i{font-size:.9rem;flex:0 0 auto}
.mk-product-tab-label{overflow:hidden;text-overflow:ellipsis}
.mk-product-tab-dot{display:inline-block;flex:0 0 auto;width:9px;height:9px;border-radius:50%;border:1px solid #aab2bf;background:#b7c0cb;box-shadow:0 0 0 2px #ffffffaa}
.mk-product-tab-dot.is-on{border-color:#079455;background:#12b76a}
.mk-product-tab-dot.is-pending{border-color:#d97706;background:#f59e0b}
.mk-product-tab-dot.is-off{border-color:#9ca3af;background:#c1c8d2}
.mk-product-tab-panels{min-width:0}
.mk-product-tab-panel{min-width:0;animation:mkProductTabIn .12s ease-out}
.mk-product-tab-panel[hidden]{display:none!important}
.mk-product-tab-panel>.row{--bs-gutter-y:.7rem}
.mk-product-tab-panel .mk-product-form-section{padding:12px 15px}
.mk-product-tab-panel .mk-product-form-section-title{font-size:.86rem;margin-bottom:.65rem}
.mk-product-tab-panel .mk-product-form-section .row{--bs-gutter-y:.75rem}
.mk-product-tab-panel .mk-product-form-section .form-label{font-size:.8rem;margin-bottom:.3rem}
.mk-product-tab-panel .mk-product-form-section .form-control,
.mk-product-tab-panel .mk-product-form-section .form-select{min-height:40px}
.mk-product-tab-empty{padding:1rem;border:1px dashed #d0d5dd;border-radius:12px;background:#f8fafc;color:#667085;font-size:.83rem}
.mk-product-tab-empty i{margin-right:.35rem}
@keyframes mkProductTabIn{from{opacity:.65}to{opacity:1}}
@media(max-width:767.98px){
  .swal2-popup.mk-product-editor{max-height:calc(100vh - 12px)!important;max-height:calc(100dvh - 12px)!important}
  .swal2-popup.mk-product-editor .swal2-title{padding:.7rem .2rem .2rem!important;font-size:1.1rem!important}
  .swal2-popup.mk-product-editor .swal2-html-container{width:100%!important;margin:.45rem 0 0!important;padding:0 .08rem .45rem!important;scrollbar-gutter:auto}
  .mk-product-tabs{gap:.2rem;padding:.28rem;margin-bottom:.6rem;border-radius:11px}
  .mk-product-tab{flex:0 0 auto;font-size:.72rem;padding:.65rem .58rem;gap:.3rem}
  .mk-product-tab-label{max-width:none}
  .mk-product-tab-dot{width:8px;height:8px}
  .mk-product-tab-panel .mk-product-form-section{padding:11px 12px}
  .swal2-popup.mk-product-editor .swal2-actions{margin:.3rem auto .12rem!important}
}
@media(prefers-reduced-motion:reduce){.mk-product-tab-panel{animation:none}.mk-product-tab{transition:none}}

/* FIX35V — Editor compacto y de tamaño estable (Agregar y Editar).
   Cambio visual exclusivamente: no se desmontan paneles, no cambia ningún campo ni el envío.
   En pantallas bajas la sección central puede desplazarse, nunca el encabezado ni Guardar. */
.swal2-popup.mk-product-editor{
  box-sizing:border-box;
  height:min(480px,calc(100vh - 24px))!important;
  height:min(480px,calc(100dvh - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  min-height:0!important;
  padding:.6rem .8rem!important;
}
.swal2-popup.mk-product-editor .swal2-title{
  padding:.22rem .35rem .12rem!important;
  margin:0!important;
  font-size:1.22rem!important;
  line-height:1.3!important;
}
.swal2-popup.mk-product-editor .swal2-html-container{
  box-sizing:border-box;
  flex:1 1 0!important;
  min-height:0!important;
  width:100%!important;
  margin:.38rem 0 0!important;
  padding:0 .1rem .3rem!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-gutter:auto!important;
  font-size:.79rem;
  line-height:1.35;
  text-align:left!important;
}
.swal2-popup.mk-product-editor .swal2-actions{
  margin:.4rem auto .12rem!important;
  padding:0 .3rem!important;
  gap:.4rem!important;
}
.swal2-popup.mk-product-editor .swal2-actions .swal2-styled{
  min-height:36px!important;
  padding:.37rem .8rem!important;
  font-size:.82rem!important;
  line-height:1.25!important;
  border-radius:9px!important;
}
.swal2-popup.mk-product-editor .swal2-validation-message{
  margin:.25rem .45rem 0!important;
  padding:.3rem .5rem!important;
  font-size:.76rem!important;
}
.swal2-popup.mk-product-editor .mk-product-tabs{
  gap:.25rem;
  margin:0 0 .48rem;
  padding:.25rem;
  border-radius:10px;
}
.swal2-popup.mk-product-editor .mk-product-tab{
  gap:.3rem;
  padding:.48rem .52rem;
  font-size:.74rem;
  line-height:1.12;
  border-radius:8px;
}
.swal2-popup.mk-product-editor .mk-product-tab>i{font-size:.78rem}
.swal2-popup.mk-product-editor .mk-product-tab-dot{width:7px;height:7px;box-shadow:none}
.swal2-popup.mk-product-editor .mk-product-tab-panel>.row{
  --bs-gutter-x:.56rem;
  --bs-gutter-y:.48rem;
}
.swal2-popup.mk-product-editor .mk-product-form-section{
  height:100%;
  padding:.55rem .7rem;
  border-radius:10px;
}
.swal2-popup.mk-product-editor .mk-product-form-section-title{
  gap:.32rem;
  margin-bottom:.4rem!important;
  font-size:.77rem;
  line-height:1.3;
}
.swal2-popup.mk-product-editor .mk-product-form-section .row{
  --bs-gutter-x:.6rem;
  --bs-gutter-y:.46rem;
}
.swal2-popup.mk-product-editor .form-label{
  display:block;
  margin-bottom:.17rem;
  font-size:.71rem;
  font-weight:650;
  line-height:1.23;
}
.swal2-popup.mk-product-editor .form-control,
.swal2-popup.mk-product-editor .form-select{
  box-sizing:border-box;
  height:34px;
  min-height:34px;
  padding:.34rem .52rem;
  font-size:.79rem;
  line-height:1.2;
  border-radius:8px;
}
.swal2-popup.mk-product-editor .input-group>.btn{
  min-width:35px;
  min-height:34px;
  padding:.28rem .45rem;
  font-size:.81rem;
}
.swal2-popup.mk-product-editor .form-text{
  margin-top:.23rem;
  font-size:.7rem;
  line-height:1.35;
}
.swal2-popup.mk-product-editor .mk-product-tab-empty{
  padding:.65rem;
  font-size:.75rem;
}
.swal2-popup.mk-product-editor .mk-product-report-switch{
  padding:.55rem .7rem .55rem 2.45rem;
  border-radius:9px;
}
.swal2-popup.mk-product-editor .mk-product-report-switch .form-check-input{margin-left:-1.82rem}
.swal2-popup.mk-product-editor .mk-product-report-switch .form-check-label strong{font-size:.73rem}
.swal2-popup.mk-product-editor .mk-product-report-switch .form-check-label span{font-size:.67rem}
/* Promo y compuesto conservan contenido/estados, con menos espacios y tipografía uniforme. */
.swal2-popup.mk-product-editor .mk-promo-layout{gap:.48rem}
.swal2-popup.mk-product-editor .mk-promo-editor-card,
.swal2-popup.mk-product-editor .mk-promo-status-card{padding:.68rem .75rem;border-radius:10px}
.swal2-popup.mk-product-editor .mk-promo-status-head{font-size:.75rem;gap:.4rem}
.swal2-popup.mk-product-editor .mk-promo-editor-body{gap:.45rem .7rem}
.swal2-popup.mk-product-editor .mk-promo-editor-card .mk-promo-current{margin-top:.45rem!important}
.swal2-popup.mk-product-editor .mk-promo-current{padding:.48rem .6rem;border-radius:8px;font-size:.72rem}
.swal2-popup.mk-product-editor .mk-promo-editor-card .mb-3{margin-bottom:.5rem!important}
.swal2-popup.mk-product-editor .mk-promo-status-card>.form-text{line-height:1.4}
.swal2-popup.mk-product-editor .mk-component-row{padding:.4rem .5rem}
.swal2-popup.mk-product-editor .mk-component-main strong{font-size:.76rem}
.swal2-popup.mk-product-editor .mk-component-main span{font-size:.7rem}
.swal2-popup.mk-product-editor .mk-component-empty{padding:.55rem;font-size:.74rem}
.swal2-popup.mk-product-editor .mk-product-switch{font-size:.76rem}
.swal2-popup.mk-product-editor .mk-product-switch .form-check-input{width:2.1rem;height:1.14rem}
@media(max-width:991.98px){
  /* Precio y stock pasan uno debajo del otro cuando las columnas quedarían estrechas. */
  .swal2-popup.mk-product-editor{height:min(550px,calc(100dvh - 18px))!important;max-height:calc(100dvh - 18px)!important}
}
@media(max-width:767.98px){
  .swal2-popup.mk-product-editor{
    height:min(730px,calc(100dvh - 12px))!important;
    max-height:calc(100dvh - 12px)!important;
    padding:.55rem .55rem!important;
  }
  .swal2-popup.mk-product-editor .swal2-title{font-size:1.04rem!important;padding:.12rem .2rem!important}
  .swal2-popup.mk-product-editor .swal2-html-container{margin:.32rem 0 0!important;padding:0 .05rem .2rem!important}
  .swal2-popup.mk-product-editor .mk-product-tabs{padding:.2rem;gap:.15rem;margin-bottom:.4rem}
  .swal2-popup.mk-product-editor .mk-product-tab{flex:0 0 auto;padding:.48rem .45rem;font-size:.71rem}
  .swal2-popup.mk-product-editor .mk-product-form-section{padding:.55rem .58rem}
  /* 16px en controles móviles previene zoom forzado del navegador al enfocarlos. */
  .swal2-popup.mk-product-editor .form-control,
  .swal2-popup.mk-product-editor .form-select{font-size:16px}
  .swal2-popup.mk-product-editor .swal2-actions{margin:.25rem auto .1rem!important}
}
@media(max-width:389.98px){
  .swal2-popup.mk-product-editor .mk-product-form-section .row{--bs-gutter-x:.4rem}
  .swal2-popup.mk-product-editor .mk-product-tab{font-size:.68rem}
}

/* FIX35W — Identificación utiliza toda el área disponible; tarjetas en dos columnas.
   Solo cambia la distribución visual de Identificación, no los controles ni su valor. */
.swal2-popup.mk-product-editor .mk-product-editor-tabs-form{
  display:flex!important;flex-direction:column;min-height:100%;height:100%;min-width:0;
}
.swal2-popup.mk-product-editor .mk-product-tabs{flex:0 0 auto}
.swal2-popup.mk-product-editor .mk-product-tab-panels{flex:1 0 auto;min-height:0;min-width:0}
.swal2-popup.mk-product-editor .mk-product-tab-panel[data-mk-pane="identificacion"]{
  min-height:100%;height:100%;
}
.swal2-popup.mk-product-editor .mk-product-identity-layout{
  display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:10px;min-height:100%;height:100%;align-items:stretch;
}
.swal2-popup.mk-product-editor .mk-product-identity-left,
.swal2-popup.mk-product-editor .mk-product-identity-right,
.swal2-popup.mk-product-editor .mk-product-money-wrap,
.swal2-popup.mk-product-editor .mk-product-stock-wrap{min-width:0;min-height:0}
.swal2-popup.mk-product-editor .mk-product-identity-right{
  display:grid;grid-template-rows:minmax(0,1.7fr) minmax(0,1fr);gap:10px;
}
.swal2-popup.mk-product-editor .mk-product-identity-layout .mk-product-form-section{
  box-sizing:border-box;height:100%;min-width:0;
  display:flex;flex-direction:column;padding:.68rem .76rem;
}
.swal2-popup.mk-product-editor .mk-product-identity-layout .mk-product-form-section-title{
  flex:0 0 auto;margin-bottom:.5rem!important;
}
.swal2-popup.mk-product-editor .mk-product-identity-layout .row{
  margin:0;display:grid;min-width:0;flex:1 0 auto;
  --bs-gutter-x:0;--bs-gutter-y:0;
}
.swal2-popup.mk-product-editor .mk-product-identity-layout .row > [class*="col-"]{
  padding:0;flex:none;width:auto;max-width:none;min-width:0;
}
.swal2-popup.mk-product-editor .mk-identity-fields{
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,auto));
  column-gap:10px;row-gap:8px;align-content:space-around;
}
.swal2-popup.mk-product-editor .mk-identity-fields .mk-field-code{grid-column:span 4}
.swal2-popup.mk-product-editor .mk-identity-fields .mk-field-description{grid-column:span 8}
.swal2-popup.mk-product-editor .mk-identity-fields .mk-field-brand,
.swal2-popup.mk-product-editor .mk-identity-fields .mk-field-category{grid-column:1 / -1}
.swal2-popup.mk-product-editor .mk-money-fields{
  grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:9px;
  align-content:space-around;
}
.swal2-popup.mk-product-editor .mk-stock-fields{
  grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;
  align-content:center;
}
@media(max-width:767.98px){
  .swal2-popup.mk-product-editor .mk-product-editor-tabs-form{min-height:100%;height:auto}
  .swal2-popup.mk-product-editor .mk-product-identity-layout{
    grid-template-columns:minmax(0,1fr);height:auto;min-height:0;gap:8px;
  }
  .swal2-popup.mk-product-editor .mk-product-identity-right{
    grid-template-rows:auto auto;gap:8px;
  }
  .swal2-popup.mk-product-editor .mk-product-identity-layout .mk-product-form-section{height:auto}
  .swal2-popup.mk-product-editor .mk-identity-fields{row-gap:8px}
  .swal2-popup.mk-product-editor .mk-identity-fields .mk-field-code{grid-column:span 5}
  .swal2-popup.mk-product-editor .mk-identity-fields .mk-field-description{grid-column:span 7}
}
@media(min-width:768px) and (max-height:590px){
  .swal2-popup.mk-product-editor .mk-product-identity-layout .mk-product-form-section{padding:.48rem .58rem}
  .swal2-popup.mk-product-editor .mk-product-identity-layout .mk-product-form-section-title{margin-bottom:.26rem!important}
  .swal2-popup.mk-product-editor .mk-identity-fields{row-gap:5px}
  .swal2-popup.mk-product-editor .mk-money-fields{row-gap:5px}
}

@media(max-width:767.98px){.swal2-popup.mk-product-editor{height:min(665px,calc(100dvh - 12px))!important}}


/* FIX35X — Títulos de ventanas: iconografía y separación uniforme, sin alterar acciones ni dimensiones. */
.modal-header .modal-title{
  font-weight:750;
  line-height:1.3;
  letter-spacing:-.015em;
}
/* Texto dinámico (usuarios, promociones y cola): el icono es hermano y no se borra con textContent. */
.modal-header .mk-modal-title-line{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  column-gap:.48rem;
  margin-top:.2rem;
  min-width:0;
}
.modal-header .mk-modal-title-line>.modal-title{min-width:0;margin:0!important;overflow-wrap:anywhere}
.modal-header .mk-modal-title-line>.bi{flex:0 0 auto;font-size:1.05rem;line-height:1;color:#475467}
.modal-header .mk-modal-title-line>.bi.text-warning{color:#b45309!important}
/* Títulos con icono integrado, incluidas las ventanas Swal de productos. */
.modal-header .modal-title>.bi,
.swal2-popup .swal2-title>.bi{
  display:inline-block;
  margin:0 .46rem 0 0!important;
  font-size:.91em;
  line-height:1;
  vertical-align:-.055em;
  font-weight:400;
}
.modal-header .modal-title>.bi.text-warning{color:#b45309!important}
/* No duplicar espacio entre el rótulo de contexto y el título ni apretar el botón cerrar. */
.modal-header .mk-eyebrow{margin-bottom:0}
.modal-header .btn-close{flex:0 0 auto}
@media(max-width:575.98px){
  .modal-header .mk-modal-title-line{column-gap:.4rem}
  .modal-header .modal-title>.bi,.swal2-popup .swal2-title>.bi{margin-right:.39rem!important}
}

/* FIX35Z: historial de cola con información funcional prioritaria y trazabilidad desplegable. */
.mk-queue-info-modal .modal-header{padding:.78rem 1rem}
.mk-queue-info-modal .modal-body{padding:.85rem 1rem 1rem}
.mk-queue-info-modal .mk-eyebrow{font-size:.61rem;letter-spacing:.065em}
.mk-queue-info-modal .mk-queue-info-subtitle{gap:.3rem .7rem;margin-top:.22rem}
.mk-queue-info-modal .mk-queue-attempts{color:#b42318;font-weight:700}
.mk-queue-info-modal .mk-queue-info-grid{margin-bottom:.65rem;gap:.55rem}
.mk-queue-info-modal .mk-queue-load-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.mk-queue-info-modal .mk-queue-info-stat{padding:.58rem .72rem;border-radius:10px}
.mk-queue-info-modal .mk-queue-info-heading{margin:.8rem 0 .4rem}
/* Una sola barra vertical (la del modal); cada tabla sigue permitiendo desplazamiento horizontal. */
.mk-queue-info-modal .mk-queue-info-table-wrap{max-height:none}
.mk-queue-disclosure{margin-top:.75rem;border:1px solid #e4e7ec;border-radius:10px;background:#fff;overflow:hidden}
.mk-queue-disclosure>summary{display:flex;align-items:center;gap:.5rem;min-height:38px;padding:.5rem .7rem;list-style:none;cursor:pointer;color:#344054;font-size:.77rem}
.mk-queue-disclosure>summary::-webkit-details-marker{display:none}
.mk-queue-disclosure>summary>i:first-child{color:#667085}
.mk-queue-disclosure>summary:focus-visible{outline:2px solid #5252c8;outline-offset:-3px}
.mk-queue-disclosure-count{color:#667085;font-size:.69rem;font-weight:450;margin-left:.12rem}
.mk-queue-disclosure-chevron{margin-left:auto;color:#667085;font-size:.7rem;transition:transform .15s}
.mk-queue-disclosure[open] .mk-queue-disclosure-chevron{transform:rotate(180deg)}
.mk-queue-disclosure[open]>summary{border-bottom:1px solid #eaecf0;background:#fcfcfd}
.mk-queue-disclosure .mk-queue-timeline{padding:.6rem .8rem .15rem}
.mk-queue-technical dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1rem;row-gap:.55rem;margin:0;padding:.7rem .8rem .85rem}
.mk-queue-technical-row{min-width:0;display:grid;gap:.12rem}
.mk-queue-technical-row dt{color:#667085;font-size:.67rem;font-weight:700}
.mk-queue-technical-row dd{min-width:0;margin:0;font-size:.74rem;color:#344054;overflow-wrap:anywhere}
@media(max-width:575.98px){
 .mk-queue-info-modal .modal-header,.mk-queue-info-modal .modal-body{padding:.7rem}
 .mk-queue-info-modal .mk-queue-load-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mk-queue-info-modal .mk-queue-load-summary .mk-queue-info-stat{padding:.45rem}
 .mk-queue-info-modal .mk-queue-load-summary .mk-queue-info-stat>strong{font-size:.75rem}
 .mk-queue-technical dl{grid-template-columns:1fr}
 .mk-queue-disclosure-count{font-size:.63rem}
}
@media(max-width:420px){.mk-queue-info-modal .mk-queue-load-summary{grid-template-columns:1fr 1fr}.mk-queue-info-modal .mk-queue-load-summary .mk-queue-info-stat:last-child{grid-column:1/-1}}

/* FIX35AA: avisos uniformes y discretos en la cola, sin perder errores ni contexto. */
.mk-queue-info-modal .mk-queue-notice{display:flex;align-items:flex-start;gap:.45rem;padding:.48rem .65rem;margin:0 0 .65rem;border:1px solid #d0d5dd;border-left-width:3px;border-radius:9px;background:#fff;color:#344054;font-size:.75rem;line-height:1.4;overflow-wrap:anywhere}
.mk-queue-info-modal .mk-queue-notice>i{flex:0 0 auto;font-size:.83rem;line-height:1.25;margin-top:.05rem}
.mk-queue-info-modal .mk-queue-notice strong{font-weight:750}
.mk-queue-info-modal .mk-queue-notice.is-danger{border-color:#fecdca;border-left-color:#d92d20;background:#fff8f7;color:#912018}
.mk-queue-info-modal .mk-queue-notice.is-warning{border-color:#fedf89;border-left-color:#dc8905;background:#fffcf5;color:#854a0e}
.mk-queue-info-modal .mk-queue-empty{display:flex;gap:.4rem;align-items:center;padding:.45rem .65rem;margin:0;border:1px solid #e4e7ec;border-radius:9px;background:#fff;color:#667085;font-size:.73rem}
.mk-queue-info-modal .mk-queue-empty i{color:#667085}
/* Mensajes auxiliares dentro de ambos modales de la cola: idéntica densidad visual. */
.mk-queue-info-modal .modal-body .alert,.mk-price-conflict-modal .modal-body .alert{padding:.5rem .68rem!important;margin-bottom:.55rem!important;border-radius:9px;font-size:.76rem;line-height:1.42}
@media(max-width:575.98px){.mk-queue-info-modal .mk-queue-notice{padding:.45rem .55rem;font-size:.72rem}}


/* FIX35AB - Mantener el ancho del contenido al abrir/cerrar modales.
   Bootstrap y SweetAlert pueden bloquear el scroll y compensar con padding inline;
   con una canaleta vertical reservada en la raiz esa compensacion ya no corresponde.
   No anular el overflow: el fondo debe seguir bloqueado mientras el modal esta abierto. */
@supports (scrollbar-gutter: stable) {
  html { scrollbar-gutter: stable; }
  body.modal-open,
  body.swal2-shown,
  html.swal2-shown body { padding-right: 0 !important; }
  body.modal-open .maxi-navbar,
  body.swal2-shown .maxi-navbar,
  html.swal2-shown .maxi-navbar { padding-right: 0 !important; margin-right: 0 !important; }
}


/* FIX35AC — Nueva salida en Cola WEB: misma jerarquía compacta que Cargas. */
.mk-queue-info-modal .mk-queue-output-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.mk-queue-info-modal .mk-queue-output-meta{display:flex;align-items:flex-start;flex-wrap:wrap;column-gap:1.2rem;row-gap:.28rem;margin:.12rem 0 .55rem;color:#667085;font-size:.72rem;line-height:1.35}
.mk-queue-info-modal .mk-queue-output-meta>span{min-width:0;overflow-wrap:anywhere}
.mk-queue-info-modal .mk-queue-output-meta i{margin-right:.23rem;color:#667085}
.mk-queue-info-modal .mk-queue-output-meta strong{color:#344054;font-weight:650}
.mk-queue-info-modal .mk-queue-item-meta{margin-top:.1rem;color:#98a2b3;font-size:.67rem;line-height:1.25}
.mk-queue-info-modal .mk-queue-info-table.is-output th:nth-child(2),
.mk-queue-info-modal .mk-queue-info-table.is-output th:nth-child(n+5){text-align:right}
.mk-queue-info-modal .mk-queue-info-table.is-output td:nth-child(3){white-space:nowrap}
@media(max-width:575.98px){
 .mk-queue-info-modal .mk-queue-output-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mk-queue-info-modal .mk-queue-output-meta{column-gap:.7rem;font-size:.69rem}
}
@media(max-width:420px){
 .mk-queue-info-modal .mk-queue-output-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* FIX35AD — todas las operaciones WEB comparten resumen, identidad y detalle compactos. */
.mk-queue-info-modal .mk-queue-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:.52rem;margin-bottom:.5rem}
.mk-queue-info-modal .mk-queue-summary .mk-queue-info-stat{padding:.48rem .68rem}
.mk-queue-info-modal .mk-queue-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:.18rem .58rem;padding:.49rem .7rem;margin:0 0 .55rem;border:1px solid #e4e7ec;border-radius:9px;background:#fff;min-width:0;overflow-wrap:anywhere}
.mk-queue-info-modal .mk-queue-identity>span{color:#667085;font-size:.66rem;text-transform:uppercase;font-weight:750;letter-spacing:.035em}
.mk-queue-info-modal .mk-queue-identity>strong{color:#344054;font-size:.83rem}
.mk-queue-info-modal .mk-queue-identity>small{color:#667085;font-size:.72rem}
.mk-queue-info-modal .mk-queue-detail-meta{margin:.1rem 0 .55rem}
.mk-queue-info-modal .mk-queue-notice.is-info{border-color:#d0d5dd;border-left-color:#667085;background:#fcfcfd;color:#475467}
.mk-queue-info-modal .mk-queue-info-table.is-record{min-width:420px}
.mk-queue-info-modal .mk-queue-info-table.is-record td:first-child{width:32%}
.mk-queue-info-modal .mk-queue-info-table.is-output-cancel th:last-child{text-align:right}
@media(max-width:575.98px){.mk-queue-info-modal .mk-queue-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mk-queue-info-modal .mk-queue-identity{padding:.45rem .55rem}}

/* Tres datos de carga llenan todo el ancho (sin cuarta columna vacía). */
.mk-queue-info-modal .mk-queue-summary.mk-queue-load-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:575.98px){.mk-queue-info-modal .mk-queue-summary.mk-queue-load-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:420px){.mk-queue-info-modal .mk-queue-summary.mk-queue-load-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mk-queue-info-modal .mk-queue-summary.mk-queue-load-summary .mk-queue-info-stat:last-child{grid-column:1/-1}}


/* FIX35AE: la nueva salida y la carga comparten las MISMAS tres tarjetas.
   La referencia de venta (distinta del costo) aparece debajo, no como cuarta tarjeta. */
.mk-queue-info-modal .mk-queue-summary.mk-queue-output-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:575.98px){
 .mk-queue-info-modal .mk-queue-summary.mk-queue-output-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:420px){
 .mk-queue-info-modal .mk-queue-summary.mk-queue-output-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mk-queue-info-modal .mk-queue-summary.mk-queue-output-summary .mk-queue-info-stat:last-child{grid-column:1/-1}
}


/* FIX35AF — Auditoría responsive: tarjetas de carga/salida, cabeceras y diálogos.
   Las tablas de escritorio conservan sus columnas; en teléfono el orden está
   definido por celda para no depender del flujo automático (causa del solape). */
@media (max-width:767.98px){
  .mk-page-load-entry .mk-load-page-fluid{min-width:0;max-width:100%;padding-inline:10px!important}
  .mk-page-load-entry .mk-load-compose-compact{padding:10px!important;margin-bottom:10px;border-radius:14px}
  .mk-page-load-entry .mk-load-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mk-page-load-entry .mk-load-context-item{height:auto!important;min-height:64px!important;min-width:0;padding:8px 10px!important;justify-content:center!important}
  .mk-page-load-entry .mk-load-context-item>span{font-size:.62rem;line-height:1.2;margin:0}
  .mk-page-load-entry .mk-load-context-item>strong{font-size:.95rem;overflow-wrap:anywhere}
  .mk-page-load-entry .mk-load-context-item>small{font-size:.62rem;line-height:1.25;overflow-wrap:anywhere}
  .mk-page-load-entry .mk-load-add-zone,.mk-page-load-entry .mk-output-add-zone{grid-column:1/-1;min-width:0}
  .mk-page-load-entry .mk-load-add-zone>div:first-child{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center!important}
  .mk-page-load-entry .mk-load-add-zone>div:first-child>span{min-width:0;gap:5px!important}
  .mk-page-load-entry .mk-load-add-zone .mk-load-draft-state{grid-column:1/-1;justify-self:start;max-width:100%;white-space:normal;overflow:visible;line-height:1.3}
  .mk-page-load-entry .mk-load-draft-state span{overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .mk-page-load-entry .mk-output-add-zone>div:first-child{gap:5px!important}
  .mk-page-load-entry .mk-quick-search,.mk-page-load-entry .mk-quick-search>.input-group{max-width:100%;min-width:0}
  .mk-page-load-entry .mk-quick-search>.input-group{display:flex;flex-wrap:nowrap}
  .mk-page-load-entry .mk-quick-search .input-group-text{flex:0 0 41px;min-width:0;padding:.4rem;justify-content:center}
  .mk-page-load-entry .mk-quick-search .form-control{flex:1 1 0;min-width:0;width:1%;font-size:16px!important;padding-inline:.55rem}
  .mk-page-load-entry .mk-quick-search>.input-group>.btn{flex:0 0 auto;min-width:0;padding-inline:.65rem;font-size:.86rem}
  .mk-page-load-entry .mk-load-add-zone .form-text,.mk-page-load-entry .mk-output-add-zone .form-text{font-size:.73rem;line-height:1.38;margin-top:.36rem}
  .mk-page-load-entry .mk-load-empty-compact{min-height:130px;padding:1rem .75rem;gap:.28rem}
  .mk-page-load-entry .mk-load-empty-compact i{font-size:1.55rem}
  .mk-page-load-entry .mk-load-empty-compact strong{font-size:.85rem}
  .mk-page-load-entry .mk-load-empty-compact span{font-size:.78rem}
  /* Un solo scroll vertical (el documento); las tarjetas no recortan importes. */
  .mk-page-load-entry .mk-load-table-card,.mk-page-load-entry .mk-load-table-wrap{max-width:100%;min-width:0}
  .mk-page-load-entry .mk-load-table-wrap{overflow:visible!important;max-height:none!important;padding:0!important;scrollbar-gutter:auto!important}
  .mk-page-load-entry .mk-load-table,.mk-page-load-entry .mk-load-table tbody{display:block!important;width:100%!important;min-width:0!important}
  .mk-page-load-entry .mk-load-table tbody{display:grid!important;gap:8px}
  .mk-page-load-entry .mk-load-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;column-gap:8px;row-gap:3px;min-width:0;max-width:100%;padding:9px 10px!important;overflow:hidden}
  .mk-page-load-entry .mk-load-table tbody td{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;min-width:0!important;max-width:100%!important;width:auto!important;gap:2px!important;padding:5px 2px!important;text-align:left!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;line-height:1.28;font-size:.78rem;border:0!important}
  .mk-page-load-entry .mk-load-table tbody td::before{display:block!important;flex:none!important;width:auto!important;max-width:100%;margin:0!important;font-size:.61rem!important;line-height:1.18!important;white-space:normal!important;overflow-wrap:anywhere}
  .mk-page-load-entry .mk-load-table .mk-cell-qty{grid-column:1!important;grid-row:1!important;align-items:flex-start!important}
  .mk-page-load-entry .mk-load-table .mk-cell-code{grid-column:2!important;grid-row:1!important}
  .mk-page-load-entry .mk-load-table .mk-cell-desc{grid-column:1/-1!important;grid-row:2!important;font-weight:750;font-size:.84rem}
  .mk-page-load-entry .mk-load-table .mk-cell-muted:nth-child(4){grid-column:1!important;grid-row:3!important}
  .mk-page-load-entry .mk-load-table .mk-cell-muted:nth-child(5){grid-column:2!important;grid-row:3!important}
  .mk-page-load-entry .mk-load-table .mk-cell-number:nth-child(6){grid-column:1!important;grid-row:4!important}
  .mk-page-load-entry .mk-load-table .mk-cell-number:nth-child(9){grid-column:2!important;grid-row:4!important}
  .mk-page-load-entry .mk-load-table .mk-cell-number:nth-child(7){grid-column:1!important;grid-row:5!important}
  .mk-page-load-entry .mk-load-table .mk-cell-number:nth-child(8){grid-column:2!important;grid-row:5!important}
  .mk-page-load-entry .mk-load-table .mk-load-code{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;max-width:100%}
  .mk-page-load-entry .mk-load-table .mk-qty-static{min-height:32px;min-width:44px;padding:6px 9px}
  .mk-page-load-entry .mk-load-table .mk-load-row-state{max-width:100%;overflow-wrap:anywhere}
  .mk-page-load-entry .mk-load-table tbody td.mk-load-actions-cell{grid-column:1/-1!important;grid-row:6!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:7px!important;margin-top:3px;border-top:1px solid #e2e8f0!important;padding-top:9px!important}
  .mk-page-load-entry .mk-load-table .mk-load-actions{margin-left:auto;min-width:0;display:flex;flex-wrap:wrap;gap:6px}
  .mk-page-load-entry .mk-load-table .mk-icon-btn{width:36px;height:36px;min-width:36px;min-height:36px}
  .mk-page-load-entry .mk-load-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;padding:11px!important;position:static!important;margin-top:10px}
  .mk-page-load-entry .mk-load-summary-metric{min-width:0!important;flex:none!important}
  .mk-page-load-entry .mk-load-summary-metric small{font-size:.63rem}
  .mk-page-load-entry .mk-load-summary-metric strong{font-size:clamp(.85rem,3.45vw,1.03rem);overflow-wrap:anywhere;line-height:1.25}
  .mk-page-load-entry .mk-load-summary-actions{grid-column:1/-1;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:4px 0 0}
  .mk-page-load-entry .mk-load-summary-actions>.btn{min-width:0;width:100%;min-height:39px;white-space:normal;font-size:.78rem;line-height:1.2;padding:6px}
  .mk-page-load-entry .mk-load-summary-actions #btnConfirmarCarga{grid-column:1/-1}
  .mk-page-load-entry .mk-load-entry-header{gap:7px;margin-bottom:10px}
  .mk-page-load-entry .mk-load-entry-header .btn{width:auto;max-width:100%;align-self:flex-start;font-size:.79rem;min-height:36px;padding:.4rem .65rem}
  /* Salidas: anular las posiciones heredadas del listado de compras. */
  .mk-page-load-entry .mk-output-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mk-page-load-entry .mk-output-table tbody td.mk-cell-qty{grid-column:1!important;grid-row:1!important}
  .mk-page-load-entry .mk-output-table tbody td.mk-cell-code{grid-column:2!important;grid-row:1!important}
  .mk-page-load-entry .mk-output-table tbody td.mk-cell-desc{grid-column:1/-1!important;grid-row:2!important}
  .mk-page-load-entry .mk-output-table tbody td.mk-cell-motive{grid-column:1/-1!important;grid-row:3!important}
  .mk-page-load-entry .mk-output-table tbody td.mk-cell-number{grid-column:1/-1!important;grid-row:4!important}
  .mk-page-load-entry .mk-output-table tbody td.mk-output-actions-cell{grid-column:1/-1!important;grid-row:5!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;border-top:1px solid #e2e8f0!important;padding-top:8px!important}
  .mk-page-load-entry .mk-output-table .mk-cell-desc strong,.mk-page-load-entry .mk-output-table .mk-cell-desc small{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .mk-page-load-entry .mk-output-table select{max-width:100%;width:100%;min-width:0!important;font-size:16px!important}
  .mk-page-load-entry .mk-output-table .mk-cell-qty input{max-width:100%;min-width:0!important}
  /* Atajos: el cuadro se fija al viewport; nunca debe salir por la izquierda. */
  .mk-page-load-entry .mk-key-help-pop{position:fixed!important;left:12px!important;right:12px!important;top:var(--mk-key-help-top,25dvh)!important;bottom:auto!important;width:auto!important;max-width:none!important;max-height:min(48dvh,350px);overflow:auto;overscroll-behavior:contain;z-index:2100;line-height:1.48;font-size:.77rem}
  .mk-page-load-entry .mk-key-help summary{min-height:32px;white-space:nowrap}
  .mk-page-load-entry .mk-output-observation{grid-template-columns:1fr;gap:4px}
  .mk-page-load-entry .mk-output-observation .form-control{min-width:0;width:100%}
  /* Documentos/cola/reportes: el ancho de las tablas no debe ensanchar la página. */
  .mk-queue-info-modal .mk-queue-info-table-wrap,.mk-doc-modal .table-responsive,.mk-page-reports .mk-report-table-wrap,.mk-page-reports .table-responsive{max-width:100%;min-width:0;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .mk-page-reports .mk-report-table-wrap:has(th:nth-child(5)) .mk-report-card-table{min-width:620px!important}
  .mk-page-reports .mk-report-table-wrap:has(th:nth-child(4)) .mk-report-card-table{min-width:480px}
  .mk-queue-info-modal .modal-body,.mk-doc-modal .modal-body{min-width:0;overflow-wrap:anywhere}
  .mk-queue-info-modal .mk-queue-info-table{max-width:none}
  .mk-queue-info-modal .mk-queue-info-subtitle{flex-wrap:wrap}
  .mk-page .mk-pagination,.mk-page .mk-pagination-controls{max-width:100%;min-width:0}
  .swal2-popup{max-width:calc(100vw - 16px)!important}
}
@media (max-width:359.98px){
  .mk-page-load-entry .mk-load-context{grid-template-columns:1fr}
  .mk-page-load-entry .mk-load-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mk-page-load-entry .mk-load-summary-metric:nth-child(3){grid-column:1/-1}
  .mk-page-load-entry .mk-quick-search>.input-group>.btn{padding-inline:.42rem;font-size:.79rem}
  .mk-page-load-entry .mk-load-table tbody tr{padding:8px!important;column-gap:5px}
}
/* Salidas incluyen cuatro métricas si el permiso permite ver costos. */
@media(max-width:767.98px){
 .mk-page-load-entry .mk-output-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mk-page-load-entry .mk-output-summary .mk-load-summary-actions{grid-column:1/-1}
}
@media(max-width:767.98px){
 .mk-page-load-entry .mk-output-context{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .mk-page-load-entry .mk-output-add-zone,.mk-page-load-entry .mk-output-observation{grid-column:1/-1}
 .mk-page-load-entry .mk-load-page-fluid{padding-bottom:calc(38px + env(safe-area-inset-bottom))!important}
}
@media(max-width:359.98px){.mk-page-load-entry .mk-output-context{grid-template-columns:1fr}}


/* FIX35AJ — Ancho de página invariable cuando Bootstrap o SweetAlert bloquean scroll.
   El scroll pertenece al elemento raíz: reservar su carril incluso mientras se
   muestra el modal. No bloquear ni reubicar manualmente la página con JS. */
@media screen {
  /* Reservar la misma canaleta tanto antes como después de mostrar un modal. */
  html { overflow-y:scroll; scrollbar-gutter:stable; }
  /* En iOS las barras son flotantes: conservar el desplazamiento nativo
     sin forzar una barra permanente en pantallas táctiles estrechas. */
  @media (max-width:767.98px) { html { overflow-y:auto; } }
  /* Bloquear también el elemento raíz: con sólo body.modal-open se podía
     seguir desplazando el fondo con la rueda del mouse. :has funciona en
     Chrome y Safari actuales y evita añadir controladores por pantalla. */
  html:has(body.modal-open),html:has(body.swal2-shown),html.swal2-shown {
    overflow-y:hidden!important;
    scrollbar-gutter:stable!important;
  }
}
body.modal-open,body.swal2-shown,html.swal2-shown body { padding-right:0!important; }
body.modal-open .maxi-navbar,body.swal2-shown .maxi-navbar,
html.swal2-shown .maxi-navbar { padding-right:0!important;margin-right:0!important; }
/* El scroll propio de un diálogo sigue disponible; solo se estabiliza el fondo. */

/* Ventas realizadas: los seis filtros comparten una fila de altura coherente.
   No se usa input-group para Turno, que podía partir el icono del campo. */
.mk-page-sales .mk-sales-filters{
  display:grid;grid-template-columns:minmax(145px,1fr) minmax(145px,1fr)
  minmax(96px,.65fr) minmax(165px,1.15fr) minmax(215px,1.75fr)
  minmax(105px,.72fr);align-items:end;gap:.55rem;
}
.mk-page-sales .mk-sales-filter{min-width:0;display:flex;flex-direction:column}
.mk-page-sales .mk-sales-filter .form-label{display:block;margin:0 0 .3rem;font-size:.78rem;line-height:1.25}
.mk-page-sales .mk-sales-filter .form-control,
.mk-page-sales .mk-sales-filter .form-select,
.mk-page-sales .mk-sales-filter .btn{width:100%;min-width:0;height:42px;min-height:42px;margin:0}
.mk-page-sales .mk-sales-filter-submit{justify-content:end}
@media(max-width:1199.98px){
 .mk-page-sales .mk-sales-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
 .mk-page-sales .mk-sales-filter:nth-child(5){grid-column:span 3}
}
@media(max-width:767.98px){
 .mk-page-sales .mk-sales-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mk-page-sales .mk-sales-filter:nth-child(5),.mk-page-sales .mk-sales-filter-submit{grid-column:span 2}
}
@media(max-width:420px){
 .mk-page-sales .mk-sales-filters{gap:.5rem}
 .mk-page-sales .mk-sales-filter:nth-child(4),.mk-page-sales .mk-sales-filter:nth-child(5),
 .mk-page-sales .mk-sales-filter-submit{grid-column:span 2}
}

/* FIX35AL: estabilidad global del CONTENIDO DEL FONDO.
   CSS previos reservaban scrollbar pero no impedían que Bootstrap/SweetAlert
   recalcularan el ancho de body y de la barra fixed-top. Congelar ambos al
   ancho medido ANTES de abrir, conservando scroll independiente del modal. */
html.mk-modal-layout-locked body {
  width: var(--mk-modal-page-width) !important;
  min-width: 0 !important;
  max-width: var(--mk-modal-page-width) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}
html.mk-modal-layout-locked .maxi-navbar {
  width: var(--mk-modal-page-width) !important;
  max-width: var(--mk-modal-page-width) !important;
  right: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}
/* No congelar nunca .modal, .swal2-container ni sus contenidos: deben usar
   todo el viewport, aceptar teclado móvil y conservar su desplazamiento. */

/* FIX35AN: filtros de ventas, estados consistentes y controles compactos */
.mk-page-sales .mk-sales-active-filters{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}
.mk-page-sales .mk-sales-filter-chip{border:1px solid #d8e0ee;border-radius:999px;background:#fff;color:#334155;padding:.25rem .6rem;font-size:.75rem;font-weight:650;max-width:100%;overflow-wrap:anywhere}
.mk-page-sales .mk-sales-filter-chip:hover,.mk-page-sales .mk-sales-filter-chip:focus-visible{border-color:#635bde;color:#4338ca;background:#f4f3ff}
.mk-page-sales .mk-sales-pending-filters{border:1px solid #d9d8ff;background:#f7f7ff;color:#424090;border-radius:9px;padding:.38rem .65rem;font-size:.77rem}
.mk-page-sales.mk-sales-results-stale .mk-operation-metrics,.mk-page-sales.mk-sales-results-stale .mk-operation-desktop,.mk-page-sales.mk-sales-results-stale .mk-operation-mobile-list,.mk-page-sales.mk-sales-results-stale .mk-pagination{opacity:.48;pointer-events:none}
@media(max-width:767.98px){.mk-page-sales .mk-sales-filter-help{align-items:flex-start!important}.mk-page-sales .mk-sales-pending-filters{font-size:.73rem}}
/* FIX35AO: estado uniforme de filtros AJAX, sin bloquear encabezados ni modales. */
.mk-search-feedback{font-size:.75rem;line-height:1.4;color:#475467;margin-top:.42rem;min-height:0}
.mk-search-feedback.is-dirty{color:#805a16}
.mk-search-feedback.is-error{color:#b42318}
.mk-search-results-stale{opacity:.48;pointer-events:none;user-select:none}
.mk-search-clear{white-space:nowrap}
@media(max-width:575px){.mk-search-clear{width:100%}}

/* FIX35AO: borrar búsquedas locales sin desplazar el campo ni invadir otros controles. */
.mk-search-inline-clear{position:relative;min-width:0}
.mk-search-inline-clear>input.form-control{padding-right:2.2rem}
.mk-search-inline-x{position:absolute;top:50%;right:.35rem;transform:translateY(-50%);z-index:3;border:0;background:transparent;color:#667085;width:1.7rem;height:1.7rem;border-radius:.4rem;display:grid;place-items:center;font-size:.7rem;cursor:pointer}
.mk-search-inline-x:hover,.mk-search-inline-x:focus-visible{background:#eef2ff;color:#4338ca}
.mk-search-inline-x[hidden]{display:none!important}

.mk-promo-qty-filter-wrap{width:min(100%,430px);flex:1 1 220px;min-width:0}
.mk-promo-qty-filter-wrap>.form-control{width:100%;min-width:0;max-width:none}
@media(max-width:767.98px){.mk-promo-qty-filter-wrap{width:100%;max-width:none;flex:1 1 auto}}

/* FIX35AQ — filtros sin filas redundantes. Limpiar junto a Buscar, no debajo. */
.mk-page-sales .mk-sales-filter-actions{display:flex;align-items:stretch;gap:.45rem;width:100%;min-width:0}
.mk-page-sales .mk-sales-filter-actions #btnBuscar{flex:1 1 auto;min-width:0;width:auto}
.mk-page-sales .mk-sales-filter-actions .mk-sales-clear{flex:0 0 42px;width:42px;min-width:42px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;gap:.3rem}
.mk-page-sales .mk-sales-filter-actions .mk-sales-clear.d-none{display:none!important}
.mk-page-sales .mk-sales-clear-label{display:none}
.mk-page-sales .mk-turn-origin-clear{appearance:none;cursor:pointer;font:inherit;font-size:.75rem;line-height:1.3}
.mk-page-sales .mk-turn-origin-clear:hover,.mk-page-sales .mk-turn-origin-clear:focus-visible{background:#f1f4ff;border-color:#c7d2fe}
.mk-page-sales .mk-turn-origin-clear .bi-x-lg{font-size:.64rem;margin-left:.1rem}
@media(max-width:767.98px){
 .mk-page-sales .mk-sales-filter-actions .mk-sales-clear{flex:0 0 auto;width:auto;min-width:44px;padding:0 .65rem!important}
 .mk-page-sales .mk-sales-clear-label{display:inline}
}
/* Formularios GET: indicación mínima en el botón, sin otro aviso de altura. */
form[data-mk-filter-form].mk-filters-dirty button[type="submit"]:not(:disabled){box-shadow:0 0 0 2px rgba(99,91,222,.17)}

/* Aviso discreto también en consultas AJAX: sólo un contorno en Buscar.
   Fechas incorrectas y fallas conservan el mensaje explícito y accesible. */
.mk-filter-panel.mk-filter-has-changes #btnBuscar{box-shadow:0 0 0 2px rgba(99,91,222,.2)}

.mk-page-sales .mk-sales-clear-symbol{font-size:1.5rem;font-weight:450;line-height:1}

/* FIX35AR: una sola apariencia para limpiar filtros de consultas. */
.mk-filter-action-row{display:flex;align-items:stretch;gap:.45rem;width:100%;min-width:0}
.mk-filter-action-row #btnBuscar{flex:1 1 auto;min-width:0;width:auto}
.mk-filter-clear-icon{flex:0 0 42px!important;min-width:42px!important;width:42px!important;height:39px;min-height:39px;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;font-size:1rem;line-height:1}
.mk-filter-clear-icon.d-none{display:none!important}
.mk-filter-clear-icon:hover,.mk-filter-clear-icon:focus-visible{background:#f1f4ff;border-color:#a5b4fc;color:#4338ca}
@media(max-width:575.98px){.mk-filter-clear-icon{flex-basis:44px!important;min-width:44px!important;width:44px!important;height:42px;min-height:42px}}
.mk-page-sales .mk-sales-filter-actions .mk-filter-clear-icon{flex:0 0 42px!important;min-width:42px!important;width:42px!important;padding:0!important}
@media(max-width:575.98px){.mk-page-sales .mk-sales-filter-actions .mk-filter-clear-icon{flex:0 0 44px!important;min-width:44px!important;width:44px!important;padding:0!important}}

/* FIX35AS — limpiar filtros es una acción neutral, no destructiva, en todas las consultas. */
.mk-filter-clear-icon.btn-outline-secondary{color:#667085!important;border-color:#d0d5dd!important;background:#fff!important;text-decoration:none!important}
.mk-filter-clear-icon.btn-outline-secondary:hover,.mk-filter-clear-icon.btn-outline-secondary:focus-visible{color:#4338ca!important;border-color:#a5b4fc!important;background:#f1f4ff!important}
.mk-page-products .mk-pf-actions .mk-filter-clear-icon{align-self:stretch;height:auto;min-height:40px}

/* FIX35AT: paginación local compacta dentro de la tarjeta Ventas por rubro. */
.mk-page-turn-report .mk-turn-rubros-header{display:flex;align-items:center;justify-content:space-between;gap:.8rem}
.mk-page-turn-report .mk-turn-rubros-header>div{min-width:0}
.mk-page-turn-report .mk-turn-rubros-size{display:flex;align-items:center;gap:.4rem;margin:0;flex:0 0 auto;font-size:.7rem;color:#667085;white-space:nowrap}
.mk-page-turn-report .mk-turn-rubros-size .form-select{min-width:68px;width:68px;padding:.25rem 1.25rem .25rem .45rem;font-size:.75rem!important}
.mk-page-turn-report .mk-turn-rubros-pager{margin:0;padding:.55rem .72rem;border:0;border-top:1px solid var(--mk-border);border-radius:0 0 13px 13px;background:#fff;box-shadow:none}
.mk-page-turn-report .mk-turn-rubros-pager .mk-turn-local-page-info{font-size:.7rem}
.mk-page-turn-report .mk-turn-rubros-pager .mk-page-btn,.mk-page-turn-report .mk-turn-rubros-pager .mk-page-current{height:32px;min-width:32px;font-size:.72rem!important}
@media(max-width:575.98px){.mk-page-turn-report .mk-turn-rubros-header{flex-wrap:wrap}.mk-page-turn-report .mk-turn-rubros-pager{gap:.48rem}.mk-page-turn-report .mk-turn-rubros-pager .mk-turn-local-page-info{text-align:center}}
@media print{.mk-page-turn-report .mk-turn-rubros-size,.mk-page-turn-report .mk-turn-rubros-pager{display:none!important}.mk-page-turn-report.mk-print-mode-web #turnRubrosBody tr[hidden]{display:table-row!important}}

/* FIX35AU: Ventas por rubro mantiene el mismo alto al cambiar página o cantidad.
   Sólo se reserva espacio si hay paginación; en turnos de hasta 10 rubros
   la tarjeta sigue siendo de altura natural. 20/50 filas usan scroll interno. */
.mk-page-turn-report .mk-turn-rubros-panel .mk-turn-rubros-pager{min-height:62px;box-sizing:border-box}
@media(max-width:767.98px){.mk-page-turn-report .mk-turn-rubros-panel .mk-turn-rubros-pager{min-height:120px}}
.mk-page-turn-report .mk-turn-rubros-fixed-viewport{
  height:466px;
  min-height:466px;
  max-height:466px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.mk-page-turn-report .mk-turn-rubros-fixed-viewport .mk-turn-modern-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc;
}
@media(max-width:575.98px){
  .mk-page-turn-report .mk-turn-rubros-fixed-viewport{
    height:430px;
    min-height:430px;
    max-height:430px;
  }
}
@media print{
  body.mk-page-turn-report .mk-turn-rubros-fixed-viewport{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    scrollbar-gutter:auto;
  }
  body.mk-page-turn-report .mk-turn-rubros-fixed-viewport .mk-turn-modern-table thead th{position:static!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-rubros-fixed-viewport tr[hidden]{display:table-row!important}
}

/* FIX35AV: single presentation contract for all listing pagers. Functional logic
   remains scoped to each list; local turno tables never trigger navigation. */
.mk-pagination.mk-turn-local-pager{background:#fff!important;border:1px solid var(--mk-border)!important;
 border-radius:14px!important;box-shadow:0 3px 12px rgba(16,24,40,.045)!important;
 padding:.82rem 1rem!important;min-height:58px;margin:.85rem 0 1rem!important}
.mk-pagination.mk-turn-local-pager .mk-pagination-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.48rem!important}
.mk-pagination.mk-turn-local-pager .mk-pagination-info{font-size:.82rem;color:#667085}
.mk-filter-clear-icon{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;
 width:39px;min-width:39px;min-height:39px;padding:0!important;border-radius:9px;font-size:1rem}
@media(max-width:767.98px){.mk-pagination.mk-turn-local-pager{align-items:stretch;flex-direction:column}
.mk-pagination.mk-turn-local-pager .mk-pagination-controls{display:flex;justify-content:center;width:100%}
.mk-pagination.mk-turn-local-pager .mk-page-current{display:inline-flex!important}
.mk-pagination.mk-turn-local-pager .mk-page-btn{min-width:40px;width:auto}
}

/* FIX35AX: el permiso de costos de ventas sólo es seleccionable con Ingresar Compras. */
.mk-user-permission.is-disabled{opacity:.57;cursor:not-allowed;background:#f8fafc;border-color:#eaecf0}
.mk-user-permission.is-disabled:hover{background:#f8fafc;border-color:#eaecf0}


/* FIX35AY: ayuda contextual en el permiso de costos, sin descripción permanente. */
.mk-user-permission-with-help{align-items:center;gap:.3rem;padding:.25rem .38rem .25rem .7rem}
.mk-user-permission-with-help .mk-user-permission-label{display:flex;align-items:center;gap:.6rem;flex:1;min-width:0;min-height:34px;margin:0;cursor:pointer}
.mk-user-permission-with-help .form-check-input{margin-top:0}
.mk-user-permission-help{display:inline-flex;align-items:center;justify-content:center;flex:0 0 29px;width:29px;height:29px;margin-left:auto;padding:0;border:1px solid #d0d5dd;border-radius:50%;background:#f8faff;color:#475467;font-size:.81rem;cursor:help;transition:background .15s ease,border-color .15s ease,color .15s ease}
.mk-user-permission-help:hover,.mk-user-permission-help:focus-visible{background:#eef2ff;border-color:#818cf8;color:#4338ca}
.mk-user-permission-help:focus-visible{outline:2px solid #6366f1;outline-offset:2px}
.mk-user-permission-with-help.is-disabled{opacity:1}
.mk-user-permission-with-help.is-disabled .mk-user-permission-label{opacity:.57;cursor:not-allowed}
.mk-user-permission-with-help.is-disabled .mk-user-permission-help{opacity:1;cursor:help}


/* FIX35BA: el width:100% genérico de los buscadores no debe partir el grupo
   de búsqueda de Usuarios. Icono y campo siempre comparten una sola fila. */
.mk-users-page .mk-users-search-group{display:flex;flex-wrap:nowrap;width:100%;min-width:0;align-items:stretch}
.mk-users-page .mk-users-search-group>.input-group-text{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;min-width:42px;height:42px;border-radius:11px 0 0 11px}
.mk-users-page .mk-users-search-group>#buscarUsuario{flex:1 1 0%;width:1%;min-width:0;max-width:none;height:42px;min-height:42px;border-radius:0 11px 11px 0}
.mk-users-page .mk-filter-panel .mk-chip{min-height:42px;display:flex;align-items:center;justify-content:center}

/* FIX35BB — Revisión transversal de buscadores y barras de filtros.
   Un input-group no puede heredar width:100% en cada hijo: el icono se
   desprendía del campo al envolverse (Usuarios/Auditoría/Stock/Turnos).
   Se preservan IDs, acciones, órdenes y permisos existentes. */
.mk-filter-panel .input-group,
.mk-report-filter .input-group,
.mk-stock-adjust-page .mk-stock-adjust-search .input-group,
.mk-turn-toolbar-actions .input-group{
  display:flex;align-items:stretch;flex-wrap:nowrap;min-width:0;max-width:100%;
}
.mk-filter-panel .input-group>.input-group-text,
.mk-report-filter .input-group>.input-group-text,
.mk-stock-adjust-page .mk-stock-adjust-search .input-group>.input-group-text,
.mk-turn-toolbar-actions .input-group>.input-group-text{
  flex:0 0 42px;width:42px;min-width:42px;display:inline-flex;
  align-items:center;justify-content:center;
}
.mk-filter-panel .input-group>.form-control,
.mk-filter-panel .input-group>.form-select,
.mk-report-filter .input-group>.form-control,
.mk-report-filter .input-group>.form-select,
.mk-stock-adjust-page .mk-stock-adjust-search .input-group>.form-control,
.mk-turn-toolbar-actions .input-group>.form-control{
  flex:1 1 0%;width:1%;min-width:0!important;max-width:none;
}
.mk-filter-panel .input-group>.btn,
.mk-stock-adjust-page .mk-stock-adjust-search .input-group>.btn{
  flex:0 0 auto;width:auto;min-width:0;white-space:nowrap;
}
.mk-filter-panel .input-group>.input-group-text:first-child,
.mk-stock-adjust-page .mk-stock-adjust-search .input-group>.input-group-text:first-child,
.mk-turn-toolbar-actions .input-group>.input-group-text:first-child{border-radius:11px 0 0 11px}
.mk-filter-panel .input-group>.input-group-text:first-child+.form-control,
.mk-stock-adjust-page .mk-stock-adjust-search .input-group>.input-group-text:first-child+.form-control,
.mk-turn-toolbar-actions .input-group>.input-group-text:first-child+.form-control{border-radius:0 11px 11px 0}
.mk-stock-adjust-page .mk-stock-adjust-search .input-group>.input-group-text:first-child+.form-control:not(:last-child){border-radius:0}
.mk-catalog-search>span{flex:0 0 42px;min-width:42px;width:42px}
.mk-catalog-search>.form-control{flex:1 1 0%;width:1%;min-width:0;max-width:none}
/* Alturas constantes: limpiar siempre comparte línea con la búsqueda. */
.mk-page .mk-filter-panel .mk-filter-action-row{display:flex;align-items:stretch;min-width:0;gap:.45rem}
.mk-page .mk-filter-panel .mk-filter-action-row>.btn{height:42px!important;min-height:42px!important;margin:0}
.mk-page .mk-filter-panel .mk-filter-action-row>.mk-filter-clear-icon{flex:0 0 42px!important;width:42px!important;min-width:42px!important}
.mk-page .mk-filter-panel .mk-filter-action-row>.mk-filter-clear-icon.d-none{display:none!important}
.mk-filter-panel .form-label{line-height:1.3}
.mk-page .mk-filter-panel>.row>div{min-width:0}
/* Salidas: el campo de búsqueda recibe el ancho, no el botón violeta.
   Compras: la misma distribución, con un botón de texto de ancho acotado. */
.mk-page-outputs .mk-filter-panel .mk-output-filter-grid,
.mk-page-loads .mk-filter-panel .mk-load-filter-grid{
  display:grid!important;grid-template-columns:190px 190px minmax(0,1fr) 158px 185px;
  gap:.55rem;margin:0;align-items:end;
}
.mk-page-loads .mk-filter-panel .mk-load-filter-grid{
  grid-template-columns:190px 190px minmax(0,1fr) 158px;
}
.mk-page-outputs .mk-output-filter-grid>div,
.mk-page-loads .mk-load-filter-grid>div{
  width:auto!important;max-width:none!important;min-width:0!important;
  flex:none!important;padding:0!important;margin:0;
}
.mk-page-outputs .mk-output-filter-grid>div:nth-child(3),
.mk-page-loads .mk-load-filter-grid>div:nth-child(3){min-width:0}
.mk-page-outputs .mk-output-filter-grid #buscar,
.mk-page-loads .mk-load-filter-grid #buscar{width:100%;height:42px;min-height:42px}
.mk-page-outputs .mk-output-filter-grid .mk-filter-action-row,
.mk-page-loads .mk-load-filter-grid .mk-filter-action-row{width:100%;height:42px}
.mk-page-outputs .mk-output-filter-grid .mk-filter-action-row #btnBuscar,
.mk-page-loads .mk-load-filter-grid .mk-filter-action-row #btnBuscar{
  flex:1 1 0%;width:1%;min-width:0;height:42px;min-height:42px;
}
.mk-page-outputs .mk-output-filter-grid #btnBorrar{width:100%;height:42px;min-height:42px;white-space:nowrap}
/* Movimientos: agrandar Código y reservar un ancho realista para Buscar. */
.mk-filter-panel .mk-movement-filter-grid{
  display:grid!important;grid-template-columns:minmax(220px,1fr) 200px 200px 158px;
  gap:.75rem;margin:0;align-items:end;
}
.mk-filter-panel .mk-movement-filter-grid>div{width:auto!important;max-width:none!important;min-width:0!important;flex:none!important;padding:0!important}
/* Auditoría: icono dentro de su campo, filtros de fecha legibles y acciones
   contenidas, sin romper el orden de tabulación ni sus parámetros GET. */
.mk-audit-page .mk-audit-filter-grid>.col-lg-4:has(.input-group) .input-group{width:100%;min-width:0}
.mk-audit-page .mk-audit-filter-grid>.col-lg-4:has(.input-group) .input-group>.form-control{font-size:.87rem}
.mk-audit-page .mk-audit-filter-grid>.d-flex>.btn:first-child{min-width:0}
/* En stock el buscador debe dominar; el botón no debe desplazar el icono. */
.mk-stock-adjust-page .mk-stock-adjust-search .input-group #btnBuscar{
  flex:0 0 auto;width:auto;min-width:104px;white-space:nowrap;
}
@media(max-width:1199.98px){
  .mk-page-outputs .mk-filter-panel .mk-output-filter-grid,
  .mk-page-loads .mk-filter-panel .mk-load-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(3),
  .mk-page-loads .mk-load-filter-grid>div:nth-child(3){grid-column:1/-1}
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(4),
  .mk-page-loads .mk-load-filter-grid>div:nth-child(4){width:min(100%,158px)!important;justify-self:start}
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(5){width:min(100%,185px)!important;justify-self:end}
  .mk-filter-panel .mk-movement-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mk-filter-panel .mk-movement-filter-grid>div:last-child{width:min(100%,158px)!important;justify-self:end}
}
@media(max-width:767.98px){
  .mk-audit-page .mk-audit-filter-grid>.col-lg-4:has(.input-group){min-width:0}
  .mk-stock-adjust-page .mk-stock-adjust-search .input-group{flex-wrap:nowrap}
  .mk-stock-adjust-page .mk-stock-adjust-search .input-group .form-control{min-width:0!important;flex:1 1 0%;width:1%}
  .mk-stock-adjust-page .mk-stock-adjust-search .input-group #btnBuscar{
    flex:0 0 auto;min-width:42px;width:auto;border-radius:0 11px 11px 0!important;
  }
}
@media(max-width:575.98px){
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(4),
  .mk-page-loads .mk-load-filter-grid>div:nth-child(4){width:min(100%,158px)!important}
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(5){width:min(100%,185px)!important}
  .mk-filter-panel .mk-movement-filter-grid{gap:.55rem;grid-template-columns:repeat(2,minmax(0,1fr))}
  .mk-filter-panel .mk-movement-filter-grid>div:first-child{grid-column:1/-1}
  .mk-filter-panel .mk-movement-filter-grid>div:last-child{grid-column:1/-1;justify-self:end}
  .mk-page .mk-filter-panel .mk-filter-action-row>.btn{height:44px!important;min-height:44px!important}
  .mk-page-outputs .mk-output-filter-grid .mk-filter-action-row,
  .mk-page-loads .mk-load-filter-grid .mk-filter-action-row,
  .mk-page-outputs .mk-output-filter-grid .mk-filter-action-row #btnBuscar,
  .mk-page-loads .mk-load-filter-grid .mk-filter-action-row #btnBuscar,
  .mk-page-outputs .mk-output-filter-grid #btnBorrar{height:44px;min-height:44px}
  .mk-stock-adjust-page .mk-stock-adjust-search .input-group>.input-group-text{flex-basis:38px;width:38px;min-width:38px}
  .mk-stock-adjust-page .mk-stock-adjust-search .input-group #btnBuscar{min-width:42px;padding:.5rem .55rem;font-size:.8rem}
}
@media(max-width:420px){
  .mk-page-outputs .mk-filter-panel .mk-output-filter-grid,
  .mk-page-loads .mk-filter-panel .mk-load-filter-grid{grid-template-columns:minmax(0,1fr)}
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(3),
  .mk-page-loads .mk-load-filter-grid>div:nth-child(3),
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(4),
  .mk-page-loads .mk-load-filter-grid>div:nth-child(4),
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(5){grid-column:1/-1}
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(5){justify-self:stretch;width:100%!important}
  .mk-page-outputs .mk-output-filter-grid>div:nth-child(4),
  .mk-page-loads .mk-load-filter-grid>div:nth-child(4){justify-self:end}
  .mk-stock-adjust-page .mk-stock-adjust-search .input-group #btnBuscar{font-size:0;gap:0;min-width:42px}
  .mk-stock-adjust-page .mk-stock-adjust-search .input-group #btnBuscar i{font-size:1rem}
}


/* Las tarjetas móviles fuerzan display:flex en las celdas: respetar los campos
   internos con atributo hidden (ID, stock mínimo y fecha de modificación). */
#tablaProductos td[hidden]{display:none!important}

/* FIX35BC — indicador contextual de unidades junto al stock del artículo.
   Icono gráfico: no modifica el texto numérico usado por movimientos/PDF. */
.mk-products-table .mk-product-stock-value{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.18rem;
  max-width:100%;
  white-space:nowrap;
}
.mk-products-table .mk-product-stock-number{font-variant-numeric:tabular-nums}
.mk-products-table .mk-product-units-help{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:22px;
  height:18px;
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#818ca3;
  cursor:help;
  font-size:.72rem;
  line-height:1;
  vertical-align:middle;
}
.mk-products-table .mk-product-units-help:hover,
.mk-products-table .mk-product-units-help:focus-visible{color:#4f46e5}
.mk-products-table .mk-product-units-help:focus-visible{outline:2px solid #a5b4fc;outline-offset:1px}
.mk-products-table .mk-product-units-help::before{
  content:"?";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:13px;
  height:13px;
  border:1px solid currentColor;
  border-radius:50%;
  font-size:9px;
  font-weight:750;
  line-height:1;
}
.mk-products-table td.mk-col-description .mk-product-description-stack{min-height:0}
@media(max-width:767.98px){
  .mk-page-products #tablaProductos td.mk-col-stock .mk-product-stock-value{margin-left:auto;justify-content:flex-end}
}

/* FIX35BI — historial unificado: acciones destructivas fuera de filtros y columnas de acción reales.
   Ventas, compras y salidas comparten una única geometría sin cambiar sus endpoints. */
.mk-page-sales .mk-filter-panel:has(+ .mk-history-actions),
.mk-page-loads .mk-filter-panel:has(+ .mk-history-actions),
.mk-page-outputs .mk-filter-panel:has(+ .mk-history-actions){margin-bottom:.75rem!important}
.mk-history-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.5rem;min-height:42px;margin:0 0 1rem;max-width:100%;min-width:0}
.mk-history-actions .btn{flex:0 0 auto;min-height:40px;white-space:nowrap;margin:0}
/* Salidas tiene cuatro filtros; el botón de borrado ya no consume ancho de búsqueda. */
.mk-page-outputs .mk-filter-panel .mk-output-filter-grid{grid-template-columns:190px 190px minmax(0,1fr) 158px}
/* Las tres tablas mantienen visible el importe y las dos acciones, incluso cuando
   la columna de acciones era 56px para botones de 34px + 34px. */
@media(min-width:768px){
  .mk-page-sales .mk-history-operation-table{min-width:980px!important}
  .mk-page-loads .mk-history-operation-table,
  .mk-page-outputs .mk-history-operation-table{min-width:940px!important}
  .mk-page-sales .mk-history-operation-table th:last-child,
  .mk-page-loads .mk-history-operation-table th:last-child,
  .mk-page-outputs .mk-history-operation-table th:last-child{width:110px!important;min-width:110px!important}
  .mk-page-loads .mk-history-operation-table th:nth-last-child(2){width:16%!important}
  .mk-page-sales .mk-history-operation-table td.mk-operation-total,
  .mk-page-loads .mk-history-operation-table td.mk-operation-total,
  .mk-page-outputs .mk-history-operation-table td.mk-operation-total{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
}
.mk-history-operation-table .mk-operation-actions-head{white-space:nowrap}
.mk-history-operation-table .mk-operation-actions-cell{overflow:visible!important;white-space:nowrap!important;text-overflow:clip!important}
.mk-history-operation-table .mk-operation-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:74px;white-space:nowrap}
.mk-history-operation-table .mk-operation-row-actions>.btn{flex:0 0 34px;width:34px;min-width:34px;min-height:34px;margin:0!important;padding:0!important;display:inline-flex;justify-content:center;align-items:center}
/* Mismo ancho y ubicación del botón de borrado en pantallas pequeñas. */
@media(max-width:1199.98px){
  .mk-page-outputs .mk-filter-panel .mk-output-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .mk-page-outputs .mk-filter-panel .mk-output-filter-grid{grid-template-columns:minmax(0,1fr)}
  .mk-history-actions .btn{max-width:100%}
}


/* FIX35BJ — geometría unificada de filtros en los tres historiales.
   Anchos iguales de fechas y búsqueda; el área del botón mide 158px, nunca
   ocupa el espacio sobrante que corresponde al buscador. Se mantienen
   clases/IDs originales y los handlers existentes. */
.mk-page-sales .mk-history-filter-panel .mk-sales-filters {
  display:grid!important;
  grid-template-columns:190px 190px 130px 230px minmax(0,1fr) 158px!important;
  gap:9px!important;
  align-items:end!important;
}
.mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
.mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid {
  display:grid!important;
  grid-template-columns:190px 190px minmax(0,1fr) 158px!important;
  gap:9px!important;
  align-items:end!important;
}
.mk-history-filter-panel .mk-sales-filter,
.mk-history-filter-panel .mk-load-filter-grid>div,
.mk-history-filter-panel .mk-output-filter-grid>div {
  box-sizing:border-box;min-width:0!important;width:auto!important;
  max-width:none!important;margin:0!important;padding:0!important;
}
.mk-history-filter-panel .form-label {
  display:block!important;font-size:.78rem!important;font-weight:650!important;
  line-height:1.3!important;margin:0 0 6px!important;
}
.mk-history-filter-panel .form-control,
.mk-history-filter-panel .form-select {
  box-sizing:border-box;width:100%!important;min-width:0!important;
  height:42px!important;min-height:42px!important;margin:0!important;
}
.mk-history-filter-panel .mk-sales-filter-actions,
.mk-history-filter-panel .mk-filter-action-row {
  box-sizing:border-box;display:flex!important;gap:7px!important;
  width:100%!important;height:42px!important;min-height:42px!important;
  align-items:stretch!important;
}
.mk-history-filter-panel .mk-sales-filter-actions #btnBuscar,
.mk-history-filter-panel .mk-filter-action-row #btnBuscar {
  box-sizing:border-box;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:6px!important;white-space:nowrap!important;
  flex:1 1 0%!important;min-width:0!important;width:0!important;
  height:42px!important;min-height:42px!important;padding:0 10px!important;
  font-size:.875rem!important;font-weight:650!important;margin:0!important;
}
.mk-history-filter-panel .mk-sales-filter-actions .mk-filter-clear-icon,
.mk-history-filter-panel .mk-filter-action-row .mk-filter-clear-icon {
  box-sizing:border-box;flex:0 0 42px!important;min-width:42px!important;
  width:42px!important;height:42px!important;min-height:42px!important;
  padding:0!important;margin:0!important;
}
.mk-history-filter-panel .mk-filter-clear-icon.d-none{display:none!important}
/* En tamaños intermedios se permite una segunda fila sin estirar el botón. */
@media(max-width:1199.98px) and (min-width:768px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filters,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid{
    grid-template-columns:190px 190px minmax(0,1fr) 158px!important;
  }
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(1){grid-column:1;grid-row:1}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(2){grid-column:2;grid-row:1}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(3){grid-column:3;grid-row:1}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(4){grid-column:1 / 3;grid-row:2}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(5){grid-column:3;grid-row:2}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter-submit{grid-column:4;grid-row:2;justify-self:stretch}
}
@media(max-width:999.98px) and (min-width:768px){
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div:nth-child(1),
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div:nth-child(1){grid-column:1;grid-row:1}
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div:nth-child(2),
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div:nth-child(2){grid-column:2;grid-row:1}
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div:nth-child(3),
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div:nth-child(3){grid-column:1 / 4;grid-row:2}
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div:nth-child(4),
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div:nth-child(4){grid-column:4;grid-row:2;justify-self:stretch!important}
}
@media(max-width:767.98px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filters,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
  }
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div{
    grid-column:auto!important;grid-row:auto!important;justify-self:stretch!important;
    width:100%!important;
  }
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(5),
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter-submit,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div:nth-child(3),
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div:nth-child(4),
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div:nth-child(3),
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div:nth-child(4){
    grid-column:1 / -1!important;
  }
  .mk-history-filter-panel .mk-sales-filter-actions,
  .mk-history-filter-panel .mk-filter-action-row,
  .mk-history-filter-panel .mk-sales-filter-actions #btnBuscar,
  .mk-history-filter-panel .mk-filter-action-row #btnBuscar{
    height:44px!important;min-height:44px!important;
  }
  .mk-history-filter-panel .mk-sales-filter-actions .mk-filter-clear-icon,
  .mk-history-filter-panel .mk-filter-action-row .mk-filter-clear-icon{
    flex-basis:44px!important;min-width:44px!important;width:44px!important;
    height:44px!important;min-height:44px!important;
  }
}
@media(max-width:359.98px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filters,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .mk-history-filter-panel .mk-sales-filter,
  .mk-history-filter-panel .mk-load-filter-grid>div,
  .mk-history-filter-panel .mk-output-filter-grid>div{grid-column:1!important}
}

@media(max-width:999.98px) and (min-width:768px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(3){grid-column:3;grid-row:2}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(5){grid-column:1 / 4;grid-row:3}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter-submit{grid-column:4;grid-row:3}
}

/* En teléfonos el buscador sigue ancho, pero Buscar no se convierte en un
   botón gigante; se mantiene el mismo ancho de acción alineado a la derecha. */
@media(max-width:767.98px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter-submit,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div:nth-child(4),
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div:nth-child(4){
    width:min(100%,158px)!important;max-width:158px!important;
    justify-self:end!important;
  }
}
/* Un campo de fecha de 155px puede recortar el año o el icono de calendario. */
@media(max-width:420px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filters,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div{
    grid-column:1!important;
  }
}

/* FIX35BL — detalle de comprobantes: códigos íntegros y ayuda en textos largos.
   Abarca los modales compartidos de ventas, cargas/compras y salidas. */
.mk-doc-modal .mk-doc-product{min-width:0}
.mk-doc-modal .mk-doc-product-name{overflow-wrap:anywhere}
.mk-doc-modal .mk-doc-product-meta{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.16rem .45rem;
  white-space:normal;overflow:visible;text-overflow:clip;min-width:0
}
.mk-doc-modal .mk-doc-product-code,
.mk-doc-modal .mk-doc-full-code{
  display:inline-block;max-width:100%;white-space:normal!important;
  overflow:visible!important;text-overflow:clip!important;
  overflow-wrap:anywhere;word-break:break-word;font-variant-numeric:tabular-nums
}
.mk-doc-modal .mk-doc-product-code{color:#475467;font-weight:730}
.mk-doc-modal .mk-doc-product-extra{display:inline-block;max-width:100%;overflow-wrap:anywhere}
/* La regla heredada de tabla fija recortaba EAN de 13+ dígitos a «779004013...». */
.mk-doc-compra .mk-doc-table-wrap th.mk-doc-load-code,
.mk-doc-compra .mk-doc-table-wrap td.mk-doc-load-code{
  width:15%!important;white-space:normal!important;overflow:visible!important;
  text-overflow:clip!important;overflow-wrap:anywhere
}
.mk-doc-compra .mk-doc-table-wrap .mk-doc-load-product{width:24%}
.mk-doc-compra .mk-doc-table-wrap .mk-doc-load-brand,
.mk-doc-compra .mk-doc-table-wrap .mk-doc-load-category{width:9%;overflow:visible!important;text-overflow:clip!important}
.mk-doc-compra .mk-doc-table-wrap .mk-doc-ellipsis{
  display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.tooltip.mk-tooltip .tooltip-inner{overflow-wrap:anywhere;word-break:break-word}

/* FIX35BS — continuidad: advertencia por caja inicial registrada en cero. */
.mk-turn-recovery-offer p.mk-turn-zero-note{margin:.55rem 0 0;color:#92400e;font-size:.74rem;line-height:1.45;background:#fffbeb;border:1px solid #fcd34d;border-radius:10px;padding:.6rem .7rem}.mk-turn-recovery-offer form label{max-width:320px;line-height:1.35;color:#475569}.mk-turn-recovery-offer form label input{flex:none;margin-top:.18rem}


/* FIX35BT — continuidad: propuesta legible, confirmación separada y responsive. */
.mk-turn-recovery-offer{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:stretch}
.mk-turn-recovery-content{min-width:0}
.mk-turn-recovery-offer h3{font-size:1.04rem;line-height:1.35;margin:.3rem 0 .45rem;color:#101828;font-weight:800}
.mk-turn-recovery-offer p.mk-turn-recovery-description{margin:0;color:#475467;font-size:.81rem;line-height:1.55;overflow-wrap:anywhere}
.mk-turn-recovery-offer .mk-turn-zero-note{margin-top:.85rem;padding:.85rem 1rem;border:1px solid #f5c451;border-radius:12px;background:#fffbeb;color:#78350f;overflow-wrap:anywhere}
.mk-turn-recovery-offer .mk-turn-zero-title{display:flex;align-items:center;gap:.45rem;margin-bottom:.4rem;color:#92400e;font-size:.84rem;line-height:1.4}
.mk-turn-recovery-offer .mk-turn-zero-title i{flex:none}
.mk-turn-recovery-offer .mk-turn-zero-note p{margin:0;font-size:.79rem;line-height:1.55;color:#78450c}
.mk-turn-recovery-offer .mk-turn-zero-note p.mk-turn-zero-detail{margin-top:.35rem;color:#854d0e}
.mk-turn-recovery-offer form.mk-turn-recovery-form{display:flex;align-items:center;justify-content:flex-end;gap:1rem;min-width:0;border-top:1px solid #e9edf4;padding-top:.95rem;margin:0}
.mk-turn-recovery-offer form.mk-turn-recovery-form label.mk-turn-recovery-confirm{display:flex;align-items:flex-start;gap:.6rem;flex:1 1 auto;max-width:none;min-width:0;margin:0;color:#344054;font-size:.79rem;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.mk-turn-recovery-offer form.mk-turn-recovery-form label.mk-turn-recovery-confirm input{flex:0 0 auto;margin:.23rem 0 0;accent-color:#4f46e5;width:16px;height:16px}
.mk-turn-recovery-offer .mk-turn-recovery-action{flex:0 0 auto;min-width:200px;max-width:100%;white-space:normal;text-align:center;line-height:1.4;padding:.65rem 1rem;font-weight:750}
@media(max-width:767.98px){
 .mk-turn-recovery-offer{gap:.85rem}
 .mk-turn-recovery-offer form.mk-turn-recovery-form{flex-direction:column;align-items:stretch;gap:.85rem}
 .mk-turn-recovery-offer form.mk-turn-recovery-form label.mk-turn-recovery-confirm{width:100%;flex:0 0 auto}
 .mk-turn-recovery-offer .mk-turn-recovery-action{width:100%;min-width:0}
 .mk-turn-recovery-offer .mk-turn-zero-note{padding:.8rem}
}

/* FIX35BU: al imprimir la vista WEB se muestran todas las filas reales,
   pero nunca las filas auxiliares de «sin coincidencias» del buscador local. */
@media print {
  body.mk-page-turn-report.mk-print-mode-web tr[data-local-filter-empty],
  body.mk-page-turn-report.mk-print-mode-web #turnRubrosBody tr[data-local-filter-empty] {
    display: none !important;
  }
}


/* FIX35BZ — Turnos: información y avisos siempre a ancho completo.
   El contenido se agrupa en una única área; no vuelve a distribuirse en columnas
   implícitas cuando aparece una advertencia o cambia la cantidad de cajas. */
.mk-page-turns .mk-turn-active-details{
  grid-area:details!important;display:flex!important;flex-direction:column!important;
  width:100%!important;min-width:0!important;gap:.5rem!important;
}
.mk-page-turns .mk-turn-active-details>.mk-turn-active-meta{
  width:100%!important;min-width:0!important;margin:0!important;
  padding-top:.55rem!important;
}
.mk-page-turns .mk-turn-active-details>.mk-turn-active-values{
  width:100%!important;min-width:0!important;margin:0!important;
}
.mk-page-turns .mk-turn-active-details>.mk-turn-active-notice{
  display:block!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:.58rem .68rem!important;
  font-size:.69rem!important;line-height:1.45!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
}
.mk-page-turns .mk-turn-active-details>.mk-turn-active-freshness{
  width:100%!important;min-width:0!important;margin:0!important;
  font-size:.64rem!important;line-height:1.4!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
}
.mk-page-turns .mk-turn-active-head .badge{max-width:100%;white-space:normal;overflow-wrap:break-word;text-align:left}

/* FIX35CA — confirmación de estado a ancho completo, también en pantallas pequeñas. */
.mk-page-turns .mk-turn-active-details>.mk-turn-confirm-form{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.mk-page-turns .mk-turn-confirm-form .form-check{margin:0;min-width:0;padding-left:1.45rem;line-height:1.4;overflow-wrap:break-word;word-break:normal}
.mk-page-turns .mk-turn-confirm-form .btn{width:100%;min-height:36px;white-space:normal;overflow-wrap:break-word}


/* FIX35CD — Presentación de turnos y reportes: sólo cambia la visualización. */
.mk-page-turn-report .mk-turn-continuity-note{align-items:flex-start;margin:.6rem 0 .75rem;padding:.65rem .78rem;gap:.55rem}
.mk-page-turn-report .mk-turn-continuity-note>div{min-width:0;flex:1}
.mk-page-turn-report .mk-turn-continuity-note strong{font-size:.76rem;line-height:1.4}
.mk-page-turn-report .mk-turn-continuity-note span{font-size:.7rem;line-height:1.45;overflow-wrap:break-word}
/* El paginador forma el pie de la tarjeta, sin segunda tarjeta ni huecos. */
.mk-page-turn-report .mk-pagination.mk-turn-local-pager{
  box-sizing:border-box;min-height:46px;margin:0!important;padding:.55rem .8rem!important;
  border:0!important;border-top:1px solid var(--mk-border)!important;
  border-radius:0 0 14px 14px!important;box-shadow:none!important;
  background:#fff!important;gap:.45rem!important;
}
.mk-page-turn-report .mk-turn-rubros-panel .mk-turn-rubros-pager{min-height:46px!important}
.mk-page-turn-report .mk-turn-local-pager .mk-pagination-info{font-size:.72rem;line-height:1.35}
.mk-page-turn-report .mk-turn-local-pager .mk-pagination-controls{gap:.35rem!important}
.mk-page-turn-report .mk-turn-local-pager .mk-page-btn,
.mk-page-turn-report .mk-turn-local-pager .mk-page-current{min-height:32px;height:32px;font-size:.72rem!important}
@media(max-width:767.98px){
  .mk-page-turn-report .mk-pagination.mk-turn-local-pager{min-height:0;gap:.55rem!important;align-items:stretch}
  .mk-page-turn-report .mk-turn-rubros-panel .mk-turn-rubros-pager{min-height:0!important}
  .mk-page-turn-report .mk-turn-local-pager .mk-pagination-info{text-align:center}
}
/* Formatos PDF: ancho imprimible real y secciones completas, sin recortes en tablas. */
@media print {
  @page {size:A4 portrait;margin:10mm 10mm 12mm}
  html,body.mk-page-turn-report {width:auto!important;min-width:0!important;max-width:none!important;
    height:auto!important;overflow:visible!important;margin:0!important;padding:0!important}
  body.mk-page-turn-report .mk-page,
  body.mk-page-turn-report .container {width:100%!important;max-width:none!important;min-width:0!important;
    margin:0!important;padding:0!important;float:none!important;overflow:visible!important}
  body.mk-page-turn-report .mk-turn-print-original,
  body.mk-page-turn-report .mk-turn-screen {width:100%!important;min-width:0!important;max-width:none!important;
    margin:0!important;padding:0!important;overflow:visible!important}
  body.mk-page-turn-report .mk-turn-print-original table {width:100%!important;max-width:100%!important}
  body.mk-page-turn-report .mk-turn-print-original thead,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-modern-table thead {display:table-header-group!important}
  body.mk-page-turn-report .mk-turn-print-original tr,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-modern-table tr {break-inside:avoid!important;page-break-inside:avoid!important}
  body.mk-page-turn-report .mk-turn-print-original td,
  body.mk-page-turn-report .mk-turn-print-original th {overflow-wrap:normal;word-break:normal}
  body.mk-page-turn-report .mk-turn-print-original h1,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-user,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-totals,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-warning,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-group-date {
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-lines,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-sales,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-items {font-size:9pt!important}
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-lines td,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-sales td,
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-items td {
    padding:1.05mm 1.4mm!important;line-height:1.25!important;
  }
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-summary {font-size:7.3pt!important}
  body.mk-page-turn-report .mk-turn-print-original .mk-turn-print-summary td {font-size:7pt!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .table-responsive,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-table-shell,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-flush-table,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-rubros-fixed-viewport {
    width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;
    max-height:none!important;overflow:visible!important;box-shadow:none!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .row,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen [class*="col-"] {min-width:0!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-panel,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-hero {
    max-width:100%!important;overflow:visible!important;
    box-shadow:none!important;break-inside:auto!important;page-break-inside:auto!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-report-metrics,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-panel-header,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi-grid {
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table {
    width:100%!important;max-width:100%!important;min-width:0!important;
    table-layout:auto!important;font-size:8.5pt!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table th,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table td {
    white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
    padding:1.7mm 1.35mm!important;line-height:1.25!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table td.text-end,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table th.text-end {
    white-space:nowrap!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi strong,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-report-metrics strong,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-info-list strong {
    overflow:visible!important;text-overflow:clip!important;white-space:normal!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen tr[data-local-filter-empty] {display:none!important}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-local-pager {display:none!important}
}

/* FIX35CG — Impresión fiel legible: A4 vertical, encabezado con columnas ajustadas,
   sin reducir toda la hoja. Filas generosas y saltos de página naturales. */
@media print {
  @page { size: A4 portrait; margin: 9mm 9mm 10mm 9mm; }
  html, body.mk-page-turn-report {
    width:auto!important; min-width:0!important; max-width:none!important;
    height:auto!important; margin:0!important; padding:0!important; overflow:visible!important;
  }
  body.mk-page-turn-report .maxi-navbar-spacer,
  body.mk-page-turn-report .maxi-navbar,
  body.mk-page-turn-report .mk-page-header,
  body.mk-page-turn-report #printChoiceModal {
    display:none!important;height:0!important;margin:0!important;padding:0!important;
  }
  body.mk-page-turn-report .container.mk-page,
  body.mk-page-turn-report main.mk-page {
    box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
    padding:0!important;margin:0!important;overflow:visible!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-print-original,
  body.mk-page-turn-report:not(.mk-print-mode-web) .mk-turn-screen {display:none!important;}
  body.mk-page-turn-report:not(.mk-print-mode-web) .mk-turn-print-original {
    display:block!important;box-sizing:border-box!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    padding:0!important;margin:0!important;overflow:visible!important;
    font-family:Arial,Helvetica,sans-serif!important;color:#000!important;
    font-variant-numeric:tabular-nums;
  }
  body.mk-page-turn-report .mk-turn-print-original *,
  body.mk-page-turn-report .mk-turn-print-original *::before,
  body.mk-page-turn-report .mk-turn-print-original *::after {box-sizing:border-box!important;}
  body.mk-page-turn-report .mk-turn-print-topline {
    min-height:0!important;margin:0 0 1mm!important;
    font-size:8pt!important;line-height:1.2!important;
  }
  body.mk-page-turn-report .mk-turn-print-original h1 {
    font-size:12.2pt!important;line-height:1.2!important;
    margin:0 0 2.4mm!important;padding:0!important;
    text-align:center!important;
  }
  body.mk-page-turn-report .mk-turn-print-user {
    display:flex!important;align-items:center!important;width:55%!important;
    margin:0 0 2mm!important;gap:2mm!important;font-size:9pt!important;
  }
  body.mk-page-turn-report .mk-turn-print-user span {
    min-width:0!important;min-height:5.3mm!important;padding:1mm 1.6mm!important;
  }
  body.mk-page-turn-report .mk-turn-print-original table {
    width:100%!important;min-width:0!important;max-width:100%!important;
    border-collapse:collapse!important;
  }
  /* Diez columnas que suman exactamente 100%: fechas 12,8%, cifras 9,3%.
     Si una cifra supera su celda, se envuelve sin ocultar ningún dígito. */
  body.mk-page-turn-report .mk-turn-print-summary {
    table-layout:fixed!important;margin:0 0 1.8mm!important;
    font-size:7.4pt!important;line-height:1.2!important;
  }
  body.mk-page-turn-report .mk-turn-print-summary th:nth-child(-n+2),
  body.mk-page-turn-report .mk-turn-print-summary td:nth-child(-n+2) {width:12.8%!important;}
  body.mk-page-turn-report .mk-turn-print-summary th:nth-child(n+3),
  body.mk-page-turn-report .mk-turn-print-summary td:nth-child(n+3) {width:9.3%!important;}
  body.mk-page-turn-report .mk-turn-print-summary th {
    font-size:7pt!important;line-height:1.15!important;
    padding:.75mm .3mm .55mm!important;
    text-align:center!important;white-space:normal!important;
    word-break:normal!important;overflow-wrap:normal!important;
  }
  body.mk-page-turn-report .mk-turn-print-summary th small {
    font-size:6.2pt!important;line-height:1.05!important;
  }
  body.mk-page-turn-report .mk-turn-print-summary td {
    font-size:7.4pt!important;line-height:1.2!important;
    padding:1mm .3mm!important;text-align:center!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
    word-break:normal!important;overflow:visible!important;
  }
  body.mk-page-turn-report .mk-turn-print-totals {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    width:100%!important;max-width:100%!important;
    gap:3mm!important;margin:1.2mm 0 2mm!important;
  }
  body.mk-page-turn-report .mk-turn-print-totals>div {
    min-width:0!important;min-height:5.5mm!important;
    padding:1mm 1.5mm!important;font-size:8.7pt!important;
    line-height:1.25!important;gap:2mm!important;white-space:normal!important;
  }
  body.mk-page-turn-report .mk-turn-print-totals>div:last-child {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    margin-left:auto!important;min-width:43mm!important;max-width:52%!important;
  }
  body.mk-page-turn-report .mk-turn-print-totals b {
    font-size:9.1pt!important;white-space:nowrap!important;
  }
  body.mk-page-turn-report .mk-turn-print-warning {
    margin:0 0 1.8mm!important;padding:1.1mm 1.6mm!important;
    font-size:7.3pt!important;line-height:1.25!important;
  }
  body.mk-page-turn-report .mk-turn-print-lines,
  body.mk-page-turn-report .mk-turn-print-sales,
  body.mk-page-turn-report .mk-turn-print-items {
    width:100%!important;max-width:100%!important;margin:0!important;
    table-layout:auto!important;font-size:9.7pt!important;line-height:1.25!important;
  }
  body.mk-page-turn-report .mk-turn-print-lines th,
  body.mk-page-turn-report .mk-turn-print-sales th,
  body.mk-page-turn-report .mk-turn-print-items th {
    font-size:9.3pt!important;padding:1.1mm 1.5mm!important;line-height:1.2!important;
  }
  body.mk-page-turn-report .mk-turn-print-lines td,
  body.mk-page-turn-report .mk-turn-print-sales td,
  body.mk-page-turn-report .mk-turn-print-items td {
    font-size:9.7pt!important;padding:1.12mm 1.5mm!important;line-height:1.25!important;
    white-space:normal!important;overflow-wrap:break-word!important;
  }
  body.mk-page-turn-report .mk-turn-print-lines th:first-child,
  body.mk-page-turn-report .mk-turn-print-lines td:first-child {
    width:17%!important;text-align:right!important;padding-right:3mm!important;
    white-space:nowrap!important;
  }
  body.mk-page-turn-report .mk-turn-print-lines th:last-child,
  body.mk-page-turn-report .mk-turn-print-lines td:last-child {
    width:23%!important;text-align:right!important;white-space:nowrap!important;
  }
  body.mk-page-turn-report .mk-turn-print-original tr {
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  body.mk-page-turn-report .mk-turn-print-original thead {display:table-header-group!important;}
  /* Vista WEB también debe respetar A4 vertical, sin recortar tarjetas. */
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen {
    display:block!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .row {
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
    --bs-gutter-x:0!important;--bs-gutter-y:0!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .row > [class*="col-"] {
    flex:0 0 100%!important;width:100%!important;max-width:100%!important;
    min-width:0!important;padding-left:0!important;padding-right:0!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi-grid,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-report-metrics {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-cash-grid,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-movement-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-panel,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-panel-body,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .table-responsive,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-table-shell {
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow:visible!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table {
    table-layout:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table th,
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table td {
    padding:1.2mm .8mm!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-modern-table .text-end {white-space:nowrap!important;}
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-kpi strong {
    white-space:normal!important;overflow:visible!important;overflow-wrap:break-word!important;
  }
  body.mk-page-turn-report.mk-print-mode-web .mk-turn-screen .mk-turn-local-pager {display:none!important;}
}

/* FIX35CN: un grupo por cierre; los originales se despliegan en la misma tabla. */
.mk-page-turns .mk-history-turn-label{display:flex;align-items:center;gap:.35rem;white-space:nowrap}
.mk-page-turns .mk-history-expand{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;padding:0;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#4746d9;cursor:pointer;flex:none}
.mk-page-turns .mk-history-expand:hover,.mk-page-turns .mk-history-expand:focus-visible{background:#edf2ff;outline-offset:2px}
.mk-page-turns .mk-history-badge{font-size:.63rem;font-weight:650;white-space:nowrap}
.mk-page-turns .mk-history-range{display:block;color:#667085;font-size:.66rem;margin-left:31px;margin-top:.12rem;white-space:nowrap}
.mk-page-turns .mk-history-text-button{padding:0;border:0;background:transparent;color:#4543cf;text-decoration:underline;cursor:pointer;font:inherit}
.mk-page-turns .mk-turn-group-row{background:#f9faff}
.mk-page-turns .mk-turn-child-row{background:#f5f8fc;color:#475467;font-size:.72rem}
.mk-page-turns .mk-turn-child-row[hidden],.mk-page-turns .mk-history-mobile-children[hidden]{display:none!important}
.mk-page-turns .mk-turn-child-row td{padding-top:.46rem;padding-bottom:.46rem}
.mk-page-turns .mk-history-child-title{display:flex;align-items:center;gap:.4rem;padding-left:1.15rem}
.mk-page-turns .mk-history-child-title i{color:#818cf8}
.mk-page-turns .mk-history-child-title small{color:#667085;font-size:.64rem}
.mk-page-turns .mk-history-mobile-group{border-color:#c7d2fe}
.mk-page-turns .mk-history-mobile-actions{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-top:.75rem}
.mk-page-turns .mk-history-mobile-actions .btn{min-width:0;white-space:normal}
.mk-page-turns .mk-history-mobile-children{display:grid;gap:.36rem;margin:-.16rem .45rem .55rem 1rem;padding-left:.65rem;border-left:2px solid #c7d2fe}
.mk-page-turns .mk-history-mobile-child{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:#f7f9fd;border:1px solid #e5eaf3;border-radius:10px;padding:.52rem .6rem}
.mk-page-turns .mk-history-mobile-child strong{display:block;font-size:.72rem}
.mk-page-turns .mk-history-mobile-child small{display:block;color:#667085;font-size:.61rem}
@media(max-width:420px){.mk-page-turns .mk-history-mobile-actions .btn{width:100%}}


/* FIX35CU — Consulta de precios en teléfono. En escritorio no altera la tabla.
   Estas reglas deben quedar AL FINAL: la presentación global de tarjetas tenía
   un display:flex!important que hacía aparecer los botones aun cerrados. */
.mk-mobile-price-help{display:none}
@media (max-width:767.98px){
  body.mk-page-products:not(.mk-price-catalog-mode) .mk-mobile-price-help{
    display:block;margin:.1rem 0 .8rem;padding:.65rem .85rem;border:1px solid #dce5ff;
    border-radius:12px;background:#f7f9ff;color:#475467;font-size:.8rem;line-height:1.45
  }
  body.mk-page-products #tablaProductos .mk-col-cost,
  body.mk-page-products #tablaProductos td.mk-col-cost{display:none!important}
  body.mk-page-products #tablaProductos .mk-col-price{
    color:#154b30!important;font-size:1.08rem;font-weight:800;background:#f4fbf7!important
  }
  body.mk-page-products .mk-products-export-button{display:none!important}
  body.mk-page-products:not(.mk-price-catalog-mode) #tablaProductos tr.mk-product-row td.mk-mobile-product-actions{
    display:none!important;visibility:hidden!important
  }
  body.mk-page-products:not(.mk-price-catalog-mode) #tablaProductos tr.mk-product-row.is-actions-open td.mk-mobile-product-actions{
    display:flex!important;visibility:visible!important;justify-content:flex-end!important;
    gap:.42rem;flex-wrap:wrap;background:#f8faff!important;padding:.72rem!important
  }
  body.mk-page-products:not(.mk-price-catalog-mode) #tablaProductos tr.mk-product-row.mk-has-actions::after{
    content:"Tocá para ver opciones  ▾";display:block;text-align:right;padding:.48rem .72rem;
    background:#fbfcfe;color:#667085;font-size:.7rem;font-weight:700
  }
  body.mk-page-products:not(.mk-price-catalog-mode) #tablaProductos tr.mk-product-row.mk-has-actions.is-actions-open::after{
    content:"Tocá para ocultar  ▴";background:#f8faff;color:var(--mk-primary)
  }
}

/* También proteger la consulta de precios cuando un teléfono se gira en horizontal. */
@media (min-width:768px){
  body.mk-page-products.mk-device-phone #tablaProductos .mk-col-cost{display:none!important}
  body.mk-page-products.mk-device-phone .mk-products-export-button{display:none!important}
  body.mk-page-products.mk-device-phone #tablaProductos tr.mk-product-row td.mk-mobile-product-actions{display:none!important}
  body.mk-page-products.mk-device-phone #tablaProductos tr.mk-product-row.is-actions-open td.mk-mobile-product-actions{
    display:flex!important;visibility:visible!important;gap:.42rem;justify-content:flex-end!important;flex-wrap:wrap
  }
  body.mk-page-products.mk-device-phone #tablaProductos td.mk-col-price{color:#154b30!important;font-weight:800}
}

/* FIX35CV — el modal de precio conserva sus proporciones con margen oculto. */
.mk-load-price-info.mk-load-price-info--two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:575.98px){.mk-load-price-info.mk-load-price-info--two{grid-template-columns:1fr}}


/* FIX35CW — Auditoría: filtros compactos sin botón desproporcionado.
   Alcance exclusivo de Auditoría; los demás formularios quedan intactos. */
.mk-audit-page .mk-filter-panel .mk-audit-filter-grid{
  display:grid!important;
  grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) minmax(210px,2.15fr) minmax(110px,.95fr) minmax(110px,.95fr) minmax(76px,.55fr) minmax(110px,.8fr);
  gap:.65rem;
  margin:0!important;
  align-items:end;
}
.mk-audit-page .mk-filter-panel .mk-audit-filter-grid>div{
  width:auto!important;max-width:none!important;min-width:0!important;
  flex:none!important;padding:0!important;
}
.mk-audit-page .mk-audit-filter-grid .form-control,
.mk-audit-page .mk-audit-filter-grid .form-select,
.mk-audit-page .mk-audit-filter-grid .input-group,
.mk-audit-page .mk-audit-filter-grid .btn{min-width:0;max-width:100%;}
.mk-audit-page .mk-audit-filter-grid>div:last-child{
  display:flex;align-items:stretch;gap:.45rem;min-width:0;
}
.mk-audit-page .mk-audit-filter-grid>div:last-child>.btn:first-child{
  flex:1 1 auto;min-width:0;width:auto;white-space:nowrap;
}
.mk-audit-page .mk-audit-filter-grid>div:last-child>.mk-filter-clear-icon{
  flex:0 0 42px!important;min-width:42px!important;width:42px!important;
}
@media(max-width:1199.98px){
  .mk-audit-page .mk-filter-panel .mk-audit-filter-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .mk-audit-page .mk-audit-filter-grid>div:nth-of-type(3){grid-column:span 2;}
}
@media(max-width:767.98px){
  .mk-audit-page .mk-filter-panel .mk-audit-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.6rem;
  }
  .mk-audit-page .mk-audit-filter-grid>div:nth-of-type(3){grid-column:1/-1;}
}
@media(max-width:420px){
  .mk-audit-page .mk-filter-panel .mk-audit-filter-grid{grid-template-columns:minmax(0,1fr);}
  .mk-audit-page .mk-audit-filter-grid>div:nth-of-type(3){grid-column:auto;}
}

/* FIX35CX — pestañas unificadas: apariencia de Consolidar turnos en todo el sitio.
   Sólo navegación visual: no se alteran formularios, enlaces, estados ni permisos. */
.mk-unified-tabs.mk-product-tabs,
.mk-unified-tabs.mk-manual-tabs,
.mk-unified-tabs.mk-turn-view-tabs,
.mk-unified-tabs.mk-audit-origin-tabs,
.mk-unified-tabs.mk-catalog-tabs{
  display:flex;align-items:center;gap:5px;width:100%;max-width:100%;min-width:0;
  border:1px solid var(--mk-border,#e4e7ec);border-radius:14px;
  background:#fff;padding:5px;margin:0 0 10px;
  box-shadow:var(--mk-shadow,0 3px 12px rgba(16,24,40,.055));
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scrollbar-width:thin;box-sizing:border-box;
}
.mk-unified-tabs .mk-unified-tab,
.swal2-popup.mk-product-editor .mk-unified-tabs .mk-unified-tab{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;gap:6px;min-width:0;min-height:36px;
  padding:8px 13px;border:0;border-radius:10px;
  background:transparent;color:#667085;font-size:.79rem;font-weight:720;
  line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer;
  box-shadow:none;transition:background .14s ease,color .14s ease;
}
.mk-unified-tabs .mk-unified-tab:hover,
.swal2-popup.mk-product-editor .mk-unified-tabs .mk-unified-tab:hover{
  background:#f8fafc;color:var(--mk-primary,#4f46e5);
}
.mk-unified-tabs .mk-unified-tab:is(.active,.is-active),
.swal2-popup.mk-product-editor .mk-unified-tabs .mk-unified-tab.is-active{
  border:0;background:var(--mk-primary-soft,#edf0ff);
  color:var(--mk-primary,#4f46e5);box-shadow:none;
}
.mk-unified-tabs .mk-unified-tab:focus-visible{
  outline:2px solid var(--mk-primary,#4f46e5);outline-offset:-2px;
}
.mk-unified-tabs .mk-unified-tab>i{font-size:.84rem;flex:0 0 auto}
.mk-unified-tabs.mk-product-tabs .mk-product-tab-label{overflow:visible;text-overflow:clip}
.mk-unified-tabs.mk-product-tabs .mk-product-tab-dot{margin-left:1px}
.mk-unified-tabs.mk-turn-view-tabs em{flex:0 0 auto}
/* SweetAlert utiliza reglas más específicas para el tamaño del editor: mantener
   la misma geometría visual de las demás pestañas sin repartirlas en 4 columnas. */
.swal2-popup.mk-product-editor .mk-unified-tabs.mk-product-tabs{
  align-items:center;flex:0 0 auto;gap:5px;padding:5px;margin:0 0 10px;
  border-radius:14px;background:#fff;
}
.swal2-popup.mk-product-editor .mk-unified-tabs.mk-product-tabs .mk-unified-tab{
  flex:0 0 auto;gap:6px;min-height:36px;padding:8px 13px;
  border:0;border-radius:10px;font-size:.79rem;line-height:1.2;
}
@media(max-width:767.98px){
  .mk-unified-tabs.mk-product-tabs,
  .mk-unified-tabs.mk-manual-tabs,
  .mk-unified-tabs.mk-turn-view-tabs,
  .mk-unified-tabs.mk-audit-origin-tabs,
  .mk-unified-tabs.mk-catalog-tabs{display:flex;gap:4px;max-width:100%;padding:4px;margin-bottom:9px}
  .mk-unified-tabs .mk-unified-tab,
  .swal2-popup.mk-product-editor .mk-unified-tabs.mk-product-tabs .mk-unified-tab{
    flex:0 0 auto;min-height:36px;padding:8px 10px;font-size:.74rem;
    white-space:nowrap;line-height:1.2;
  }
  .swal2-popup.mk-product-editor .mk-unified-tabs.mk-product-tabs{gap:4px;padding:4px;margin-bottom:9px}
  .mk-unified-tabs.mk-manual-tabs .mk-unified-tab{flex:1 0 auto}
  .mk-unified-tabs.mk-audit-origin-tabs .mk-unified-tab{flex:1 0 auto}
}
@media(prefers-reduced-motion:reduce){.mk-unified-tabs .mk-unified-tab{transition:none}}


/* FIX35CY — encabezados de modales coherentes con Consolidar turnos.
   Respetar los componentes especializados que ya tienen encabezados propios. */
.modal .modal-header.mk-unified-modal-header{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:12px;min-width:0;padding:13px 18px 12px;
  border-bottom:1px solid #e4e7ec;background:#fff;
}
.modal .mk-unified-modal-heading,.modal .mk-unified-modal-header>div:first-child{min-width:0;flex:1 1 auto}
.modal .mk-unified-modal-header .modal-title{
  display:flex;align-items:center;gap:9px;min-width:0;
  font-size:1.16rem!important;font-weight:770!important;line-height:1.25;
  color:#101828;text-align:left;letter-spacing:-.02em;margin:0!important;
}
.modal .mk-unified-modal-header .modal-title>i.bi{flex:0 0 auto;font-size:1.05rem;margin:0!important}
.modal .mk-unified-modal-header .mk-unified-modal-subtitle,
.modal .mk-unified-modal-header p{margin:4px 0 0!important;color:#667085!important;font-size:.77rem;line-height:1.35;overflow-wrap:break-word}
.modal .mk-unified-modal-header .btn-close{flex:0 0 auto;margin:0!important;padding:7px!important;box-sizing:content-box}
/* Las cabeceras ya trabajadas mantienen su jerarquía y sus subtítulos existentes. */
.modal .mk-unified-modal-header .mk-eyebrow{margin:0 0 4px}
.modal .mk-unified-modal-header .mk-modal-title-line{display:flex;align-items:center;gap:8px}
.modal .mk-unified-modal-header .mk-modal-title-line>i.bi{flex:0 0 auto}
/* SweetAlert: solo formularios grandes, nunca avisos breves ni confirmaciones simples. */
.swal2-popup.mk-unified-swal{position:relative!important;min-width:0}
.swal2-popup.mk-unified-swal .swal2-title{
  box-sizing:border-box!important;flex:0 0 auto!important;display:block!important;
  width:100%!important;margin:0!important;padding:13px 52px 12px 18px!important;
  background:#fff!important;border-bottom:1px solid #e4e7ec!important;
  color:#101828!important;text-align:left!important;font-size:1.16rem!important;
  font-weight:770!important;line-height:1.24!important;letter-spacing:-.02em;
}
.mk-unified-swal .mk-dialog-title-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.mk-unified-swal .mk-dialog-title-row{display:flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere}
.mk-unified-swal .mk-dialog-title-row>i.bi{font-size:1.06rem;flex:0 0 auto;font-weight:400}
.mk-unified-swal .mk-dialog-title-subtitle{color:#667085;font-size:.77rem;font-weight:400;letter-spacing:0;line-height:1.35}
.swal2-popup.mk-unified-swal .swal2-close.mk-unified-visible-close,
.swal2-popup.mk-unified-swal .mk-unified-dialog-close{
  display:grid!important;place-items:center!important;position:absolute!important;
  z-index:3;top:10px!important;right:13px!important;
  width:30px!important;height:30px!important;min-width:30px!important;
  padding:0!important;margin:0!important;border:0!important;
  border-radius:8px!important;background:transparent!important;color:#667085!important;
  font-size:22px!important;line-height:1!important;box-shadow:none!important;cursor:pointer;
}
.swal2-popup.mk-unified-swal .swal2-close.mk-unified-visible-close:hover,
.swal2-popup.mk-unified-swal .mk-unified-dialog-close:hover{background:#f2f4f7!important;color:#344054!important}
.swal2-popup.mk-unified-swal .swal2-close.mk-unified-visible-close:focus-visible,
.swal2-popup.mk-unified-swal .mk-unified-dialog-close:focus-visible{outline:2px solid #4f46e5;outline-offset:2px}
/* Editor de producto: cuerpo independiente, pestañas y botones siempre visibles. */
.swal2-popup.mk-product-editor.mk-unified-swal{
  height:min(540px,calc(100dvh - 24px))!important;
  padding:0!important;overflow:hidden!important;
}
.swal2-popup.mk-product-editor.mk-unified-swal .swal2-html-container{
  width:100%!important;min-height:0!important;flex:1 1 0!important;
  margin:0!important;padding:10px 16px 8px!important;
  overflow-y:auto!important;overflow-x:hidden!important;text-align:left!important;
}
.swal2-popup.mk-product-editor.mk-unified-swal .swal2-actions{
  display:flex!important;flex:0 0 auto!important;gap:8px!important;align-items:center;
  justify-content:center;margin:0!important;padding:10px 16px!important;
  width:100%!important;border-top:1px solid #e4e7ec!important;background:#fff!important;
}
.swal2-popup.mk-product-editor.mk-unified-swal .swal2-validation-message{margin:0!important;width:100%;border-radius:0!important}
/* Gestión de precios: no cambia valores, margen ni lógica de actualización. */
.swal2-popup.mk-price-modal.mk-unified-swal .swal2-title{
  padding:13px 52px 12px 18px!important;font-size:1.16rem!important;
}
@media(max-width:575.98px){
  .modal .modal-header.mk-unified-modal-header{padding:11px 13px 10px;gap:9px}
  .modal .mk-unified-modal-header .modal-title{font-size:1.04rem!important}
  .swal2-popup.mk-unified-swal .swal2-title{padding:11px 43px 10px 13px!important;font-size:1.04rem!important}
  .swal2-popup.mk-unified-swal .swal2-close.mk-unified-visible-close,
  .swal2-popup.mk-unified-swal .mk-unified-dialog-close{right:9px!important;top:8px!important}
  .swal2-popup.mk-product-editor.mk-unified-swal{
    height:min(600px,calc(100dvh - 10px))!important;
    padding:0!important;
  }
  .swal2-popup.mk-product-editor.mk-unified-swal .swal2-html-container{padding:9px 11px 7px!important}
  .swal2-popup.mk-product-editor.mk-unified-swal .swal2-actions{padding:9px 10px!important;flex-wrap:wrap}
}


/* FIX35DO · ajustes mínimos transversales en encabezados ya unificados. */
.modal .mk-unified-modal-header .modal-title{font-size:1.06rem!important;line-height:1.32!important}
.modal .mk-unified-modal-header p,.modal .mk-unified-modal-header .mk-unified-modal-subtitle{font-size:.73rem!important;line-height:1.45!important;margin-top:5px!important}
.swal2-popup.mk-unified-swal:not(.mk-product-editor):not(.mk-price-modal) .swal2-title{font-size:1.06rem!important;line-height:1.32!important}
@media(max-width:575.98px){.modal .mk-unified-modal-header .modal-title{font-size:.98rem!important}.swal2-popup.mk-unified-swal:not(.mk-product-editor):not(.mk-price-modal) .swal2-title{font-size:.98rem!important}}

/* FIX35EK — Reportes de ventas: simetría, filtros y paginación unificados */
.mk-report-view-nav{display:flex;gap:.45rem;overflow-x:auto;padding:.35rem .1rem .45rem;scrollbar-width:thin;scroll-snap-type:x proximity}
.mk-report-view-link{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;flex:0 0 auto;min-height:38px;padding:.54rem .72rem;border:1px solid #e4e7ec;border-radius:11px;background:#fff;color:#475467;text-decoration:none;font-size:.73rem;font-weight:720;line-height:1;box-shadow:0 1px 2px rgba(16,24,40,.03);scroll-snap-align:start}
.mk-report-view-link:hover{border-color:#b9c6db;color:var(--mk-primary);background:#f8faff}.mk-report-view-link.active{border-color:#b8c7ee;background:#eef4ff;color:#1849a9}.mk-report-view-link i{font-size:.88rem}
.mk-sales-report-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:.55rem;align-items:end}
.mk-sales-report-filter-field{min-width:0}.mk-sales-report-filter-field .form-label{margin-bottom:.32rem}.mk-sales-report-filter-field .form-control,.mk-sales-report-filter-field .form-select{width:100%;min-width:0}
.mk-sales-report-filter-actions{display:grid;grid-template-columns:minmax(86px,1fr) 42px 42px;gap:.45rem;align-items:end;min-width:0}.mk-sales-report-filter-actions .btn{min-height:39px;height:39px;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;white-space:nowrap}.mk-sales-report-filter-actions .mk-filter-clear-icon{height:39px!important;min-height:39px!important}.mk-sales-report-print{width:42px!important;min-width:42px!important;padding:0!important}
.mk-report-summary-strip{display:grid;gap:1px;border:1px solid #e4e7ec;border-radius:14px;background:#eef2f6;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.mk-report-summary-strip.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-report-summary-strip.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-report-summary-strip.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.mk-report-summary-strip.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.mk-report-summary-strip>div{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:74px;padding:.8rem .9rem;background:#fff}.mk-report-summary-strip span{display:block;color:#667085;font-size:.64rem;font-weight:700;text-transform:uppercase;letter-spacing:.035em}.mk-report-summary-strip strong{display:block;margin-top:.18rem;color:#101828;font-size:1rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-report-group .mk-panel-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.mk-report-group .mk-panel-header>div:first-child{min-width:0}.mk-report-group-total{text-align:right;min-width:150px;flex:0 0 auto}.mk-report-group-total span{display:block;color:#667085;font-size:.62rem;font-weight:700;text-transform:uppercase}.mk-report-group-total strong{display:block;font-size:1rem;color:#101828;margin-top:.1rem;white-space:nowrap}
.mk-report-grand-total{display:grid;gap:1px;padding:0;border:1px solid #d0d5dd;border-radius:14px;background:#dfe5ee;overflow:hidden}.mk-report-grand-total.cols-1{grid-template-columns:1fr}.mk-report-grand-total.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-report-grand-total.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mk-report-grand-total>div{min-width:0;padding:.8rem .9rem;text-align:right;background:#f8faff}.mk-report-grand-total span{display:block;color:#667085;font-size:.62rem;text-transform:uppercase;font-weight:700}.mk-report-grand-total strong{display:block;font-size:1.05rem;color:#101828;margin-top:.12rem;white-space:nowrap}
.mk-page-sales-reports tfoot th{background:#f8fafc;border-top:1px solid #d0d5dd;color:#344054;font-size:.72rem;font-weight:760}.mk-page-sales-reports .mk-panel{overflow:hidden}.mk-page-sales-reports .mk-section-subtitle{margin-top:.18rem}.mk-page-sales-reports .mk-report-card-table{width:100%;table-layout:auto}.mk-page-sales-reports .mk-report-card-table th,.mk-page-sales-reports .mk-report-card-table td{vertical-align:middle}.mk-page-sales-reports .mk-report-card-table th.text-end,.mk-page-sales-reports .mk-report-card-table td.text-end{white-space:nowrap}.mk-page-sales-reports .mk-report-table-wrap{width:100%}.mk-page-sales-reports .mk-report-card-table th,.mk-page-sales-reports .mk-report-card-table td{padding-left:.85rem;padding-right:.85rem}.mk-page-sales-reports .mk-report-card-table-rubro .col-cantidad{width:112px}.mk-page-sales-reports .mk-report-card-table-rubro .col-rubro{width:auto}.mk-page-sales-reports .mk-report-card-table-rubro .col-total{width:190px}.mk-page-sales-reports .mk-report-card-table-rubro .col-ganancia{width:190px}.mk-page-sales-reports .mk-report-card-table-rubro-detalle .col-cantidad{width:112px}.mk-page-sales-reports .mk-report-card-table-rubro-detalle .col-descripcion{width:auto}.mk-page-sales-reports .mk-report-card-table-rubro-detalle .col-venta{width:190px}.mk-page-sales-reports .mk-report-card-table-rubro-detalle .col-costo{width:190px}.mk-page-sales-reports .mk-report-card-table-marca .col-marca{width:auto}.mk-page-sales-reports .mk-report-card-table-marca .col-cantidad{width:180px}.mk-page-sales-reports .mk-report-card-table-marca .col-total{width:210px}.mk-page-sales-reports .mk-report-card-table-vendedor .col-fecha{width:132px}.mk-page-sales-reports .mk-report-card-table-vendedor .col-hora{width:92px}.mk-page-sales-reports .mk-report-card-table-vendedor .col-comprobante{width:auto}.mk-page-sales-reports .mk-report-card-table-vendedor .col-total{width:170px}.mk-page-sales-reports .mk-report-card-table-vendedor .col-costo{width:170px}.mk-page-sales-reports .mk-report-card-table-vendedor .col-ganancia{width:170px}
@media(max-width:1199.98px){.mk-sales-report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-sales-report-filter-field:not(.is-date),.mk-sales-report-filter-actions{grid-column:1/-1}.mk-sales-report-filter-actions{grid-template-columns:minmax(110px,1fr) 44px 44px}.mk-sales-report-filter-actions .btn{min-height:42px;height:42px}.mk-sales-report-filter-actions .mk-filter-clear-icon{height:42px!important;min-height:42px!important}.mk-sales-report-print{width:44px!important;min-width:44px!important}}
@media(max-width:767.98px){.mk-report-view-nav{margin-left:-.2rem;margin-right:-.2rem}.mk-report-summary-strip.cols-5,.mk-report-summary-strip.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-report-summary-strip.cols-5>div:last-child{grid-column:1/-1}.mk-report-summary-strip.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mk-report-summary-strip>div{min-height:70px;padding:.72rem .72rem}.mk-report-summary-strip strong{font-size:.92rem}.mk-report-group .mk-panel-header{align-items:stretch;flex-direction:column;gap:.7rem}.mk-report-group-total{display:flex;align-items:baseline;justify-content:space-between;width:100%;min-width:0;text-align:left;padding-top:.65rem;border-top:1px solid #eef2f6}.mk-report-grand-total>div{text-align:left}.mk-page-sales-reports .mk-pagination{margin-top:1.15rem!important}}
@media(max-width:420px){.mk-sales-report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.mk-sales-report-filter-field:not(.is-date),.mk-sales-report-filter-actions{grid-column:1/-1}.mk-report-summary-strip.cols-5,.mk-report-summary-strip.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-report-summary-strip.cols-3{grid-template-columns:1fr}.mk-report-summary-strip.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-report-grand-total.cols-3{grid-template-columns:1fr}.mk-report-grand-total.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mk-report-presets{grid-template-columns:1fr 1fr}.mk-report-view-link{min-height:36px}}
@media print{.mk-page-sales-reports .mk-report-view-nav,.mk-page-sales-reports .mk-report-filter,.mk-page-sales-reports .mk-pagination,.mk-page-sales-reports .mk-report-presets,.mk-page-sales-reports .mk-data-source-badge{display:none!important}.mk-page-sales-reports .mk-report-summary-strip,.mk-page-sales-reports .mk-report-grand-total{box-shadow:none!important}.mk-page-sales-reports .mk-report-group{break-inside:avoid}.mk-page-sales-reports a{color:inherit!important;text-decoration:none!important}}

.mk-audit-business-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.85rem .95rem;border:1px solid var(--mk-border);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.03)}.mk-audit-business-heading>div{min-width:0}.mk-audit-business-heading strong{display:block;font-size:.82rem;color:#344054}.mk-audit-business-heading span:not(.badge){display:block;margin-top:.12rem;color:#667085;font-size:.69rem;line-height:1.4}@media(max-width:767.98px){.mk-audit-business-heading{flex-direction:column}}

/* FIX35EP — cambios reales, uniformes y legibles en Mis operaciones */
.mk-myop-changes{border-top-color:#dbe4f0}
.mk-myop-change-list{display:grid;gap:.42rem;margin-top:.62rem}
.mk-myop-change-row{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:.5rem;padding:.5rem .58rem;border:1px solid #e7eaf0;border-radius:10px;background:#fff;font-size:.78rem;min-width:0}
.mk-myop-change-row>strong{color:#344054;overflow-wrap:anywhere}.mk-myop-change-row>span{min-width:0;overflow-wrap:anywhere;color:#667085}.mk-myop-change-row>span:last-child{color:#101828;font-weight:700}.mk-myop-change-row>i{color:#98a2b3;text-align:center}
@media(max-width:575.98px){.mk-myop-change-row{grid-template-columns:1fr 24px 1fr;gap:.38rem}.mk-myop-change-row>strong{grid-column:1/-1;font-size:.72rem;color:#667085}.mk-myop-change-row>span{font-size:.76rem}}

/* FIX35EW — Código no encontrado: la cabecera unificada conserva su divisor,
   pero deja aire real antes de la fila operativa (código + acciones).
   Evita que la línea del título quede pegada a los botones sin alterar otros SweetAlert. */
.swal2-popup.mk-rec-popup.mk-unified-swal>.swal2-title{
  margin:0 0 .82rem!important;
}
@media(max-width:767.98px){
  .swal2-popup.mk-rec-popup.mk-unified-swal>.swal2-title{margin-bottom:.68rem!important}
}



/* FIX35EZ — Reportes de compras: cuatro vistas con el mismo lenguaje visual de Reportes. */
.mk-page-purchase-reports .mk-purchase-date-group .mk-panel-header{padding-bottom:.72rem}
.mk-page-purchase-reports .mk-report-card-table-purchase-dates .col-vendedor{width:auto}.mk-page-purchase-reports .mk-report-card-table-purchase-dates .col-comprobante{width:190px}.mk-page-purchase-reports .mk-report-card-table-purchase-dates .col-total{width:190px}
.mk-page-purchase-reports .mk-report-card-table-purchase-products .col-cantidad{width:120px}.mk-page-purchase-reports .mk-report-card-table-purchase-products .col-descripcion{width:auto}.mk-page-purchase-reports .mk-report-card-table-purchase-products .col-costo{width:180px}.mk-page-purchase-reports .mk-report-card-table-purchase-products .col-total{width:190px}
.mk-page-purchase-reports .mk-report-card-table-purchase-category .col-categoria{width:auto}.mk-page-purchase-reports .mk-report-card-table-purchase-category .col-cantidad{width:180px}.mk-page-purchase-reports .mk-report-card-table-purchase-category .col-total{width:210px}
@media(max-width:767.98px){.mk-page-purchase-reports .mk-purchase-date-group{break-inside:avoid}.mk-page-purchase-reports .mk-report-grand-total{margin-top:.9rem}}
@media print{.mk-page-purchase-reports .mk-purchase-date-group{break-inside:avoid}.mk-page-purchase-reports .mk-report-footnote{margin-top:.6rem!important}}


/* FIX35FC — mejoras de análisis Ventas/Compras */
.mk-page-sales-reports .mk-report-search-field .input-group-text{background:#f8fafc;border-color:#d0d5dd;color:#667085}
.mk-page-sales-reports .mk-report-active-context{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}
.mk-page-sales-reports .mk-report-context-label{font-size:.68rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:#667085}
.mk-page-sales-reports .mk-report-context-chip{display:inline-flex;align-items:center;gap:.35rem;min-height:32px;padding:.25rem .45rem .25rem .65rem;border:1px solid #d0d5dd;border-radius:999px;background:#fff;color:#344054;font-size:.78rem;font-weight:650}
.mk-page-sales-reports .mk-report-context-chip>a{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;color:#667085;text-decoration:none}
.mk-page-sales-reports .mk-report-context-chip>a:hover{background:#f2f4f7;color:#101828}
.mk-page-sales-reports .mk-report-product-link.is-inline{display:inline-flex;align-items:center;max-width:100%;font-weight:650;text-decoration:none}
.mk-page-sales-reports .mk-report-card-table tbody tr:hover{background:#fbfcff}
@media(min-width:768px){.mk-page-sales-reports .mk-report-card-table thead th{position:sticky;top:0;z-index:2;background:#f8fafc;box-shadow:0 1px 0 #eaecf0}.mk-page-sales-reports .mk-report-table-wrap{max-height:min(68vh,720px);overflow:auto}}
@media print{.mk-page-sales-reports .mk-report-table-wrap{max-height:none!important;overflow:visible!important}.mk-page-sales-reports .mk-report-card-table thead th{position:static!important}}

/* FIX35FD — proporciones de filtros y estados vacíos transversales.
   Búsqueda usa el espacio útil; criterios/"Mostrar" permanecen compactos.
   Los estados sin filas se centran respecto del ancho real de la consulta. */
.mk-empty-state{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:168px;
  margin-inline:auto;
  padding:1.75rem 1rem;
  gap:.38rem;
}
.mk-empty-state i{font-size:1.5rem}
.mk-empty-state strong{font-size:.94rem;line-height:1.35;font-weight:740}
.mk-empty-state span{font-size:.82rem;line-height:1.45;max-width:560px}

/* Una tabla que sólo contiene un estado no conserva la geometría de sus
   columnas. El colspan vuelve a ocupar el ancho real de la tarjeta. */
table.mk-table-state-only{width:100%!important;min-width:0!important;table-layout:fixed!important}
table.mk-table-state-only tbody{display:table-row-group!important;width:auto!important}
table.mk-table-state-only tbody tr{display:table-row!important;width:auto!important}
table.mk-table-state-only tbody td[colspan]{display:table-cell!important;width:auto!important;max-width:none!important;padding:0!important;text-align:center!important;border:0!important}
table.mk-table-state-only tbody td[colspan]::before{display:none!important}
table.mk-table-state-only .mk-empty-state{width:100%!important;min-height:190px!important;padding:1.9rem 1rem!important}
.table-responsive.mk-table-state-wrap{width:100%!important;max-width:100%!important;overflow:hidden!important}
.mk-panel>.mk-empty-state{width:100%;min-height:190px;padding:1.9rem 1rem}

/* Reportes: fechas compactas, buscador prioritario, ordenar mediano y
   cantidad por página realmente compacta. */
@media(min-width:1200px){
  .mk-page-sales-reports .mk-sales-report-filter-grid{
    display:flex;
    flex-wrap:nowrap;
    align-items:flex-end;
    gap:.6rem;
    width:100%;
  }
  .mk-page-sales-reports .mk-sales-report-filter-field{flex:0 1 175px;min-width:0}
  .mk-page-sales-reports .mk-sales-report-filter-field.is-date{flex:0 0 190px}
  .mk-page-sales-reports .mk-report-search-field{flex:1 1 360px;min-width:220px}
  .mk-page-sales-reports .mk-report-order-field{flex:0 0 175px}
  .mk-page-sales-reports .mk-report-page-size-field{flex:0 0 100px}
  .mk-page-sales-reports .mk-sales-report-filter-actions{flex:0 0 auto;min-width:168px}
}
.mk-page-sales-reports .mk-report-page-size-field .form-select{text-align:left}
.mk-page-sales-reports .mk-report-category-label{font-weight:650;color:#475467}

/* Controles equivalentes ya existentes: mantener "Mostrar" corto y dar la
   prioridad de ancho al campo de búsqueda. */
@media(min-width:992px){
  .mk-page-cc .mk-cc-list-search{grid-template-columns:minmax(190px,.8fr) minmax(320px,1.8fr) 108px auto}
  .mk-page-cc .mk-cc-per-page{max-width:108px}
  .mk-page-cc .mk-cc-per-page .form-select{width:100%}
  .mk-clients-page .mk-client-filter #ordenClientes{min-width:118px}
  .mk-clients-page .mk-client-filter #limiteClientes{width:92px;min-width:92px}
}

@media(max-width:575.98px){
  .mk-empty-state{min-height:150px;padding:1.45rem .8rem}
  table.mk-table-state-only .mk-empty-state,.mk-panel>.mk-empty-state{min-height:160px!important;padding:1.5rem .8rem!important}
}
/* FIX35FD — refuerzo para estados vacíos en tablas que en móvil normalmente
   se convierten en tarjetas. Una tabla sin datos vuelve temporalmente a
   geometría de tabla para centrar el mensaje en todo el ancho. */
.mk-page-reports table.mk-report-card-table.mk-table-state-only,
.mk-page-sales table.mk-table-state-only,
.mk-page-loads table.mk-table-state-only,
.mk-page-outputs table.mk-table-state-only{
  display:table!important;
  width:100%!important;
}
.mk-page-reports table.mk-report-card-table.mk-table-state-only tbody,
.mk-page-sales table.mk-table-state-only tbody,
.mk-page-loads table.mk-table-state-only tbody,
.mk-page-outputs table.mk-table-state-only tbody{display:table-row-group!important;width:auto!important;padding:0!important}
.mk-page-reports table.mk-report-card-table.mk-table-state-only tbody tr,
.mk-page-sales table.mk-table-state-only tbody tr,
.mk-page-loads table.mk-table-state-only tbody tr,
.mk-page-outputs table.mk-table-state-only tbody tr{display:table-row!important;width:auto!important;margin:0!important;border:0!important;box-shadow:none!important}
.mk-page-reports table.mk-report-card-table.mk-table-state-only tbody td[colspan],
.mk-page-sales table.mk-table-state-only tbody td[colspan],
.mk-page-loads table.mk-table-state-only tbody td[colspan],
.mk-page-outputs table.mk-table-state-only tbody td[colspan]{display:table-cell!important;width:auto!important;max-width:none!important;padding:0!important;border:0!important;text-align:center!important}

/* FIX35FD — estados vacíos secundarios y carga inicial, con el mismo lenguaje visual. */
.mk-empty-state.mk-empty-state-compact{min-height:120px;padding:1.25rem 1rem}
.mk-empty-state.mk-empty-state-loading{min-height:150px}
.mk-empty-state.mk-empty-state-loading .spinner-border{width:1.35rem;height:1.35rem;margin-bottom:.15rem}
.mk-page-turns table.mk-table-state-only{display:table!important;width:100%!important}
.mk-page-turns table.mk-table-state-only tbody{display:table-row-group!important;width:auto!important}
.mk-page-turns table.mk-table-state-only tbody tr{display:table-row!important;width:auto!important}
.mk-page-turns table.mk-table-state-only tbody td[colspan]{display:table-cell!important;width:auto!important;max-width:none!important;padding:0!important;border:0!important;text-align:center!important}
@media(max-width:575.98px){.mk-empty-state.mk-empty-state-compact{min-height:108px;padding:1.05rem .8rem}.mk-empty-state.mk-empty-state-loading{min-height:135px}}

/* FIX35FE — Carga de mercadería: subtotal por renglón sin sacrificar la
   legibilidad de costo/stock/venta. La regla está aislada de Salidas. */
.mk-page-stock-load .mk-load-table{min-width:1260px}
.mk-page-stock-load .mk-load-table .mk-col-qty{width:5%}
.mk-page-stock-load .mk-load-table .mk-col-code{width:8.2%}
.mk-page-stock-load .mk-load-table .mk-col-desc{width:18%}
.mk-page-stock-load .mk-load-table .mk-col-brand{width:8.5%}
.mk-page-stock-load .mk-load-table .mk-col-rubro{width:8.5%}
.mk-page-stock-load .mk-load-table .mk-col-money{width:7.2%}
.mk-page-stock-load .mk-load-table .mk-col-subtotal{width:8.4%}
.mk-page-stock-load .mk-load-table .mk-col-stock{width:6.8%}
.mk-page-stock-load .mk-load-table .mk-col-actions{width:14%}
.mk-page-stock-load .mk-load-table .mk-cell-subtotal{font-weight:800;color:#0f172a}

@media(max-width:767.98px){
  .mk-page-stock-load .mk-load-table{min-width:0!important}
  .mk-page-load-entry.mk-page-stock-load .mk-load-table .mk-cell-cost{grid-column:1!important;grid-row:4!important}
  .mk-page-load-entry.mk-page-stock-load .mk-load-table .mk-cell-subtotal{grid-column:2!important;grid-row:4!important}
  .mk-page-load-entry.mk-page-stock-load .mk-load-table .mk-cell-stock-old{grid-column:1!important;grid-row:5!important}
  .mk-page-load-entry.mk-page-stock-load .mk-load-table .mk-cell-stock-new{grid-column:2!important;grid-row:5!important}
  .mk-page-load-entry.mk-page-stock-load .mk-load-table .mk-cell-sale{grid-column:1/-1!important;grid-row:6!important}
  .mk-page-load-entry.mk-page-stock-load .mk-load-table tbody td.mk-load-actions-cell{grid-column:1/-1!important;grid-row:7!important}
}

/* FIX35FG — Carga de mercadería: cálculo opcional desde caja. */
.mk-load-box-intro{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #dbeafe;background:#f8fbff;border-radius:12px;color:#475569;font-size:.8rem;line-height:1.4}
.mk-load-box-intro i{color:#4f46e5;font-size:1rem;line-height:1.2;margin-top:1px}
.mk-load-box-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mk-load-box-results>div{min-width:0;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:12px;padding:10px 11px;display:flex;flex-direction:column;gap:2px}
.mk-load-box-results span{font-size:.63rem;text-transform:uppercase;letter-spacing:.035em;font-weight:800;color:#64748b}
.mk-load-box-results strong{font-size:1.05rem;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-load-box-note{border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:9px 11px;color:#64748b;font-size:.76rem;line-height:1.35}
@media(max-width:575.98px){.mk-load-box-results{grid-template-columns:1fr}.mk-load-box-results strong{white-space:normal}.mk-load-box-modal .modal-dialog{margin:.6rem}}


/* FIX35FH — Carga: recargo porcentual opcional sobre costo de factura. */
.mk-load-cost-adjusted-preview{border:1px solid #dbeafe;background:#f8fbff;border-radius:11px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.mk-load-cost-adjusted-preview>div{display:flex;align-items:baseline;gap:8px;min-width:0}.mk-load-cost-adjusted-preview span{font-size:.67rem;text-transform:uppercase;letter-spacing:.03em;font-weight:800;color:#64748b;white-space:nowrap}.mk-load-cost-adjusted-preview strong{font-size:1rem;color:#0f172a;white-space:nowrap}.mk-load-cost-adjusted-preview small{color:#64748b;text-align:right;line-height:1.3}
.mk-load-cost-base{display:block;margin-top:2px;color:#64748b;font-size:.64rem;line-height:1.15;white-space:nowrap;font-weight:650}
.mk-load-box-results{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:991.98px){.mk-load-box-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575.98px){.mk-load-cost-adjusted-preview{align-items:flex-start;flex-direction:column}.mk-load-cost-adjusted-preview small{text-align:left}.mk-load-box-results{grid-template-columns:1fr}.mk-load-cost-base{white-space:normal}}

/* FIX35FI — alineación del modal Costo y venta.
   La fila superior usa su propia grilla para que las etiquetas no desplacen los controles. */
#modalPrecioCarga .mk-load-price-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(148px,.9fr) minmax(0,1.3fr);gap:14px;align-items:end}
#modalPrecioCarga .mk-load-price-control{min-width:0}
#modalPrecioCarga .mk-load-price-control>.form-label{display:flex;align-items:flex-end;min-height:2.15rem;margin-bottom:.4rem;line-height:1.18}
#modalPrecioCarga .mk-load-price-control--full{grid-column:1/-1}
#modalPrecioCarga .mk-load-price-control--full>.form-label{min-height:0}
#modalPrecioCarga .mk-load-price-control .input-group,#modalPrecioCarga .mk-load-price-control .form-select{width:100%}
@media(max-width:767.98px){#modalPrecioCarga .mk-load-price-controls{grid-template-columns:1fr 1fr;gap:12px}#modalPrecioCarga .mk-load-price-control--rule{grid-column:1/-1}#modalPrecioCarga .mk-load-price-control>.form-label{min-height:0}}
@media(max-width:575.98px){#modalPrecioCarga .mk-load-price-controls{grid-template-columns:1fr}#modalPrecioCarga .mk-load-price-control--rule,#modalPrecioCarga .mk-load-price-control--full{grid-column:auto}}


/* FIX35FJ — Gestión de precios · Igualar al mayor */
#mkIgualarMayor:disabled{opacity:.45;cursor:not-allowed}
.mk-equal-max-modal{width:min(760px,calc(100vw - 24px))!important;max-width:760px!important}
.mk-equal-max-html{text-align:left!important;margin:.75rem 1rem 0!important;overflow-x:hidden!important}
.mk-equal-max-scope{display:flex;gap:.7rem;align-items:center;padding:.78rem .85rem;border:1px solid #c7d2fe;border-radius:13px;background:#f8faff;color:#344054;margin-bottom:.85rem}
.mk-equal-max-scope>i{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:#eef2ff;color:#4f46e5;font-size:1rem}
.mk-equal-max-scope strong,.mk-equal-max-scope span{display:block}.mk-equal-max-scope strong{font-size:.86rem}.mk-equal-max-scope span{font-size:.76rem;color:#667085;margin-top:.08rem}
.mk-equal-max-source{border:1px solid #d1fadf;background:#f6fef9;border-radius:14px;padding:.9rem;margin-bottom:.8rem}
.mk-equal-max-kicker{display:block;color:#027a48;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.25rem}
.mk-equal-max-product{font-weight:750;color:#101828;margin-bottom:.7rem;overflow-wrap:anywhere}.mk-equal-max-product small,.mk-equal-max-option-source small,.mk-equal-max-reference-grid small{display:block;color:#667085;font-size:.7rem;font-weight:500;margin-top:.08rem}
.mk-equal-max-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.mk-equal-max-values>div{padding:.65rem .7rem;border:1px solid #d1fadf;border-radius:11px;background:#fff}.mk-equal-max-values span{display:block;color:#667085;font-size:.68rem}.mk-equal-max-values strong{display:block;color:#101828;font-size:.9rem;margin-top:.1rem}
.mk-equal-max-reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-bottom:.85rem}.mk-equal-max-reference-grid>div{padding:.8rem;border:1px solid #e4e7ec;border-radius:13px;background:#fff}.mk-equal-max-reference-grid>div>span{display:block;color:#667085;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.035em}.mk-equal-max-reference-grid>div>strong{display:block;color:#101828;font-size:1.05rem;margin:.12rem 0 .35rem}.mk-equal-max-reference-grid>div>.mk-equal-max-product,.mk-equal-max-reference-grid>div>span+strong+span{font-weight:700}
.mk-equal-max-options{display:grid;gap:.55rem}.mk-equal-max-option{display:block;margin:0;cursor:pointer}.mk-equal-max-option>input{position:absolute;opacity:0;pointer-events:none}.mk-equal-max-option-body{display:block;border:1px solid #d0d5dd;border-radius:13px;padding:.72rem .8rem;background:#fff;transition:border-color .15s,box-shadow .15s,background .15s}.mk-equal-max-option:hover .mk-equal-max-option-body{border-color:#a5b4fc}.mk-equal-max-option>input:checked+.mk-equal-max-option-body{border-color:#4f46e5;background:#f8faff;box-shadow:0 0 0 2px rgba(79,70,229,.1)}
.mk-equal-max-option-title{display:block;font-weight:800;color:#101828;font-size:.82rem;margin-bottom:.2rem}.mk-equal-max-option-source{display:block;color:#667085;font-size:.72rem;overflow-wrap:anywhere}.mk-equal-max-option-values{display:grid;grid-template-columns:auto auto auto auto 1fr;align-items:baseline;gap:.25rem .38rem;margin-top:.5rem}.mk-equal-max-option-values b{color:#101828;font-size:.82rem}.mk-equal-max-option-values i{font-style:normal;color:#667085;font-size:.65rem}.mk-equal-max-option-values em{justify-self:end;font-style:normal;color:#475467;font-size:.7rem;font-weight:700}
.mk-equal-max-note{display:flex;align-items:flex-start;gap:.45rem;margin-top:.8rem;padding:.65rem .72rem;border-radius:11px;background:#f9fafb;color:#667085;font-size:.72rem;line-height:1.35}.mk-equal-max-note i{color:#4f46e5;margin-top:.05rem}
@media(max-width:767.98px){
  .mk-price-catalog-mode .mk-price-selection-bar{grid-template-columns:1fr 1fr}
  #mkIgualarMayor{grid-column:1/-1}
  .mk-equal-max-reference-grid,.mk-equal-max-values{grid-template-columns:1fr}
  .mk-equal-max-option-values{grid-template-columns:auto auto auto auto;}.mk-equal-max-option-values em{grid-column:1/-1;justify-self:start}
}
@media(max-width:480px){
  .mk-equal-max-html{margin:.55rem .65rem 0!important}.mk-equal-max-modal{width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important}
}


/* FIX35FK — alertas, historial rápido, familias y referencia de precios. */
.mk-load-price-alert-config{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-top:.55rem;color:#667085;font-size:.7rem}.mk-load-price-alert-config .btn{font-size:.72rem;text-decoration:none;padding:.15rem .2rem}.mk-load-anomaly-card{text-align:left;border:1px solid #fed7aa;background:#fffaf5;border-radius:13px;padding:.8rem}.mk-load-anomaly-card>strong,.mk-load-anomaly-card>small{display:block}.mk-load-anomaly-card>small{color:#667085}.mk-load-anomaly-card>div{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:.35rem .55rem;align-items:baseline;margin:.7rem 0}.mk-load-anomaly-card span{font-size:.7rem;color:#667085}.mk-load-anomaly-card b{text-align:right}.mk-load-anomaly-card ul{margin:0;padding-left:1.1rem;color:#9a3412;font-size:.78rem}
.mk-cost-history-modal{width:min(680px,calc(100vw - 24px))!important}.mk-cost-history-html{text-align:left!important}.mk-cost-history-product{padding:.65rem .75rem;border:1px solid #e4e7ec;background:#f9fafb;border-radius:11px;margin-bottom:.7rem}.mk-cost-history-product strong,.mk-cost-history-product span{display:block}.mk-cost-history-product span{color:#667085;font-size:.72rem}.mk-cost-history-table{font-size:.78rem}.mk-cost-history-table th{color:#667085;font-size:.68rem;text-transform:uppercase;letter-spacing:.025em}.mk-history-empty{text-align:center;color:#667085;padding:1.2rem .5rem}
.mk-price-alert-modal{width:min(760px,calc(100vw - 24px))!important}.mk-price-alert-html{text-align:left!important}.mk-price-alert-summary{display:flex;justify-content:space-between;gap:.7rem;align-items:center;padding:.65rem .75rem;border-radius:11px;background:#fff7ed;border:1px solid #fed7aa;margin-bottom:.55rem}.mk-price-alert-summary span{font-size:.72rem;color:#9a3412}.mk-price-alert-row{display:grid;grid-template-columns:minmax(0,1.7fr) auto auto;gap:.45rem .7rem;align-items:center;padding:.65rem 0;border-bottom:1px solid #eaecf0}.mk-price-alert-row>div:first-child strong,.mk-price-alert-row>div:first-child small{display:block}.mk-price-alert-row small{font-size:.68rem;color:#667085}.mk-price-alert-row>div:not(:first-child){text-align:right}.mk-price-alert-row>div:not(:first-child) span{display:block;font-size:.62rem;text-transform:uppercase;color:#667085}.mk-price-alert-row p{grid-column:1/-1;margin:0;color:#b54708;font-size:.72rem}.mk-price-alert-note,.mk-price-alert-more{margin-top:.65rem;color:#667085;font-size:.72rem}
.mk-price-family-modal{width:min(820px,calc(100vw - 24px))!important}.mk-price-family-html{text-align:left!important}.mk-price-family-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:center;padding:.75rem;border:1px solid #dbeafe;background:#f8fbff;border-radius:13px;margin-bottom:.8rem}.mk-price-family-create small{grid-column:1/-1;color:#667085}.mk-price-family-list{display:grid;gap:.5rem}.mk-price-family-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.72rem .78rem;border:1px solid #e4e7ec;border-radius:12px;background:#fff}.mk-price-family-row strong,.mk-price-family-row span{display:block}.mk-price-family-row span{font-size:.7rem;color:#667085;margin-top:.08rem}.mk-price-family-actions{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.mk-price-family-empty{text-align:center;padding:1.6rem .8rem;color:#667085;border:1px dashed #d0d5dd;border-radius:12px}.mk-price-copy-options{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.mk-price-copy-options label{border:1px solid #d0d5dd;border-radius:10px;padding:.55rem .6rem;font-size:.78rem;cursor:pointer}.mk-copy-reference-summary{text-align:left;border:1px solid #c7d2fe;background:#f8faff;border-radius:13px;padding:.8rem}.mk-copy-reference-summary>strong,.mk-copy-reference-summary>span{display:block}.mk-copy-reference-summary>span{color:#667085;font-size:.7rem}.mk-copy-reference-summary>div{display:grid;grid-template-columns:auto auto auto auto;gap:.25rem .45rem;align-items:baseline;margin:.65rem 0}.mk-copy-reference-summary small{color:#667085}.mk-copy-reference-summary p{margin:0;color:#667085;font-size:.74rem}
.mk-page-stock-load .mk-load-table .mk-col-actions{width:16%}
@media(max-width:767.98px){.mk-price-catalog-mode .mk-price-selection-bar{grid-template-columns:1fr 1fr}.mk-price-family-create{grid-template-columns:1fr}.mk-price-family-create small{grid-column:auto}.mk-price-family-row{align-items:flex-start;flex-direction:column}.mk-price-family-actions{width:100%;justify-content:flex-start}.mk-price-copy-options{grid-template-columns:1fr}.mk-price-alert-row{grid-template-columns:1fr 1fr}.mk-price-alert-row>div:first-child,.mk-price-alert-row p{grid-column:1/-1}.mk-load-price-alert-config{align-items:flex-start;flex-direction:column}.mk-load-anomaly-card>div{grid-template-columns:auto 1fr}}

/* FIX35FL — Gestión de precios: barra contextual compacta y modales unificados. */
.swal2-popup.mk-unified-swal{
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.swal2-popup.mk-unified-swal>.swal2-title{border-radius:0!important}

.mk-price-toolbar-panel{
  display:flex!important;
  align-items:center!important;
  gap:.65rem!important;
  flex-wrap:wrap!important;
  padding:.45rem .55rem!important;
  min-width:0;
}
.mk-price-selection-context{
  display:flex;
  align-items:center;
  gap:.5rem;
  min-width:0;
  flex:0 0 auto;
}
.mk-price-selection-context #mkSeleccionarVisibles{white-space:nowrap}
.mk-price-selection-count{margin:0!important;flex:0 0 auto}
.mk-price-catalog-mode .mk-price-selection-bar{
  display:flex!important;
  align-items:center!important;
  gap:.5rem!important;
  flex:1 1 auto!important;
  min-width:0!important;
  padding-left:.65rem!important;
  border-left:1px solid #eaecf0!important;
}
.mk-price-primary-actions{
  display:flex;
  align-items:center;
  gap:.42rem;
  flex-wrap:wrap;
  min-width:0;
}
.mk-price-primary-actions .btn{white-space:nowrap}
.mk-price-selection-bar.is-empty .mk-price-primary-actions{
  opacity:.58;
}
.mk-price-more-actions{margin-left:auto;flex:0 0 auto}
.mk-price-more-actions>.btn{white-space:nowrap}
.mk-price-more-actions .dropdown-menu{
  min-width:215px;
  padding:.4rem;
  border:1px solid #e4e7ec;
  border-radius:12px;
  box-shadow:0 10px 28px rgba(16,24,40,.12);
}
.mk-price-more-actions .dropdown-item{
  display:flex;
  align-items:center;
  gap:.55rem;
  min-height:36px;
  border-radius:8px;
  padding:.48rem .58rem;
  color:#344054;
  font-size:.78rem;
  font-weight:620;
}
.mk-price-more-actions .dropdown-item i{width:17px;text-align:center;color:#667085}
.mk-price-more-actions .dropdown-item:hover,.mk-price-more-actions .dropdown-item:focus{background:#f8faff;color:#3730a3}
.mk-price-more-actions .dropdown-item:disabled{opacity:.45;background:transparent;color:#98a2b3}
.mk-price-selection-clear{color:#b42318!important;text-decoration:none!important}
.mk-price-more-actions .mk-price-selection-clear i{color:#b42318}
.mk-price-more-actions .dropdown-divider{margin:.3rem .2rem;border-color:#eaecf0}
.mk-price-toolbar-pdf{margin-left:auto!important;white-space:nowrap}

@media(max-width:1100px){
  .mk-price-catalog-mode .mk-price-selection-bar{flex-basis:100%!important;border-left:0!important;border-top:1px solid #eaecf0!important;padding-left:0!important;padding-top:.5rem!important}
  .mk-price-primary-actions{flex:1 1 auto}
}
@media(max-width:767.98px){
  .mk-price-toolbar-panel{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:.5rem!important}
  .mk-price-selection-context{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}
  .mk-price-selection-context #mkSeleccionarVisibles{width:100%}
  .mk-price-selection-count{justify-content:center;min-width:118px}
  .mk-price-catalog-mode .mk-price-selection-bar{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    border-top:1px solid #eaecf0!important;
    border-left:0!important;
    padding-top:.5rem!important;
    padding-left:0!important;
  }
  .mk-price-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;width:100%}
  .mk-price-primary-actions #mkGestionarSeleccion{grid-column:1/-1}
  .mk-price-primary-actions .btn{width:100%}
  .mk-price-more-actions{width:100%;margin-left:0}
  .mk-price-more-actions>.btn{width:100%}
  .mk-price-more-actions .dropdown-menu{width:100%;min-width:0}
  .mk-price-toolbar-pdf{width:100%;margin-left:0!important}
}
@media(max-width:430px){
  .mk-price-selection-context{grid-template-columns:1fr}
  .mk-price-selection-count{width:100%;justify-content:center}
  .mk-price-primary-actions{grid-template-columns:1fr}
  .mk-price-primary-actions #mkGestionarSeleccion{grid-column:auto}
}

/* Los formularios nuevos de precios/carga usan el mismo aire visual que el resto. */
.mk-price-alert-settings-modal,.mk-copy-reference-modal,.mk-load-alert-settings-modal{width:min(620px,calc(100vw - 24px))!important}
.swal2-popup.mk-unified-swal .swal2-html-container{box-sizing:border-box}
.mk-price-family-modal .swal2-html-container,.mk-cost-history-modal .swal2-html-container,.mk-equal-max-modal .swal2-html-container,
.mk-price-alert-settings-modal .swal2-html-container,.mk-copy-reference-modal .swal2-html-container,.mk-load-alert-settings-modal .swal2-html-container{
  margin:0!important;
  padding:1rem 1.1rem!important;
  text-align:left!important;
}
.mk-price-family-modal .swal2-actions,.mk-cost-history-modal .swal2-actions,.mk-equal-max-modal .swal2-actions,
.mk-price-alert-settings-modal .swal2-actions,.mk-copy-reference-modal .swal2-actions,.mk-load-alert-settings-modal .swal2-actions{
  margin:0!important;
  padding:.8rem 1rem!important;
  border-top:1px solid #eaecf0;
  background:#fff;
}
.mk-price-family-modal .swal2-validation-message,.mk-price-alert-settings-modal .swal2-validation-message,
.mk-copy-reference-modal .swal2-validation-message,.mk-load-alert-settings-modal .swal2-validation-message{
  margin:0!important;
  width:100%!important;
  border-radius:0!important;
}
.mk-load-anomaly-modal{border-radius:18px!important;overflow:hidden!important}


/* FIX35FM — Gestión de precios: modal con tarjetas separadas, jerarquía y footer uniforme. */
.swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{
  padding:1rem 1.25rem 0!important;
}
.mk-price-modal-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:1.2rem 1.3rem!important;
  margin:0!important;
  --bs-gutter-x:0!important;
  --bs-gutter-y:0!important;
}
.mk-price-modal-grid>.col-12,
.mk-price-modal-grid>.col-lg-6{
  width:auto!important;max-width:none!important;
  margin:0!important;padding:0!important;
}
.mk-price-modal-grid>.mk-price-scope-row,
.mk-price-modal-grid>.mk-price-modal-actions{grid-column:1/-1!important}
.mk-price-column-left,.mk-price-column-right{display:flex!important;min-width:0!important}
.mk-price-section{
  width:100%;height:100%;
  padding:1.15rem 1.2rem!important;
  border:1px solid #dde2e9!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 3px 12px rgba(16,24,40,.045)!important;
}
.mk-price-section-title{
  justify-content:flex-start!important;
  gap:.55rem!important;
  margin:0 0 1rem!important;
  padding:0 0 .8rem!important;
  border-bottom:1px solid #edf0f4!important;
  color:#24324a!important;
  font-size:1.02rem!important;
}
.mk-price-section-title>i{
  width:30px;height:30px;display:inline-grid;place-items:center;
  flex:0 0 30px;border-radius:9px;background:#eef2ff;color:#4f46e5;
  font-size:.9rem;
}
.mk-price-field-group{margin-bottom:1rem}
.mk-price-field-group h6,.mk-price-margin-block h6{
  margin:0 0 .55rem!important;font-size:.84rem;font-weight:760;color:#475467;
}
.mk-price-radio-group{gap:.45rem .75rem!important}
.mk-price-radio-group label{font-size:.82rem;color:#475467}
.mk-price-value-box{
  margin:0 0 1rem!important;padding:.9rem!important;
  border:1px solid #e4e7ec!important;border-radius:13px!important;
  background:#f8fafc!important;box-shadow:none!important;
}
.mk-price-value-box .form-label{font-size:.76rem}
.mk-price-margin-block{
  padding-top:.95rem;border-top:1px solid #eef2f6;
}
.mk-price-margin-block .mk-price-inline-field{margin-top:.35rem}
.mk-price-readjust-box{
  padding:1rem!important;margin:0 0 .9rem!important;
  border:1px solid #e4e7ec;border-radius:13px;background:#f8fafc;
}
.mk-price-readjust-box p{margin-bottom:.9rem!important;line-height:1.45;color:#667085}
.mk-price-readjust-box .mk-price-inline-field{justify-content:center!important}
.mk-price-reajuste-toggle{
  display:flex!important;align-items:flex-start;justify-content:center;gap:.45rem;
  margin:.15rem 0 .9rem!important;padding:.7rem .8rem;
  border-radius:11px;background:#fcfcfd;
}
.mk-price-reajuste-toggle .form-check-input{margin:.15rem 0 0!important;float:none!important;flex:0 0 auto}
.mk-price-reajuste-toggle .form-check-label{font-size:.8rem;color:#667085;text-align:left}
.mk-price-rounding-box{
  padding:.9rem 1rem;margin:0!important;
  border:1px solid #e4e7ec;border-radius:13px;background:#fff;
}
.mk-price-rounding-box .fw-semibold{color:#475467;font-size:.82rem}
.mk-price-rounding-box .small{line-height:1.45}
.mk-price-modal-actions{
  position:sticky!important;bottom:0!important;z-index:10!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:.65rem!important;
  margin:.1rem -1.25rem 0!important;padding:.9rem 1.25rem!important;
  border-top:1px solid #e4e7ec!important;background:rgba(255,255,255,.98)!important;
  box-shadow:0 -7px 18px rgba(16,24,40,.045)!important;backdrop-filter:blur(5px);
}
.mk-price-modal-actions .btn{min-width:138px;min-height:42px}
@media(max-width:991.98px){
  .mk-price-modal-grid{grid-template-columns:1fr!important;gap:1rem!important}
  .mk-price-modal-grid>.mk-price-scope-row,.mk-price-modal-grid>.mk-price-modal-actions{grid-column:1!important}
  .mk-price-section{height:auto!important}
}
@media(max-width:575.98px){
  .swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{padding:.75rem .8rem 0!important}
  .mk-price-modal-grid{gap:.75rem!important}
  .mk-price-section{padding:.9rem!important;border-radius:14px!important}
  .mk-price-section-title{font-size:.96rem!important;margin-bottom:.8rem!important;padding-bottom:.65rem!important}
  .mk-price-readjust-box,.mk-price-rounding-box,.mk-price-value-box{padding:.78rem!important}
  .mk-price-reajuste-toggle{justify-content:flex-start}
  .mk-price-modal-actions{
    grid-template-columns:1fr!important;display:grid!important;
    margin:0 -.8rem!important;padding:.75rem .8rem!important;gap:.45rem!important;
  }
  .mk-price-modal-actions .btn{width:100%;min-width:0}
}


/* FIX35FP — limpiar selección dentro del indicador de seleccionados. */
.mk-price-toolbar-panel{position:relative}
.mk-price-selection-count{position:relative}
.mk-price-toolbar-panel.has-selection .mk-price-selection-count{padding-right:2rem!important}
.mk-price-selection-clear-corner{
  position:absolute;
  top:.18rem;
  right:.22rem;
  z-index:4;
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#667085;
  font:700 17px/1 Arial,sans-serif;
  cursor:pointer;
  transition:background-color .14s ease,color .14s ease,box-shadow .14s ease;
}
.mk-price-selection-clear-corner[hidden]{display:none!important}
.mk-price-selection-clear-corner:hover,.mk-price-selection-clear-corner:focus-visible{
  color:#b42318;
  background:#fff1f0;
  outline:0;
  box-shadow:0 0 0 2px rgba(217,45,32,.08);
}
.mk-price-selection-clear-corner span{display:block;transform:translateY(-.5px)}
@media(max-width:767.98px){
  .mk-price-toolbar-panel.has-selection .mk-price-selection-count{padding-right:2rem!important}
}

/* ===== FIX35FO · Evolución mensual del Panel ===== */
.mk-dashboard-evolution-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.mk-dashboard-evolution-controls{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex-wrap:wrap}
.mk-dashboard-segment{display:inline-flex;align-items:center;gap:.18rem;padding:.18rem;border:1px solid #e4e7ec;border-radius:11px;background:#f8fafc}
.mk-dashboard-segment button{border:0;background:transparent;color:#667085;font-size:.69rem;font-weight:720;line-height:1;padding:.48rem .68rem;border-radius:8px;white-space:nowrap;transition:background .14s ease,color .14s ease,box-shadow .14s ease}
.mk-dashboard-segment button:hover{background:#fff;color:#344054}
.mk-dashboard-segment button.is-active{background:#fff;color:var(--mk-primary);box-shadow:0 1px 3px rgba(16,24,40,.09)}
.mk-dashboard-segment.is-compact button{padding:.48rem .58rem}
.mk-dashboard-evolution-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-bottom:.9rem}
.mk-dashboard-evolution-stats.is-single{grid-template-columns:minmax(0,1fr)}
.mk-dashboard-evolution-stat{padding:.7rem .8rem;border:1px solid #eef2f6;border-radius:12px;background:#fafbfc;min-width:0}
.mk-dashboard-evolution-stat>span{display:block;font-size:.62rem;text-transform:uppercase;letter-spacing:.035em;font-weight:750;color:#667085}
.mk-dashboard-evolution-stat>strong{display:block;margin-top:.12rem;font-size:.98rem;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-dashboard-evolution-stat>.mk-dashboard-delta{margin-top:.24rem;font-size:.62rem}
.mk-dashboard-chart.is-monthly{height:310px}
.mk-dashboard-evolution-note{display:flex;align-items:flex-start;gap:.42rem;margin-top:.75rem;padding:.6rem .7rem;border:1px solid #eef2f6;border-radius:11px;background:#f8fafc;color:#667085;font-size:.65rem;line-height:1.4}
.mk-dashboard-evolution-note i{margin-top:.03rem;color:#667085;flex:0 0 auto}
.mk-dashboard-evolution-note strong{color:#344054}
@media(max-width:767.98px){.mk-dashboard-evolution-head{align-items:stretch}.mk-dashboard-evolution-controls{justify-content:flex-start;width:100%}.mk-dashboard-evolution-stats{grid-template-columns:1fr}.mk-dashboard-chart.is-monthly{height:260px}.mk-dashboard-segment{max-width:100%;overflow-x:auto}.mk-dashboard-segment button{font-size:.66rem}}
@media(max-width:480px){.mk-dashboard-evolution-controls{display:grid;grid-template-columns:1fr}.mk-dashboard-segment{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.mk-dashboard-segment.is-compact{grid-template-columns:1fr 1fr}.mk-dashboard-segment button{padding:.52rem .4rem;white-space:normal;line-height:1.15}.mk-dashboard-chart.is-monthly{height:235px}}


/* ===== FIX35FQ · geometría estable en selección y fondo de modales ===== */
/* El contador conserva exactamente el mismo ancho con o sin selección.
   La X ocupa siempre su lugar; cuando no corresponde queda invisible y fuera del tab order. */
@media (min-width:431px){
  .mk-price-selection-count{
    width:148px!important;
    min-width:148px!important;
    max-width:148px!important;
    flex:0 0 148px!important;
    justify-content:center!important;
    padding-left:.62rem!important;
    padding-right:2rem!important;
  }
}
.mk-price-toolbar-panel.has-selection .mk-price-selection-count,
.mk-price-toolbar-panel:not(.has-selection) .mk-price-selection-count{
  padding-right:2rem!important;
}
.mk-price-selection-clear-corner.is-inactive{
  display:inline-flex!important;
  visibility:hidden!important;
  pointer-events:none!important;
  opacity:0!important;
}
.mk-price-selection-clear-corner:not(.is-inactive){
  visibility:visible!important;
  opacity:1!important;
}
@media(max-width:430px){
  .mk-price-selection-count{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:1 1 auto!important;
    padding-right:2rem!important;
  }
}

/* Bootstrap puede compensar la desaparición de la barra vertical en elementos
   fixed/sticky. El guard JS captura sus valores ANTES de abrir el diálogo y estas
   reglas neutralizan cualquier compensación posterior sólo mientras está abierto. */
html.mk-modal-layout-locked body{
  box-sizing:border-box!important;
}
html.mk-modal-layout-locked .mk-modal-compensation-guard{
  padding-right:var(--mk-before-modal-padding-right)!important;
  margin-right:var(--mk-before-modal-margin-right)!important;
}
/* El fondo queda congelado a su ancho previo; los diálogos usan el viewport normal. */
html.mk-modal-layout-locked body > :not(.modal):not(.modal-backdrop):not(.swal2-container){
  max-width:var(--mk-modal-page-width)!important;
}


/* ===== FIX35FR · Gestión de precios: footer siempre íntegro dentro del modal =====
   El footer continúa visible mientras se desplaza el formulario, pero deja de usar
   márgenes negativos que podían recortarlo contra el borde inferior del contenedor. */
.swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
  max-height:calc(100dvh - 36px)!important;
}
.swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{
  padding-bottom:.55rem!important;
  scroll-padding-bottom:82px!important;
}
.mk-price-modal-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:12!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:.65rem!important;
  margin:.35rem 0 0!important;
  padding:.9rem 0 .55rem!important;
  border-top:1px solid #e4e7ec!important;
  background:#fff!important;
  box-shadow:0 -8px 16px rgba(16,24,40,.045)!important;
  backdrop-filter:none!important;
}
.mk-price-modal-actions .btn{
  min-width:138px!important;
  min-height:42px!important;
  flex:0 0 auto!important;
}
@media(max-width:575.98px){
  .swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
    max-height:calc(100dvh - 16px)!important;
  }
  .swal2-container.mk-price-modal-container .mk-price-modal .swal2-html-container{
    padding-bottom:.45rem!important;
    scroll-padding-bottom:118px!important;
  }
  .mk-price-modal-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:.45rem!important;
    margin:.35rem 0 0!important;
    padding:.75rem 0 .45rem!important;
  }
  .mk-price-modal-actions .btn{width:100%!important;min-width:0!important}
}


/* ===== FIX35FT · Gestión de precios: cuerpo con scroll + footer real fuera del scroll =====
   El footer se mueve desde .swal2-html-container al popup en didOpen. De esta forma
   sólo se desplaza el formulario y las acciones quedan siempre completas dentro del modal. */
.swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  max-height:calc(100dvh - 36px)!important;
}
.mk-price-modal>.swal2-title{
  flex:0 0 auto!important;
}
.swal2-container.mk-price-modal-container .mk-price-modal>.swal2-html-container{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:1rem 1.25rem!important;
  scroll-padding-bottom:1rem!important;
}
.swal2-container.mk-price-modal-container .mk-price-modal>.mk-price-modal-actions{
  position:static!important;
  flex:0 0 auto!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:.55rem!important;
  margin:0!important;
  padding:.7rem 1.25rem .75rem!important;
  border-top:1px solid #e4e7ec!important;
  background:#fff!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.swal2-container.mk-price-modal-container .mk-price-modal>.mk-price-modal-actions .btn{
  min-width:112px!important;
  min-height:40px!important;
  height:auto!important;
  padding:.45rem .95rem!important;
  font-size:.875rem!important;
  line-height:1.2!important;
  flex:0 0 auto!important;
}
@media(max-width:575.98px){
  .swal2-container.mk-price-modal-container>.swal2-popup.mk-price-modal{
    max-height:calc(100dvh - 16px)!important;
  }
  .swal2-container.mk-price-modal-container .mk-price-modal>.swal2-html-container{
    padding:.75rem .8rem!important;
  }
  .swal2-container.mk-price-modal-container .mk-price-modal>.mk-price-modal-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:.45rem!important;
    padding:.7rem .8rem .75rem!important;
  }
  .swal2-container.mk-price-modal-container .mk-price-modal>.mk-price-modal-actions .btn{
    width:100%!important;
    min-width:0!important;
  }
}


/* FIX35FU — auditoría responsive integral.
   Reportes: títulos, cabeceras, resúmenes y totales deben conservarse legibles
   en teléfono/tablet sin depender de recortes ni de scroll horizontal del documento. */
.mk-page-reports .mk-page-title,
.mk-page-reports .mk-section-title,
.mk-page-reports .mk-section-subtitle,
.mk-page-reports .mk-report-group-total,
.mk-page-reports .mk-report-grand-total,
.mk-page-reports .mk-report-summary-strip{min-width:0;max-width:100%}
.mk-page-reports .mk-page-title,
.mk-page-reports .mk-section-title{overflow-wrap:anywhere}

@media(max-width:991.98px){
  /* El sello de actualización nunca compite horizontalmente con un título largo. */
  .mk-page-reports .mk-page-header,
  .mk-page-reports .mk-page-header.align-items-end{
    width:100%;
    align-items:stretch!important;
    flex-direction:column;
    gap:.7rem;
  }
  .mk-page-reports .mk-page-header>div{width:100%;min-width:0;max-width:100%}
  .mk-page-reports .mk-data-source-badge{
    align-self:flex-start;
    max-width:100%;
    white-space:normal;
    line-height:1.35;
    overflow-wrap:anywhere;
  }

  /* Los grupos con nombre largo y su total se apilan desde tablet. */
  .mk-page-reports .mk-report-group .mk-panel-header{
    align-items:stretch;
    flex-direction:column;
    gap:.7rem;
  }
  .mk-page-reports .mk-report-group-total{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:.75rem;
    width:100%;
    min-width:0;
    text-align:left;
    padding-top:.65rem;
    border-top:1px solid #eef2f6;
  }
  .mk-page-reports .mk-report-group-total strong{
    min-width:0;
    max-width:70%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:right;
  }

  /* 4/5 KPIs ya no quedan demasiado estrechos en tablet. */
  .mk-page-reports .mk-report-summary-strip.cols-4,
  .mk-page-reports .mk-report-summary-strip.cols-5{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mk-page-reports .mk-report-summary-strip.cols-5>div:last-child{grid-column:1/-1}
  .mk-page-reports .mk-report-summary-strip strong,
  .mk-page-reports .mk-report-grand-total strong{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
  }

  /* Totales de las tablas: el tfoot pasa a ser una tarjeta semántica.
     Antes quedaba como table-footer-group mientras tbody ya era tarjeta y podía
     recortarse del lado derecho en 320/390 px. */
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    padding:.45rem .55rem .55rem;
  }
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total tr{
    display:flex!important;
    flex-wrap:wrap;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    border:1px solid #d0d5dd!important;
    border-radius:13px!important;
    background:#f8fafc!important;
    overflow:hidden!important;
    box-shadow:none!important;
  }
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total th{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    flex:1 1 160px;
    padding:.58rem .68rem!important;
    border:0!important;
    border-top:0!important;
    background:transparent!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total .mk-report-total-label{
    order:-1;
    flex:0 0 100%;
    width:100%!important;
    text-align:left!important;
    color:#344054;
    border-bottom:1px solid #e4e7ec!important;
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.035em;
  }
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total th[data-label]{
    display:flex!important;
    align-items:baseline!important;
    justify-content:space-between!important;
    gap:.7rem;
    text-align:right!important;
  }
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total th[data-label]::before{
    content:attr(data-label);
    flex:0 1 auto;
    min-width:0;
    color:#667085;
    font-size:.62rem;
    font-weight:720;
    text-transform:uppercase;
    letter-spacing:.03em;
    text-align:left;
  }
}

@media(max-width:575.98px){
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total th[data-label]{
    flex:0 0 100%;
    width:100%!important;
    border-bottom:1px solid #eef2f6!important;
  }
  .mk-page-reports .mk-report-card-table tfoot.mk-report-table-total th[data-label]:last-child{border-bottom:0!important}
  .mk-page-reports .mk-report-grand-total.cols-2{grid-template-columns:1fr}
}

@media(max-width:359.98px){
  .mk-page-reports .mk-report-summary-strip.cols-2,
  .mk-page-reports .mk-report-summary-strip.cols-3,
  .mk-page-reports .mk-report-summary-strip.cols-4,
  .mk-page-reports .mk-report-summary-strip.cols-5{grid-template-columns:1fr}
  .mk-page-reports .mk-report-summary-strip.cols-5>div:last-child{grid-column:auto}
  .mk-page-reports .mk-sales-report-filter-grid{grid-template-columns:1fr}
  .mk-page-reports .mk-sales-report-filter-field,
  .mk-page-reports .mk-sales-report-filter-field.is-date,
  .mk-page-reports .mk-sales-report-filter-actions{grid-column:1/-1}
}

/* FIX35FU — neutraliza mínimos heredados de tablas anchas cuando el reporte ya
   está en modo tarjeta. Sin esto, reportes de 5/6 columnas podían conservar
   620px internos aunque el documento no mostrara overflow. */
@media(max-width:991.98px){
  .mk-page-reports .mk-report-table-wrap:has(th:nth-child(4)) .mk-report-card-table,
  .mk-page-reports .mk-report-table-wrap:has(th:nth-child(5)) .mk-report-card-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .mk-page-reports .mk-report-table-wrap,
  .mk-page-reports .table-responsive.mk-report-table-wrap{
    overflow-x:visible!important;
  }
}

/* FIX35GF — Ventas: acciones completas + Gestión de precios sin borde residual */
.mk-page-sales .mk-history-operation-table{
  min-width:1040px!important;
}
.mk-page-sales .mk-history-operation-table th:last-child,
.mk-page-sales .mk-history-operation-table td.mk-operation-actions-cell{
  width:132px!important;
  min-width:132px!important;
  max-width:none!important;
}
.mk-page-sales .mk-history-operation-table .mk-operation-row-actions{
  min-width:120px!important;
  width:max-content;
  margin-left:auto;
}
.mk-page-sales .table-wrap.table-responsive{
  overflow-x:auto!important;
  overflow-y:visible!important;
}

/* El panel exterior ya agrupa estas acciones: se elimina el borde interno que se veía como un “(”. */
.mk-price-catalog-mode .mk-price-selection-bar{
  border:0!important;
  border-left:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding-left:0!important;
}


/* FIX35GG — Ventas: la acción fiscal vive dentro de la columna Facturación. */
.mk-page-sales .mk-history-operation-table{min-width:960px!important}
.mk-page-sales .mk-history-operation-table .mk-sale-fact-head,
.mk-page-sales .mk-history-operation-table .mk-sale-fact-cell{width:168px!important;min-width:168px!important;max-width:168px!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important}
.mk-page-sales .mk-sale-fact-cell-inner{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
.mk-page-sales .mk-sale-fact-badge{max-width:118px;white-space:normal;text-align:left;line-height:1.1}
.mk-page-sales .mk-sale-fact-action{flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;border-radius:10px!important;margin:0!important}
.mk-page-sales .mk-history-operation-table th:last-child,
.mk-page-sales .mk-history-operation-table td.mk-operation-actions-cell{width:84px!important;min-width:84px!important;max-width:84px!important}
.mk-page-sales .mk-history-operation-table .mk-operation-row-actions{min-width:74px!important;width:auto!important;gap:6px!important}


/* FIX35GJ — Ventas: pago compacto + facturación horizontal y legible */
.mk-page-sales table.mk-history-operation-table th.mk-sale-payment-head,
.mk-page-sales table.mk-history-operation-table td.mk-sale-payment-cell{
  width:92px!important;min-width:92px!important;max-width:92px!important
}
.mk-page-sales table.mk-history-operation-table th.mk-sale-fact-head,
.mk-page-sales table.mk-history-operation-table td.mk-sale-fact-cell{
  width:188px!important;min-width:188px!important;max-width:188px!important;
  overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important
}
.mk-page-sales table.mk-history-operation-table td.mk-sale-fact-cell .mk-sale-fact-cell-inner{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;min-width:0!important;white-space:nowrap!important
}
.mk-page-sales table.mk-history-operation-table td.mk-sale-fact-cell .mk-sale-fact-badge{
  max-width:none!important;white-space:nowrap!important;word-break:normal!important;
  overflow-wrap:normal!important;line-height:1.15!important;flex:0 1 auto
}
.mk-page-sales table.mk-history-operation-table td.mk-sale-fact-cell .mk-sale-fact-action{
  flex:0 0 34px!important
}


/* FIX35GK — Ventas: estado fiscal separado y todas las acciones agrupadas */
.mk-page-sales table.mk-history-operation-table th.mk-sale-fact-head,
.mk-page-sales table.mk-history-operation-table td.mk-sale-fact-cell{
  width:118px!important;min-width:118px!important;max-width:118px!important;white-space:nowrap!important
}
.mk-page-sales table.mk-history-operation-table td.mk-sale-fact-cell .mk-sale-fact-cell-inner{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important
}
.mk-page-sales table.mk-history-operation-table th:last-child,
.mk-page-sales table.mk-history-operation-table td.mk-operation-actions-cell{
  width:126px!important;min-width:126px!important;max-width:126px!important
}
.mk-page-sales table.mk-history-operation-table .mk-operation-row-actions{
  min-width:116px!important;width:116px!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important
}
.mk-page-sales table.mk-history-operation-table .mk-operation-row-actions .mk-sale-fact-action{
  flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;margin:0!important
}

/* FIX35GS — Consultar ventas: el medio mixto se muestra completo.
   La columna Pago deja de estar limitada a 92 px y crece con el nombre del
   medio digital (p. ej. "Mixto · TRANSFERENCIA"). En resoluciones angostas la
   tabla conserva su scroll horizontal habitual en lugar de recortar el badge. */
.mk-page-sales table.mk-history-operation-table th.mk-sale-payment-head,
.mk-page-sales table.mk-history-operation-table td.mk-sale-payment-cell{
  width:auto!important;
  min-width:156px!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.mk-page-sales table.mk-history-operation-table td.mk-sale-payment-cell .mk-payment-badge{
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.mk-page-sales table.mk-history-operation-table{
  min-width:1120px!important;
}


/* FIX35GY — Ventas: aire real entre Facturar / Ver / Anular y el borde derecho. */
.mk-page-sales table.mk-history-operation-table th.mk-operation-actions-head,
.mk-page-sales table.mk-history-operation-table td.mk-operation-actions-cell{
  width:150px!important;min-width:150px!important;max-width:150px!important;
  padding-right:14px!important;padding-left:10px!important;
}
.mk-page-sales table.mk-history-operation-table .mk-operation-row-actions{
  min-width:122px!important;width:122px!important;gap:8px!important;
  justify-content:flex-end!important;margin-left:auto!important;margin-right:0!important;
}


/* FIX35HD · Selector de impresión dentro del propio modal.
   Evita apilar SweetAlert2 sobre Bootstrap y deja el modal interactivo al
   cerrar la ventana de impresión fiscal/no fiscal. */
.mk-doc-footer.is-print-choice{display:block!important}
.mk-doc-footer.is-print-choice>.mk-doc-main-action{display:none!important}
.mk-doc-print-choice{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.1rem 0}
.mk-doc-print-choice[hidden]{display:none!important}
.mk-doc-print-choice-copy{min-width:0;display:flex;flex-direction:column;gap:.08rem}
.mk-doc-print-choice-copy strong{font-size:.82rem;color:#344054}
.mk-doc-print-choice-copy span{font-size:.7rem;color:#667085}
.mk-doc-print-choice-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}
.mk-doc-print-choice-actions .btn{min-width:150px}
@media(max-width:767.98px){
 .mk-doc-footer.is-print-choice{display:block!important}
 .mk-doc-print-choice{display:grid;grid-template-columns:1fr;align-items:stretch}
 .mk-doc-print-choice-actions{display:grid;grid-template-columns:1fr;gap:.45rem}
 .mk-doc-print-choice-actions .btn{width:100%;min-width:0}
}

/* FIX35HE — Facturación: pestañas globales + bloque CAE con aire */
.mk-fact-module-nav{margin-top:.1rem}
.mk-doc-fiscal-strip{align-items:flex-start;gap:1rem;padding:.82rem .95rem}
.mk-doc-fiscal-strip>span{padding-top:.08rem;flex:0 0 auto}
.mk-doc-fiscal-strip>.mk-doc-fiscal-copy{display:flex!important;flex:1 1 auto;min-width:0;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:.18rem!important;text-align:left}
.mk-doc-fiscal-copy strong{font-size:.84rem;line-height:1.3;color:#101828}
.mk-doc-fiscal-copy small{display:block;color:#667085;font-size:.72rem;line-height:1.45;max-width:760px}
@media(max-width:767.98px){.mk-doc-fiscal-strip{gap:.38rem;padding:.75rem .8rem}.mk-doc-fiscal-strip>span{padding-top:0}.mk-doc-fiscal-copy strong{font-size:.81rem}.mk-doc-fiscal-copy small{font-size:.7rem}}


/* FIX35HLB35 — cursor coherente en toda la WEB.
   El texto informativo conserva selección normal, pero no muestra el cursor de
   escritura. El cursor de texto queda reservado para controles editables. */
html,body{cursor:default}
input[type="text"],input[type="search"],input[type="number"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="date"],input[type="time"],input[type="datetime-local"],textarea,[contenteditable="true"]{cursor:text}
input[readonly],input:disabled,textarea[readonly],textarea:disabled,[contenteditable="false"]{cursor:default}

/* ========================================================================== */
/* FIX35HLB37 · AUDITORÍA INTEGRAL DE INTERFAZ                                */
/* Modales, pestañas y geometría del fondo comparten un único comportamiento. */
/* ========================================================================== */

/* 1) Pestañas: una sola geometría para navegación por vistas/secciones. */
.mk-unified-tabs{
  display:flex!important;align-items:center!important;gap:5px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0 0 10px!important;padding:5px!important;
  border:1px solid var(--mk-border,#e4e7ec)!important;border-radius:14px!important;
  background:#fff!important;box-shadow:var(--mk-shadow,0 3px 12px rgba(16,24,40,.055))!important;
  overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;
  scrollbar-width:thin;box-sizing:border-box;
}
.mk-unified-tabs .mk-unified-tab{
  appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;gap:6px!important;min-width:0!important;min-height:36px!important;
  margin:0!important;padding:8px 13px!important;border:0!important;border-radius:10px!important;
  background:transparent!important;color:#667085!important;font-size:.79rem!important;font-weight:720!important;
  line-height:1.2!important;white-space:nowrap!important;text-decoration:none!important;box-shadow:none!important;
}
.mk-unified-tabs .mk-unified-tab:hover{background:#f8fafc!important;color:var(--mk-primary,#4f46e5)!important}
.mk-unified-tabs .mk-unified-tab:is(.active,.is-active),
.mk-unified-tabs .mk-unified-tab[aria-selected="true"]{
  background:var(--mk-primary-soft,#edf0ff)!important;color:var(--mk-primary,#4f46e5)!important;
}
.mk-unified-tabs .mk-unified-tab>i{flex:0 0 auto!important;font-size:.84rem!important;margin:0!important}
/* Las navegaciones de Facturación/Reportes antes tenían un estilo paralelo. */
.mk-report-view-nav.mk-unified-tabs{scroll-snap-type:none!important}
.mk-report-view-nav.mk-unified-tabs .mk-report-view-link.mk-unified-tab{scroll-snap-align:none!important}
.mk-iva-tool-tabs{margin-bottom:.85rem!important}

/* 2) Modales Bootstrap: header/footer fijos, cuerpo desplazable y formulario completo
      incluso cuando el <form> envuelve modal-body + modal-footer. */
.modal:not(.mk-doc-modal) .modal-dialog{
  min-height:0!important;
  max-height:calc(100dvh - 1.5rem)!important;
  margin-top:.75rem!important;margin-bottom:.75rem!important;
}
.modal:not(.mk-doc-modal) .modal-content{
  display:flex!important;flex-direction:column!important;
  min-height:0!important;max-height:calc(100dvh - 1.5rem)!important;
  overflow:hidden!important;
}
.modal:not(.mk-doc-modal) .modal-content>form{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  min-width:0!important;min-height:0!important;max-height:100%!important;
  margin:0!important;overflow:hidden!important;
}
.modal:not(.mk-doc-modal) .modal-header,
.modal:not(.mk-doc-modal) .modal-footer{flex:0 0 auto!important}
.modal:not(.mk-doc-modal) .modal-body,
.modal:not(.mk-doc-modal) .modal-content>form>.modal-body{
  flex:1 1 auto!important;min-width:0!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;scrollbar-gutter:stable;
}
.modal:not(.mk-doc-modal) .modal-footer{
  gap:.5rem!important;padding:.72rem 1rem!important;background:#fff!important;
}
.modal:not(.mk-doc-modal) .modal-footer>.btn{min-height:40px}
/* El modal de conflictos había forzado overflow visible: el scroll interno común
   evita que vuelva a escapar del viewport en pantallas de poca altura. */
.modal.mk-price-conflict-modal .modal-content,
.modal.mk-price-conflict-modal .modal-body{overflow-x:hidden!important}
.modal.mk-price-conflict-modal .modal-body{overflow-y:auto!important}

/* 3) Encabezados: modal-headers.js agrega esta clase a todos los diálogos de trabajo. */
.modal .modal-header.mk-unified-modal-header{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:12px!important;min-width:0!important;padding:13px 18px 12px!important;
  border-bottom:1px solid #e4e7ec!important;background:#fff!important;
}
.modal .mk-unified-modal-header>div:first-child,
.modal .mk-unified-modal-header .mk-unified-modal-heading,
.modal .mk-unified-modal-header .mk-load-article-heading{min-width:0!important;flex:1 1 auto!important}
.modal .mk-unified-modal-header .mk-modal-title-line{
  display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;
}
.modal .mk-unified-modal-header .mk-modal-title-line>.bi{
  flex:0 0 auto!important;color:#475467;font-size:1.02rem!important;margin:0!important;
}
.modal .mk-unified-modal-header .modal-title{
  min-width:0!important;margin:0!important;color:#101828!important;
  font-size:1.06rem!important;font-weight:770!important;line-height:1.32!important;
  letter-spacing:-.02em!important;overflow-wrap:anywhere;
}
.modal .mk-unified-modal-header .mk-unified-modal-subtitle,
.modal .mk-unified-modal-header .mk-modal-subtitle,
.modal .mk-unified-modal-header p,
.modal .mk-unified-modal-header .small.text-muted,
.modal .mk-unified-modal-header .small.text-secondary{
  margin:5px 0 0!important;color:#667085!important;font-size:.73rem!important;
  font-weight:400!important;line-height:1.45!important;overflow-wrap:anywhere;
}
.modal .mk-unified-modal-header .btn-close{
  flex:0 0 auto!important;margin:0!important;padding:7px!important;box-sizing:content-box!important;
}

/* 4) Congelar el fondo sin retirar su carril de scrollbar. El cuerpo queda fijo
      en su posición previa y el diálogo conserva el viewport completo. */
@media screen{
  html.mk-modal-layout-locked{
    overflow-y:scroll!important;scrollbar-gutter:stable!important;
  }
  html.mk-modal-layout-locked body{
    position:fixed!important;top:var(--mk-modal-page-top,0px)!important;left:0!important;right:auto!important;
    width:var(--mk-modal-page-width,100%)!important;max-width:var(--mk-modal-page-width,100%)!important;
    min-width:0!important;height:auto!important;margin:0!important;padding-right:0!important;
    overflow:hidden!important;
  }
  /* Anular la regla histórica que ocultaba el scrollbar raíz al abrir modal. */
  html.mk-modal-layout-locked:has(body.modal-open),
  html.mk-modal-layout-locked:has(body.swal2-shown),
  html.mk-modal-layout-locked.swal2-shown{overflow-y:scroll!important}
}

/* 5) Altura corta / móvil: ningún formulario queda recortado. */
@media(max-width:767.98px){
  .modal:not(.mk-doc-modal) .modal-dialog{
    width:calc(100% - 1rem)!important;max-width:none!important;
    max-height:calc(100dvh - 1rem)!important;margin:.5rem auto!important;
  }
  .modal:not(.mk-doc-modal) .modal-content{max-height:calc(100dvh - 1rem)!important}
  .modal:not(.mk-doc-modal) .modal-body{scrollbar-gutter:auto}
  .modal .modal-header.mk-unified-modal-header{padding:11px 13px 10px!important;gap:9px!important}
  .modal .mk-unified-modal-header .modal-title{font-size:.98rem!important}
  .modal:not(.mk-doc-modal) .modal-footer{
    display:grid!important;grid-template-columns:1fr!important;padding:.65rem .75rem max(.65rem,env(safe-area-inset-bottom))!important;
  }
  .modal:not(.mk-doc-modal) .modal-footer>.btn,
  .modal:not(.mk-doc-modal) .modal-footer>div>.btn{width:100%}
  .mk-unified-tabs{gap:4px!important;padding:4px!important;margin-bottom:9px!important}
  .mk-unified-tabs .mk-unified-tab{min-height:36px!important;padding:8px 10px!important;font-size:.74rem!important}
  html.mk-modal-layout-locked{overflow-y:auto!important;scrollbar-gutter:auto!important}
  html.mk-modal-layout-locked body{width:100%!important;max-width:100%!important}
}
@media(max-height:650px) and (min-width:768px){
  .modal:not(.mk-doc-modal) .modal-dialog{max-height:calc(100dvh - 1rem)!important;margin:.5rem auto!important}
  .modal:not(.mk-doc-modal) .modal-content{max-height:calc(100dvh - 1rem)!important}
  .modal .modal-header.mk-unified-modal-header{padding:10px 15px 9px!important}
  .modal:not(.mk-doc-modal) .modal-footer{padding:.55rem .9rem!important}
}

/* ========================================================================== */
/* FIX35HLB39 T2A1 · CURSOR GLOBAL DETERMINISTA                               */
/* El I-beam queda reservado a controles realmente editables.                 */
/* ========================================================================== */
html, body, body *{cursor:default}
body :where(a[href],button,.btn,[role="button"],summary,select,input[type="button"],input[type="submit"],input[type="reset"],input[type="checkbox"],input[type="radio"],input[type="file"],input[type="range"],input[type="color"],[data-bs-toggle],[onclick],label[for]){cursor:pointer}
body :where(input:not([type]),input[type="text"],input[type="search"],input[type="number"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"],input[type="week"],textarea,[contenteditable="true"]){cursor:text}
body :where(input[readonly],input:disabled,textarea[readonly],textarea:disabled,[contenteditable="false"],[aria-disabled="true"]){cursor:default}
body :where([data-mk-tooltip]:not(button):not(a):not([role="button"]),.mk-user-permission-help,.mk-myop-status){cursor:help}


/* FIX35HLB39 T2A3 — cuenta compacta en navbar */
.maxi-account-menu-wrap{flex:0 0 auto}
.maxi-account-trigger{
  min-height:38px;height:38px;max-width:190px;
  display:inline-flex;align-items:center;gap:.48rem;
  padding:.28rem .58rem;border:1px solid #475569;border-radius:12px;
  background:rgba(255,255,255,.06);color:#e2e8f0;
  font-size:.78rem;font-weight:650;line-height:1;white-space:nowrap;
}
.maxi-account-trigger:hover,.maxi-account-trigger:focus,.maxi-account-trigger.show,.maxi-account-trigger.is-active{
  color:#fff;background:rgba(255,255,255,.12);border-color:#64748b;box-shadow:none;
}
.maxi-account-trigger::after{margin-left:.05rem;border-top-color:currentColor}
.maxi-account-trigger .maxi-user-avatar{width:27px;height:27px;flex:0 0 27px}
.maxi-account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.maxi-account-alert{min-width:19px;height:19px;padding:0 5px;border-radius:999px;display:inline-grid;place-items:center;font-size:10px;font-weight:800;line-height:1;color:#fff;flex:0 0 auto}
.maxi-account-alert.is-danger{background:#dc3545}.maxi-account-alert.is-warning{background:#f59e0b;color:#111827}
.maxi-account-status-dot{width:8px;height:8px;border-radius:50%;display:block;flex:0 0 8px}.maxi-account-status-dot.is-warning{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.14)}
.maxi-account-menu{width:290px;padding:.48rem!important;overflow:hidden}
.maxi-account-summary{display:flex;align-items:center;gap:.65rem;padding:.52rem .58rem .45rem}
.maxi-account-summary-avatar{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#eef2ff;color:#4f46e5;flex:0 0 36px}
.maxi-account-summary-copy{min-width:0;display:block}.maxi-account-summary-copy strong{display:block;color:#1e293b;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.maxi-account-summary-copy small{display:block;color:#94a3b8;font-size:.68rem;margin-top:.12rem}
.maxi-navbar .maxi-account-menu .dropdown-divider{margin:.38rem .3rem;border-color:#e9edf3}
.maxi-navbar .maxi-account-menu .maxi-account-item{min-height:40px;display:flex;align-items:center;gap:.58rem;padding:.48rem .58rem;border-radius:9px;color:#475569!important;font-size:.78rem;font-weight:650;white-space:normal}
.maxi-navbar .maxi-account-menu .maxi-account-item>i{width:20px;height:20px;display:grid;place-items:center;color:#64748b;flex:0 0 20px}
.maxi-navbar .maxi-account-menu .maxi-account-item>span:not(.maxi-account-item-badge){min-width:0;flex:1 1 auto}
.maxi-navbar .maxi-account-menu .maxi-account-item strong{display:block;color:inherit;font-size:.76rem;line-height:1.2}
.maxi-navbar .maxi-account-menu .maxi-account-item small{display:block;color:#94a3b8;font-size:.65rem;font-weight:550;line-height:1.25;margin-top:.12rem}
.maxi-navbar .maxi-account-menu .maxi-account-item:hover,.maxi-navbar .maxi-account-menu .maxi-account-item:focus,.maxi-navbar .maxi-account-menu .maxi-account-item.active{background:#f4f3ff!important;color:#4338ca!important}
.maxi-navbar .maxi-account-menu .maxi-account-item.is-status{cursor:default;background:#f8fafc;color:#475569!important}
.maxi-navbar .maxi-account-menu .maxi-account-item.is-status:hover{background:#f8fafc!important;color:#475569!important}
.maxi-navbar .maxi-account-menu .maxi-account-item.is-status.is-warning{background:#fffaf0;color:#8a5b00!important}
.maxi-navbar .maxi-account-menu .maxi-account-item.is-status.is-warning:hover{background:#fffaf0!important;color:#8a5b00!important}
.maxi-navbar .maxi-account-menu .maxi-account-item.is-revalidate{background:#fff8e7;color:#8a5b00!important}.maxi-navbar .maxi-account-menu .maxi-account-item.is-revalidate:hover{background:#fff1c2!important;color:#704900!important}
.maxi-navbar .maxi-account-menu .maxi-account-item.is-logout{width:100%;border:0;background:transparent;text-align:left;color:#b42318!important}.maxi-navbar .maxi-account-menu .maxi-account-item.is-logout>i{color:#d92d20}.maxi-navbar .maxi-account-menu .maxi-account-item.is-logout:hover,.maxi-navbar .maxi-account-menu .maxi-account-item.is-logout:focus{background:#fff1f0!important;color:#912018!important}
.maxi-account-item-badge{margin-left:auto;min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:grid;place-items:center;font-size:10px;font-weight:800;line-height:1;color:#fff;flex:0 0 auto}.maxi-account-item-badge.is-danger{background:#dc3545}.maxi-account-item-badge.is-warning{background:#f59e0b;color:#111827}
@media(max-width:991.98px){
  .maxi-account-menu-wrap{width:100%}.maxi-account-trigger{width:100%;max-width:none;justify-content:flex-start;height:42px}.maxi-account-trigger::after{margin-left:auto}
  .maxi-navbar .maxi-account-menu{position:static!important;transform:none!important;width:100%!important;margin-top:.35rem!important;padding:.4rem!important;background:#111827!important;border:1px solid #334155!important;box-shadow:none!important}
  .maxi-account-summary-copy strong{color:#f8fafc}.maxi-account-summary-copy small{color:#94a3b8}.maxi-account-summary-avatar{background:#1e293b;color:#c7d2fe}
  .maxi-navbar .maxi-account-menu .dropdown-divider{border-color:#334155}
  .maxi-navbar .maxi-account-menu .maxi-account-item{color:#d0d5dd!important}.maxi-navbar .maxi-account-menu .maxi-account-item>i{color:#98a2b3}
  .maxi-navbar .maxi-account-menu .maxi-account-item:hover,.maxi-navbar .maxi-account-menu .maxi-account-item:focus,.maxi-navbar .maxi-account-menu .maxi-account-item.active{background:rgba(255,255,255,.07)!important;color:#fff!important}
  .maxi-navbar .maxi-account-menu .maxi-account-item.is-status,.maxi-navbar .maxi-account-menu .maxi-account-item.is-status:hover{background:rgba(255,255,255,.04)!important;color:#d0d5dd!important}
  .maxi-navbar .maxi-account-menu .maxi-account-item.is-status.is-warning,.maxi-navbar .maxi-account-menu .maxi-account-item.is-status.is-warning:hover,.maxi-navbar .maxi-account-menu .maxi-account-item.is-revalidate{background:rgba(245,158,11,.09)!important;color:#fcd88e!important}
  .maxi-navbar .maxi-account-menu .maxi-account-item.is-logout{color:#fca5a5!important}.maxi-navbar .maxi-account-menu .maxi-account-item.is-logout>i{color:#f87171}
}

/* ========================================================================== */
/* FIX35HLB39 T2B25 · AUDITORÍA UI INTEGRAL / SISTEMA VISUAL FINAL          */
/* Capa final: controles, filtros, búsqueda, paginación, acciones y responsive */
/* ========================================================================== */

/* Geometría transversal: ningún bloque de aplicación debe forzar el viewport. */
.mk-page,.mk-page-header,.mk-panel,.mk-filter-panel,.table-card,.mk-list-toolbar,
.mk-catalog-toolbar,.mk-history-filter-panel,.mk-pagination{min-width:0}
.mk-page :where(.form-control,.form-select,.input-group,.table-responsive){min-width:0}

/* Alturas de trabajo unificadas. Los controles compactos declarados .btn-sm /
   .form-control-sm siguen siendo compactos fuera de filtros y barras de búsqueda. */
.mk-filter-panel :where(.form-control,.form-select),
.mk-list-toolbar :where(.form-control,.form-select),
.mk-catalog-toolbar :where(.form-control,.form-select),
.mk-stock-adjust-toolbar :where(.form-control,.form-select),
.mk-history-filter-panel :where(.form-control,.form-select){height:42px;min-height:42px}
.mk-filter-panel .form-label,.mk-list-toolbar .form-label,.mk-catalog-toolbar .form-label,
.mk-stock-adjust-toolbar .form-label,.mk-history-filter-panel .form-label{
  margin:0 0 6px!important;font-size:.78rem!important;font-weight:650!important;line-height:1.25!important;color:#344054
}
.mk-filter-panel .btn:not(.btn-sm),.mk-list-toolbar .btn:not(.btn-sm),
.mk-catalog-toolbar .btn:not(.btn-sm),.mk-history-filter-panel .btn:not(.btn-sm){min-height:42px}

/* Selector Mostrar: mismo vocabulario y misma huella en cualquier listado. */
.mk-list-page-size,.mk-page-size-field{
  min-width:0;width:105px;flex:0 0 105px;display:flex;flex-direction:column;justify-content:flex-end
}
.mk-list-page-size .form-select,.mk-page-size-field .form-select{width:100%;height:42px!important;min-height:42px!important}

/* Catálogos (Marca/Rubro/Tablas/Medios): buscador + Mostrar + contador en una fila. */
.mk-catalog-toolbar{align-items:center!important;gap:9px!important}
.mk-catalog-toolbar .mk-catalog-search{height:42px;min-height:42px;flex:1 1 360px}
.mk-catalog-toolbar .mk-list-page-size{
  width:auto;flex:0 0 auto;display:grid;grid-template-columns:auto 82px;align-items:center;gap:7px
}
.mk-catalog-toolbar .mk-list-page-size .form-label{margin:0!important;white-space:nowrap}
.mk-catalog-toolbar .mk-chip{min-height:34px;display:inline-flex;align-items:center;white-space:nowrap}
.mk-catalog-actions{gap:7px!important}
.mk-icon-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:9px!important}

/* Ajuste de stock: búsqueda y selector en la primera fila; métricas/acciones abajo. */
.mk-stock-adjust-page .mk-stock-adjust-toolbar{
  display:grid!important;grid-template-columns:minmax(0,1fr) 105px!important;align-items:end!important;gap:9px 12px!important
}
.mk-stock-adjust-page .mk-stock-adjust-search{grid-column:1;grid-row:1;min-width:0}
.mk-stock-adjust-page .mk-stock-page-size{grid-column:2;grid-row:1;width:105px;align-self:end}
.mk-stock-adjust-page .mk-stock-adjust-actions{grid-column:1/-1;grid-row:2}

/* Historiales de ventas / cargas / salidas: misma grilla conceptual.
   fechas | contexto | búsqueda | mostrar | acciones. */
.mk-page-sales .mk-history-filter-panel .mk-sales-filters{
  display:grid!important;grid-template-columns:190px 190px 115px 210px minmax(250px,1fr) 105px 158px!important;
  gap:9px!important;align-items:end!important
}
.mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
.mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid{
  display:grid!important;grid-template-columns:190px 190px minmax(260px,1fr) 105px 158px!important;
  gap:9px!important;align-items:end!important
}
.mk-history-filter-panel .mk-page-size-field,.mk-history-filter-panel .mk-filter-actions-field{width:auto!important;max-width:none!important}
.mk-history-filter-panel .mk-filter-actions-field,.mk-page-sales .mk-sales-filter-submit{justify-self:stretch!important}
.mk-history-filter-panel .mk-filter-action-row,.mk-page-sales .mk-sales-filter-actions{height:42px!important;min-height:42px!important}

/* Movimientos: buscador local y selector Mostrar se comportan como una barra de listado. */
.mk-movement-toolbar{display:flex!important;align-items:flex-end!important;gap:9px!important;flex-wrap:wrap!important}
.mk-movement-toolbar .mk-movement-search-wrap{flex:1 1 360px!important;max-width:none!important}
.mk-movement-toolbar .mk-movement-search-wrap .form-control{height:42px!important;min-height:42px!important;margin:0!important}
.mk-movement-toolbar .mk-movement-page-size{
  width:auto;flex:0 0 auto;display:grid;grid-template-columns:auto 82px;align-items:center;gap:7px
}
.mk-movement-toolbar .mk-movement-page-size .form-label{margin:0!important;white-space:nowrap}
.mk-movement-toolbar #btnPDF{height:42px;min-height:42px;align-self:flex-end}

/* Mis operaciones: Mostrar no necesita crear una tarjeta o franja de gran altura. */
.mk-myops-toolbar{display:flex!important;justify-content:flex-end!important;align-items:center!important;margin:0 0 .75rem!important;gap:9px!important}
.mk-myops-toolbar .mk-list-page-size{width:auto;flex:0 0 auto;display:grid;grid-template-columns:auto 82px;align-items:center;gap:7px}
.mk-myops-toolbar .mk-list-page-size .form-label{margin:0!important;white-space:nowrap}

/* Anulaciones: su CSS histórico es inline; !important asegura la geometría final. */
.mk-annul-filter-grid{
  grid-template-columns:190px 190px minmax(140px,.8fr) 105px minmax(220px,1.45fr) 105px 158px!important;
  gap:9px!important;align-items:end!important
}
.mk-annul-filter-grid .form-control,.mk-annul-filter-grid .form-select{height:42px!important;min-height:42px!important}
.mk-annul-actions{height:42px!important;gap:7px!important;align-items:stretch!important}
.mk-annul-actions .btn{height:42px!important;min-height:42px!important}
.mk-annul-actions .mk-filter-clear-icon{width:42px!important;min-width:42px!important;padding:0!important}

/* Paginación final: idéntica separación y botones para todos los módulos. */
.mk-pagination{margin:1.35rem 0 .9rem!important;padding:.8rem .9rem!important;min-height:58px!important;gap:.8rem!important}
.mk-pagination-controls{gap:7px!important}
.mk-page-btn,.mk-page-number,.mk-page-current{height:36px!important;min-height:36px!important;border-radius:9px!important}
.mk-page-number,.mk-page-current{min-width:36px!important}

/* Estados vacíos: misma densidad y centro visual, tanto en tabla como en tarjeta. */
.mk-empty-state{box-sizing:border-box;width:100%;min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.35rem;padding:1.35rem 1rem}
.mk-empty-state>strong{font-size:.9rem;color:#344054}.mk-empty-state>span{max-width:620px;color:#667085;font-size:.79rem;line-height:1.45}

/* Responsive intermedio: filtros se reordenan sin dejar botones gigantes. */
@media(max-width:1199.98px) and (min-width:768px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(1){grid-column:1;grid-row:1}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(2){grid-column:2;grid-row:1}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(3){grid-column:3;grid-row:1}
  .mk-page-sales .mk-history-filter-panel .mk-page-size-field{grid-column:4;grid-row:1}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(4){grid-column:1/3;grid-row:2}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(5){grid-column:3;grid-row:2}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter-submit{grid-column:4;grid-row:2}
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .mk-page-loads .mk-load-filter-grid>div:nth-child(1),.mk-page-outputs .mk-output-filter-grid>div:nth-child(1){grid-column:1}
  .mk-page-loads .mk-load-filter-grid>div:nth-child(2),.mk-page-outputs .mk-output-filter-grid>div:nth-child(2){grid-column:2}
  .mk-page-loads .mk-load-filter-grid>div:nth-child(4),.mk-page-outputs .mk-output-filter-grid>div:nth-child(4){grid-column:4;grid-row:1}
  .mk-page-loads .mk-load-filter-grid>div:nth-child(3),.mk-page-outputs .mk-output-filter-grid>div:nth-child(3){grid-column:1/4;grid-row:2}
  .mk-page-loads .mk-load-filter-grid>div:nth-child(5),.mk-page-outputs .mk-output-filter-grid>div:nth-child(5){grid-column:4;grid-row:2}
  .mk-annul-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .mk-annul-filter-grid>.mk-annul-search{grid-column:1/4!important;grid-row:2!important}
  .mk-annul-filter-grid>.mk-annul-actions{grid-column:4!important;grid-row:2!important}
  .mk-annul-filter-grid>.mk-page-size-field{grid-column:4!important;grid-row:1!important;width:auto!important}
}

@media(max-width:767.98px){
  /* En móvil los targets táctiles crecen, sin cambiar la semántica de botones pequeños de tablas. */
  .mk-filter-panel :where(.form-control,.form-select),.mk-list-toolbar :where(.form-control,.form-select),
  .mk-catalog-toolbar :where(.form-control,.form-select),.mk-history-filter-panel :where(.form-control,.form-select){height:44px!important;min-height:44px!important}
  .mk-list-page-size,.mk-page-size-field{width:100%;flex:1 1 auto}
  .mk-catalog-toolbar{align-items:stretch!important}
  .mk-catalog-toolbar .mk-list-page-size,.mk-movement-toolbar .mk-movement-page-size,.mk-myops-toolbar .mk-list-page-size{
    width:100%;display:grid;grid-template-columns:minmax(0,1fr) 92px;align-items:center
  }
  .mk-catalog-toolbar .mk-chip{align-self:flex-start}
  .mk-icon-btn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}

  .mk-stock-adjust-page .mk-stock-adjust-toolbar{grid-template-columns:minmax(0,1fr)!important}
  .mk-stock-adjust-page .mk-stock-adjust-search,.mk-stock-adjust-page .mk-stock-page-size,.mk-stock-adjust-page .mk-stock-adjust-actions{grid-column:1!important;grid-row:auto!important;width:100%!important}

  .mk-page-sales .mk-history-filter-panel .mk-sales-filters,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div{grid-column:auto!important;grid-row:auto!important;width:100%!important;max-width:none!important;justify-self:stretch!important}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(4),
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter:nth-child(5),
  .mk-page-loads .mk-load-filter-grid>div:nth-child(3),.mk-page-outputs .mk-output-filter-grid>div:nth-child(3){grid-column:1/-1!important}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter-submit,
  .mk-page-loads .mk-load-filter-grid>div:nth-child(5),.mk-page-outputs .mk-output-filter-grid>div:nth-child(5){grid-column:1/-1!important;width:158px!important;max-width:158px!important;justify-self:end!important}
  .mk-page-sales .mk-history-filter-panel .mk-page-size-field,
  .mk-page-loads .mk-load-filter-grid>div:nth-child(4),.mk-page-outputs .mk-output-filter-grid>div:nth-child(4){grid-column:auto!important;width:100%!important}

  .mk-movement-toolbar{align-items:stretch!important;flex-direction:column!important}
  .mk-movement-toolbar .mk-movement-search-wrap,.mk-movement-toolbar .mk-movement-page-size{width:100%!important;max-width:none!important;flex:1 1 auto!important}
  .mk-movement-toolbar #btnPDF{width:100%;height:44px;min-height:44px}
  .mk-myops-toolbar{justify-content:stretch!important}.mk-myops-toolbar .mk-list-page-size{width:100%!important}

  .mk-annul-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mk-annul-filter-grid>.mk-annul-type,.mk-annul-filter-grid>.mk-annul-search{grid-column:1/-1!important;grid-row:auto!important}
  .mk-annul-filter-grid>.mk-annul-user{grid-column:1!important}.mk-annul-filter-grid>.mk-page-size-field{grid-column:2!important;grid-row:auto!important;width:100%!important}
  .mk-annul-filter-grid>.mk-annul-actions{grid-column:1/-1!important;grid-row:auto!important;width:158px!important;justify-self:end!important}

  .mk-pagination{padding:.75rem!important}.mk-pagination-controls{gap:6px!important}.mk-page-btn,.mk-page-number,.mk-page-current{min-width:40px!important;height:40px!important;min-height:40px!important}
}

@media(max-width:420px){
  .mk-page-sales .mk-history-filter-panel .mk-sales-filters,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid,
  .mk-annul-filter-grid{grid-template-columns:minmax(0,1fr)!important}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter,
  .mk-page-loads .mk-history-filter-panel .mk-load-filter-grid>div,
  .mk-page-outputs .mk-history-filter-panel .mk-output-filter-grid>div,
  .mk-annul-filter-grid>*{grid-column:1!important;grid-row:auto!important;width:100%!important;max-width:none!important}
  .mk-page-sales .mk-history-filter-panel .mk-sales-filter-submit,
  .mk-page-loads .mk-load-filter-grid>div:nth-child(5),.mk-page-outputs .mk-output-filter-grid>div:nth-child(5),
  .mk-annul-filter-grid>.mk-annul-actions{width:158px!important;max-width:158px!important;justify-self:end!important}
}
@media(max-width:767.98px){
  /* Corrección auditada: en un flex vertical, flex-basis:100% hacía que el
     buscador de catálogos consumiera cientos de píxeles de alto. */
  .mk-catalog-toolbar .mk-catalog-search{flex:0 0 44px!important;width:100%!important;height:44px!important;min-height:44px!important}
  .mk-catalog-toolbar .mk-catalog-search>span{height:44px!important;min-height:44px!important}
}


/* FIX35HLB39 T2C3C · estado vacío de catálogos a ancho completo.
   Las tarjetas normales usan dos columnas en escritorio; cuando no hay resultados
   el tbody pasa explícitamente a una sola columna para evitar que el mensaje quede
   visualmente encerrado en la columna izquierda. */
.mk-catalog-table tbody.mk-catalog-body-empty{
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  width:100%!important;
}
.mk-catalog-table tbody.mk-catalog-body-empty .mk-catalog-empty-row{
  grid-column:1/-1!important;
  justify-self:stretch!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
.mk-catalog-table tbody.mk-catalog-body-empty .mk-catalog-empty-row>td,
.mk-catalog-table tbody.mk-catalog-body-empty .mk-empty-state{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
.mk-catalog-table tbody.mk-catalog-body-empty .mk-empty-state{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
