:root{--navy:#0f1f35;--navy2:#152a46;--blue:#2563eb;--blue2:#3b82f6;--bg:#f4f7fb;--card:#fff;--text:#182334;--muted:#6b7687;--border:#e4e9f0;--danger:#dc2626;--success:#0f9f6e;--warning:#d97706;--purple:#7c3aed;--teal:#0f8b8d;--shadow:0 8px 28px rgba(15,31,53,.07);--sidebar:260px;--sidebar-collapsed:78px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(180deg,var(--navy),#0b192b);color:#fff;padding:18px 12px;display:flex;flex-direction:column;z-index:50;transition:.25s ease}.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed)}.brand{display:flex;align-items:center;gap:12px;padding:4px 10px 20px}.brand-mark,.login-logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,var(--blue2),#1d4ed8);box-shadow:0 10px 24px rgba(37,99,235,.3);flex:0 0 auto}.brand-mark i{font-size:19px}.brand-text{display:flex;flex-direction:column;line-height:1.05;overflow:hidden}.brand-text strong{font-size:15px}.brand-text span{font-size:12px;color:#94a3b8;margin-top:4px}.sidebar-collapsed .brand-text{width:0;opacity:0}.sidebar-toggle{position:absolute;right:-14px;top:24px;width:30px;height:30px;border:1px solid #324761;background:var(--navy2);color:#fff;border-radius:10px;display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.18)}.sidebar-collapsed .sidebar-toggle i{transform:rotate(180deg)}
.nav-menu{display:flex;flex-direction:column;gap:5px;margin-top:12px}.nav-item{width:100%;height:48px;border:0;background:transparent;color:#b9c5d5;border-radius:12px;display:flex;align-items:center;gap:13px;padding:0 14px;text-align:left;transition:.18s}.nav-item i{width:20px;text-align:center;font-size:16px;flex:0 0 auto}.nav-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600}.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}.nav-item.active{background:linear-gradient(90deg,rgba(59,130,246,.22),rgba(59,130,246,.08));color:#fff;box-shadow:inset 3px 0 0 var(--blue2)}.nav-item.danger:hover{background:rgba(220,38,38,.13);color:#fecaca}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:5px;border-top:1px solid rgba(255,255,255,.08);padding-top:12px}.sidebar-collapsed .nav-item{justify-content:center;padding:0}.sidebar-collapsed .nav-item span{width:0;opacity:0}.sidebar-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}
.main-content{margin-left:var(--sidebar);min-height:100vh;transition:.25s ease}.sidebar-collapsed .main-content{margin-left:var(--sidebar-collapsed)}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:30}.topbar-left{display:flex;align-items:center;gap:12px}.mobile-menu{display:none;border:0;background:transparent;width:40px;height:40px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#8792a2;font-weight:700}.topbar h1{font-size:21px;margin:4px 0 0}.topbar-actions{display:flex;align-items:center;gap:12px}.user-chip{display:flex;align-items:center;gap:9px}.user-chip-text{display:flex;flex-direction:column;line-height:1.05}.user-chip-text strong{font-size:12px}.user-chip-text small{font-size:10px;color:var(--muted);margin-top:4px;text-transform:capitalize}.avatar{width:35px;height:35px;border-radius:10px;background:#edf3ff;color:var(--blue);display:grid;place-items:center}.btn{border:1px solid transparent;border-radius:10px;height:40px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:700;transition:.18s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.18)}.btn-primary:hover{background:#1d4ed8}.btn-outline{background:#fff;border-color:var(--border);color:var(--text)}.btn-outline:hover{border-color:#c8d2df;background:#f9fbfe}.btn-danger{background:#fff;border-color:#fecaca;color:var(--danger)}.btn-full{width:100%}
.view{display:none;padding:26px 28px 38px}.view.active{display:block}.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.page-toolbar h2{margin:0;font-size:20px}.page-toolbar p{margin:6px 0 0;color:var(--muted);font-size:12px}.toolbar-group{display:flex;align-items:center;gap:8px}.icon-btn,.month-label{height:38px;min-width:38px;border:1px solid var(--border);background:#fff;color:var(--text);border-radius:10px;display:grid;place-items:center}.month-label{padding:0 14px;font-weight:700}.kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:18px}.kpi{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:15px;padding:15px;display:flex;gap:11px;align-items:center;min-width:0}.kpi-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto}.kpi-icon.blue{background:#edf3ff;color:#2563eb}.kpi-icon.green{background:#eafaf4;color:#0f9f6e}.kpi-icon.orange{background:#fff5e8;color:#d97706}.kpi-icon.red{background:#fff0f0;color:#dc2626}.kpi-icon.purple{background:#f2ecff;color:#7c3aed}.kpi-icon.teal{background:#eafafb;color:#0f8b8d}.kpi>div:last-child{min-width:0}.kpi span{display:block;color:var(--muted);font-size:10px;font-weight:600}.kpi strong{display:block;font-size:18px;line-height:1.1;margin-top:4px}.kpi small{display:block;color:#96a0af;font-size:9px;margin-top:4px}.content-grid{display:grid;gap:18px}.two-col{grid-template-columns:1fr 1fr}.panel{background:var(--card);border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);padding:18px;margin-bottom:18px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head h3{margin:0;font-size:14px}.panel-subtitle{display:block;font-size:10px;color:var(--muted);margin-top:4px}.panel-icon{color:#93a0b2;font-size:17px}.progress-panel{padding:6px 0}.big-progress .progress-value{font-size:32px;font-weight:800}.progress-track{height:10px;border-radius:99px;background:#edf1f5;overflow:hidden;margin:12px 0 8px}.progress-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#2563eb,#4f86ff)}.progress-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.mini-bars{display:flex;flex-direction:column;gap:12px}.bar-row{display:grid;grid-template-columns:88px 1fr 35px;align-items:center;gap:9px;font-size:10px}.bar{height:9px;background:#edf1f5;border-radius:99px;overflow:hidden}.bar i{display:block;height:100%;border-radius:99px;background:#94a3b8}.bar i.completed{background:#0f9f6e}.bar i.difference{background:#dc2626}.bar i.pending{background:#d97706}.bar i.scheduled{background:#3b82f6}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1000px}.data-table th,.data-table td{padding:10px 11px;border-bottom:1px solid #edf0f4;text-align:left;font-size:10px;vertical-align:middle;white-space:nowrap}.data-table th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#7a8698;background:#f8fafc;position:sticky;top:0;z-index:2}.data-table tr:hover td{background:#fbfdff}.data-table td.num{text-align:right;font-variant-numeric:tabular-nums}.compact{min-width:0}.empty-cell{text-align:center!important;padding:28px!important;color:#9aa6b5}.empty-cell i{display:block;font-size:24px;margin-bottom:8px}.table-panel{padding:0}.table-panel .table-tools{padding:15px;border-bottom:1px solid var(--border)}.table-tools{display:flex;gap:10px;align-items:center}.search-box,.filter-box{height:38px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:0 11px}.search-box i,.filter-box i{color:#99a5b5;font-size:12px}.search-box input,.filter-box select{border:0;outline:0;width:100%;font-size:11px;min-width:140px}.grow{flex:1}.priority{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:7px;font-weight:800;font-size:10px;background:#eef2f6;color:#5f6a78}.p1{background:#fee2e2;color:#b91c1c}.p2{background:#ffedd5;color:#c2410c}.p3{background:#fef3c7;color:#a16207}.p4,.p5{background:#ecfccb;color:#3f6212}.p6,.p7{background:#dcfce7;color:#166534}.status,.type,.role{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:99px;font-size:9px;font-weight:800}.status.completed{background:#e9f8f1;color:#0f7f5a}.status.pending{background:#fff3dc;color:#b46a00}.status.difference{background:#fff0f0;color:#bd1f1f}.status.surplus{background:#eef2ff;color:#4338ca}.type.pendiente{background:#f4f5f7;color:#687381}.type.cuadrado{background:#e9f8f1;color:#0f7f5a}.type.faltante{background:#fff0f0;color:#bd1f1f}.type.sobrante{background:#eef2ff;color:#4338ca}.role.admin{background:#ede9fe;color:#6d28d9}.role.auditor{background:#FFEDD5;color:#C2410C}.role.user{background:#e0f2fe;color:#0369a1}.physical-input,.obs-input{height:31px;border:1px solid #dce2ea;border-radius:8px;outline:none;background:#fff;padding:0 7px;font-size:10px}.physical-input:focus,.obs-input:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.obs-input{width:130px}.saving{opacity:.6}.count-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.field-inline{display:flex;flex-direction:column;gap:6px}.field-inline label,.field label{font-size:10px;color:#7a8698;font-weight:700}.field-inline select{height:38px;border:1px solid var(--border);border-radius:9px;padding:0 9px;background:#fff;min-width:150px;font-size:11px;outline:none}
.calendar-legend{display:flex;gap:14px;flex-wrap:wrap;padding:0 0 14px;color:#697688;font-size:10px}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.legend-dot.scheduled{background:#3b82f6}.legend-dot.completed{background:#0f9f6e}.legend-dot.pending{background:#d97706}.legend-dot.difference{background:#dc2626}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.calendar-dow{text-align:center;font-size:9px;color:#8c98a8;font-weight:800;text-transform:uppercase;padding:4px}.calendar-day{min-height:115px;border:1px solid #e8edf2;background:#fbfcfe;border-radius:11px;padding:7px;overflow:hidden}.calendar-day.muted{background:#f4f6f9}.calendar-date{display:flex;justify-content:space-between;font-size:10px;font-weight:800;margin-bottom:6px}.calendar-date span{font-size:8px;color:#7a8698}.calendar-events{display:flex;flex-direction:column;gap:4px}.event{display:flex;align-items:center;gap:5px;border-radius:7px;padding:5px 6px;font-size:8px;overflow:hidden}.event i{font-size:7px}.event span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event.scheduled{background:#edf3ff;color:#235cc8}.event.completed{background:#e7f8f0;color:#0f7f5a}.event.difference{background:#fff0f0;color:#bd1f1f}.more-events{font-size:8px;color:#7c8796;margin-top:2px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.file-drop{border:1.5px dashed #cbd5e1;background:#f8fafc;border-radius:14px;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:190px;cursor:pointer;position:relative}.file-drop:hover{border-color:#83a9ff;background:#f7faff}.file-drop i{font-size:28px;color:#2563eb;margin-bottom:10px}.file-drop span{font-size:12px;font-weight:800}.file-drop small{font-size:9px;color:#8a95a5;margin-top:5px}.file-drop strong{font-size:10px;color:#4b5a6e;margin-top:12px;word-break:break-all}.file-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-info{display:flex;gap:8px;align-items:flex-start;background:#eef5ff;color:#365d95;padding:10px 12px;border-radius:10px;font-size:10px;margin-top:14px}.progress-shell{margin-top:16px}.modal{position:fixed;inset:0;background:rgba(8,17,31,.52);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}.modal.show{display:flex}.modal-card{width:min(100%,520px);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.2);padding:20px}.modal-card.large{width:min(100%,760px)}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px}.modal-head h3{font-size:16px;margin:0}.modal-head p{font-size:10px;color:var(--muted);margin:5px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field input,.field select{height:40px;border:1px solid var(--border);border-radius:10px;padding:0 11px;outline:none}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.alert{padding:10px 12px;border-radius:10px;display:flex;gap:8px;align-items:flex-start;font-size:10px;margin-bottom:12px}.alert.error{background:#fff0f0;color:#b91c1c}.alert.success{background:#e9f8f1;color:#0f7f5a}.danger-panel{border-color:#fecaca}.admin-actions{display:flex;gap:8px}.toast-stack{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast{display:flex;gap:9px;align-items:center;background:#0f1f35;color:#fff;border-radius:11px;padding:11px 13px;box-shadow:0 12px 30px rgba(0,0,0,.18);font-size:11px;max-width:360px}.toast.error{background:#991b1b}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#eaf1ff 0,#f4f7fb 40%,#eef2f7 100%);padding:20px}.login-card{width:min(100%,410px);background:#fff;border:1px solid var(--border);border-radius:20px;padding:30px;box-shadow:0 18px 60px rgba(15,31,53,.1)}.login-logo{margin:0 auto 16px;width:52px;height:52px}.login-logo i{font-size:21px;color:#fff}.login-brand{text-align:center}.login-brand strong{display:block;font-size:19px}.login-brand span{display:block;color:var(--muted);font-size:10px;margin-top:5px}.login-form{margin-top:24px}.input-icon{height:42px;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;padding:0 11px;gap:9px}.input-icon i{font-size:12px;color:#91a0b2}.input-icon input{border:0;outline:0;width:100%;height:100%;font-size:12px}.login-help{display:flex;gap:7px;align-items:center;justify-content:center;color:#8894a5;font-size:9px;margin-top:15px;text-align:center}.login-help i{color:#2563eb}
@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.sidebar{transform:translateX(-105%);width:var(--sidebar)}.app-shell.mobile-open .sidebar{transform:translateX(0)}.main-content,.sidebar-collapsed .main-content{margin-left:0}.mobile-menu{display:grid;place-items:center}.topbar{padding:0 16px}.topbar-actions .btn span{display:none}.topbar-actions .btn{width:40px;padding:0}.view{padding:20px 14px 30px}.two-col{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.sidebar-toggle{display:none}.calendar-day{min-height:100px}}
@media(max-width:640px){.kpi-grid{grid-template-columns:1fr}.page-toolbar{align-items:flex-start;flex-direction:column}.upload-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.topbar h1{font-size:17px}.user-chip-text{display:none}.count-toolbar{align-items:stretch}.search-box.grow{width:100%}.calendar-grid{gap:4px}.calendar-day{min-height:88px;padding:5px}.event{padding:4px;font-size:7px}.event i{display:none}.calendar-dow{font-size:7px}.data-table th,.data-table td{padding:8px 8px}}

/* Resumen operativo y modales de detalle */
.summary-strip{margin-top:16px;display:grid;gap:14px}.summary-group{background:#f7f9fc;border:1px solid #e5eaf1;border-radius:14px;padding:14px}.summary-group h4{margin:0 0 12px;display:flex;align-items:center;gap:8px;font-size:13px;color:#26344a}.summary-group h4 small{font-size:11px;font-weight:500;color:#7c8797}.summary-grid{display:grid;grid-template-columns:repeat(13,minmax(58px,1fr));gap:7px;overflow:auto}.summary-grid>div{background:#fff;border:1px solid #e7ebf1;border-radius:10px;padding:8px 7px;text-align:center;min-width:58px}.summary-grid i{display:block;font-size:11px;color:#64748b;margin-bottom:5px}.summary-grid span{display:block;font-size:10px;color:#7b8798}.summary-grid strong{display:block;margin-top:3px;font-size:14px;color:#172033}.summary-metrics{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}.summary-metrics>div{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:16px}.summary-metrics span{display:block;font-size:12px;color:#64748b}.summary-metrics strong{display:block;font-size:24px;margin-top:4px;color:#10233d}.summary-metrics small{color:#8792a2;font-size:11px}.warehouse-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:420px;overflow:auto}.warehouse-check{display:flex;gap:10px;align-items:flex-start;border:1px solid #e4e9f0;border-radius:12px;padding:11px;background:#fafbfd;cursor:pointer}.warehouse-check input{margin-top:3px}.warehouse-check strong,.warehouse-check small{display:block}.warehouse-check small{font-size:11px;color:#7b8798;margin-top:3px}.calendar-day{border:0;background:#fff;width:100%;text-align:left;cursor:pointer}.calendar-day.has-events:hover{box-shadow:0 0 0 2px rgba(37,99,235,.12) inset}.calendar-day-list{display:grid;gap:9px;max-height:60vh;overflow:auto}.calendar-detail-card{display:grid;grid-template-columns:40px 1fr auto;gap:11px;align-items:center;border:1px solid #e5eaf1;border-radius:14px;padding:12px;background:rgba(255,255,255,.96)}.calendar-detail-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#eef4ff;color:#2563eb}.calendar-detail-card strong,.calendar-detail-card span,.calendar-detail-card small{display:block}.calendar-detail-card span{font-size:12px;color:#34445a;margin-top:2px}.calendar-detail-card small{font-size:11px;color:#7b8798;margin-top:4px}.modal.show{backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);background:rgba(15,23,42,.42)}.modal-card.large{max-width:960px}.table-panel{overflow:hidden}
@media(max-width:1000px){.summary-grid{grid-template-columns:repeat(6,minmax(70px,1fr))}.summary-metrics{grid-template-columns:1fr}.warehouse-check-grid{grid-template-columns:1fr}}

.count-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid #e8edf2;background:#fbfcfe}.count-info{display:flex;align-items:center;gap:8px;color:#64748b;font-size:10px}.count-info i{color:#2563eb}.count-pager{display:flex;align-items:center;gap:10px;color:#526173;font-size:10px;font-weight:800}.count-pager .icon-btn:disabled{opacity:.35;cursor:not-allowed}.summary-table-wrap{margin-top:16px;overflow:auto;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.summary-table{width:100%;min-width:1050px;border-collapse:separate;border-spacing:0}.summary-table th,.summary-table td{padding:12px 10px;border-right:1px solid #eef2f6;border-bottom:1px solid #eef2f6;text-align:center;font-size:10px}.summary-table thead th{background:#f5f7fb;color:#5f6d80;font-weight:800}.summary-table tbody th{background:#fafbfd;text-align:left;color:#364458;position:sticky;left:0;z-index:1}.summary-table tbody td{color:#34445a}.summary-table tbody tr:first-child td{font-weight:800;color:#173b70}.summary-table .metric-cell{font-size:16px;font-weight:900;color:#10233d!important}.summary-table .metric-cell small{display:block;font-size:9px;font-weight:600;color:#8390a1;margin-top:3px}.summary-table i{margin-right:6px;color:#2563eb}.calendar-detail-card{background:linear-gradient(135deg,#f8fbff,#ffffff);border:1px solid #dce6f2;box-shadow:0 8px 24px rgba(31,55,85,.07)}.calendar-detail-card strong{font-size:12px;color:#14243b}.calendar-detail-card span{font-size:11px;color:#43556d}.calendar-detail-card small{font-size:10px;color:#7a8798}.calendar-day-list{padding:2px}.calendar-day-list .empty-cell{padding:30px;text-align:center;background:#f8fafc;border:1px dashed #d7e0ea;border-radius:12px;color:#8592a3}.modal-card.large{max-height:86vh}.modal-card.large .modal-head{position:sticky;top:0;background:#fff;z-index:2;padding-bottom:10px;border-bottom:1px solid #edf1f5}
@media(max-width:700px){.count-footer{align-items:flex-start;flex-direction:column}.count-pager{align-self:flex-end}.summary-table-wrap{margin-left:-2px;margin-right:-2px}}

/* Resumen, calendario y experiencia de uso */
body.modal-open{overflow:hidden}
.summary-section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 4px 10px}
.summary-kicker{display:block;font-size:9px;font-weight:800;letter-spacing:.12em;color:#7a8799;margin-bottom:4px}
.summary-section-title h3{margin:0;font-size:14px;color:#1d2c42;display:flex;align-items:center;gap:8px}
.summary-section-title h3 i{color:#2563eb}
.summary-total-badge{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dce6f2;border-radius:999px;background:#f8fbff;color:#45617f;font-size:10px;font-weight:800}
.summary-total-badge i{color:#2563eb}
.summary-table-main{margin-top:0}
.summary-table-main .row-month-count th,.summary-table-main .row-day-count th,.summary-table-main .row-month-turns th{white-space:nowrap}
.summary-table-main .row-month-count td{background:#f8fbff}
.summary-table-main .row-day-count td{background:#fbfcfe}
.summary-table-main .row-month-turns td{background:#f7fbf8}
.summary-table-main .row-month-turns td,.summary-table-main .row-month-turns td.summary-total{color:#16724f}
.summary-table-main .summary-total{background:#f5f7fb!important;font-weight:900}
.summary-metrics-table{margin-top:12px}
.summary-metrics-table table{min-width:420px}
.summary-metrics-table .big-result{font-size:18px;font-weight:900;color:#10233d;text-align:center;background:linear-gradient(90deg,#f8fbff,#fff)}
.summary-metrics-table th:first-child{width:68%}
.summary-metrics-table th,.summary-metrics-table td{padding:14px 12px}

.calendar-day-list{display:grid;gap:14px;max-height:70vh;overflow:auto;padding:2px 4px 6px}
.calendar-group{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;overflow:hidden}
.calendar-group-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;background:linear-gradient(135deg,#eef4ff,#f9fbff);border-bottom:1px solid #e0e7f0}
.calendar-group-code{display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:900;color:#2563eb;letter-spacing:.03em}
.calendar-group-head h4{margin:4px 0 0;font-size:12px;color:#17263c}
.calendar-group-count{white-space:nowrap;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #dce6f2;font-size:9px;font-weight:800;color:#5f7086}
.calendar-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px}
.calendar-detail-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #e0e7ef;border-radius:13px;padding:10px;background:#fff;box-shadow:0 5px 18px rgba(30,52,78,.05)}
.calendar-detail-main{min-width:0}
.calendar-detail-main strong{display:block;font-size:11px;color:#14243b}
.calendar-detail-main span{display:block;font-size:10px;color:#41536b;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-detail-main small{display:block;font-size:9px;color:#7a8798;margin-top:5px}
.calendar-detail-main small i{color:#7b8ca1}
.calendar-detail-status{align-self:center;display:flex;align-items:center;justify-content:center;min-height:40px}
@media(max-width:760px){.calendar-group-grid{grid-template-columns:1fr}.summary-section-title{align-items:flex-start;flex-direction:column}.summary-total-badge{align-self:flex-start}.modal{padding:10px}.modal-card.large{width:min(100%,980px);max-height:92vh;border-radius:16px}}

/* Captura de conteo */
.read-only-table td,.read-only-table th{white-space:nowrap}
.count-entry-table{min-width:980px}
.count-entry-table th,.count-entry-table td{vertical-align:middle}
.count-entry-table .physical-input{width:120px;height:34px;border:1px solid #cfd9e5;border-radius:9px;padding:0 9px;font-size:12px;outline:none;background:#fff}
.count-entry-table .physical-input:focus,.count-entry-table .obs-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.count-entry-table .obs-input{width:190px;height:34px;border:1px solid #cfd9e5;border-radius:9px;padding:0 9px;font-size:11px;outline:none;background:#fff}
.entry-desc span{display:block;max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.entry-desc small{display:block;color:#7a8798;font-size:9px;margin-top:3px}
.read-only-table .status,.read-only-table .type{font-size:9px}
.schedule-mini{display:block;margin-top:3px;font-size:8px;color:#7b8798;font-weight:700;white-space:nowrap}.schedule-mini i{color:#2563eb;margin-right:3px}
#warehouseTable td:nth-child(n+5){font-variant-numeric:tabular-nums}.summary-table-main td,.summary-metrics-table td{font-variant-numeric:tabular-nums}

/* V35: estado perfectamente centrado dentro del ovalo del detalle del calendario */
.calendar-detail-status{align-self:stretch;min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0;}
.calendar-detail-status .status{height:30px;min-height:30px;line-height:30px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;padding:0 11px;margin:0;text-align:center;}
@media(max-width:760px){.calendar-detail-status{min-height:40px}.calendar-detail-status .status{height:30px;min-height:30px;line-height:30px;}}

/* Dashboard ejecutivo */
.dashboard-page-toolbar{align-items:center;margin-bottom:12px}.dashboard-mode-wrap{display:flex;align-items:center;gap:8px}.dashboard-mode{display:flex;align-items:center;padding:3px;background:#eef2f7;border:1px solid #dfe5ed;border-radius:12px;gap:2px}.dashboard-mode-btn{border:0;background:transparent;color:#718096;height:34px;padding:0 13px;border-radius:9px;font-size:10px;font-weight:800;display:flex;align-items:center;gap:7px}.dashboard-mode-btn i{font-size:10px}.dashboard-mode-btn.active{background:#fff;color:#15386e;box-shadow:0 2px 8px rgba(18,43,78,.10)}
.dashboard-filterbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:15px;position:relative;z-index:20}.dashboard-clear-btn,.dashboard-filter-btn{height:36px;border:1px solid #dce3eb;background:#fff;color:#46556a;border-radius:10px;display:flex;align-items:center;gap:7px;padding:0 10px;font-size:10px;box-shadow:0 2px 8px rgba(24,42,68,.035)}.dashboard-clear-btn{color:#5e6b7d;font-weight:700}.dashboard-clear-btn:hover,.dashboard-filter-btn:hover{border-color:#bdcad8;background:#fbfdff}.dashboard-filter{position:relative}.dashboard-filter-btn strong{font-weight:800;color:#1d3557;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-filter-btn .chevron{font-size:8px;color:#96a1b0;margin-left:2px}.dashboard-filter.open .dashboard-filter-btn{border-color:#94b1dc;box-shadow:0 0 0 3px rgba(37,99,235,.07)}.dashboard-filter-popover{display:none;position:absolute;top:42px;left:0;width:280px;max-height:340px;overflow:auto;background:#fff;border:1px solid #dbe3ed;border-radius:13px;box-shadow:0 18px 40px rgba(25,44,69,.16);padding:8px;z-index:50}.dashboard-filter.open .dashboard-filter-popover{display:block}.dashboard-filter-popover.single{width:200px}.dashboard-option{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;font-size:10px;color:#435269;cursor:pointer}.dashboard-option:hover{background:#f4f7fb}.dashboard-option input{accent-color:#173b73;width:14px;height:14px;flex:0 0 auto}.dashboard-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.dashboard-kpi{background:#fff;border:1px solid #dfe5ed;box-shadow:0 8px 22px rgba(22,43,70,.08);border-radius:7px;padding:10px 12px;min-height:86px;display:flex;flex-direction:column;justify-content:space-between}.dashboard-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#1a1f28}.dashboard-kpi-head span{font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-kpi-head i{font-size:13px;color:#6d7785}.dashboard-kpi strong{display:block;text-align:right;color:#000;font-size:33px;line-height:.95;letter-spacing:-.04em;font-weight:900;font-variant-numeric:tabular-nums}.dashboard-kpi:nth-child(2) strong{color:#111}.dashboard-chart-grid{display:grid;gap:10px;margin-bottom:10px}.dashboard-chart-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-chart-card{padding:12px 13px;margin-bottom:0;border-radius:3px;box-shadow:0 5px 18px rgba(27,46,70,.07)}.dashboard-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.dashboard-chart-head h3{margin:0;font-size:11px;font-weight:900;letter-spacing:.01em}.dashboard-chart-head span{display:block;color:#8b95a4;font-size:8px;margin-top:3px}.dashboard-chart-head>i{font-size:12px;color:#677386}.dashboard-chart-box{height:205px;position:relative}.dashboard-chart-box.tall{height:255px}.dashboard-top5-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dashboard-top5{padding:12px 13px;margin-bottom:0;border-radius:3px}.dashboard-top5 .data-table{min-width:0}.dashboard-top5 .data-table th,.dashboard-top5 .data-table td{padding:8px 7px;font-size:9px}.dashboard-top5 .data-table th{font-size:8px}.dashboard-top5 .desc-cell{max-width:0;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-top5 .num{white-space:nowrap}
@media(max-width:1200px){.dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-chart-grid-3{grid-template-columns:1fr 1fr}.dashboard-filterbar{gap:7px}}@media(max-width:900px){.dashboard-page-toolbar{align-items:flex-start;flex-direction:column}.dashboard-mode-wrap{width:100%;justify-content:space-between}.dashboard-chart-grid-3{grid-template-columns:1fr}.dashboard-top5-grid{grid-template-columns:1fr}.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-filter-popover{max-width:min(280px,calc(100vw - 36px))}}@media(max-width:640px){.dashboard-kpi-grid{grid-template-columns:1fr 1fr;gap:7px}.dashboard-kpi{min-height:82px;padding:9px}.dashboard-kpi strong{font-size:21px}.dashboard-mode-btn{padding:0 10px}.dashboard-clear-btn span{display:none}.dashboard-filter-btn{max-width:100%}.dashboard-filter-btn strong{max-width:105px}.dashboard-filterbar{overflow:visible}.dashboard-chart-box{height:195px}.dashboard-chart-box.tall{height:240px}}


/* Dashboard KPI refinado */
.dashboard-page-toolbar{margin-bottom:14px}
.dashboard-page-toolbar h2{font-size:18px;letter-spacing:-.01em}
.dashboard-page-toolbar p{font-size:9px;margin-top:4px}
.dashboard-mode-wrap{gap:9px}
.dashboard-mode{padding:3px;border-radius:999px;background:linear-gradient(180deg,#f4f7fb,#eaf0f7);border:1px solid #dde5ee;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.dashboard-mode-btn{height:32px;padding:0 14px;border-radius:999px;font-size:9px;gap:6px}
.dashboard-mode-btn.active{background:#fff;box-shadow:0 4px 12px rgba(18,43,78,.10)}
.dashboard-filterbar{gap:7px;margin-bottom:14px;align-items:center}
.dashboard-clear-btn,.dashboard-filter-btn{height:34px;border-radius:999px;padding:0 11px;font-size:9px;box-shadow:0 4px 12px rgba(24,42,68,.05)}
.dashboard-clear-btn{font-weight:800;color:#5e6b7d}
.dashboard-filter-btn strong{font-size:9px;max-width:145px}
.dashboard-filter-btn .chevron{font-size:7px}
.dashboard-filter-btn i:first-child,.dashboard-clear-btn i{font-size:9px;color:#3d5576}
.dashboard-filter.open .dashboard-filter-btn{box-shadow:0 0 0 3px rgba(37,99,235,.06),0 5px 14px rgba(24,42,68,.06)}
.dashboard-filter-popover{top:40px;border-radius:16px;box-shadow:0 20px 45px rgba(25,44,69,.15)}
.dashboard-option{font-size:9px;border-radius:10px;padding:8px 9px}

.dashboard-kpi-grid{gap:9px;margin-bottom:13px}
.dashboard-kpi{min-height:82px;padding:9px 11px;border-radius:16px;border:1px solid #e1e7ef;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 8px 22px rgba(22,43,70,.075)}
.dashboard-kpi-head span{font-size:9px;font-weight:800;color:#26364a}
.dashboard-kpi-head i{font-size:11px;color:#7a8796}
.dashboard-kpi strong{font-size:14px;line-height:1;letter-spacing:-.03em}

.dashboard-chart-grid{gap:11px;margin-bottom:11px}
.dashboard-chart-card{padding:12px 13px;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);box-shadow:0 8px 22px rgba(27,46,70,.065);border:1px solid #e3e9f0}
.dashboard-chart-head{margin-bottom:7px}
.dashboard-chart-head h3{font-size:10px;font-weight:900;letter-spacing:.02em}
.dashboard-chart-head span{font-size:7.5px;color:#8994a3;margin-top:2px}
.dashboard-chart-head>i{font-size:11px;color:#718094}
.dashboard-chart-box{height:205px;position:relative}
.dashboard-chart-box.tall{height:245px;position:relative}
.dashboard-top5{padding:12px 13px;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#f9fbfe 100%);border:1px solid #e3e9f0;box-shadow:0 7px 20px rgba(27,46,70,.065)}
.dashboard-top5 .data-table th,.dashboard-top5 .data-table td{padding:7px 7px;font-size:8.5px}
.dashboard-top5 .data-table th{font-size:7.5px}

@media(max-width:640px){
  .dashboard-kpi{min-height:78px;padding:8px;border-radius:14px}
  .dashboard-kpi-head span{font-size:8px}
  .dashboard-kpi strong{font-size:19px}
  .dashboard-mode-btn{padding:0 11px}
  .dashboard-filter-btn{height:32px;padding:0 9px}
  .dashboard-filter-btn strong{max-width:96px}
  .dashboard-chart-card,.dashboard-top5{border-radius:14px}
}


/* ===== V55: gráficos KPI ocupan más área visual y etiquetas de grupo compactas ===== */
.dashboard-chart-card{
  min-height:390px;
}
.dashboard-chart-box{
  min-height:320px;
  height:320px;
  flex:1 1 auto;
}
.dashboard-chart-box.tall{
  min-height:360px;
  height:360px;
}
.dashboard-chart-box canvas{
  width:100% !important;
  height:100% !important;
}
@media(max-width:1200px){
  .dashboard-chart-card{min-height:370px}
  .dashboard-chart-box{min-height:300px;height:300px}
  .dashboard-chart-box.tall{min-height:335px;height:335px}
}
@media(max-width:900px){
  .dashboard-chart-card{min-height:350px}
  .dashboard-chart-box{min-height:285px;height:285px}
  .dashboard-chart-box.tall{min-height:320px;height:320px}
}
@media(max-width:640px){
  .dashboard-chart-card{min-height:320px}
  .dashboard-chart-box{min-height:260px;height:260px}
  .dashboard-chart-box.tall{min-height:290px;height:290px}
}

/* Canvas responsive de los gráficos */
.dashboard-chart-box canvas{
  display:block;
  width:100% !important;
  height:100% !important;
}
/* Filtros y tooltips del dashboard */
.dashboard-filterbar{
  display:block;
  margin-bottom:14px;
  position:relative;
  z-index:20;
}
.dashboard-slicer-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.dashboard-slicer-title{
  display:flex;
  align-items:center;
  gap:7px;
  color:#25364b;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
}
.dashboard-slicer-title i{color:#3d5576;font-size:10px}
.dashboard-slicer{
  background:#fff;
  border:1px solid #e0e7ef;
  border-radius:12px;
  padding:8px 9px 9px;
  margin-bottom:7px;
  box-shadow:0 3px 12px rgba(24,42,68,.035);
}
.dashboard-slicer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:7px;
}
.dashboard-slicer-head>div{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-slicer-head i{font-size:9px;color:#6e7f95}
.dashboard-slicer-head strong{font-size:9px;color:#26384d;font-weight:900}
.dashboard-slicer-head>span{font-size:7.5px;color:#8995a4;white-space:nowrap}
.dashboard-slicer-options{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  max-height:112px;
  overflow:auto;
  padding:1px;
  scrollbar-width:thin;
}
.dashboard-slicer-option{
  appearance:none;
  border:1px solid #dbe3ec;
  background:#f8fafc;
  color:#4b5b70;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  font:700 8px/1.1 Inter,Arial,sans-serif;
  cursor:pointer;
  transition:border-color .12s ease,background .12s ease,color .12s ease,box-shadow .12s ease,transform .12s ease;
  max-width:100%;
}
.dashboard-slicer-option span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.dashboard-slicer-option:hover{border-color:#9bb0ca;background:#f2f6fa;color:#243b5a}
.dashboard-slicer-option.active{
  border-color:#315b91;
  background:#173d73;
  color:#fff;
  box-shadow:0 3px 10px rgba(23,61,115,.15);
}
.dashboard-slicer-option.active:hover{background:#173d73;color:#fff}
.dashboard-clear-btn{
  flex:0 0 auto;
  border:1px solid #d9e1ea;
  background:#fff;
  color:#536174;
  height:30px;
  border-radius:999px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:6px;
  font:800 8px/1 Inter,Arial,sans-serif;
  cursor:pointer;
}
.dashboard-clear-btn:hover{border-color:#aebdd0;background:#f8fafc}
.dashboard-chart-box{overflow:visible}
.dashboard-chart-box canvas{touch-action:manipulation}
.dashboard-chart-tooltip{
  position:absolute;
  z-index:100;
  min-width:125px;
  max-width:240px;
  padding:7px 9px;
  border:1px solid rgba(218,227,237,.95);
  border-radius:9px;
  background:rgba(255,255,255,.98);
  box-shadow:0 10px 28px rgba(25,44,69,.16);
  pointer-events:none;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .08s ease,transform .08s ease;
}
.dashboard-chart-tooltip.show{opacity:1;transform:translateY(0)}
.dashboard-chart-tooltip strong{
  display:block;
  color:#20334b;
  font:900 8.5px/1.2 Inter,Arial,sans-serif;
  white-space:normal;
}
.dashboard-chart-tooltip span{
  display:block;
  margin-top:3px;
  color:#66758a;
  font:700 8px/1.25 Inter,Arial,sans-serif;
  white-space:normal;
}
@media(max-width:640px){
  .dashboard-slicer{padding:7px}
  .dashboard-slicer-options{max-height:132px;gap:4px}
  .dashboard-slicer-option{min-height:27px;padding:5px 8px;font-size:7.5px}
  .dashboard-slicer-option span{max-width:205px}
  .dashboard-slicer-head>span{font-size:7px}
  .dashboard-slicer-toolbar{align-items:flex-start}
  .dashboard-slicer-title{font-size:9px}
}


/* Sidebar y gráficos del dashboard */
#view-dashboard{position:relative}
.dashboard-filter-shell{
  position:relative;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  min-height:38px;
  margin-bottom:10px;
  z-index:80;
}
.dashboard-filter-toggle{
  height:34px;
  border:1px solid #d6e0eb;
  border-radius:999px;
  background:#fff;
  color:#243a57;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 13px;
  font:800 9px/1 Inter,Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(24,42,68,.07);
  transition:.15s ease;
}
.dashboard-filter-toggle:hover{border-color:#9db3cf;background:#f9fbfe}
.dashboard-filter-count{
  display:inline-grid;
  place-items:center;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:999px;
  background:#173d73;
  color:#fff;
  font-size:7px;
}
.dashboard-filter-count:empty{display:none}
.dashboard-filter-sidebar{
  position:absolute;
  top:43px;
  right:0;
  width:350px;
  max-width:calc(100vw - 42px);
  max-height:min(78vh,720px);
  overflow:auto;
  padding:14px;
  border:1px solid #dbe4ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 22px 55px rgba(24,42,68,.18);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.dashboard-filter-shell.open .dashboard-filter-sidebar{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.dashboard-filter-sidebar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:11px;
  border-bottom:1px solid #edf1f5;
  margin-bottom:11px;
}
.dashboard-filter-sidebar-head>div{min-width:0}
.dashboard-filter-sidebar-head strong{display:block;font-size:12px;color:#20344e;font-weight:900}
.dashboard-filter-sidebar-head span{display:block;margin-top:3px;color:#8995a4;font-size:8px}
.dashboard-filter-close{
  flex:0 0 auto;
  width:29px;
  height:29px;
  border:1px solid #dde5ee;
  border-radius:9px;
  background:#fff;
  color:#657487;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.dashboard-filter-close:hover{background:#f5f8fb;color:#213a5a}
.dashboard-filter-primary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-bottom:8px;
}
.dashboard-filter-secondary{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
}
.dashboard-slicer{
  margin-bottom:0;
  padding:8px;
  border-radius:12px;
}
.dashboard-slicer-head{margin-bottom:6px}
.dashboard-slicer-options{max-height:128px}
.dashboard-filter-sidebar-foot{
  display:flex;
  justify-content:flex-end;
  padding-top:10px;
  margin-top:10px;
  border-top:1px solid #edf1f5;
}
.dashboard-filter-overlay{display:none}

/* Compresión vertical de los gráficos sin alterar su funcionalidad. */
.dashboard-chart-card{
  min-height:260px !important;
}
.dashboard-chart-box{
  min-height:175px !important;
  height:175px !important;
}
.dashboard-chart-box.tall{
  min-height:205px !important;
  height:205px !important;
}
.dashboard-chart-head{margin-bottom:5px}

/* Etiquetas de datos permanentes, visibles aun sin hover. */
.dashboard-chart-box canvas{overflow:visible}

@media(max-width:900px){
  .dashboard-filter-primary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  .dashboard-filter-shell{min-height:35px}
  .dashboard-filter-sidebar{
    top:41px;
    right:0;
    width:min(350px,calc(100vw - 24px));
    max-width:calc(100vw - 24px);
    max-height:82vh;
  }
  .dashboard-filter-primary{grid-template-columns:1fr;gap:6px}
  .dashboard-slicer-options{max-height:112px}
  .dashboard-filter-toggle{height:32px;padding:0 11px}
  .dashboard-chart-card{min-height:235px !important}
  .dashboard-chart-box{min-height:160px !important;height:160px !important}
  .dashboard-chart-box.tall{min-height:185px !important;height:185px !important}
  .dashboard-filter-overlay{
    position:fixed;
    inset:0;
    display:block;
    background:rgba(18,31,48,.18);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .16s ease,visibility .16s ease;
    z-index:-1;
  }
  .dashboard-filter-shell.open .dashboard-filter-overlay{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    z-index:-1;
  }
}

/* Filtros laterales del dashboard */
.dashboard-filter-shell{
  justify-content:flex-start !important;
  align-items:flex-start !important;
  margin-bottom:12px !important;
}
.dashboard-filter-toggle{
  border-radius:10px !important;
  min-width:118px;
  justify-content:center;
  height:38px !important;
  padding:0 14px !important;
  font-size:9.5px !important;
  letter-spacing:.02em;
  box-shadow:0 5px 14px rgba(24,42,68,.06) !important;
}
.dashboard-filter-sidebar{
  left:0 !important;
  right:auto !important;
  top:46px !important;
  width:365px !important;
  max-width:min(365px,calc(100vw - 24px)) !important;
  max-height:min(78vh,740px) !important;
  border-radius:14px !important;
  padding:0 !important;
  overflow:auto;
}
.dashboard-filter-sidebar-head{
  padding:14px 14px 11px !important;
  margin-bottom:0 !important;
  background:#fafbfc;
  position:sticky;
  top:0;
  z-index:2;
}
.dashboard-filter-sidebar-head strong{
  font-size:13px !important;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.dashboard-filter-primary,
.dashboard-filter-secondary{
  padding:12px 14px 0;
}
.dashboard-filter-primary{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.dashboard-filter-secondary{padding-top:8px}
.dashboard-slicer{
  border:1px solid #edf0f4;
  background:#fafafa;
  border-radius:9px !important;
}
.dashboard-slicer-head strong{font-size:8.5px !important}
.dashboard-slicer-option{
  border-color:#e8ebef !important;
  background:#fff !important;
  justify-content:flex-start !important;
}
.dashboard-slicer-option.active{
  background:#173d73 !important;
  color:#fff !important;
  border-color:#173d73 !important;
}
.dashboard-filter-sidebar-foot{
  position:sticky;
  bottom:0;
  background:#fff;
  padding:10px 14px 14px !important;
}
.dashboard-clear-btn{
  width:100%;
  justify-content:center;
  height:38px !important;
  border-radius:9px !important;
}
@media(max-width:640px){
  .dashboard-filter-toggle{min-width:108px;height:35px !important}
  .dashboard-filter-sidebar{
    left:0 !important;
    right:auto !important;
    top:41px !important;
    width:min(365px,calc(100vw - 18px)) !important;
    max-width:calc(100vw - 18px) !important;
    max-height:84vh !important;
  }
  .dashboard-filter-primary{grid-template-columns:1fr !important}
}


/* Sidebar interno del dashboard */
#view-dashboard{position:relative}
.dashboard-content-layout{
  display:grid;
  grid-template-columns:282px minmax(0,1fr);
  gap:16px;
  align-items:start;
  transition:grid-template-columns .18s ease;
}
.dashboard-content-layout.filters-collapsed{grid-template-columns:50px minmax(0,1fr)}
.dashboard-filter-column{min-width:0;position:sticky;top:12px;align-self:start;z-index:40}
.dashboard-main-column{min-width:0}
.dashboard-filter-shell{
  display:block !important;
  position:relative !important;
  margin:0 !important;
  min-height:0 !important;
  width:100% !important;
}
.dashboard-filter-rail-head{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 10px 0 12px;
  background:#fff;
  border:1px solid #e4e9ef;
  border-radius:10px;
  box-shadow:0 4px 14px rgba(24,42,68,.055);
  margin-bottom:8px;
}
.dashboard-filter-title{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-filter-title i{font-size:11px;color:#697786}
.dashboard-filter-title strong{font-size:10px;color:#4f5d6c;letter-spacing:.04em}
.dashboard-filter-count{font-size:7px;color:#8c98a5;font-weight:900}
.dashboard-filter-rail-toggle{
  width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center;
  border:1px solid #dfe5eb;border-radius:8px;background:#fff;color:#657383;cursor:pointer;
}
.dashboard-filter-rail-toggle:hover{background:#f4f7fa;color:#263a53}
.dashboard-filter-sidebar{
  position:static !important;
  width:100% !important;
  max-width:none !important;
  max-height:none !important;
  overflow:visible !important;
  padding:0 !important;
  border:1px solid #e4e9ef !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 7px 22px rgba(24,42,68,.06) !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}
.dashboard-filter-sidebar-head{
  display:block !important;
  padding:17px 14px 12px !important;
  margin:0 !important;
  border-bottom:1px solid #edf0f3;
  background:#fafafa;
}
.dashboard-filter-sidebar-head strong{display:block;font-size:13px !important;color:#495b6e !important;font-weight:900;letter-spacing:.02em}
.dashboard-filter-sidebar-head span{display:block;margin-top:4px;color:#97a2af !important;font-size:8px !important}
.dashboard-filter-primary,.dashboard-filter-secondary{display:block !important;padding:0 10px !important;margin:0 !important}
.dashboard-filter-secondary{padding-top:0 !important}
.dashboard-slicer{
  margin:10px 0 !important;
  padding:10px 9px 9px !important;
  border:1px solid #eef1f4 !important;
  border-radius:10px !important;
  background:#fafafa !important;
  box-shadow:none !important;
}
.dashboard-slicer-head{margin-bottom:8px !important}
.dashboard-slicer-head strong{font-size:10px !important;color:#4f6072 !important}
.dashboard-slicer-head>span{font-size:7.5px !important;color:#98a2ad !important}
.dashboard-slicer-options{display:flex !important;flex-direction:column !important;flex-wrap:nowrap !important;gap:4px !important;max-height:none !important;overflow:visible !important;padding:0 !important}
.dashboard-slicer-option{
  width:100% !important;min-height:31px !important;padding:6px 8px !important;
  display:flex !important;align-items:center !important;justify-content:space-between !important;
  gap:7px !important;border:1px solid #e1e5e9 !important;border-radius:8px !important;
  background:#fff !important;color:#536172 !important;font-size:8.5px !important;font-weight:700 !important;text-align:left !important;
}
.dashboard-slicer-option:before{content:'›';font-size:14px;font-weight:900;line-height:1;color:#8c97a3;flex:0 0 auto}
.dashboard-slicer-option span{flex:1;max-width:none !important;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-slicer-option.active{background:#efeaf4 !important;color:#4f4162 !important;border-color:#b8a9c5 !important;box-shadow:inset 3px 0 0 #76528a !important}
.dashboard-slicer-option.active:before{color:#76528a}
.dashboard-filter-sidebar-foot{position:static !important;padding:10px !important;margin-top:2px !important;border-top:1px solid #edf0f3;background:#fff;border-radius:0 0 12px 12px}
.dashboard-clear-btn{width:100% !important;height:36px !important;justify-content:center !important;border-radius:8px !important}
.dashboard-chart-card{min-height:240px !important}
.dashboard-chart-box{min-height:165px !important;height:165px !important;overflow:visible !important}
.dashboard-chart-box.tall{min-height:195px !important;height:195px !important}
.dashboard-chart-box canvas{overflow:visible !important}
.dashboard-filter-shell:not(.open) .dashboard-filter-sidebar{display:none !important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-head{padding-left:8px;padding-right:8px}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title strong,
.dashboard-content-layout.filters-collapsed .dashboard-filter-count{display:none}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title{justify-content:center}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-head{justify-content:center}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-toggle{margin:auto}

@media(max-width:900px){
  .dashboard-content-layout{grid-template-columns:1fr}
  .dashboard-content-layout.filters-collapsed{grid-template-columns:1fr}
  .dashboard-filter-column{position:relative;top:auto}
  .dashboard-filter-shell:not(.open) .dashboard-filter-rail-head{width:116px}
  .dashboard-filter-sidebar{max-height:58vh !important;overflow:auto !important}
}
@media(max-width:640px){
  .dashboard-chart-box{min-height:155px !important;height:155px !important}
  .dashboard-chart-box.tall{min-height:180px !important;height:180px !important}
  .dashboard-filter-rail-head{height:42px}
  .dashboard-filter-sidebar-head{padding:14px 12px 10px !important}
}


/* Compatibilidad del sidebar interno */
#view-dashboard{overflow:visible!important}
#dashboardContentLayout.dashboard-content-layout{
  display:grid!important;
  grid-template-columns:minmax(225px,305px) minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
}
#dashboardContentLayout.dashboard-content-layout.filters-collapsed{
  grid-template-columns:44px minmax(0,1fr)!important;
}
.dashboard-filter-column{
  width:100%!important;
  min-width:0!important;
  position:relative!important;
  top:auto!important;
  align-self:start!important;
  z-index:1!important;
}
.dashboard-filter-shell{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  display:block!important;
  min-height:0!important;
}
.dashboard-filter-rail-head{
  width:100%!important;
  height:42px!important;
  margin:0 0 8px!important;
  padding:0 10px!important;
  box-sizing:border-box!important;
  border:1px solid #dfe5ec!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(24,42,68,.05)!important;
}
.dashboard-filter-title strong{font-size:11px!important;letter-spacing:.03em!important;color:#43536a!important}
.dashboard-filter-title i{font-size:12px!important;color:#65768b!important}
.dashboard-filter-rail-toggle{
  width:28px!important;height:28px!important;
  border:1px solid #dfe5ec!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.dashboard-filter-sidebar{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  max-width:none!important;
  max-height:500px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  padding:0!important;
  border:1px solid #e0e6ed!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(24,42,68,.06)!important;
}
.dashboard-filter-shell:not(.open) .dashboard-filter-sidebar{display:none!important}
.dashboard-filter-sidebar-head{
  position:static!important;
  padding:15px 14px 11px!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fafbfc!important;
}
.dashboard-filter-sidebar-head strong{font-size:13px!important;color:#4a5b70!important;font-weight:900!important}
.dashboard-filter-sidebar-head span{font-size:8px!important;margin-top:3px!important;color:#919ca9!important}
.dashboard-filter-primary,.dashboard-filter-secondary{
  display:block!important;
  padding:0 10px!important;
  margin:0!important;
}
.dashboard-filter-secondary{padding-top:0!important}
.dashboard-slicer{
  margin:10px 0!important;
  padding:10px!important;
  border:1px solid #edf1f4!important;
  border-radius:9px!important;
  background:#fbfbfc!important;
}
.dashboard-slicer-head{margin-bottom:7px!important}
.dashboard-slicer-head strong{font-size:10px!important;color:#4b5b6f!important}
.dashboard-slicer-head>span{font-size:7.5px!important;color:#9aa4b0!important}
.dashboard-slicer-options{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  max-height:none!important;
  overflow:visible!important;
}
.dashboard-slicer-option{
  width:100%!important;
  min-height:30px!important;
  padding:5px 7px!important;
  border:1px solid #e4e8ed!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#536274!important;
  font-size:8.5px!important;
  justify-content:flex-start!important;
  box-shadow:none!important;
}
.dashboard-slicer-option:before{content:'›'!important;font-size:14px!important;line-height:1!important;color:#93a0ae!important;flex:0 0 8px!important}
.dashboard-slicer-option span{display:block!important;flex:1!important;min-width:0!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.dashboard-slicer-option.active{background:#f0ebf5!important;color:#4d3f60!important;border-color:#b6a6c3!important;box-shadow:inset 3px 0 0 #78568e!important}
.dashboard-slicer-option.active:before{color:#78568e!important}
.dashboard-filter-sidebar-foot{position:static!important;padding:10px!important;margin-top:2px!important;border-top:1px solid #edf1f5!important;background:#fff!important}
.dashboard-clear-btn{height:35px!important;border-radius:8px!important;width:100%!important;justify-content:center!important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-head{
  width:44px!important;
  margin:0!important;
  padding:0!important;
  justify-content:center!important;
}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title strong,
.dashboard-content-layout.filters-collapsed .dashboard-filter-count{display:none!important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title{justify-content:center!important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-toggle{margin:0!important}

@media(max-width:1200px){
  #dashboardContentLayout.dashboard-content-layout{grid-template-columns:250px minmax(0,1fr)!important}
  #dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:44px minmax(0,1fr)!important}
}
@media(max-width:760px){
  #dashboardContentLayout.dashboard-content-layout{grid-template-columns:210px minmax(0,1fr)!important;gap:10px!important}
  #dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:40px minmax(0,1fr)!important}
  .dashboard-filter-rail-head{height:40px!important}
  .dashboard-filter-sidebar-head{padding:12px 10px 9px!important}
  .dashboard-filter-primary,.dashboard-filter-secondary{padding:0 7px!important}
  .dashboard-slicer{padding:8px!important;margin:8px 0!important}
}

/* Sidebar de filtros estático */
#dashboardContentLayout.dashboard-content-layout{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
}
#dashboardContentLayout.dashboard-content-layout.filters-collapsed{
  grid-template-columns:42px minmax(0,1fr)!important;
}
#dashboardFilters.dashboard-filter-shell{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  min-height:0!important;
  z-index:1!important;
}
#dashboardFilters .dashboard-filter-sidebar-static{
  display:block!important;
  width:100%!important;
  position:sticky!important;
  top:90px!important;
  box-sizing:border-box!important;
  height:500px!important;
  overflow:hidden!important;
  border:1px solid #e0e6ed!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(24,42,68,.07)!important;
}
#dashboardFilters .dashboard-filter-sidebar-static-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  height:46px!important;
  padding:0 10px 0 13px!important;
  box-sizing:border-box!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fff!important;
}
#dashboardFilters .dashboard-filter-title{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
#dashboardFilters .dashboard-filter-title i{font-size:11px!important;color:#65768b!important}
#dashboardFilters .dashboard-filter-title strong{font-size:10px!important;color:#4a5b70!important;letter-spacing:.04em!important}
#dashboardFilters .dashboard-filter-count{font-size:7px!important;color:#8c98a5!important;font-weight:900!important}
#dashboardFilters .dashboard-filter-static-toggle{
  width:28px!important;height:28px!important;flex:0 0 28px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #dfe5eb!important;border-radius:8px!important;
  background:#fff!important;color:#657383!important;cursor:pointer!important;
}
#dashboardFilters .dashboard-filter-static-toggle:hover{background:#f4f7fa!important;color:#263a53!important}
#dashboardFilters .dashboard-filter-sidebar-static-body{
  display:block!important;
  width:100%!important;
  height:500px!important;
  overflow-y:hidden!important;
  overflow-x:hidden!important;
  scrollbar-width:thin!important;
}
#dashboardFilters .dashboard-filter-sidebar-head{
  display:block!important;
  padding:16px 14px 11px!important;
  margin:0!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fafbfc!important;
}
#dashboardFilters .dashboard-filter-sidebar-head strong{display:block!important;font-size:13px!important;color:#4a5b70!important;font-weight:900!important;letter-spacing:.02em!important}
#dashboardFilters .dashboard-filter-sidebar-head span{display:block!important;margin-top:4px!important;font-size:8px!important;color:#919ca9!important}
#dashboardFilters .dashboard-filter-primary,
#dashboardFilters .dashboard-filter-secondary{
  display:block!important;
  padding:0 10px!important;
  margin:0!important;
}
#dashboardFilters .dashboard-slicer{
  display:block!important;
  margin:10px 0!important;
  padding:10px!important;
  box-sizing:border-box!important;
  border:1px solid #edf1f4!important;
  border-radius:10px!important;
  background:#fbfbfc!important;
  box-shadow:none!important;
}
#dashboardFilters .dashboard-slicer-head{margin-bottom:7px!important}
#dashboardFilters .dashboard-slicer-head strong{font-size:10px!important;color:#4b5b6f!important}
#dashboardFilters .dashboard-slicer-head>span{font-size:7.5px!important;color:#9aa4b0!important}
#dashboardFilters .dashboard-slicer-options{
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  gap:4px!important;max-height:none!important;overflow:visible!important;padding:0!important;
}
#dashboardFilters .dashboard-slicer-option{
  width:100%!important;min-height:31px!important;padding:6px 8px!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:7px!important;border:1px solid #e2e7ec!important;border-radius:8px!important;
  background:#fff!important;color:#526174!important;font-size:8.5px!important;font-weight:700!important;text-align:left!important;
}
#dashboardFilters .dashboard-slicer-option:before{content:'›'!important;font-size:14px!important;font-weight:900!important;line-height:1!important;color:#93a0ae!important;flex:0 0 8px!important}
#dashboardFilters .dashboard-slicer-option span{display:block!important;flex:1!important;min-width:0!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
    #dashboardFilters .dashboard-slicer-option.active{background:#dde2ef!important;color:#2a5896!important;border-color:#152a46!important;box-shadow:inset 3px 0 0 #152a46!important}
#dashboardFilters .dashboard-slicer-option.active:before{color:#152a46!important}
#dashboardFilters .dashboard-filter-sidebar-foot{display:block!important;padding:10px!important;margin:0!important;border-top:1px solid #edf1f5!important;background:#fff!important}
#dashboardFilters .dashboard-clear-btn{width:100%!important;height:36px!important;justify-content:center!important;border-radius:8px!important}
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-sidebar-static{
  width:42px!important;
  overflow:hidden!important;
}
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-sidebar-static-head{
  justify-content:center!important;
  padding:0!important;
  border-bottom:0!important;
}
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-title strong,
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-count,
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-sidebar-static-body{display:none!important}
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-static-toggle{margin:0!important}
/* Neutraliza totalmente estilos heredados de versiones anteriores que creaban un botón/drawer flotante. */
.dashboard-filter-toggle,
.dashboard-filter-overlay,
#dashboardFilters .dashboard-filter-close{display:none!important}
#dashboardFilters .dashboard-filter-sidebar{position:static!important;display:contents!important;opacity:1!important;visibility:visible!important;transform:none!important;box-shadow:none!important;border:0!important;padding:0!important}
@media(max-width:1100px){
  #dashboardContentLayout.dashboard-content-layout{grid-template-columns:250px minmax(0,1fr)!important}
  #dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:42px minmax(0,1fr)!important}
}
@media(max-width:760px){
  /* Sigue siendo sidebar izquierdo dentro del layout; los gráficos ocupan el resto. */
  #dashboardContentLayout.dashboard-content-layout{grid-template-columns:205px minmax(0,1fr)!important;gap:9px!important}
  #dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:40px minmax(0,1fr)!important}
  #dashboardFilters .dashboard-filter-sidebar-static{top:76px!important;border-radius:10px!important}
  #dashboardFilters .dashboard-filter-sidebar-static-body{max-height:calc(100vh - 50px)!important}
  #dashboardFilters .dashboard-filter-sidebar-head{padding:13px 10px 10px!important}
  #dashboardFilters .dashboard-filter-primary,#dashboardFilters .dashboard-filter-secondary{padding:0 7px!important}
  #dashboardFilters .dashboard-slicer{margin:8px 0!important;padding:8px!important}
  #dashboardFilters .dashboard-slicer-option{min-height:28px!important;padding:5px 6px!important;font-size:8px!important}
}

/* Ajustes finales del sidebar */
#dashboardContentLayout.dashboard-content-layout{
  grid-template-columns:220px minmax(0,1fr)!important;
  gap:12px!important;
}
#dashboardContentLayout.dashboard-content-layout.filters-collapsed{
  grid-template-columns:65px minmax(0,1fr)!important;
}
#dashboardFilters .dashboard-filter-static-toggle{
  width:34px!important;
  height:34px!important;
  flex-basis:30px!important;
  border-radius:9px!important;
}
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-sidebar-static{
  width:62px!important;
}
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-static-toggle{
  width:42px!important;
  height:42px!important;
  flex-basis:30px!important;
  border-radius:11px!important;
}
#dashboardFilters .dashboard-filter-sidebar-static{
  max-width:220px!important;
}
@media(max-width:1100px){
  #dashboardContentLayout.dashboard-content-layout{grid-template-columns:220px minmax(0,1fr)!important}
  #dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:58px minmax(0,1fr)!important}
  #dashboardFilters .dashboard-filter-sidebar-static{max-width:220px!important}
}
@media(max-width:760px){
  #dashboardContentLayout.dashboard-content-layout{grid-template-columns:195px minmax(0,1fr)!important;gap:9px!important}
  #dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:54px minmax(0,1fr)!important}
  #dashboardFilters .dashboard-filter-sidebar-static{max-width:195px!important}
  #dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-sidebar-static{width:54px!important}
  #dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-static-toggle{width:40px!important;height:40px!important;flex-basis:40px!important}
}
/* ===== Franja PESCO del Dashboard ===== */
.pesco-dashboard-banner{
  width:100%;
  min-height:58px;
  margin:14px 0 16px;
  padding:8px 22px;
  display:flex;
  align-items:center;
  gap:16px;
  background:linear-gradient(100deg,#173b73 0%,#31579a 55%,#4969a5 100%);
  border-radius:10px;
  box-shadow:0 7px 20px rgba(23,59,115,.14);
  overflow:hidden;
}
.pesco-dashboard-banner img{
  width:108px;
  height:44px;
  object-fit:contain;
  object-position:center;
  display:block;
  flex:0 0 auto;
  border-radius:3px;
}
.pesco-banner-divider{
  width:1px;
  height:31px;
  background:rgba(255,255,255,.55);
  flex:0 0 auto;
}
.pesco-dashboard-banner strong{
  color:#fff;
  font-size:17px;
  line-height:1;
  font-weight:300;
  letter-spacing:.02em;
  white-space:nowrap;
}
.pesco-dashboard-banner strong b{font-weight:800}
@media(max-width:640px){
  .pesco-dashboard-banner{
    min-height:50px;
    margin:12px 0 14px;
    padding:7px 12px;
    gap:10px;
    border-radius:8px;
  }
  .pesco-dashboard-banner img{width:78px;height:34px}
  .pesco-banner-divider{height:25px}
  .pesco-dashboard-banner strong{font-size:10px}
}
/* Altura y scroll SOLO cuando los filtros están abiertos */
#dashboardFilters.open .dashboard-filter-sidebar-static{
  height:809px!important;
  overflow:hidden!important;
}

#dashboardFilters.open .dashboard-filter-sidebar-static-body{
  height:745px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* Cuando los filtros están ocultos, que quede pequeño */
#dashboardFilters:not(.open) .dashboard-filter-sidebar-static{
  height:46px!important;
  overflow:hidden!important;
}


/* Control de meses para cargas parciales */
.month-control-panel{margin-top:0}
.month-control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.month-control-card{border:1px solid var(--border);border-radius:13px;background:#fbfdff;padding:12px;min-width:0}
.month-control-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.month-control-top strong{font-size:12px;color:#1b2b40}
.month-control-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:8px;font-weight:800;white-space:nowrap}
.month-control-status.closed{background:#e9f8f1;color:#0f7f5a}.month-control-status.ready{background:#e8f0ff;color:#1d4ed8}.month-control-status.process{background:#fff3dc;color:#b46a00}.month-control-status.empty{background:#f1f3f5;color:#6b7687}
.month-control-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}.month-control-metrics span{font-size:8px;color:#7d8998;line-height:1.25}.month-control-metrics b{display:block;font-size:13px;color:#1d2d43;margin-bottom:2px}
.month-control-actions{min-height:36px;display:flex;align-items:center}.month-control-actions .btn{width:100%;height:34px;font-size:9px}.month-action-note{font-size:8px;color:#8793a2;line-height:1.35}
@media(max-width:1100px){.month-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.month-control-grid{grid-template-columns:1fr}}


.upload-month-row{margin-top:10px}.upload-month-row .field{max-width:320px}.upload-month-row select{width:100%;height:40px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:0 11px;color:var(--text);outline:none;font-size:11px}.upload-month-row select:focus{border-color:#8db0e6;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.upload-month-help{display:block;margin-top:5px;color:#8a95a4;font-size:9px;line-height:1.4}

/* ===== Control de meses · diseño renovado ===== */
.month-control-panel{
  padding:20px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  border-color:#dfe6ef;
}
.month-control-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:13px;
}
.month-control-title{min-width:0}
.month-control-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.1em;
  color:#8794a5;
  margin-bottom:4px;
}
.month-control-kicker i{font-size:9px;color:#2563eb}
.month-control-title h3{margin:0;font-size:15px;color:#17273d}
.month-control-title .panel-subtitle{font-size:9px;line-height:1.5;margin-top:4px;max-width:760px}
.month-control-header-meta{
  min-width:92px;
  height:58px;
  padding:9px 11px;
  border:1px solid #e3e9f1;
  border-radius:13px;
  background:#f7f9fc;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto 1fr;
  align-items:center;
  column-gap:7px;
  flex:0 0 auto;
}
.month-control-header-meta .month-cycle-label{
  font-size:8px;color:#8c98a8;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
}
.month-control-header-meta strong{font-size:17px;line-height:1;color:#173b71;grid-column:1}
.month-control-header-meta i{grid-column:2;grid-row:1 / span 2;color:#2563eb;font-size:15px}
.month-control-legend{
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  padding:9px 11px;
  margin-bottom:13px;
  border:1px solid #edf1f5;
  border-radius:10px;
  background:#f9fbfd;
  color:#778496;
  font-size:8px;
}
.month-control-legend span{display:inline-flex;align-items:center;gap:5px}
.month-control-legend .legend-dot{margin:0;width:7px;height:7px}
.month-dot-open{background:#d97706}
.month-dot-ready{background:#2563eb}
.month-dot-closed{background:#0f9f6e}
.month-control-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
}
.month-control-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
  padding:13px;
  box-shadow:0 5px 16px rgba(15,31,53,.045);
  transition:transform .18s, box-shadow .18s, border-color .18s;
}
.month-control-card:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(15,31,53,.07);border-color:#d3dce7}
.month-control-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#cbd5e1}
.month-control-card.process::before{background:#d97706}
.month-control-card.ready::before{background:#2563eb}
.month-control-card.closed::before{background:#0f9f6e}
.month-control-card.empty::before{background:#cbd5e1}
.month-control-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:11px}
.month-control-card-name{display:flex;align-items:center;gap:8px;min-width:0}
.month-control-index{
  width:31px;height:31px;border-radius:9px;background:#f0f4fa;color:#53657c;
  display:grid;place-items:center;font-size:10px;font-weight:900;flex:0 0 auto;
}
.month-control-card-name>div{display:flex;flex-direction:column;min-width:0}
.month-control-card-name small{font-size:6.5px;letter-spacing:.08em;font-weight:900;color:#9aa5b3;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.month-control-card-name strong{font-size:13px;color:#1c2d43;line-height:1.1}
.month-control-status{
  display:inline-flex;align-items:center;gap:5px;height:23px;padding:0 7px;border-radius:999px;
  font-size:7px;font-weight:900;white-space:nowrap;flex:0 0 auto;
}
.month-control-status i{font-size:7px}
.month-control-status.closed{background:#e9f8f1;color:#0f7f5a}
.month-control-status.ready{background:#eaf1ff;color:#2457b8}
.month-control-status.process{background:#fff4e2;color:#b46a00}
.month-control-status.empty{background:#f1f4f7;color:#758294}
.month-control-progress-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.month-control-progress-head span{font-size:7.5px;color:#8a96a5;font-weight:700}
.month-control-progress-head strong{font-size:8.5px;color:#44556b}
.month-control-progress{height:6px;border-radius:99px;background:#edf1f5;overflow:hidden;margin-bottom:11px}
.month-control-progress span{display:block;height:100%;border-radius:99px;background:#94a3b8;transition:width .25s ease}
.month-control-card.process .month-control-progress span{background:#d97706}
.month-control-card.ready .month-control-progress span{background:#2563eb}
.month-control-card.closed .month-control-progress span{background:#0f9f6e}
.month-control-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:9px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.month-control-metrics>div{min-width:0}
.month-control-metrics small{display:block;font-size:7px;color:#919cab;margin-bottom:3px}
.month-control-metrics b{display:block;font-size:11px;color:#26384e;line-height:1.1}
.month-control-actions{display:flex;align-items:center;min-height:33px;padding-top:10px}
.month-action{width:100%;height:32px;border:1px solid transparent;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:8px;font-weight:800;cursor:pointer;transition:.18s}
.month-action:disabled{opacity:.55;cursor:not-allowed}
.month-action-primary{background:#2563eb;color:#fff;box-shadow:0 5px 12px rgba(37,99,235,.15)}
.month-action-primary:hover{background:#1d4ed8}
.month-action-outline{background:#fff;color:#314158;border-color:#dfe5ec}
.month-action-outline:hover{background:#f8fafc;border-color:#cfd8e3}
.month-action-note{display:flex;align-items:center;gap:6px;color:#a06b1d;font-size:7.5px;line-height:1.3}
.month-action-note i{font-size:8px}
.month-action-note.muted{color:#8793a2}
@media(max-width:1100px){.month-control-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.month-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.month-control-header{align-items:flex-start}.month-control-header-meta{min-width:82px}}
@media(max-width:640px){
  .month-control-panel{padding:14px}
  .month-control-header{gap:10px}
  .month-control-title h3{font-size:14px}
  .month-control-title .panel-subtitle{font-size:8px;max-width:none}
  .month-control-header-meta{height:52px;min-width:72px;padding:8px 9px}
  .month-control-header-meta strong{font-size:15px}
  .month-control-legend{gap:10px;padding:8px 9px}
  .month-control-grid{grid-template-columns:1fr;gap:9px}
}

/* Conciliación automática: acción visible en el módulo Conteo */
.recon-btn{border:0;border-radius:8px;padding:7px 10px;background:#123A78;color:#fff;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.recon-btn:disabled{opacity:.6;cursor:wait}.recon-badge{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;white-space:nowrap}.recon-badge.done{background:#eaf7ee;color:#24713a}.recon-muted{color:#9aa4b2}
@media(max-width:700px){.recon-btn,.recon-badge{padding:6px 8px;font-size:11px}}


/* Avance de conteo: estilo visual tipo indicador de progreso */
.dashboard-kpi-grid{align-items:start}
/* Avance de conteo — diseño compacto */
.dashboard-kpi-avance{
  min-height:82px;
  justify-content:space-between;
}

.dashboard-kpi-avance .avance-card-body{
  position:relative;
  margin-top:auto;
  padding-top:2px;
  width:100%;
  min-height:51px;

  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto 6px;
  column-gap:8px;
  row-gap:0;

  text-align:right;
  align-items:end;
}

/* Valor principal */
.dashboard-kpi-avance .avance-main{
  grid-column:2;
  grid-row:1;

  color:#000;
  font-size:14px;
  line-height:.95;
  letter-spacing:-.035em;
  font-weight:900;
  white-space:nowrap;
  text-align:right;
}

/* Valor total */
.dashboard-kpi-avance .avance-sub{
  grid-column:2;
  grid-row:2;

  margin:-150px 0 0;
  color:#677386;
  font-size:10px;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
  text-align:right;
}

/* Porcentaje */
.dashboard-kpi-avance .avance-percent{
  grid-column:1;
  grid-row:1 / span 2;

  align-self:end;
  justify-self:start;

  margin:0;
  color:#6f9bdb;
  font-size:13px;
  line-height:.95;
  letter-spacing:-.025em;
  font-weight:900;
  white-space:nowrap;
  text-align:left;
}

/* Barra */
.dashboard-kpi-avance .avance-track{
  grid-column:1 / -1;
  grid-row:3;

  height:5px;
  width:100%;
  margin:5px 0 0;

  overflow:hidden;
  border-radius:999px;
  background:#e7ebf0;
}

.dashboard-kpi-avance .avance-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#6f9bdb;
}

@media(max-width:1200px){
  .dashboard-kpi-avance .avance-main{
    font-size:20px;
  }

  .dashboard-kpi-avance .avance-sub{
    font-size:9px;
  }

  .dashboard-kpi-avance .avance-percent{
    font-size:17px;
  }
}
/* Inventario General */
.general-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:18px}
.general-access-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;margin-bottom:14px;border:1px solid var(--border,#e5e7eb);border-radius:14px;background:var(--panel,#fff);color:var(--text,#172033);font-size:13px}
.general-access-banner .access-locked{color:#b42318;font-weight:700}
.inline-date{width:145px;max-width:100%;padding:8px 10px;border:1px solid var(--border,#d9dee8);border-radius:9px;background:#fff;font:inherit}
.btn-small{padding:7px 10px;font-size:12px;white-space:nowrap}
.status.completed{background:#ecfdf3;color:#027a48}.status.pending{background:#fff7ed;color:#b54708}
.rack-badge{display:inline-flex;min-width:32px;justify-content:center;padding:4px 8px;border-radius:8px;background:#eef2ff;font-weight:800}
.assignment-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.assignment-option{display:flex;gap:12px;padding:14px;border:1px solid var(--border,#e5e7eb);border-radius:12px;cursor:pointer;background:#fff}
.assignment-option input{margin-top:3px}.assignment-option span{display:flex;flex-direction:column;gap:3px}.assignment-option small{color:#667085}
.rack-selector-box{border:1px solid var(--border,#e5e7eb);border-radius:12px;padding:14px;margin-top:12px;background:#fafbfc}
.choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;margin-top:10px;max-height:250px;overflow:auto}
.choice-item{display:flex;gap:9px;align-items:flex-start;padding:9px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}
.choice-item span{display:flex;flex-direction:column;gap:2px}.choice-item small{font-size:11px;color:#667085}
.section-head-inline{display:flex;align-items:center;gap:10px}.section-head-inline strong{margin-right:auto}
.assignment-help{margin-top:12px;padding:11px 13px;border-radius:10px;background:#f5f7fa;color:#475467;font-size:12px}
@media(max-width:1100px){.general-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.general-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-mode-grid{grid-template-columns:1fr}.general-access-banner{align-items:flex-start;flex-direction:column}.inline-date{width:130px}}
.pin-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:8px;font-weight:800;letter-spacing:2px;background:rgba(37,99,235,.10);color:#1d4ed8;border:1px solid rgba(37,99,235,.20);font-variant-numeric:tabular-nums}.count-footer{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.count-info{display:flex;align-items:center;gap:8px}.count-info:empty{display:none}
/* Inventario General: administración agrupada por grupo */
.code-badges{display:flex;flex-wrap:wrap;gap:5px;max-width:180px}
.code-badge{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid #dbe3ec;border-radius:8px;background:#f8fafc;font-size:11px;font-weight:700;color:#334155}
.group-warehouse-list{vertical-align:middle;line-height:1.35;padding-top:8px!important;padding-bottom:8px!important}
.group-warehouse-codes{min-width:78px;width:90px;white-space:nowrap}
.group-wh-code{display:flex;align-items:center;min-height:20px;padding:2px 0}
.group-wh-code strong{font-size:11px;font-weight:800;letter-spacing:.02em;color:#172b4d;font-variant-numeric:tabular-nums}
.group-warehouse-names{min-width:300px}
.group-warehouse-name{display:block;min-height:20px;line-height:1.45;padding:2px 0;color:#334155;font-size:11px;white-space:normal}

.admin-warehouse-line{display:flex;align-items:flex-start;gap:8px;line-height:1.35;padding:3px 0}
.admin-warehouse-line strong{min-width:42px;color:#475569;font-size:11px}
.admin-warehouse-line span{color:#64748b;font-size:11px}

.contraloria-obs-input{min-width:180px;width:100%;border:1px solid #d8e0ea;border-radius:8px;padding:7px 9px;background:#fff}.contraloria-input{min-width:95px}.calendar-day.has-events{cursor:pointer}.calendar-day.has-events:hover{transform:translateY(-1px)}

/* Separador visual para racks que existen en el maestro pero no tienen stock cargado. Solo Resumen/Contraloría. */
.empty-rack-row td{height:24px!important;padding:0 11px!important;background:#fbfcfe!important;border-bottom:1px solid #edf0f4!important}.empty-rack-cell{font-size:9px!important;color:#9aa6b5!important;font-weight:700!important;text-align:center!important}.empty-rack-row:hover td{background:#fbfcfe!important}

/* Filtros de detalle para Conteo, Resumen y Contraloría */
.general-filterbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 14px;margin-bottom:14px}
.general-filterbar .field-inline input,.general-filterbar .field-inline select{height:38px;border:1px solid var(--border);border-radius:9px;padding:0 9px;background:#fff;min-width:125px;font-size:11px;outline:none}
.general-filterbar .field-inline input:focus,.general-filterbar .field-inline select:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.contra-stage-panel{padding:10px 14px;margin-bottom:12px}
.contra-stage-panel .count-info{font-size:10px}
.contra-stage-panel .count-info i{color:#2563eb;margin-right:6px}
.contraloria-input,.contraloria-input2,.contraloria-obs-input{height:31px;border:1px solid #dce2ea;border-radius:8px;outline:none;background:#fff;padding:0 7px;font-size:10px;min-width:90px}
.contraloria-obs-input{min-width:180px;width:100%}
.contraloria-input:focus,.contraloria-input2:focus,.contraloria-obs-input:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.contraloria-input:disabled,.contraloria-input2:disabled,.contraloria-obs-input:disabled{background:#f5f7fa;color:#9aa6b5}
@media(max-width:900px){.general-filterbar .field-inline{flex:1;min-width:150px}.general-filterbar .search-box{min-width:100%;order:10}}

/* Panel de control por usuario */
.userpanel-filter-list{max-height:calc(100vh - 235px);overflow:auto;padding:6px 10px 10px}.userpanel-filter-group{border-bottom:1px solid #edf1f5;padding:9px 0}.userpanel-filter-label{font-size:9px;font-weight:900;color:#516174;text-transform:uppercase;margin-bottom:6px}.userpanel-filter-options{display:flex;flex-direction:column;gap:4px}.userpanel-filter-options label{display:flex;align-items:center;gap:7px;font-size:9px;color:#435269;cursor:pointer}.userpanel-filter-options input{accent-color:#173b73}.userpanel-filter-range{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px 0}.userpanel-filter-range label{font-size:8px;font-weight:800;color:#68778a}.userpanel-filter-range input,.userpanel-filter-search input{width:100%;box-sizing:border-box;border:1px solid #dce3eb;border-radius:8px;height:30px;padding:0 8px;font-size:9px;margin-top:4px}.userpanel-filter-search{padding-bottom:10px}.userpanel-bars{min-height:245px;max-height:290px;overflow:auto;padding:4px 2px}.userpanel-bar-row{display:grid;grid-template-columns:105px 1fr 45px;gap:7px;align-items:center;margin:9px 0}.userpanel-bar-label{font-size:8px;font-weight:800;color:#425269;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.userpanel-bar-track{height:8px;background:#e8edf3;border-radius:99px;overflow:hidden}.userpanel-bar-track span{display:block;height:100%;background:#6f9bdb;border-radius:99px}.userpanel-bar-row b{font-size:8px;text-align:right;color:#435269}.userpanel-filter-shell{height:auto}.userpanel-filter-shell .dashboard-filter-sidebar{display:block!important}.userpanel-filter-shell.open .dashboard-filter-sidebar{display:block!important}@media(max-width:900px){.userpanel-bar-row{grid-template-columns:85px 1fr 42px}.userpanel-bars{min-height:210px}}

/* v39 — filtros compactos y panel por usuario rediseñado */
.filter-toolbar-modern{
  display:flex!important;align-items:flex-end;gap:9px!important;padding:11px 12px!important;
  overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap!important;scrollbar-width:thin;
}
.filter-toolbar-modern .filter-toolbar-title{display:flex;align-items:center;gap:7px;min-width:112px;height:38px;padding:0 9px;border:1px solid #e3e9f1;border-radius:10px;background:#f8fafc;color:#32445b;flex:0 0 auto}
.filter-toolbar-modern .filter-toolbar-title i{color:#356fe6;font-size:11px}.filter-toolbar-modern .filter-toolbar-title strong{font-size:10px;text-transform:uppercase;letter-spacing:.06em}.filter-toolbar-modern .filter-toolbar-title span{font-size:9px;color:#8a96a6;margin-left:auto}
.filter-toolbar-modern .field-inline{flex:0 0 auto;min-width:125px}.filter-toolbar-modern .field-inline label{font-size:8px;text-transform:uppercase;letter-spacing:.04em;color:#7c899a;margin-left:2px}.filter-toolbar-modern .field-inline select{height:38px;min-width:125px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;padding:0 28px 0 10px;font-size:10px;font-weight:700;color:#33445b;outline:none;box-shadow:0 1px 2px rgba(16,24,40,.02)}
.filter-toolbar-modern .field-inline select:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.filter-toolbar-modern .filter-clear-modern{height:38px;flex:0 0 auto;white-space:nowrap;margin-left:auto}
@media(max-width:900px){.filter-toolbar-modern{flex-wrap:wrap!important;overflow-x:visible}.filter-toolbar-modern .filter-toolbar-title{width:100%}.filter-toolbar-modern .field-inline{flex:1 1 145px}.filter-toolbar-modern .filter-clear-modern{margin-left:0}}

/* Panel por usuario: composición visual tipo dashboard ejecutivo */
.userpanel-layout .dashboard-main-column{min-width:0}
.userpanel-filter-shell{border-radius:16px!important;overflow:hidden;border:1px solid #e0e7f0!important;box-shadow:0 8px 25px rgba(27,52,84,.07)!important;background:#fff}
.userpanel-filter-shell .dashboard-filter-rail-head{background:linear-gradient(180deg,#f9fbff,#f4f7fb);border-bottom:1px solid #e8edf4!important}
.userpanel-filter-list{display:flex!important;flex-direction:column;gap:10px;padding:12px!important;max-height:calc(100vh - 255px);overflow:auto}
.userpanel-filter-control{padding:9px;border:1px solid #e8edf3;border-radius:11px;background:#fbfcfe}.userpanel-filter-control label{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.045em;color:#65758a}.userpanel-filter-control label i{font-size:9px;color:#356fe6;width:12px;text-align:center}
.userpanel-select-wrap{position:relative}.userpanel-select-wrap select{appearance:none;width:100%;height:34px;border:1px solid #dce4ed;border-radius:9px;background:#fff;color:#34465d;font-size:9px;font-weight:700;padding:0 27px 0 9px;outline:none}.userpanel-select-wrap select:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.userpanel-select-wrap>i{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:8px;color:#8996a7;pointer-events:none}
.userpanel-kpi-grid{margin-bottom:14px}.userpanel-kpi-grid .dashboard-kpi{min-height:78px}
.userpanel-insight-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,.85fr);gap:14px;margin-bottom:14px}.userpanel-hero-card,.userpanel-status-card{margin-bottom:0;min-height:205px}.userpanel-hero-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.userpanel-eyebrow{font-size:8px;font-weight:900;letter-spacing:.12em;color:#4777bd}.userpanel-hero-card h3{margin:5px 0 4px;font-size:16px;color:#24364c}.userpanel-hero-card p{margin:0;color:#8996a6;font-size:9px;max-width:520px;line-height:1.5}.userpanel-hero-ring{--ring-pct:0deg;width:118px;height:118px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:conic-gradient(#3977e8 var(--ring-pct),#e9eef5 var(--ring-pct));position:relative;box-shadow:inset 0 0 0 1px #e3e9f2}.userpanel-hero-ring:after{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}.userpanel-hero-ring>div{position:relative;z-index:1;text-align:center}.userpanel-hero-ring strong{display:block;font-size:20px;color:#1d3452}.userpanel-hero-ring span{display:block;font-size:8px;color:#8b98a8;text-transform:uppercase;font-weight:800;margin-top:2px}.userpanel-mini-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:20px}.userpanel-mini-stats>div{border:1px solid #e8edf3;background:#f9fbfd;border-radius:10px;padding:9px}.userpanel-mini-stats span{display:block;font-size:7px;color:#8a96a6;font-weight:900;letter-spacing:.05em}.userpanel-mini-stats strong{display:block;margin-top:3px;font-size:15px;color:#253a55}.userpanel-status-visual{display:flex;align-items:center;justify-content:center;gap:24px;height:145px}.status-donut{width:128px;height:128px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#2ca77b var(--done),#e7edf4 var(--done));position:relative}.status-donut:after{content:"";position:absolute;inset:14px;border-radius:50%;background:#fff}.status-donut>div{position:relative;z-index:1;text-align:center}.status-donut strong{display:block;font-size:18px;color:#203650}.status-donut span{font-size:7px;text-transform:uppercase;font-weight:900;color:#8794a5}.status-legend{display:flex;flex-direction:column;gap:9px}.status-legend span{display:flex;align-items:center;gap:7px;font-size:8px;color:#617187}.status-legend b{margin-left:auto;color:#263c56}.dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot.done{background:#2ca77b}.dot.pending{background:#dfe5ed}.dot.diff{background:#df8a35}
.userpanel-chart-grid{margin-bottom:14px}.userpanel-bars.polished{min-height:245px;max-height:285px;padding:8px 4px}.polished-row{grid-template-columns:110px 1fr 46px!important;margin:11px 0!important}.polished-row .userpanel-bar-track{height:9px;background:#edf1f6;box-shadow:inset 0 0 0 1px #e5eaf0}.polished-row .userpanel-bar-track span{background:linear-gradient(90deg,#4a83ea,#79a7ef)}.polished-row b{font-size:9px;color:#40536c}
@media(max-width:1050px){.userpanel-insight-grid{grid-template-columns:1fr}.userpanel-mini-stats{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.userpanel-mini-stats{grid-template-columns:repeat(2,1fr)}.userpanel-hero-top{align-items:flex-start}.userpanel-hero-ring{width:92px;height:92px}.userpanel-status-visual{gap:12px}.status-donut{width:105px;height:105px}}


/* v40 — Panel de control por grupos y parejas: interacción visual y tablas organizadas */
.userpanel-bar-click{
  width:100%;box-sizing:border-box;appearance:none;border:0;background:transparent;text-align:left;font:inherit;color:inherit;
  padding:3px 5px;border-radius:8px;cursor:pointer;transition:background .15s ease, transform .15s ease;
}
.userpanel-bar-click:hover{background:#f2f6fc;transform:translateX(1px)}
.userpanel-bar-click:focus-visible{outline:2px solid #6f9bdb;outline-offset:2px}
.userpanel-bar-click .userpanel-bar-track{display:block;width:100%}
.userpanel-bar-click .userpanel-bar-label{display:block}
.userpanel-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px;align-items:start}
.userpanel-detail-grid>.panel{min-width:0;margin-bottom:0}
.userpanel-detail-grid .table-wrap{max-width:100%;overflow:auto}
.userpanel-detail-grid .data-table{min-width:700px}
.userpanel-detail-grid .dashboard-chart-head{padding-bottom:9px}
.userpanel-detail-grid .dashboard-chart-head h3{font-size:11px}
#userPanelGroupTable td:nth-child(6),#userPanelPairTable td:nth-child(7){font-weight:800;color:#1c5ac8}
@media(max-width:1200px){.userpanel-detail-grid{grid-template-columns:1fr}}


/* Conteos enteros: inputs de texto numéricos sin controles de incremento/decremento */
.physical-input,.contraloria-input,.contraloria-input2{font-variant-numeric:tabular-nums;touch-action:pan-y;}
.physical-input:focus,.contraloria-input:focus,.contraloria-input2:focus{outline:2px solid rgba(37,99,235,.35);outline-offset:0;}


/* Progreso de plantillas por pareja: conteo registrado / SKU asignados */
.general-access-banner:has(.count-progress-grid){display:block;padding:14px 16px}
.count-progress-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#24364d;font-size:12px}
.count-progress-head>i{color:#2563eb;font-size:15px}
.count-progress-head strong{font-size:12px;font-weight:900}
.count-progress-head>span{margin-left:auto;color:#718096;font-size:10px}
.count-progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.count-progress-card{min-width:0;border:1px solid #e1e8f1;background:linear-gradient(135deg,#fff,#f8fbff);border-radius:12px;padding:12px 13px;box-shadow:0 3px 10px rgba(24,48,78,.035)}
.count-progress-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.count-progress-card-top>div{display:grid;gap:3px;min-width:0}
.count-progress-card-top strong{font-size:11px;line-height:1.35;color:#172b46;overflow-wrap:anywhere}
.count-progress-card-top small{font-size:9px;color:#7a8799;line-height:1.3}
.count-progress-card-top>b{font-size:13px;white-space:nowrap;color:#1d4ed8;font-variant-numeric:tabular-nums}
.count-progress-track{height:7px;border-radius:999px;background:#e8edf4;overflow:hidden;margin:11px 0 9px}
.count-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .25s ease}
.count-progress-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#7b8797}
.count-progress-card-bottom strong{font-size:10px;color:#334b68;font-variant-numeric:tabular-nums}
.count-progress-empty{padding:13px;border:1px dashed #d8e1eb;border-radius:10px;color:#8190a2;font-size:11px;background:#f9fbfd}
@media(max-width:650px){.count-progress-head{align-items:flex-start;flex-wrap:wrap}.count-progress-head>span{width:100%;margin-left:23px}.count-progress-grid{grid-template-columns:1fr}}

/* Capture rápida: mantener la fila estable mientras el guardado se procesa en segundo plano. */
.count-entry-table tr.count-saving td{transition:background-color .12s ease}
.count-entry-table tr.count-saving td{background:#f8fbff}


/* v49 — filtros persistentes y scroll interno de tablas principales */
.data-module-filter-sticky{position:sticky!important;top:78px;z-index:26;box-shadow:0 8px 18px rgba(22,42,70,.07);}
.data-module-table-scroll{max-height:calc(100vh - 265px);overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative;border-radius:0 0 12px 12px;}
.data-module-table-scroll table{margin:0;}
.data-module-table-scroll .data-table thead th{position:sticky;top:0;z-index:5;box-shadow:0 1px 0 #e8edf3;}
.count-position-filter-field input{height:38px;min-width:185px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;padding:0 10px;font-size:10px;font-weight:700;color:#33445b;outline:none;box-shadow:0 1px 2px rgba(16,24,40,.02);}
.count-position-filter-field input:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08);}
@media(max-width:900px){.data-module-filter-sticky{top:78px}.data-module-table-scroll{max-height:calc(100vh - 295px)}}

/* Pair-specific type badges: each pair has its own status. */
.pair-type-cell{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:150px}.type.pendiente{background:#fff7ed;color:#9a3412}.type.mixto{background:#f3e8ff;color:#6b21a8}


/* Inventario General · administración dinámica y avance operativo */
.admin-group-manager{overflow:hidden}
.admin-group-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 4px 5px;max-height:354px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.admin-group-card{appearance:none;text-align:left;display:flex;flex-direction:column;gap:9px;min-width:0;min-height:184px;padding:14px;border:1px solid #dce5f0;border-radius:15px;background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);color:#22364f;cursor:pointer;box-shadow:0 4px 14px rgba(20,45,78,.045);transition:border-color .18s,box-shadow .18s,transform .18s}
.admin-group-card:hover{border-color:#83a8df;box-shadow:0 9px 22px rgba(18,58,120,.11);transform:translateY(-1px)}
.admin-group-card:focus-visible{outline:3px solid rgba(51,111,190,.22);outline-offset:2px}
.admin-group-card-top{display:flex;justify-content:space-between;align-items:center}
.admin-group-code,.admin-code-pill{display:inline-flex;align-items:center;border-radius:7px;background:#edf3fb;color:#214b82;font-size:9px;font-weight:900;letter-spacing:.045em;padding:5px 8px}
.admin-group-check{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;color:#fff;background:#173f79;font-size:10px;box-shadow:0 2px 5px rgba(23,63,121,.18)}
.admin-group-card-title{font-size:13px;color:#1d2f48;line-height:1.3;overflow-wrap:anywhere}
.admin-group-card-meta{display:flex;gap:12px;flex-wrap:wrap;color:#75849a;font-size:9px;font-weight:700}
.admin-group-card-meta i{color:#3b74b8;margin-right:4px}
.admin-group-warehouses{display:flex;flex-wrap:wrap;gap:5px;max-height:53px;overflow:hidden}
.admin-warehouse-chip{display:inline-flex;gap:5px;align-items:center;max-width:100%;padding:4px 7px;border-radius:7px;background:#f0f4f9;color:#5d6e84;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-warehouse-chip b{color:#244e82;font-size:8px}
.admin-group-progress{margin-top:auto;display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;color:#75849a;font-size:9px}
.admin-group-progress>span i{color:#3975b9;margin-right:4px}
.admin-group-progress>b{color:#1e4e89;font-size:10px}
.admin-group-progress-track{grid-column:1/-1;display:block;height:6px;border-radius:20px;background:#e7edf5;overflow:hidden}
.admin-group-progress-track>i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,var(--blue),var(--blue2))}
.admin-groups-empty{grid-column:1/-1;padding:28px}
.warehouse-rows-editor{display:grid;gap:9px;margin:10px 0 14px}
.warehouse-editor-row{display:grid;grid-template-columns:30px minmax(110px,.55fr) minmax(180px,1fr) 34px;gap:10px;align-items:end;padding:12px;border:1px solid #e3eaf3;border-radius:12px;background:#f9fbfe}
.warehouse-editor-index{align-self:center;width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:#2e639f;background:#eaf1fa}
.warehouse-editor-row .field{margin:0;min-width:0}
.warehouse-editor-row .field label{font-size:9px;color:#62758c;font-weight:800}
.warehouse-editor-row input{height:38px;border:1px solid #dce4ee;border-radius:9px;padding:0 10px;background:#fff;color:#263b55;width:100%;box-sizing:border-box}
.warehouse-row-remove{width:34px;height:36px;color:#9b4d4d;border-color:#eadada;background:#fff}
.warehouse-list-head{display:flex;align-items:center;justify-content:space-between;margin-top:18px}
.group-dates-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;padding:15px;border:1px solid #e1e8f1;border-radius:13px;background:linear-gradient(135deg,#fbfdff,#f3f7fc);margin-bottom:14px}
.group-dates-form .field{margin:0}
.group-dates-form input{height:40px;border:1px solid #d6e0ec;border-radius:9px;padding:0 10px;background:#fff;color:#2e4159}
.warehouse-control-list{display:grid;gap:9px;max-height:46vh;overflow:auto;padding:2px 3px 8px}
.warehouse-control-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid #e1e8f1;border-radius:13px;background:#fff}
.warehouse-control-main{display:flex;align-items:center;gap:11px;min-width:0}
.warehouse-control-code{flex:0 0 auto;min-width:52px;text-align:center;padding:8px 7px;border-radius:9px;background:#edf3fa;color:#1e4e85;font-size:11px;font-weight:900}
.warehouse-control-main>div{display:grid;gap:4px;min-width:0}
.warehouse-control-main strong{font-size:11px;color:#2b405b;overflow-wrap:anywhere}
.warehouse-control-main small{font-size:9px;color:#8390a1}
.warehouse-control-status{font-size:8px;font-weight:800}
.warehouse-control-status.is-frozen{color:#28734f}.warehouse-control-status.is-open{color:#9a7025}
.warehouse-control-actions{display:flex;gap:6px;align-items:center;flex:0 0 auto;flex-wrap:wrap}
.warehouse-control-actions .icon-btn{width:32px;height:32px;color:#9c5555}
.operational-assignment-panel{overflow:hidden}
.userpanel-assignment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:5px 2px 8px;max-height:650px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.operational-assignment-card{min-width:0;padding:14px;border:1px solid #e0e7f0;border-radius:14px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 3px 12px rgba(20,45,78,.04)}
.operational-assignment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.operational-assignment-head>div{display:grid;gap:4px;min-width:0}
.operational-code{font-size:8px;font-weight:900;letter-spacing:.08em;color:#3973b5}
.operational-assignment-head h4{margin:0;font-size:12px;color:#203650;overflow-wrap:anywhere}
.operational-total{font-size:9px;font-weight:900;color:#204c82;background:#edf3fa;border-radius:7px;padding:5px 8px;white-space:nowrap}
.operational-location{display:grid;gap:4px;padding:9px 0 11px;border-bottom:1px solid #e9eef4;color:#6d7d91;font-size:9px}
.operational-location>span i{color:#3976b9;margin-right:4px}
.operational-location strong{font-size:10px;color:#344b67}
.operational-pair-progress{padding:10px 0 3px}
.operational-pair-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px 7px;align-items:center}
.pair-code{grid-column:1;grid-row:1/3;align-self:center;padding:5px 6px;border-radius:7px;background:#eaf1fa;color:#1e4d84;font-size:8px;font-weight:900}
.pair-code-b{background:#e9f3fb;color:#3d6f9f}
.operational-pair-title strong{font-size:9px;color:#344a64;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operational-pair-title small{grid-column:2;font-size:8px;color:#8996a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operational-pair-title>b{grid-column:3;grid-row:1/3;font-size:11px;color:#1b4b86;font-variant-numeric:tabular-nums}
.operational-track{height:7px;border-radius:30px;background:#e8eef5;overflow:hidden;margin:8px 0 4px}
.operational-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--blue2));transition:width .25s ease}
.operational-pair-progress>small{font-size:8px;color:#8190a2}
.operational-assignment-foot{display:flex;justify-content:space-between;gap:8px;padding-top:9px;margin-top:6px;border-top:1px solid #edf1f5;font-size:8px;color:#8290a2}
.operational-assignment-foot i{color:#477bb6;margin-right:4px}.operational-assignment-foot strong{color:#1e4c82}
.operational-empty{grid-column:1/-1;padding:26px;text-align:center}
.count-pair-slot{display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px;padding:3px 6px;border-radius:5px;background:#eaf1fa;color:#1b4d86;font-size:7px;font-weight:900;letter-spacing:.05em;white-space:nowrap}
.count-pair-slot.slot-2{background:#e8f1f8;color:#426e98}
.count-input-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.count-input-wrap .physical-input{width:100%;min-width:80px;box-sizing:border-box}
.pair-quantity-cell{min-width:75px;text-align:center}
.pair-quantity-label{display:block;font-size:7px;font-weight:900;letter-spacing:.06em;color:#65809e;margin-bottom:3px}
.pair-quantity-cell strong{display:inline-block;padding:5px 9px;border-radius:7px;background:#f0f4fa;color:#263f5f;font-size:10px;font-variant-numeric:tabular-nums}
@media(max-width:1050px){.admin-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.userpanel-assignment-grid{grid-template-columns:1fr}}
@media(max-width:700px){.admin-group-grid{grid-template-columns:1fr;max-height:420px}.warehouse-editor-row{grid-template-columns:28px 1fr 34px}.warehouse-editor-row .field:nth-child(3){grid-column:2}.warehouse-editor-row .warehouse-row-remove{grid-column:3;grid-row:1}.group-dates-form{grid-template-columns:1fr}.warehouse-control-card{align-items:flex-start;flex-direction:column}.warehouse-control-actions{width:100%;justify-content:flex-end}}

/* Professional assignment and warehouse identifiers */
.admin-warehouse-chip{display:grid;grid-template-columns:1fr;gap:2px;white-space:normal;max-width:100%;}
.admin-warehouse-chip>b{font-size:7px;color:#55779f;letter-spacing:.035em;}
.admin-warehouse-chip>span{font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.assignment-code-list{display:flex;gap:4px;flex-wrap:wrap;max-width:230px;}
.assignment-code-list .admin-code-pill{font-size:7px;}
.operational-warehouse-code{display:block;margin-bottom:3px;color:#5e82ad;font-size:7px;letter-spacing:.045em;}
.admin-group-grid{height:354px;max-height:354px;overflow:auto;}
@media(max-width:700px){.admin-group-grid{height:420px;max-height:420px;}}

.operational-site-code{display:inline-flex;margin-left:5px;padding:2px 5px;border-radius:5px;background:#eef3fa;color:#5b78a0;font-size:7px;font-weight:900;letter-spacing:.03em;}
.admin-group-card{background:rgba(255,255,255,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.warehouse-control-card{background:rgba(255,255,255,.84);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}
.modal.show{background:rgba(18,36,60,.28);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);}
.modal-card{background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}

/* V53: feedback de numeración automática y contexto de almacén en administración */
.auto-code-preview{display:flex;align-items:center;gap:8px;margin-top:9px;padding:10px 12px;border:1px solid rgba(29,78,137,.16);border-radius:10px;background:rgba(29,78,137,.055);color:#234a7f;font-size:12px;font-weight:700;letter-spacing:.01em}
.admin-context-code{display:block;margin-top:4px;color:var(--muted,#74839a);font-size:11px;font-weight:600}
\n/* ===== Identidad visual oficial PESCO + VLTEC (V54) ===== */
.brand.brand-logos{height:76px;min-height:76px;display:flex;align-items:center;justify-content:center;padding:4px 8px 18px;margin:0 0 8px;overflow:hidden}
.brand-pesco-full{display:block;width:100%;max-width:208px;height:62px;object-fit:contain;object-position:center}
.brand-pesco-compact{display:none;width:42px;height:42px;object-fit:contain}
.sidebar-collapsed .brand.brand-logos{padding:0 0 12px;height:58px;min-height:58px}
.sidebar-collapsed .brand-pesco-full{display:none}
.sidebar-collapsed .brand-pesco-compact{display:block}
.sidebar-vltec-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:12px 2px 0;padding:12px 4px 2px;border-top:1px solid rgba(226,236,249,.30);min-height:75px}
.sidebar-vltec-brand span,.login-powered span{font-size:8px;letter-spacing:.12em;font-weight:800;color:rgba(226,236,249,.72)}
.sidebar-vltec-full{display:block;width:min(100%,154px);height:43px;object-fit:contain;object-position:center}
.sidebar-vltec-compact{display:none;width:39px;height:39px;object-fit:contain}
.sidebar-collapsed .sidebar-vltec-brand{margin:8px 0 0;padding:9px 0 0;min-height:53px}
.sidebar-collapsed .sidebar-vltec-brand span,.sidebar-collapsed .sidebar-vltec-full{display:none}
.sidebar-collapsed .sidebar-vltec-compact{display:block}
.pesco-dashboard-banner img{width:118px;height:46px;object-fit:contain}
.login-brand-panel{width:100%;min-height:104px;padding:17px 22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(115deg,#0f1f35,#173b73);border-radius:14px;margin:0 auto 18px}
.login-pesco-logo{display:block;width:min(100%,245px);height:70px;object-fit:contain}
.login-powered{margin-top:18px;padding-top:13px;border-top:1px solid #edf1f5;display:flex;flex-direction:column;align-items:center;gap:4px}
.login-powered span{color:#8491a3}
.login-powered img{width:128px;height:43px;object-fit:contain}
@media(max-width:640px){.brand.brand-logos{height:68px;min-height:68px}.brand-pesco-full{height:54px}.sidebar-vltec-full{height:38px}}

/* ==========================================================
   V55 — PESCO Logistics UI, navegación y filtros desplegables
   Alineado a las capturas de referencia del usuario.
   ========================================================== */
:root{
  --navy:#0d1d32;--navy2:#172b45;--blue:#2359e8;--blue2:#3776ed;
  --bg:#eff3f8;--card:#fff;--text:#172437;--muted:#8793a4;
  --border:#e4eaf2;--sidebar:205px;--sidebar-collapsed:66px;
  --shadow:0 5px 18px rgba(19,43,73,.055);
}
html,body{background:#eff3f8;color:#172437;font-family:Inter,Arial,sans-serif}
.app-shell{min-height:100vh;background:#eff3f8}
.sidebar{
  width:205px;padding:13px 10px 10px;background:#0d1d32;
  background-image:linear-gradient(180deg,#0d1d32 0%,#0c1b2e 100%);
  border-right:1px solid rgba(255,255,255,.08);box-shadow:none;
}
.sidebar-collapsed .sidebar{width:66px}
.brand.brand-logos{height:65px;min-height:65px;margin:0 0 9px;padding:3px 4px 10px;justify-content:flex-start}
.brand-pesco-full{width:100%;max-width:152px;height:54px;object-position:left center}
.brand-pesco-compact{width:40px;height:40px}
.sidebar-toggle{
  position:absolute;right:-21px;top:25px;width:42px;height:42px;border-radius:13px;
  border:1px solid #d7e0eb;background:#132842;color:#dbe5f2;display:grid;place-items:center;
  box-shadow:0 4px 10px rgba(14,34,58,.18);z-index:70;font-size:16px;
}
.sidebar-toggle:hover{background:#1d395d;color:#fff}
.sidebar-toggle i{transform:none!important}
.nav-menu{display:flex;flex-direction:column;gap:13px;margin:2px 0 12px;padding:0;overflow:auto;scrollbar-width:thin}
.nav-section{display:flex;flex-direction:column;gap:3px}
.nav-section-label{padding:0 9px 5px;color:#9aa9bd;font-size:8px;line-height:1.2;font-weight:900;letter-spacing:.075em;text-transform:uppercase}
.nav-item{
  position:relative;height:35px;min-height:35px;padding:0 11px;gap:10px;border-radius:7px;
  color:#b7c3d2;background:transparent;box-shadow:none;text-align:left;
}
.nav-item i{width:15px;min-width:15px;font-size:11px;color:#95a7bd}
.nav-item span{font-size:10px;font-weight:600;letter-spacing:0;line-height:1.15}
.nav-item:hover{background:rgba(255,255,255,.065);color:#fff}
.nav-item:hover i{color:#d6e5fa}
.nav-item.active{background:#1e3553;color:#fff;box-shadow:inset 4px 0 0 #2563eb}
.nav-item.active i{color:#9fc1ff}
.sidebar-bottom{margin-top:auto;gap:3px;border-top:0;padding-top:7px}
.sidebar-bottom .nav-item{height:31px;min-height:31px}
.sidebar-vltec-brand{margin:9px 2px 0;padding:10px 3px 1px;min-height:66px;gap:3px;border-top:1px solid rgba(220,232,247,.55)}
.sidebar-vltec-brand span{font-size:8px;letter-spacing:.01em;text-transform:none;color:#aab8ca;font-weight:700}
.sidebar-vltec-full{width:min(100%,128px);height:39px}
.sidebar-vltec-compact{width:38px;height:38px}
.sidebar-collapsed .brand.brand-logos{justify-content:center;padding:0 0 9px;height:55px;min-height:55px}
.sidebar-collapsed .nav-section-label{display:none}
.sidebar-collapsed .nav-menu{gap:8px}
.sidebar-collapsed .nav-item{justify-content:center;padding:0;height:38px;min-height:38px}
.sidebar-collapsed .nav-item span{display:none}
.sidebar-collapsed .sidebar-vltec-brand{border-top:1px solid rgba(220,232,247,.35)}
.main-content{margin-left:205px;min-height:100vh;transition:margin-left .22s ease;background:#eff3f8}
.sidebar-collapsed .main-content{margin-left:66px}
.topbar{
  height:80px;min-height:80px;padding:0 27px 0 30px;background:#fff;border-bottom:1px solid #e8edf3;
  box-shadow:0 2px 10px rgba(23,43,70,.035);z-index:35;
}
.topbar-left{gap:12px}
.mobile-menu{display:none}
.topbar-heading{min-width:220px}
.eyebrow{font-size:9px;letter-spacing:.09em;color:#b0bdcf;font-weight:900}
.topbar h1{margin:3px 0 0;color:#10233c;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.025em}
.topbar-actions{display:flex;align-items:center;gap:17px}
.topbar-icon-button{width:34px;height:34px;border:0;background:transparent;color:#2563eb;border-radius:50%;font-size:18px;display:grid;place-items:center}
.topbar-icon-button:hover{background:#eef4ff}
.locale-chip{display:flex;align-items:center;gap:7px;color:#13243b;min-width:64px}
.locale-flag{font-size:17px;line-height:1}
.locale-chip>span:nth-child(2){display:flex;flex-direction:column;line-height:1.05}
.locale-chip strong{font-size:11px;font-weight:900}
.locale-chip small{font-size:8px;color:#9aa8bb;margin-top:3px;font-weight:700}
.locale-chip>i{font-size:9px;color:#52637a;margin-left:-3px}
.topbar-notification{width:28px;height:32px;display:grid;place-items:center;color:#2563eb;font-size:16px}
.user-chip{gap:8px;min-width:0}
.user-chip .avatar{width:42px;height:42px;border-radius:14px;background:#edf3ff;color:#2563eb;font-size:17px;font-weight:900}
.user-chip-text strong{font-size:12px;color:#172437;white-space:nowrap}
.user-chip-text small{font-size:9px;color:#9eabc0;margin-top:4px}
.user-chevron{font-size:9px;color:#64748b;margin-left:1px}
.topbar-upload{height:35px;padding:0 12px;border-radius:9px}
.view{padding:18px 28px 36px;min-width:0;background:#eff3f8}
.page-toolbar{margin-bottom:17px;align-items:center}
.page-toolbar h2{font-size:18px;line-height:1.2;color:#17263a;font-weight:800;letter-spacing:-.025em}
.page-toolbar p{margin-top:3px;font-size:9px;color:#9aa5b2}
.btn{height:35px;border-radius:9px;font-size:10px;font-weight:800}
.btn-primary{background:#11253e;box-shadow:none;color:#fff}
.btn-primary:hover{background:#1b3a62}
.btn-outline{background:#fff;border-color:#e1e7ef;color:#2b3b50;box-shadow:none}
.icon-btn{border-radius:9px}
.panel{border:1px solid #e7edf4;border-radius:15px;background:#fff;box-shadow:0 4px 15px rgba(24,47,75,.045);padding:15px;margin-bottom:14px}
.panel-head{margin-bottom:12px}
.panel-head h3{font-size:12px;color:#20324a}
.panel-subtitle{font-size:9px;color:#94a0af}
.data-table th{background:#f7f9fc;color:#74849a;font-size:8px}
.data-table td{font-size:9px;color:#304258}
.data-table th,.data-table td{padding:9px 10px;border-bottom-color:#edf1f5}
.data-module-table-scroll{max-height:calc(100vh - 270px);overflow:auto;border-radius:12px}
.data-module-filter-sticky{top:80px!important}
.general-filterbar,.count-toolbar{
  border:1px solid #e7edf4;border-radius:13px;background:#fff;box-shadow:0 4px 15px rgba(24,47,75,.045);
  padding:10px 12px!important;gap:12px!important;
}
.filter-toolbar-modern .filter-toolbar-title{height:36px;min-width:112px;border:0;background:transparent;padding:0 4px;color:#26384e}
.filter-toolbar-modern .filter-toolbar-title i{color:#536c8a}
.filter-toolbar-modern .filter-toolbar-title strong{font-size:10px;text-transform:none;letter-spacing:0}
.filter-toolbar-modern .filter-toolbar-title span{display:none}
.filter-toolbar-modern .field-inline{min-width:115px;flex:1 1 120px}
.filter-toolbar-modern .field-inline label{font-size:8px;color:#25364c;font-weight:900;letter-spacing:.025em}
.filter-toolbar-modern .field-inline select,.filter-toolbar-modern .field-inline input{
  height:32px;min-width:0;width:100%;border:1px solid #d6dfeb;border-radius:8px;padding:0 9px;background:#fff;
  font-size:9px;color:#2c3d53;font-weight:700;box-shadow:none;
}
.filter-toolbar-modern .filter-clear-modern{height:32px;margin-left:auto}
.page-toolbar+.general-filterbar{margin-top:-2px}
.pesco-dashboard-banner{
  min-height:53px;margin:14px 0 16px;padding:6px 13px;gap:12px;border-radius:11px;
  background:linear-gradient(100deg,#2d5595 0%,#315b9f 55%,#31599a 100%);box-shadow:none;
}
.pesco-dashboard-banner img{width:88px;height:38px;object-fit:contain}
.pesco-banner-divider{height:33px;width:2px;background:rgba(255,255,255,.7)}
.pesco-dashboard-banner strong{font-size:15px;letter-spacing:.085em;font-weight:500}
.pesco-dashboard-banner strong b{font-weight:900}
.dashboard-page-toolbar{margin-bottom:11px}
.dashboard-page-toolbar h2{font-size:18px}
.dashboard-page-toolbar p{font-size:9px}
/* KPI filter panel — same design as the supplied dropdown-filter reference. */
#dashboardContentLayout.dashboard-content-layout{grid-template-columns:182px minmax(0,1fr)!important;gap:13px!important;align-items:start}
#dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
#dashboardFilters .dashboard-filter-sidebar-static{max-width:none!important;width:100%;border:1px solid #e5ebf2!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 15px rgba(24,47,75,.045)!important;overflow:visible!important}
#dashboardFilters .dashboard-filter-sidebar-static-head{height:42px;padding:0 12px;border:0;border-bottom:1px solid #edf1f5;background:#fff;border-radius:14px 14px 0 0;display:flex;align-items:center;justify-content:space-between}
#dashboardFilters .dashboard-filter-title{gap:7px}
#dashboardFilters .dashboard-filter-title i{color:#65778f;font-size:11px}
#dashboardFilters .dashboard-filter-title strong{font-size:11px;color:#20334a;letter-spacing:0;text-transform:none}
#dashboardFilters .dashboard-filter-count{color:#8191a6;font-size:8px}
#dashboardFilters .dashboard-filter-static-toggle{width:25px;height:25px;border:0;background:#f2f5f9;border-radius:7px;color:#52647a}
#dashboardFilters .dashboard-filter-sidebar-static-body{padding:0 10px 10px;max-height:none;overflow:visible}
#dashboardFilters .dashboard-filter-sidebar-head{padding:12px 3px 8px;background:#fff;border-bottom:1px solid #edf1f5}
#dashboardFilters .dashboard-filter-sidebar-head strong{font-size:10px!important;color:#20334a!important;font-weight:800!important}
#dashboardFilters .dashboard-filter-sidebar-head span{font-size:8px!important;color:#98a4b3!important;line-height:1.4}
#dashboardFilters .dashboard-mode-in-filter{display:flex;margin:11px 0 12px;padding:3px;gap:3px;background:#f2f5f9;border:1px solid #e3e9f0;border-radius:10px}
#dashboardFilters .dashboard-mode-btn{height:29px;flex:1;justify-content:center;padding:0 6px;border-radius:8px;background:transparent;color:#9aa8ba;font-size:9px}
#dashboardFilters .dashboard-mode-btn.active{background:#fff;color:#173d73;box-shadow:0 2px 7px rgba(22,43,70,.1)}
#dashboardFilters .dashboard-mode-btn i{font-size:9px}
#dashboardFilters .dashboard-filter-primary{display:flex;flex-direction:column;gap:8px;padding:0!important;margin:0!important}
#dashboardFilters .dashboard-slicer{position:relative;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
#dashboardFilters .dashboard-slicer-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 4px!important}
#dashboardFilters .dashboard-slicer-head>div{display:flex;align-items:center;gap:6px}
#dashboardFilters .dashboard-slicer-head i{font-size:8px;color:#8494a8}
#dashboardFilters .dashboard-slicer-head strong{font-size:8px!important;color:#596a80!important;font-weight:800}
#dashboardFilters .dashboard-slicer-head>span{font-size:7px;color:#a0adbd}
#dashboardFilters .dashboard-slicer-trigger{width:100%;height:31px;padding:0 9px;border:1px solid #dce4ee;border-radius:8px;background:#fff;color:#34465e;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-size:9px;font-weight:700}
#dashboardFilters .dashboard-slicer-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dashboardFilters .dashboard-slicer-trigger i{font-size:8px;color:#71839a}
#dashboardFilters .dashboard-slicer.is-open .dashboard-slicer-trigger{border-color:#8eacd4;box-shadow:0 0 0 3px rgba(35,89,232,.07)}
#dashboardFilters .dashboard-slicer-menu{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:90;max-height:220px;overflow:auto;padding:6px;border:1px solid #e1e7ef;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(19,43,73,.17)}
#dashboardFilters .dashboard-slicer-menu[hidden]{display:none!important}
#dashboardFilters .dashboard-slicer-option{width:100%!important;min-height:29px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;padding:6px 7px!important;border:0!important;border-radius:7px!important;background:#fff!important;color:#41536b!important;text-align:left!important;font-size:8px!important;font-weight:600!important;box-shadow:none!important}
#dashboardFilters .dashboard-slicer-option:before{display:none!important}
#dashboardFilters .dashboard-slicer-option i{font-size:11px;color:#98a7b9}
#dashboardFilters .dashboard-slicer-option.active{background:#edf3ff!important;color:#173d73!important;box-shadow:inset 2px 0 0 #2862d8!important}
#dashboardFilters .dashboard-slicer-option.active i{color:#2359e8}
#dashboardFilters .dashboard-slicer-clear{height:26px;padding:0 7px;border:0;border-bottom:1px solid #edf1f5;background:transparent;color:#41628e;font-size:8px;font-weight:800}
#dashboardFilters .dashboard-advanced-toggle{width:100%;height:34px;margin:12px 0 8px;padding:0 9px;border:1px solid #e3eaf2;border-radius:8px;background:#f5f7fa;color:#30445e;display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:800}
#dashboardFilters .dashboard-advanced-toggle span{display:flex;align-items:center;gap:7px}
#dashboardFilters .dashboard-advanced-toggle>i{font-size:8px;color:#7d8da2}
#dashboardFilters .dashboard-advanced-toggle.active{background:#eef4ff;border-color:#cbdaf0;color:#1d4c87}
#dashboardFilters .dashboard-filter-advanced{display:grid;gap:8px;padding-bottom:3px}
#dashboardFilters .dashboard-filter-advanced[hidden]{display:none!important}
#dashboardFilters .dashboard-filter-sidebar-foot{margin-top:9px!important;padding:9px 0 0!important;border-top:1px solid #edf1f5;background:#fff!important}
#dashboardFilters .dashboard-clear-btn{height:30px!important;border:1px solid #e0e7ef!important;background:#fff!important;color:#617188!important;border-radius:8px!important;font-size:8px!important}
#dashboardContentLayout.filters-collapsed #dashboardFilters .dashboard-filter-sidebar-static{width:44px!important;overflow:hidden!important}
.dashboard-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:13px}
.dashboard-kpi{min-height:74px;border-radius:13px;padding:9px 10px;background:#fff;box-shadow:0 4px 13px rgba(20,43,72,.045);border-color:#e6ecf3}
.dashboard-kpi-head span{font-size:8px;color:#273b55}
.dashboard-kpi-head i{font-size:10px;color:#7b8ba0}
.dashboard-kpi strong{font-size:18px;color:#112b4b}
.dashboard-chart-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:11px}
.dashboard-chart-card,.dashboard-top5{border-radius:14px;background:#fff;border:1px solid #e6ecf3;box-shadow:0 4px 13px rgba(20,43,72,.045);padding:12px;margin-bottom:0}
.dashboard-chart-head h3{font-size:9px;color:#20344e;letter-spacing:.035em}
.dashboard-chart-head span{font-size:8px;color:#9aa6b4}
.dashboard-chart-box{height:225px!important;min-height:225px!important}
.dashboard-chart-box.tall{height:245px!important;min-height:245px!important}
/* Panel grupos y parejas: same visual language, hierarchical multiselects and three levels of progress. */
.userpanel-banner{margin-top:4px}
#userPanelContentLayout.dashboard-content-layout{grid-template-columns:182px minmax(0,1fr)!important;gap:13px!important}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
.userpanel-filter-shell{border:1px solid #e5ebf2!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 15px rgba(24,47,75,.045)!important}
.userpanel-filter-shell .dashboard-filter-rail-head{height:42px;padding:0 11px;background:#fff;border:0;border-bottom:1px solid #edf1f5;border-radius:14px 14px 0 0}
.userpanel-filter-title strong{font-size:11px;color:#20334a;letter-spacing:0;text-transform:none}
.userpanel-filter-title i{color:#65778f}
.userpanel-filter-shell .dashboard-filter-sidebar{border:0!important;box-shadow:none!important;border-radius:0 0 14px 14px!important;background:#fff!important}
.userpanel-filter-shell .dashboard-filter-sidebar-head{padding:11px 13px 8px;background:#fff;border-bottom:1px solid #edf1f5}
.userpanel-filter-shell .dashboard-filter-sidebar-head strong{font-size:10px!important;color:#253a54!important}
.userpanel-filter-shell .dashboard-filter-sidebar-head span{font-size:8px!important;color:#97a4b3!important}
.userpanel-filter-list{display:flex!important;flex-direction:column!important;gap:9px!important;padding:11px!important;max-height:calc(100vh - 280px)!important;overflow:visible!important}
.userpanel-filter-control{position:relative;padding:0!important;border:0!important;background:transparent!important}
.userpanel-filter-control>label{display:flex;align-items:center;gap:6px;margin:0 0 4px!important;font-size:8px!important;color:#596b82!important;font-weight:800!important;letter-spacing:0!important;text-transform:none!important}
.userpanel-filter-control>label i{width:12px;color:#71859e!important}
.userpanel-dropdown-trigger{width:100%;height:31px;padding:0 9px;border:1px solid #dce4ee;border-radius:8px;background:#fff;color:#34465e;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-size:9px;font-weight:700}
.userpanel-dropdown-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.userpanel-dropdown-trigger i{font-size:8px;color:#71839a}
.userpanel-filter-control.is-open .userpanel-dropdown-trigger{border-color:#8eacd4;box-shadow:0 0 0 3px rgba(35,89,232,.07)}
.userpanel-dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:95;max-height:210px;overflow:auto;padding:6px;border:1px solid #e1e7ef;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(19,43,73,.17)}
.userpanel-dropdown-menu[hidden]{display:none!important}
.userpanel-dropdown-option{display:flex!important;align-items:center;gap:7px;padding:7px 6px;border-radius:7px;margin:0!important;color:#41536b!important;font-size:8px!important;cursor:pointer}
.userpanel-dropdown-option:hover{background:#f2f6fb}
.userpanel-dropdown-option input{width:13px;height:13px;margin:0;accent-color:#2359e8}
.userpanel-no-options{display:block;padding:8px;color:#8998aa;font-size:8px}
.userpanel-level-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 13px}
.userpanel-level-card{min-width:0;min-height:220px;margin:0;padding:12px;border-radius:14px;background:#fff;border:1px solid #e6ecf3;box-shadow:0 4px 13px rgba(20,43,72,.045)}
.userpanel-level-card .dashboard-chart-head{margin-bottom:12px}
.userpanel-level-card .dashboard-chart-head h3{font-size:9px;font-weight:900;color:#20344e}
.userpanel-level-list{display:flex;flex-direction:column;gap:13px;max-height:270px;overflow:auto;padding:2px 3px 5px;scrollbar-width:thin}
.userpanel-level-row{display:grid;gap:5px;min-width:0}
.userpanel-level-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.userpanel-level-top>div{display:grid;gap:2px;min-width:0}
.userpanel-level-top strong{font-size:8px;color:#344861;white-space:normal;line-height:1.3;overflow-wrap:anywhere}
.userpanel-level-top small{font-size:7px;color:#93a1b3;font-weight:700}
.userpanel-level-top>b{flex:0 0 auto;font-size:8px;color:#1c3f70;font-variant-numeric:tabular-nums}
.userpanel-level-track{height:9px;background:#e9edf3;border-radius:99px;overflow:hidden}
.userpanel-level-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#173d73,#3977d8);transition:width .25s ease}
.userpanel-level-meta{font-size:7px;color:#97a4b4}
.userpanel-chart-empty{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9aa7b6;font-size:9px}
.userpanel-chart-empty i{font-size:22px;color:#bdc9d8}
.userpanel-assignment-grid{max-height:520px;grid-template-columns:repeat(2,minmax(0,1fr))}
.operational-assignment-card{border-color:#e4eaf2;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(20,43,72,.035)}
.operational-track span{background:linear-gradient(90deg,#173d73,#3977d8)}
/* The count, control and administration modules share the reference's clean white filter bars. */
#view-summary .panel,#view-contraloria .panel,#view-count .panel,#view-admin .panel,#view-users .panel,#view-requests .panel,#view-logs .panel{border-radius:14px}
#view-users .users-page-panel,#view-requests .requests-page-panel{min-height:390px}
.users-search-field{flex:1 1 280px!important}
.users-search-field input{width:100%}
.admin-group-manager{border-radius:15px}
.admin-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;height:330px;max-height:330px;padding:9px 2px 4px}
.admin-group-card{border-radius:13px;border-color:#e2e9f1;background:rgba(255,255,255,.88)}
.warehouse-editor-row,.warehouse-control-card{border-radius:11px}
.modal-card{border-radius:18px;box-shadow:0 25px 70px rgba(12,31,54,.22)}
.modal-head h3{color:#1c3049}
/* Dark mode is optional and toggled from the moon icon; light remains the default. */
body.theme-dark,body.theme-dark .app-shell,body.theme-dark .main-content,body.theme-dark .view{background:#111d2d;color:#e5edf7}
body.theme-dark .topbar,body.theme-dark .panel,body.theme-dark .dashboard-kpi,body.theme-dark .dashboard-chart-card,body.theme-dark .dashboard-top5,body.theme-dark .general-filterbar,body.theme-dark .count-toolbar,body.theme-dark .userpanel-level-card{background:#19283b;border-color:#2a3b51;color:#e5edf7}
body.theme-dark .topbar h1,body.theme-dark .page-toolbar h2,body.theme-dark .panel-head h3,body.theme-dark .dashboard-chart-head h3,body.theme-dark .dashboard-kpi-head span{color:#e7eef8}
body.theme-dark .dashboard-filter-sidebar-static,body.theme-dark #dashboardFilters .dashboard-slicer-trigger,body.theme-dark #dashboardFilters .dashboard-slicer-menu,body.theme-dark .userpanel-filter-shell,body.theme-dark .userpanel-dropdown-trigger,body.theme-dark .userpanel-dropdown-menu{background:#19283b!important;border-color:#2a3b51!important;color:#e5edf7!important}
body.theme-dark .data-table th{background:#203149;color:#c3d1e2}
body.theme-dark .data-table td{color:#d1dbe8}
body.theme-dark input,body.theme-dark select{background:#17263a;color:#e2eaf5;border-color:#33475f}
@media(max-width:1100px){
  .dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-chart-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .userpanel-level-charts{grid-template-columns:1fr 1fr}
  #dashboardContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:182px minmax(0,1fr)!important}
}
@media(max-width:900px){
  .sidebar{transform:translateX(-105%);width:205px}
  .app-shell.mobile-open .sidebar{transform:translateX(0)}
  .main-content,.sidebar-collapsed .main-content{margin-left:0}
  .sidebar-toggle{display:none}
  .mobile-menu{display:grid;place-items:center;width:35px;height:35px;border:1px solid #e0e7ef;border-radius:10px;background:#fff;color:#1d3554}
  .topbar{height:72px;min-height:72px;padding:0 14px}
  .topbar-actions{gap:8px}
  .topbar-upload{display:none}
  .view{padding:16px 14px 28px}
  #dashboardContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:1fr!important}
  .dashboard-filter-column{position:relative;top:auto}
  #dashboardFilters .dashboard-filter-sidebar-static{max-width:none!important}
  .userpanel-filter-list{max-height:none!important}
  .general-filterbar{flex-wrap:wrap!important;overflow:visible!important}
  .userpanel-level-charts{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .topbar-heading{min-width:0}
  .topbar h1{font-size:16px}
  .eyebrow{font-size:7px}
  .topbar-actions{gap:4px}
  .locale-chip{display:none}
  .topbar-notification{display:none}
  .user-chip .avatar{width:34px;height:34px}
  .user-chip-text,.user-chevron{display:none}
  .page-toolbar{align-items:flex-start;flex-direction:row}
  .dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-chart-grid-3{grid-template-columns:1fr}
  .userpanel-level-charts{grid-template-columns:1fr}
  .userpanel-assignment-grid{grid-template-columns:1fr}
  .pesco-dashboard-banner{min-height:46px;padding:5px 9px;gap:8px}
  .pesco-dashboard-banner img{width:70px;height:32px}
  .pesco-dashboard-banner strong{font-size:10px;letter-spacing:.045em}
  .data-module-table-scroll{max-height:calc(100vh - 250px)}
}


/* V56 — topbar, vertical slicers and exact reference interactions */
.topbar-menu-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto}
.topbar-menu-trigger{border:0!important;background:transparent!important;padding:0!important;cursor:pointer;text-align:left}
.topbar-menu-trigger:hover{background:transparent!important}
.topbar-dropdown{position:absolute;right:0;top:calc(100% + 11px);z-index:140;display:flex;flex-direction:column;min-width:205px;padding:7px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;box-shadow:0 18px 44px rgba(17,38,64,.18);color:#20334b}
.topbar-dropdown[hidden]{display:none!important}
.topbar-dropdown button{width:100%;min-height:43px;display:flex;align-items:center;gap:10px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#25384f;text-align:left;cursor:pointer;font:600 11px Inter,Arial,sans-serif}
.topbar-dropdown button:hover{background:#f1f5fa}
.topbar-dropdown button>span:first-child{font-size:17px;line-height:1}
.topbar-dropdown button>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.topbar-dropdown button strong{font-size:10px;font-weight:800;color:#24374f}
.topbar-dropdown button small{font-size:8px;color:#8d9bad;font-weight:600}
.currency-dropdown button .fa-check{opacity:0;color:#2563eb;font-size:11px}
.currency-dropdown button.selected{background:#edf4ff}
.currency-dropdown button.selected .fa-check{opacity:1}
.topbar-notification{position:relative;border:0;background:transparent;border-radius:9px;cursor:pointer}
.topbar-notification:hover{background:#eef4ff}
.notification-badge{position:absolute;top:0;right:-2px;min-width:15px;height:15px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:99px;background:#dc3d4c;color:#fff;font-size:7px;font-weight:900}
.notification-badge[hidden]{display:none!important}
.notification-dropdown{width:min(370px,calc(100vw - 24px));max-height:min(490px,calc(100vh - 100px));padding:0;overflow:hidden}
.topbar-dropdown-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid #edf1f5}
.topbar-dropdown-head strong{font-size:11px;color:#1f344f}
.topbar-dropdown-head span{font-size:8px;color:#8b9aae}
.notification-list{max-height:410px;overflow:auto;padding:6px}
.notification-item{display:flex!important;align-items:flex-start!important;gap:9px!important;min-height:0!important;padding:9px!important;border-radius:10px!important}
.notification-type-icon{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;border-radius:8px;background:#fff0f0;color:#c83a47}
.notification-item.is-surplus .notification-type-icon{background:#fff5e9;color:#c16c15}
.notification-item-main{display:grid;gap:4px;flex:1;min-width:0}
.notification-item-main strong{font-size:9px!important;color:#26394f!important}
.notification-item-main small{font-size:8px!important;color:#8796a8!important;line-height:1.35}
.notification-item-main .notification-description{color:#60728a!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notification-item>i{align-self:center;color:#a3afbf;font-size:9px}
.notification-empty{min-height:90px;display:flex;align-items:center;justify-content:center;gap:8px;padding:18px;text-align:center;color:#91a0b2;font-size:9px}
.notification-empty i{font-size:16px}
.profile-dropdown{width:235px;gap:3px}
.profile-dropdown-user{display:flex;align-items:center;gap:10px;padding:10px 9px 12px;margin-bottom:3px;border-bottom:1px solid #edf1f5}
.profile-dropdown-user>span:last-child{display:grid;gap:3px;min-width:0}
.profile-dropdown-user strong{font-size:10px;color:#1f344f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-dropdown-user small{font-size:8px;color:#8c9aae;text-transform:capitalize}
.profile-dropdown button{min-height:37px;font-size:9px}
.profile-dropdown button i{width:16px;color:#71839a;text-align:center}
.profile-dropdown .profile-logout{color:#b83240}
.profile-dropdown .profile-logout i{color:#c5414d}
.filter-data-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:11px 0 12px;padding:10px 9px;border:1px solid #e7edf4;border-radius:10px;background:#f4f7fa;cursor:pointer;user-select:none}
.filter-data-toggle>span{display:grid;gap:3px;min-width:0}
.filter-data-toggle strong{font-size:9px;color:#263b55;font-weight:800}
.filter-data-toggle small{font-size:7.5px;color:#8998aa}
.filter-data-toggle input{position:absolute;opacity:0;pointer-events:none}
.filter-data-toggle>i{position:relative;width:34px;height:19px;flex:0 0 34px;border-radius:99px;background:#d7dfe8;transition:background .16s ease}
.filter-data-toggle>i:after{content:'';position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:transform .16s ease}
.filter-data-toggle input:checked+i{background:#2359e8}
.filter-data-toggle input:checked+i:after{transform:translateX(15px)}
.filter-data-toggle input:focus-visible+i{outline:3px solid rgba(35,89,232,.18);outline-offset:2px}
#dashboardContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:184px minmax(0,1fr)!important;gap:14px!important}
#dashboardContentLayout.dashboard-content-layout.filters-collapsed,#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
#dashboardFilters .dashboard-filter-sidebar-static-body,.userpanel-filter-shell .dashboard-filter-sidebar{overflow:visible!important}
#dashboardFilters .dashboard-filter-sidebar-static{overflow:visible!important}
.userpanel-filter-shell .dashboard-filter-sidebar{position:relative!important;overflow:visible!important}
.userpanel-dropdown-menu{z-index:150!important}
#dashboardFilters .dashboard-slicer-menu{z-index:150!important}
.dashboard-slicer-head>span{font-size:7px!important;color:#8fa0b5!important}
.dashboard-slicer-option.active{background:#edf4ff!important;color:#173d73!important;border-color:#d5e4fa!important;box-shadow:inset 3px 0 0 #2862d8!important}
.dashboard-slicer-option.active i{color:#2359e8!important}
.userpanel-dropdown-option input{accent-color:#2359e8}
.userpanel-level-track span,.operational-track span{background:linear-gradient(90deg,#123a78,#3977d8)!important}
.dashboard-chart-head h3,.userpanel-level-card .dashboard-chart-head h3{color:#20344e}
.summary-focus-row{background:#fff8e6!important;outline:2px solid #f2c35c;outline-offset:-2px}
.summary-focus-row-pulse{animation:summaryRowPulse 1.6s ease-out 1}
@keyframes summaryRowPulse{0%{background:#ffe7a8}100%{background:#fff8e6}}
@media(max-width:640px){
  .locale-chip{display:flex!important;min-width:54px!important;gap:5px!important}
  .locale-flag{font-size:15px!important}
  .locale-chip strong{font-size:9px!important}
  .locale-chip small{font-size:7px!important}
  .topbar-notification{display:grid!important;width:25px!important;height:30px!important}
  .topbar-actions{gap:5px!important}
  .topbar-dropdown{right:-6px}
  .notification-dropdown{right:-48px}
  .profile-dropdown{right:0}
  #dashboardContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:1fr!important}
}
.dashboard-slicer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 4px 6px;border-bottom:1px solid #edf1f5;margin-bottom:4px}
.dashboard-slicer-actions button{border:0;background:transparent;padding:4px 2px;color:#315d96;font-size:8px;font-weight:800;cursor:pointer}
.dashboard-slicer-actions button:hover{text-decoration:underline}
.dashboard-slicer-actions .dashboard-slicer-clear{color:#8391a3}

/* V57 — filtro avanzado: únicamente visibilidad de gráficos sin datos. */
.advanced-chart-hidden{display:none!important}
/* Mantener tarjetas gráficas con un mínimo de aire cuando los filtros avanzados están desactivados. */
.userpanel-level-card[aria-hidden="false"],.userpanel-hero-card[aria-hidden="false"],.userpanel-status-card[aria-hidden="false"]{visibility:visible}
/* Slicers de selección múltiple con lectura consistente en panel y dashboard. */
.dashboard-slicer-option i{flex:0 0 13px;text-align:center}
.dashboard-slicer-option.active{background:#edf4ff!important;color:#173d73!important;border-color:#d4e3f7!important}
.userpanel-dropdown-option input{flex:0 0 14px}
.userpanel-dropdown-menu{max-height:260px!important}
.topbar-actions{gap:15px}
@media(max-width:780px){.topbar-actions{gap:7px}}

/* V56.2 · filtros de Logs, plantillas desplegables y directorio de usuarios */
.logs-filterbar{align-items:end;gap:14px;margin-bottom:16px}
.logs-user-field{min-width:220px;flex:1.2}
.logs-date-range{display:flex;align-items:center;gap:8px;white-space:nowrap}
.logs-date-range span{font-size:10px;color:var(--muted)}
.logs-date-range input{height:38px;min-width:138px;border:1px solid var(--border);border-radius:9px;padding:0 10px;background:#fff;color:var(--text);font:inherit;font-size:11px;outline:none}
.logs-date-range input:focus{border-color:#6f9cf5;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.logs-multi,.count-multi{position:relative;min-width:0;width:100%}
.logs-multi-trigger,.count-multi-trigger{height:38px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--text);font:inherit;font-size:11px;text-align:left;cursor:pointer;white-space:nowrap}
.logs-multi-trigger span,.count-multi-trigger span{overflow:hidden;text-overflow:ellipsis}
.logs-multi-trigger i,.count-multi-trigger i{font-size:10px;color:#68788d;flex:0 0 auto}
.logs-multi-menu,.count-multi-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:210px;max-height:280px;overflow:auto;z-index:80;padding:7px;background:#fff;border:1px solid #dbe3ed;border-radius:11px;box-shadow:0 14px 35px rgba(18,38,63,.16)}
.logs-multi-actions,.count-multi-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 5px 8px;border-bottom:1px solid #edf1f6;margin-bottom:5px}
.logs-multi-actions button,.count-multi-actions button{border:0;background:transparent;color:#2456a6;font-size:10px;font-weight:800;cursor:pointer;padding:4px}
.logs-multi-option,.count-multi-option{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 7px;border-radius:7px;color:#24364d;font-size:10px;cursor:pointer}
.logs-multi-option:hover,.count-multi-option:hover{background:#f1f6fc}
.logs-multi-option input,.count-multi-option input{accent-color:#2563eb;width:14px;height:14px;flex:0 0 auto}
.logs-multi-option span{display:flex;flex-direction:column;gap:2px}
.logs-multi-option small{font-size:9px;color:#8a97a9}
.logs-multi-empty,.count-multi-empty{padding:14px 8px;text-align:center;color:#8794a7;font-size:10px}
.count-toolbar .field-inline{min-width:122px;flex:1 1 125px}
.count-toolbar .count-position-filter-field{min-width:145px;flex:1.2 1 145px}
.count-multi{min-width:0}
.count-templates-list{display:flex;flex-direction:column;gap:12px;margin:0 0 18px}
.count-template-card{background:#fff;border:1px solid #dfe7f1;border-radius:15px;box-shadow:var(--shadow);overflow:visible}
.count-template-card>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 18px;cursor:pointer;user-select:none}
.count-template-card>summary::-webkit-details-marker{display:none}
.count-template-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:11px;background:#eaf1ff;color:#245bd3}
.count-template-name{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.count-template-name small{font-size:8px;letter-spacing:.08em;font-weight:900;color:#6d82a0}
.count-template-name strong{font-size:13px;color:#172b46;line-height:1.25}
.count-template-name em{font-style:normal;font-size:9px;color:#8290a4}
.count-template-pair-label{max-width:38%;font-size:9px;color:#546b8c;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.count-template-chevron{color:#7688a2;font-size:12px;transition:transform .18s ease}
.count-template-card[open] .count-template-chevron{transform:rotate(180deg)}
.count-template-content{padding:0 13px 13px}
.count-template-content .table-wrap{border:1px solid #e7edf5;border-radius:11px;max-height:68vh}
.count-template-content .data-table{min-width:1060px}
.count-template-content .data-table th{top:0}
.count-template-empty{display:flex;align-items:center;justify-content:center;gap:9px;padding:30px;color:#8392a6;font-size:11px}
.count-template-empty i{font-size:20px;color:#9aabc2}
.users-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.users-role-card{min-width:0;margin-bottom:0;padding:15px;overflow:hidden}
.users-role-card .panel-head{margin-bottom:12px}
.users-role-card .panel-head h3{display:flex;align-items:center;gap:8px;font-size:13px}
.users-role-dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#2563eb}
.users-role-dot.admin{background:#7455d8}.users-role-dot.auditor{background:#d97706}.users-role-dot.user{background:#2563eb}
.users-role-table{min-width:0;width:100%}
.users-role-table th,.users-role-table td{padding:9px 7px;font-size:9px}
.users-role-table th{font-size:8px}
.users-role-table td:first-child{font-weight:800;color:#263c59}
.users-state{display:inline-flex;align-items:center;padding:4px 8px;border-radius:99px;font-size:8px;font-weight:800}
.users-state.active{background:#e9f8f1;color:#0b805a}.users-state.inactive{background:#fff0f0;color:#bc2d3a}
#usersRoleFilter{min-width:140px}
@media(max-width:1100px){.users-role-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.users-role-grid{grid-template-columns:1fr}.logs-filterbar{align-items:stretch}.logs-date-range{flex-wrap:wrap}.logs-date-range input{flex:1;min-width:120px}.count-toolbar .field-inline{flex-basis:calc(50% - 10px)}}


/* V57.1 — multiselect dropdowns for Summary / Contraloría / Logs */
.filter-multi{position:relative;min-width:0;width:100%;}
.filter-multi-trigger{height:38px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 11px;border:1px solid var(--border,#dbe3ed);border-radius:9px;background:#fff;color:var(--text,#26384e);font:inherit;font-size:11px;text-align:left;cursor:pointer;white-space:nowrap;box-shadow:0 1px 2px rgba(16,24,40,.02)}
.filter-multi-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-multi-trigger i{font-size:10px;color:#68788d;flex:0 0 auto}
.filter-multi-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:205px;max-height:285px;overflow:auto;z-index:120;padding:7px;background:#fff;border:1px solid #dbe3ed;border-radius:11px;box-shadow:0 14px 35px rgba(18,38,63,.16)}
.filter-multi-menu[hidden]{display:none!important}
.filter-multi-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 5px 8px;border-bottom:1px solid #edf1f6;margin-bottom:5px}
.filter-multi-actions button{border:0;background:transparent;color:#2456a6;font-size:10px;font-weight:800;cursor:pointer;padding:4px}
.filter-multi-option{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 7px;border-radius:7px;color:#24364d;font-size:10px;cursor:pointer}
.filter-multi-option:hover{background:#f1f6fc}
.filter-multi-option input{accent-color:#2563eb;width:14px;height:14px;flex:0 0 auto}
.filter-multi-empty{padding:14px 8px;text-align:center;color:#8794a7;font-size:10px}
.logs-filterbar{align-items:end;gap:14px}
.logs-filterbar .filter-toolbar-title{flex:0 0 105px}
.logs-filterbar .logs-user-field{min-width:240px;flex:1.2 1 250px}
.logs-filterbar .field-inline>label{display:block;margin:0 0 5px 2px;font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800}
.logs-date-range{display:grid;grid-template-columns:auto minmax(130px,1fr) auto minmax(130px,1fr);align-items:center;gap:8px}
.logs-date-range span{font-size:10px;color:#8794a7}
.logs-date-range input{width:100%;min-width:0;height:38px;border:1px solid #dbe3ed;border-radius:9px;padding:0 10px;background:#fff;color:#24364d;font:inherit;font-size:11px;outline:none}
.logs-date-range input:focus,.filter-multi-trigger:focus{border-color:#6f9cf5;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.filter-apply-modern,.logs-filterbar .filter-clear-modern{height:38px;white-space:nowrap}
.nav-count-wrap{position:relative}
.nav-count-toggle .nav-count-chevron{margin-left:auto;font-size:10px;transition:transform .18s ease;opacity:.8}
.nav-count-toggle.expanded .nav-count-chevron{transform:rotate(180deg)}
.nav-count-submenu{margin:3px 0 7px 14px;padding:5px 0 5px 10px;border-left:1px solid rgba(178,198,225,.25);display:flex;flex-direction:column;gap:3px}
.nav-count-submenu[hidden]{display:none!important}
.nav-subitem{width:100%;min-width:0;display:flex;align-items:center;gap:8px;padding:8px 9px;border:0;border-radius:8px;background:transparent;color:#bfcbda;text-align:left;cursor:pointer;font:inherit;font-size:10px;line-height:1.25}
.nav-subitem>i{width:13px;flex:0 0 13px;color:#8da8cc;font-size:10px}
.nav-subitem span{display:flex;flex-direction:column;gap:2px;min-width:0}
.nav-subitem strong{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-subitem small{font-size:8px;color:#8092aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-subitem:hover:not(:disabled),.nav-subitem.active{background:rgba(66,120,190,.22);color:#fff}
.nav-subitem.is-open>i{color:#65c99a}
.nav-subitem.is-locked{opacity:.55;cursor:not-allowed}
.nav-subitem:disabled{pointer-events:none}
.nav-subitem.nav-count-all{font-weight:800;color:#dbe8fb;background:rgba(255,255,255,.055)}
.nav-count-loading{display:block;padding:8px 10px;color:#8092aa;font-size:9px}
@media(max-width:760px){.logs-filterbar{align-items:stretch}.logs-filterbar .filter-toolbar-title{flex-basis:100%}.logs-date-range{grid-template-columns:auto 1fr;}.logs-date-range span:nth-of-type(2){grid-column:1}.logs-filterbar .filter-apply-modern,.logs-filterbar .filter-clear-modern{width:100%}}


/* V57.2 · Logs: filtro de usuario multiselección y fechas alineados al filtro horizontal de referencia */
.logs-filterbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.logs-filterbar .filter-toolbar-title{flex:0 0 108px}
.logs-filterbar .logs-user-field{min-width:260px;flex:1.15 1 360px}
.logs-filterbar .logs-multi{position:relative;width:100%;min-width:0}
.logs-filterbar .logs-multi .filter-multi-trigger{height:38px;min-height:38px;width:100%}
.logs-filterbar .logs-multi .filter-multi-menu{min-width:260px;max-height:300px}
.logs-filterbar .field-inline:has(.logs-date-range){min-width:420px;flex:1.4 1 440px}
.logs-filterbar .logs-date-range{display:grid;grid-template-columns:auto minmax(130px,1fr) auto minmax(130px,1fr);align-items:center;gap:9px}
.logs-filterbar .logs-date-range input{width:100%;min-width:0;height:38px}
.logs-filterbar .filter-clear-modern{height:38px;white-space:nowrap}
@media(max-width:1000px){.logs-filterbar .filter-toolbar-title{flex-basis:100%}.logs-filterbar .logs-user-field,.logs-filterbar .field-inline:has(.logs-date-range){flex:1 1 100%;min-width:0}}
@media(max-width:560px){.logs-filterbar .logs-date-range{grid-template-columns:1fr 1fr;gap:5px}.logs-filterbar .logs-date-range span{font-size:9px}.logs-filterbar .logs-date-range input{grid-row:2}}


/* V59 — Multiselect de directorio y tipografía uniforme de filtros */
.users-filter-multi{position:relative;width:100%;min-width:155px}
.users-filter-multi .filter-multi-trigger{height:38px;min-height:38px;width:100%;font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500;letter-spacing:0;color:#24364d}
.filter-multi-trigger,.count-multi-trigger,.logs-multi-trigger{font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500;letter-spacing:0}
.filter-multi-option,.count-multi-option,.logs-multi-option{font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500;line-height:1.35}
.filter-multi-actions button,.count-multi-actions button,.logs-multi-actions button{font-family:Inter,Arial,sans-serif;font-size:11px;font-weight:700}
.filter-multi-empty,.count-multi-empty,.logs-multi-empty{font-family:Inter,Arial,sans-serif;font-size:11px}
.users-filter-multi .filter-multi-menu{min-width:220px;max-height:280px}
#usersFilters .users-search-field{flex:1.5 1 280px;min-width:220px}
#usersFilters .field-inline{flex:1 1 180px;min-width:165px}
#usersFilters .users-search-field input{font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500}
@media(max-width:900px){#usersFilters .field-inline{flex:1 1 100%;min-width:0}}


/* V60 — corrección global: todos los desplegables multiselección permanecen abiertos al marcar opciones */
.filter-multi,.count-multi,.logs-multi{position:relative;z-index:1}
.filter-multi.is-open,.count-multi.is-open,.logs-multi.is-open{z-index:160}
.filter-multi.is-open .filter-multi-menu,.count-multi.is-open .count-multi-menu{z-index:161}
.userpanel-filter-shell{overflow:visible!important}
.userpanel-filter-list{overflow:visible!important;position:relative}
.userpanel-filter-control{position:relative;z-index:1}
.userpanel-filter-control.is-open{z-index:160}
.userpanel-filter-control.is-open .userpanel-dropdown-menu{z-index:161}
.dashboard-slicer.is-open{position:relative;z-index:160}
.dashboard-slicer.is-open .dashboard-slicer-menu{z-index:161}

/* V61 — popovers de filtros: elevar el contenedor completo y evitar recortes */
/* El z-index del menú por sí solo no superaba el stacking-context del filtro sticky. */
.data-module-filter-sticky:has(.filter-multi.is-open),
.data-module-filter-sticky:has(.count-multi.is-open),
.data-module-filter-sticky:has(.logs-multi.is-open) {
  position: sticky !important;
  z-index: 9990 !important;
  isolation: isolate;
  overflow: visible !important;
}
.general-filterbar,
.count-toolbar,
.logs-filterbar {
  overflow: visible !important;
}
.filter-multi.is-open,
.count-multi.is-open,
.logs-multi.is-open,
.userpanel-filter-control.is-open,
.dashboard-slicer.is-open {
  position: relative !important;
  z-index: 9992 !important;
}
.filter-multi-menu,
.count-multi-menu,
.logs-multi-menu,
.userpanel-dropdown-menu,
.dashboard-slicer-menu {
  z-index: 9995 !important;
}
.dashboard-filter-shell:has(.dashboard-slicer.is-open),
.userpanel-filter-shell:has(.userpanel-filter-control.is-open) {
  position: relative !important;
  z-index: 9990 !important;
  overflow: visible !important;
}
/* Las tarjetas/tablas que siguen al filtro no deben pintar encima de un menú abierto. */
.data-module-filter-sticky:has(.filter-multi.is-open) ~ *,
.data-module-filter-sticky:has(.count-multi.is-open) ~ *,
.data-module-filter-sticky:has(.logs-multi.is-open) ~ * {
  position: relative;
  z-index: 1;
}

/* V62 — tamaño y lectura de opciones de TODOS los filtros multiselección.
   Los checkboxes anteriores heredaban width:100% y height:32px desde
   .filter-toolbar-modern .field-inline input; esta regla específica lo anula. */
.filter-multi-menu,
.count-multi-menu,
.logs-multi-menu,
.userpanel-dropdown-menu,
.dashboard-slicer-menu {
  box-sizing: border-box !important;
  min-width: min(230px, calc(100vw - 24px)) !important;
  width: max(100%, 230px) !important;
  max-width: min(340px, calc(100vw - 24px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #c5d1df transparent;
}
.filter-multi-menu.align-right,
.count-multi-menu.align-right,
.logs-multi-menu.align-right,
.userpanel-dropdown-menu.align-right,
.dashboard-slicer-menu.align-right {
  left: auto !important;
  right: 0 !important;
}
.filter-multi-menu .filter-multi-option,
.filter-multi-menu .count-multi-option,
.filter-multi-menu .logs-multi-option,
.count-multi-menu .count-multi-option,
.logs-multi-menu .logs-multi-option,
.userpanel-dropdown-menu .userpanel-dropdown-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: auto !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent;
  color: #30445d !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  cursor: pointer;
  box-sizing: border-box !important;
}
.filter-multi-menu .filter-multi-option:hover,
.filter-multi-menu .count-multi-option:hover,
.filter-multi-menu .logs-multi-option:hover,
.count-multi-menu .count-multi-option:hover,
.logs-multi-menu .logs-multi-option:hover,
.userpanel-dropdown-menu .userpanel-dropdown-option:hover {
  background: #f1f6fc !important;
}
.filter-toolbar-modern .field-inline .filter-multi-option input[type="checkbox"],
.filter-toolbar-modern .field-inline .count-multi-option input[type="checkbox"],
.filter-toolbar-modern .field-inline .logs-multi-option input[type="checkbox"],
.filter-toolbar-modern .field-inline .userpanel-dropdown-option input[type="checkbox"],
.filter-multi-menu input[type="checkbox"],
.count-multi-menu input[type="checkbox"],
.logs-multi-menu input[type="checkbox"],
.userpanel-dropdown-menu input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  flex: 0 0 14px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  accent-color: #2459a6 !important;
  background: transparent !important;
  transform: none !important;
}
.filter-multi-menu .filter-multi-option > span,
.filter-multi-menu .count-multi-option > span,
.filter-multi-menu .logs-multi-option > span,
.count-multi-menu .count-multi-option > span,
.logs-multi-menu .logs-multi-option > span,
.userpanel-dropdown-menu .userpanel-dropdown-option > span {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #30445d !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.filter-multi-actions,
.count-multi-actions,
.logs-multi-actions,
.userpanel-dropdown-actions,
.dashboard-slicer-actions {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
.filter-multi-actions button,
.count-multi-actions button,
.logs-multi-actions button,
.userpanel-dropdown-actions button,
.dashboard-slicer-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}
body.theme-dark .filter-multi-menu .filter-multi-option,
body.theme-dark .filter-multi-menu .count-multi-option,
body.theme-dark .filter-multi-menu .logs-multi-option,
body.theme-dark .count-multi-menu .count-multi-option,
body.theme-dark .logs-multi-menu .logs-multi-option,
body.theme-dark .userpanel-dropdown-menu .userpanel-dropdown-option,
body.theme-dark .filter-multi-menu .filter-multi-option > span,
body.theme-dark .filter-multi-menu .count-multi-option > span,
body.theme-dark .filter-multi-menu .logs-multi-option > span,
body.theme-dark .count-multi-menu .count-multi-option > span,
body.theme-dark .logs-multi-menu .logs-multi-option > span,
body.theme-dark .userpanel-dropdown-menu .userpanel-dropdown-option > span {
  color: #e4edf8 !important;
}
body.theme-dark .filter-multi-actions,
body.theme-dark .count-multi-actions,
body.theme-dark .logs-multi-actions,
body.theme-dark .userpanel-dropdown-actions,
body.theme-dark .dashboard-slicer-actions {
  background: #19283b !important;
}


/* V63 — ajuste final de sidebar y filtros verticales estilo compacto (referencia del usuario). */
:root{--sidebar:224px;--sidebar-collapsed:66px}
.sidebar{width:224px!important;padding:14px 11px 11px!important}
.sidebar-collapsed .sidebar{width:66px!important}
.main-content{margin-left:224px!important}
.sidebar-collapsed .main-content{margin-left:66px!important}
.brand.brand-logos{padding-left:5px!important;padding-right:5px!important}
.brand-pesco-full{max-width:166px!important}
.nav-section-label{font-size:9px!important;padding-left:10px!important}
.nav-item{min-height:38px!important;height:38px!important;padding-left:12px!important;gap:11px!important}
.nav-item i{font-size:12px!important;width:16px!important;min-width:16px!important}
.nav-item span{font-size:11.5px!important;font-weight:650!important}
.sidebar-bottom .nav-item{height:34px!important;min-height:34px!important}
.sidebar-collapsed .nav-item{height:38px!important;min-height:38px!important}
#dashboardContentLayout.dashboard-content-layout{grid-template-columns:194px minmax(0,1fr)!important;gap:14px!important}
#dashboardContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
.dashboard-filter-count{display:none!important}
.dashboard-filter-sidebar-head{align-items:flex-start!important}
.dashboard-selected-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;min-height:18px;max-width:100%}
.selected-filter-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:22px;padding:3px 7px;border:1px solid #d9e5f4;border-radius:999px;background:#eef4fc;color:#24466f;font:600 9px/1.2 Inter,Arial,sans-serif;cursor:pointer}
.selected-filter-chip span{min-width:0;overflow-wrap:anywhere}
.selected-filter-chip i{font-size:8px;color:#6f87a5}
.selected-filter-empty{font-size:8px;color:#98a4b3}
.dashboard-slicer-accordion{position:relative!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;z-index:1}
.dashboard-slicer-accordion.is-open{z-index:180!important}
.dashboard-slicer-row,.userpanel-filter-row{width:100%;min-height:34px;height:auto;padding:7px 5px;border:0;border-bottom:1px solid #edf1f5;border-radius:0;background:#fff;color:#334a65;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font:650 10px/1.25 Inter,Arial,sans-serif;cursor:pointer}
.dashboard-slicer-row>span,.userpanel-filter-row>span{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-slicer-row>span i,.userpanel-filter-row>span i{width:13px;min-width:13px;text-align:center;color:#71869f;font-size:9px}
.dashboard-slicer-row>.slicer-chevron,.userpanel-filter-row>.slicer-chevron{font-size:8px;color:#71839a;transition:transform .15s ease}
.dashboard-slicer-accordion.is-open .dashboard-slicer-row>.slicer-chevron,.userpanel-filter-accordion.is-open .userpanel-filter-row>.slicer-chevron{transform:rotate(180deg)}
#dashboardFilters .dashboard-slicer-menu,.userpanel-filter-accordion .userpanel-dropdown-menu{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 2px)!important;z-index:220!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:260px!important;overflow:auto!important;padding:6px!important;border:1px solid #dfe7f0!important;border-radius:9px!important;background:#fff!important;box-shadow:0 14px 30px rgba(18,42,72,.2)!important}
#dashboardFilters .dashboard-slicer-menu[hidden],.userpanel-filter-accordion .userpanel-dropdown-menu[hidden]{display:none!important}
#dashboardFilters .dashboard-slicer-actions,.userpanel-filter-accordion .userpanel-dropdown-actions{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;padding:3px 5px 6px!important;margin-bottom:4px!important;border-bottom:1px solid #edf1f5!important;background:#fff!important}
#dashboardFilters .dashboard-slicer-actions button,.userpanel-filter-accordion .userpanel-dropdown-actions button{border:0!important;background:transparent!important;color:#315d96!important;font:700 9px/1.2 Inter,Arial,sans-serif!important;padding:4px!important;cursor:pointer}
#dashboardFilters .dashboard-slicer-option{display:flex!important;align-items:center!important;gap:8px!important;min-height:29px!important;height:auto!important;width:100%!important;padding:6px 7px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#344960!important;font:500 9px/1.3 Inter,Arial,sans-serif!important;text-align:left!important;box-shadow:none!important}
#dashboardFilters .dashboard-slicer-option i{width:13px;min-width:13px;font-size:11px!important;text-align:center}
#dashboardFilters .dashboard-slicer-option span{display:block!important;min-width:0!important;flex:1!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}
#dashboardFilters .dashboard-slicer-option.active{background:#edf4ff!important;color:#173d73!important;box-shadow:inset 2px 0 #2862d8!important}
.userpanel-filter-list{display:flex!important;flex-direction:column!important;gap:0!important;padding:4px 3px 8px!important;overflow:visible!important}
.userpanel-filter-control.userpanel-filter-accordion{position:relative!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;z-index:1!important}
.userpanel-filter-control.userpanel-filter-accordion.is-open{z-index:180!important}
.userpanel-filter-row{min-height:35px!important;border-bottom:1px solid #edf1f5!important;font-size:10px!important}
.userpanel-filter-accordion .userpanel-dropdown-menu{width:100%!important;min-width:0!important;max-width:none!important;max-height:245px!important}
.userpanel-dropdown-option{display:flex!important;align-items:center!important;gap:8px!important;min-height:29px!important;height:auto!important;padding:6px 7px!important;margin:0!important;border-radius:6px!important;background:transparent!important;color:#344960!important;font:500 9px/1.3 Inter,Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
.userpanel-dropdown-option input[type=checkbox]{width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;flex:0 0 13px!important;margin:0!important}
.userpanel-dropdown-option span{flex:1!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;color:inherit!important;font:inherit!important}
.userpanel-mode-switch{margin:10px 0 6px!important}
.userpanel-filter-shell .dashboard-filter-sidebar{overflow:visible!important}
.userpanel-filter-shell:has(.userpanel-filter-control.is-open),#dashboardFilters:has(.dashboard-slicer.is-open){z-index:250!important;position:relative!important}
.userpanel-filter-shell .dashboard-filter-sidebar-head{padding-bottom:9px!important}
@media(max-width:900px){
  :root{--sidebar:224px}
  .sidebar{width:224px!important}
  .main-content{margin-left:0!important}
  #dashboardContentLayout.dashboard-content-layout{grid-template-columns:1fr!important}
  #dashboardContentLayout .dashboard-filter-column{width:100%!important}
}
body.theme-dark .dashboard-slicer-row,body.theme-dark .userpanel-filter-row{background:#19283b!important;color:#e4edf8!important;border-color:#2b3c52!important}
body.theme-dark .selected-filter-chip{background:#23364d!important;color:#e4edf8!important;border-color:#3a5271!important}
body.theme-dark #dashboardFilters .dashboard-slicer-menu,body.theme-dark .userpanel-filter-accordion .userpanel-dropdown-menu{background:#19283b!important;border-color:#344861!important}

#userPanelContentLayout.dashboard-content-layout{grid-template-columns:194px minmax(0,1fr)!important;gap:14px!important}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}


/* V64 — Acordeones de filtros integrados al sidebar.
   El listado se renderiza en el flujo normal: al abrirlo empuja los filtros
   siguientes hacia abajo, sin panel flotante ni caja independiente. */
#dashboardFilters .dashboard-slicer-accordion,
.userpanel-filter-list .userpanel-filter-accordion{
  position:static!important;
  z-index:auto!important;
  width:100%!important;
  overflow:visible!important;
}
#dashboardFilters .dashboard-slicer-accordion.is-open,
.userpanel-filter-list .userpanel-filter-accordion.is-open{
  z-index:auto!important;
}
#dashboardFilters .dashboard-slicer-accordion > .dashboard-slicer-menu,
.userpanel-filter-list .userpanel-filter-accordion > .userpanel-dropdown-menu{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:210px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  margin:0!important;
  padding:5px 2px 9px 20px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#dashboardFilters .dashboard-slicer-accordion > .dashboard-slicer-menu[hidden],
.userpanel-filter-list .userpanel-filter-accordion > .userpanel-dropdown-menu[hidden]{
  display:none!important;
}
#dashboardFilters .dashboard-slicer-actions,
.userpanel-filter-list .userpanel-dropdown-actions{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:3px 4px 6px!important;
  margin:0 0 4px!important;
  border:0!important;
  border-bottom:1px solid #e8edf3!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#dashboardFilters .dashboard-slicer-actions button,
.userpanel-filter-list .userpanel-dropdown-actions button{
  padding:3px 2px!important;
  border:0!important;
  background:transparent!important;
  color:#315d96!important;
  font:700 9px/1.25 Inter,Arial,sans-serif!important;
  cursor:pointer!important;
}
#dashboardFilters .dashboard-slicer-option,
.userpanel-filter-list .userpanel-dropdown-option{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:27px!important;
  height:auto!important;
  box-sizing:border-box!important;
  margin:1px 0!important;
  padding:5px 6px!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#344960!important;
  text-align:left!important;
  font:500 9px/1.3 Inter,Arial,sans-serif!important;
  box-shadow:none!important;
}
#dashboardFilters .dashboard-slicer-option:hover,
.userpanel-filter-list .userpanel-dropdown-option:hover{background:#f1f5fa!important}
#dashboardFilters .dashboard-slicer-option.active,
.userpanel-filter-list .userpanel-dropdown-option:has(input:checked){
  background:#eaf1fb!important;
  color:#173d73!important;
}
#dashboardFilters .dashboard-slicer-option i{flex:0 0 13px!important;width:13px!important;font-size:11px!important;text-align:center!important}
#dashboardFilters .dashboard-slicer-option span,
.userpanel-filter-list .userpanel-dropdown-option span{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:left!important;
}
.userpanel-filter-list .userpanel-dropdown-option input[type=checkbox]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  flex:0 0 13px!important;
  width:13px!important;
  min-width:13px!important;
  max-width:13px!important;
  height:13px!important;
  min-height:13px!important;
  margin:0!important;
  padding:0!important;
}
#dashboardFilters .dashboard-filter-sidebar-static-body{
  height:auto!important;
  min-height:0!important;
  max-height:calc(100vh - 112px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
.userpanel-filter-shell .dashboard-filter-sidebar,
.userpanel-filter-shell .dashboard-filter-sidebar-static-body{
  height:auto!important;
  max-height:calc(100vh - 112px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
.userpanel-filter-control.is-open,
.dashboard-slicer-accordion.is-open{z-index:auto!important}
body.theme-dark #dashboardFilters .dashboard-slicer-menu,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-menu,
body.theme-dark #dashboardFilters .dashboard-slicer-actions,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-actions{
  background:transparent!important;
  border-color:#2b3c52!important;
}
body.theme-dark #dashboardFilters .dashboard-slicer-option,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-option{color:#e4edf8!important}
body.theme-dark #dashboardFilters .dashboard-slicer-option:hover,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-option:hover,
body.theme-dark #dashboardFilters .dashboard-slicer-option.active,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-option:has(input:checked){background:#23364d!important}


/* V65 — Sidebar de filtros fijo: no se permite ocultarlo ni contraerlo. */
#dashboardFilters .dashboard-filter-static-toggle,
#userPanelFilters .dashboard-filter-rail-toggle{display:none!important}
#dashboardContentLayout.dashboard-content-layout.filters-collapsed,
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:194px minmax(0,1fr)!important}
#dashboardFilters .dashboard-filter-sidebar-static-head,
#userPanelFilters .dashboard-filter-rail-head{justify-content:flex-start!important}
#dashboardFilters .dashboard-filter-sidebar-static,
#userPanelFilters .dashboard-filter-sidebar{display:block!important;visibility:visible!important;opacity:1!important}
#dashboardFilters .dashboard-filter-sidebar-static-body{display:block!important}

/* V65 — Todas las etiquetas seleccionadas tienen idéntica altura. Los textos
   largos se recortan con puntos suspensivos en lugar de aumentar la etiqueta. */
.dashboard-selected-tags{
  display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;
  gap:5px!important;min-height:24px!important;max-width:100%!important;
}
.selected-filter-chip{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  box-sizing:border-box!important;flex:0 1 auto!important;
  height:24px!important;min-height:24px!important;max-height:24px!important;
  max-width:100%!important;min-width:0!important;
  padding:0 7px!important;gap:5px!important;overflow:hidden!important;
  white-space:nowrap!important;border-radius:999px!important;
  font:600 9px/22px Inter,Arial,sans-serif!important;
}
.selected-filter-chip span{
  display:block!important;flex:0 1 auto!important;min-width:0!important;max-width:150px!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  overflow-wrap:normal!important;line-height:22px!important;
}
.selected-filter-chip i{
  display:block!important;flex:0 0 9px!important;width:9px!important;height:9px!important;
  line-height:9px!important;text-align:center!important;font-size:8px!important;
}
.selected-filter-empty{display:inline-flex!important;align-items:center!important;min-height:24px!important;height:24px!important;line-height:24px!important}
@media(max-width:520px){.selected-filter-chip span{max-width:118px!important}}

/* V66 — Altura uniforme para todas las tarjetas KPI del Dashboard y Panel. */
.dashboard-kpi-grid{
  align-items:stretch!important;
  grid-auto-rows:74px!important;
}
.dashboard-kpi-grid>.dashboard-kpi{
  box-sizing:border-box!important;
  height:74px!important;
  min-height:74px!important;
  max-height:74px!important;
  align-self:stretch!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  gap:0!important;
  padding:9px 10px!important;
  overflow:hidden!important;
}
.dashboard-kpi-grid>.dashboard-kpi>.dashboard-kpi-head{
  flex:0 0 12px!important;
  min-height:12px!important;
  height:12px!important;
  margin:0!important;
}
.dashboard-kpi-grid>.dashboard-kpi>strong{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-end!important;
  flex:1 1 auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance{
  justify-content:space-between!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
  box-sizing:border-box!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  height:45px!important;
  margin:0!important;
  padding:1px 0 0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:14px 11px 5px!important;
  column-gap:7px!important;
  row-gap:1px!important;
  align-items:end!important;
  text-align:right!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-main{
  grid-column:2!important;grid-row:1!important;
  align-self:end!important;justify-self:end!important;
  margin:0!important;padding:0!important;
  font-size:14px!important;line-height:14px!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-sub{
  grid-column:2!important;grid-row:2!important;
  align-self:end!important;justify-self:end!important;
  margin:0!important;padding:0!important;
  font-size:9px!important;line-height:10px!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-percent{
  grid-column:1!important;grid-row:1 / span 2!important;
  align-self:end!important;justify-self:start!important;
  margin:0!important;padding:0!important;
  font-size:13px!important;line-height:14px!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-track{
  grid-column:1 / -1!important;grid-row:3!important;
  align-self:end!important;
  width:100%!important;height:5px!important;min-height:5px!important;
  margin:0!important;padding:0!important;
}
@media(max-width:640px){
  .dashboard-kpi-grid{grid-auto-rows:78px!important}
  .dashboard-kpi-grid>.dashboard-kpi{
    height:78px!important;min-height:78px!important;max-height:78px!important;
    padding:8px!important;
  }
  .dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
    height:49px!important;
    grid-template-rows:15px 12px 5px!important;
  }
}


/* V67 — bajar ligeramente el bloque de avance dentro de su KPI, sin cambiar la altura de la tarjeta. */
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
  align-content:end!important;
  padding:1px 0 6px!important;
}
@media(max-width:640px){
  .dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
    padding:1px 0 6px!important;
  }
}

/* V68 — Sidebar ligeramente más ancho, tipografía de navegación más legible y toggle compacto. */
:root{--sidebar:235px;--sidebar-collapsed:66px}
.sidebar{width:235px!important;padding:14px 12px 11px!important}
.sidebar-collapsed .sidebar{width:66px!important}
.main-content{margin-left:235px!important}
.sidebar-collapsed .main-content{margin-left:66px!important}
.brand.brand-logos{padding-left:6px!important;padding-right:6px!important}
.brand-pesco-full{max-width:178px!important}
.nav-menu{gap:14px!important}
.nav-section-label{font-size:9.5px!important;padding-left:11px!important;letter-spacing:.08em!important}
.nav-item{height:39px!important;min-height:39px!important;padding-left:13px!important;gap:12px!important}
.nav-item i{width:17px!important;min-width:17px!important;font-size:13px!important}
.nav-item span{font-size:12.5px!important;font-weight:650!important;line-height:1.2!important}
.sidebar-bottom .nav-item{height:35px!important;min-height:35px!important}
.sidebar-toggle{right:-18px!important;top:27px!important;width:36px!important;height:36px!important;border-radius:11px!important;font-size:13px!important}
.sidebar-toggle i{font-size:13px!important}
.sidebar-collapsed .nav-item{height:38px!important;min-height:38px!important}
.sidebar-vltec-full{width:min(100%,138px)!important}
@media(max-width:900px){
  .sidebar{width:235px!important}
  .app-shell.mobile-open .sidebar{width:235px!important}
  .sidebar-toggle{display:none!important}
}


/* V69 — Sidebar contraído sin barras de scroll; subplantillas de Conteo solo en modo expandido. */
.sidebar{overflow-x:hidden!important}
.nav-menu{overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin}
.sidebar-collapsed .sidebar{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.sidebar-collapsed .nav-menu{
  overflow:hidden!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.sidebar-collapsed .nav-menu::-webkit-scrollbar,
.sidebar-collapsed .sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.sidebar-collapsed #countSidebarGroups,
.sidebar-collapsed .nav-count-submenu{display:none!important}
.sidebar-collapsed .nav-count-chevron{display:none!important}
.sidebar-collapsed .nav-count-wrap{width:100%;min-width:0;overflow:hidden}
.sidebar-collapsed #countNavToggle{justify-content:center!important;gap:0!important;overflow:hidden!important}
@media(max-width:900px){
  .sidebar{overflow-x:hidden!important;overflow-y:auto!important}
  .app-shell.mobile-open .sidebar{overflow-y:auto!important}
}
\n\n/* V71 — Toggle anclado al borde real del sidebar (no al extremo de la ventana). */
.sidebar{overflow:visible!important}
.sidebar-toggle{
  position:absolute!important;
  left:auto!important;
  right:-14px!important;
  top:17px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  border:1px solid rgba(219,229,242,.92)!important;
  border-radius:9px!important;
  background:#132842!important;
  color:#dbe5f2!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 3px 9px rgba(14,34,58,.20)!important;
  z-index:1001!important;
  font-size:11px!important;
  line-height:1!important;
}
.sidebar-toggle i{font-size:11px!important;line-height:1!important;transform:none!important}
.sidebar-toggle:hover{background:#1d395d!important;color:#fff!important}
.sidebar-collapsed .sidebar-toggle{right:-14px!important}
@media(max-width:900px){.sidebar-toggle{display:none!important}}

/* V72 — El botón de menú debe quedar completamente por delante del sidebar, incluso contraído.
   El sidebar conserva overflow visible; el menú interno controla su propio scroll. */
.sidebar-collapsed .sidebar{
  overflow:visible!important;
  overflow-x:visible!important;
  overflow-y:visible!important;
  z-index:120!important;
}
.sidebar-collapsed .sidebar-toggle{
  right:-14px!important;
  z-index:121!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.sidebar-collapsed .nav-menu{
  overflow:hidden!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
}


/* V73 — Toggle independiente del sidebar: siempre delante, anclado al borde en ambos estados.
   Se ubica como hijo directo de app-shell para escapar del stacking context del aside. */
.sidebar-toggle{
  position:fixed!important;
  left:calc(var(--sidebar) - 14px)!important;
  right:auto!important;
  top:27px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(219,229,242,.92)!important;
  border-radius:9px!important;
  background:#132842!important;
  color:#dbe5f2!important;
  box-shadow:0 3px 10px rgba(14,34,58,.28)!important;
  z-index:100000!important;
  isolation:isolate;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transition:left .25s ease,background .18s ease,box-shadow .18s ease!important;
}
.sidebar-collapsed .sidebar-toggle{
  left:calc(var(--sidebar-collapsed) - 14px)!important;
  right:auto!important;
  z-index:100000!important;
}
.sidebar-toggle i{font-size:11px!important;line-height:1!important;transform:none!important}
.sidebar-toggle:hover{background:#1d395d!important;color:#fff!important}
@media(max-width:900px){.sidebar-toggle{display:none!important}}


/* PIN dinámico para filas manuales: flujo integrado en el modal de Agregar nueva fila. */
.manual-pin-step{margin-top:4px}
.manual-pin-step[hidden]{display:none!important}
.manual-pin-alert{display:flex;align-items:flex-start;gap:11px;padding:13px 15px;margin:4px 0 16px;border:1px solid #cfe0f4;border-radius:12px;background:#f3f8ff;color:#173d70;font-size:12px;line-height:1.45}
.manual-pin-alert>i{font-size:18px;color:#2563eb;margin-top:1px}
.manual-pin-alert strong{display:block;font-size:13px;margin-bottom:3px}
.manual-pin-alert p{margin:0;color:#526b8a}
.manual-pin-countdown{padding:11px 13px;margin-bottom:15px;border:1px solid #e1e9f3;border-radius:11px;background:#fbfdff}
.manual-pin-countdown-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#52627a;font-weight:700;margin-bottom:8px}
.manual-pin-countdown-head strong{font-size:12px;color:#174a91;font-variant-numeric:tabular-nums}
.manual-pin-progress{height:6px;border-radius:999px;overflow:hidden;background:#e8eef6}
.manual-pin-progress span{display:block;height:100%;width:100%;border-radius:inherit;background:#2864b7;transition:width .2s linear}
.pin-rotation-label{display:block;margin-top:4px;font-size:10px;font-weight:600;letter-spacing:0;color:#64748b;white-space:nowrap}
.pin-badge{min-width:76px;font-size:15px;letter-spacing:3px}
#manualPin{font-size:20px;letter-spacing:5px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums;max-width:240px}


/* Panel por grupos de parejas: detalles en filas independientes */
.userpanel-detail-stack{display:flex;flex-direction:column;gap:16px;margin-top:16px;min-width:0}
.userpanel-detail-panel{min-width:0;padding:16px;border:1px solid var(--line,#dfe6ef);border-radius:16px;background:var(--panel,#fff);box-shadow:0 5px 18px rgba(25,48,78,.045)}
.userpanel-detail-panel .dashboard-chart-head{margin-bottom:12px}
.userpanel-detail-panel .dashboard-chart-head h3{font-size:13px;font-weight:750;text-transform:none;letter-spacing:0;color:var(--text,#203047)}
.userpanel-detail-panel .table-wrap{max-width:100%;overflow-x:auto}
.userpanel-detail-panel .data-table{min-width:760px}
.userpanel-top-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.userpanel-top-grid .data-table{min-width:580px}
.userpanel-detail-panel .table-subtext{display:block;margin-top:3px;color:var(--muted,#8190a4);font-size:10px}
.userpanel-detail-panel .text-success{color:#159b70}
.userpanel-detail-panel .text-danger{color:#dc625b}
.userpanel-kpi-grid .dashboard-kpi-head span{text-transform:none}
.userpanel-level-card .dashboard-chart-head h3{text-transform:none;letter-spacing:0}
@media(max-width:900px){.userpanel-top-grid{grid-template-columns:1fr}}

.userpanel-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1100px){.userpanel-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.userpanel-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V77 — Sidebar clonada del Dashboard: mismos estilos y responsive. */
:root{--navy:#0f1f35;--navy2:#152a46;--blue:#2563eb;--blue2:#3b82f6;--bg:#f4f7fb;--card:#fff;--text:#182334;--muted:#6b7687;--border:#e4e9f0;--danger:#dc2626;--success:#0f9f6e;--warning:#d97706;--purple:#7c3aed;--teal:#0f8b8d;--shadow:0 8px 28px rgba(15,31,53,.07);--sidebar:260px;--sidebar-collapsed:78px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(180deg,var(--navy),#0b192b);color:#fff;padding:18px 12px;display:flex;flex-direction:column;z-index:50;transition:.25s ease}.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed)}.brand{display:flex;align-items:center;gap:12px;padding:4px 10px 20px}.brand-mark,.login-logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,var(--blue2),#1d4ed8);box-shadow:0 10px 24px rgba(37,99,235,.3);flex:0 0 auto}.brand-mark i{font-size:19px}.brand-text{display:flex;flex-direction:column;line-height:1.05;overflow:hidden}.brand-text strong{font-size:15px}.brand-text span{font-size:12px;color:#94a3b8;margin-top:4px}.sidebar-collapsed .brand-text{width:0;opacity:0}.sidebar-toggle{position:absolute;right:-14px;top:24px;width:30px;height:30px;border:1px solid #324761;background:var(--navy2);color:#fff;border-radius:10px;display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.18)}.sidebar-collapsed .sidebar-toggle i{transform:rotate(180deg)}
.nav-menu{display:flex;flex-direction:column;gap:5px;margin-top:12px}.nav-item{width:100%;height:48px;border:0;background:transparent;color:#b9c5d5;border-radius:12px;display:flex;align-items:center;gap:13px;padding:0 14px;text-align:left;transition:.18s}.nav-item i{width:20px;text-align:center;font-size:16px;flex:0 0 auto}.nav-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600}.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}.nav-item.active{background:linear-gradient(90deg,rgba(59,130,246,.22),rgba(59,130,246,.08));color:#fff;box-shadow:inset 3px 0 0 var(--blue2)}.nav-item.danger:hover{background:rgba(220,38,38,.13);color:#fecaca}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:5px;border-top:1px solid rgba(255,255,255,.08);padding-top:12px}.sidebar-collapsed .nav-item{justify-content:center;padding:0}.sidebar-collapsed .nav-item span{width:0;opacity:0}.sidebar-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}
.main-content{margin-left:var(--sidebar);min-height:100vh;transition:.25s ease}.sidebar-collapsed .main-content{margin-left:var(--sidebar-collapsed)}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:30}.topbar-left{display:flex;align-items:center;gap:12px}.mobile-menu{display:none;border:0;background:transparent;width:40px;height:40px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#8792a2;font-weight:700}.topbar h1{font-size:21px;margin:4px 0 0}.topbar-actions{display:flex;align-items:center;gap:12px}.user-chip{display:flex;align-items:center;gap:9px}.user-chip-text{display:flex;flex-direction:column;line-height:1.05}.user-chip-text strong{font-size:12px}.user-chip-text small{font-size:10px;color:var(--muted);margin-top:4px;text-transform:capitalize}.avatar{width:35px;height:35px;border-radius:10px;background:#edf3ff;color:var(--blue);display:grid;place-items:center}.btn{border:1px solid transparent;border-radius:10px;height:40px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:700;transition:.18s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.18)}.btn-primary:hover{background:#1d4ed8}.btn-outline{background:#fff;border-color:var(--border);color:var(--text)}.btn-outline:hover{border-color:#c8d2df;background:#f9fbfe}.btn-danger{background:#fff;border-color:#fecaca;color:var(--danger)}.btn-full{width:100%}
.view{display:none;padding:26px 28px 38px}.view.active{display:block}.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.page-toolbar h2{margin:0;font-size:20px}.page-toolbar p{margin:6px 0 0;color:var(--muted);font-size:12px}.toolbar-group{display:flex;align-items:center;gap:8px}.icon-btn,.month-label{height:38px;min-width:38px;border:1px solid var(--border);background:#fff;color:var(--text);border-radius:10px;display:grid;place-items:center}.month-label{padding:0 14px;font-weight:700}.kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:18px}.kpi{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:15px;padding:15px;display:flex;gap:11px;align-items:center;min-width:0}.kpi-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto}.kpi-icon.blue{background:#edf3ff;color:#2563eb}.kpi-icon.green{background:#eafaf4;color:#0f9f6e}.kpi-icon.orange{background:#fff5e8;color:#d97706}.kpi-icon.red{background:#fff0f0;color:#dc2626}.kpi-icon.purple{background:#f2ecff;color:#7c3aed}.kpi-icon.teal{background:#eafafb;color:#0f8b8d}.kpi>div:last-child{min-width:0}.kpi span{display:block;color:var(--muted);font-size:10px;font-weight:600}.kpi strong{display:block;font-size:18px;line-height:1.1;margin-top:4px}.kpi small{display:block;color:#96a0af;font-size:9px;margin-top:4px}.content-grid{display:grid;gap:18px}.two-col{grid-template-columns:1fr 1fr}.panel{background:var(--card);border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);padding:18px;margin-bottom:18px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head h3{margin:0;font-size:14px}.panel-subtitle{display:block;font-size:10px;color:var(--muted);margin-top:4px}.panel-icon{color:#93a0b2;font-size:17px}.progress-panel{padding:6px 0}.big-progress .progress-value{font-size:32px;font-weight:800}.progress-track{height:10px;border-radius:99px;background:#edf1f5;overflow:hidden;margin:12px 0 8px}.progress-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#2563eb,#4f86ff)}.progress-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.mini-bars{display:flex;flex-direction:column;gap:12px}.bar-row{display:grid;grid-template-columns:88px 1fr 35px;align-items:center;gap:9px;font-size:10px}.bar{height:9px;background:#edf1f5;border-radius:99px;overflow:hidden}.bar i{display:block;height:100%;border-radius:99px;background:#94a3b8}.bar i.completed{background:#0f9f6e}.bar i.difference{background:#dc2626}.bar i.pending{background:#d97706}.bar i.scheduled{background:#3b82f6}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1000px}.data-table th,.data-table td{padding:10px 11px;border-bottom:1px solid #edf0f4;text-align:left;font-size:10px;vertical-align:middle;white-space:nowrap}.data-table th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#7a8698;background:#f8fafc;position:sticky;top:0;z-index:2}.data-table tr:hover td{background:#fbfdff}.data-table td.num{text-align:right;font-variant-numeric:tabular-nums}.compact{min-width:0}.empty-cell{text-align:center!important;padding:28px!important;color:#9aa6b5}.empty-cell i{display:block;font-size:24px;margin-bottom:8px}.table-panel{padding:0}.table-panel .table-tools{padding:15px;border-bottom:1px solid var(--border)}.table-tools{display:flex;gap:10px;align-items:center}.search-box,.filter-box{height:38px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:0 11px}.search-box i,.filter-box i{color:#99a5b5;font-size:12px}.search-box input,.filter-box select{border:0;outline:0;width:100%;font-size:11px;min-width:140px}.grow{flex:1}.priority{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:7px;font-weight:800;font-size:10px;background:#eef2f6;color:#5f6a78}.p1{background:#fee2e2;color:#b91c1c}.p2{background:#ffedd5;color:#c2410c}.p3{background:#fef3c7;color:#a16207}.p4,.p5{background:#ecfccb;color:#3f6212}.p6,.p7{background:#dcfce7;color:#166534}.status,.type,.role{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:99px;font-size:9px;font-weight:800}.status.completed{background:#e9f8f1;color:#0f7f5a}.status.pending{background:#fff3dc;color:#b46a00}.status.difference{background:#fff0f0;color:#bd1f1f}.status.surplus{background:#eef2ff;color:#4338ca}.type.pendiente{background:#f4f5f7;color:#687381}.type.cuadrado{background:#e9f8f1;color:#0f7f5a}.type.faltante{background:#fff0f0;color:#bd1f1f}.type.sobrante{background:#eef2ff;color:#4338ca}.role.admin{background:#ede9fe;color:#6d28d9}.role.auditor{background:#FFEDD5;color:#C2410C}.role.user{background:#e0f2fe;color:#0369a1}.physical-input,.obs-input{height:31px;border:1px solid #dce2ea;border-radius:8px;outline:none;background:#fff;padding:0 7px;font-size:10px}.physical-input:focus,.obs-input:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.obs-input{width:130px}.saving{opacity:.6}.count-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.field-inline{display:flex;flex-direction:column;gap:6px}.field-inline label,.field label{font-size:10px;color:#7a8698;font-weight:700}.field-inline select{height:38px;border:1px solid var(--border);border-radius:9px;padding:0 9px;background:#fff;min-width:150px;font-size:11px;outline:none}
.calendar-legend{display:flex;gap:14px;flex-wrap:wrap;padding:0 0 14px;color:#697688;font-size:10px}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.legend-dot.scheduled{background:#3b82f6}.legend-dot.completed{background:#0f9f6e}.legend-dot.pending{background:#d97706}.legend-dot.difference{background:#dc2626}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.calendar-dow{text-align:center;font-size:9px;color:#8c98a8;font-weight:800;text-transform:uppercase;padding:4px}.calendar-day{min-height:115px;border:1px solid #e8edf2;background:#fbfcfe;border-radius:11px;padding:7px;overflow:hidden}.calendar-day.muted{background:#f4f6f9}.calendar-date{display:flex;justify-content:space-between;font-size:10px;font-weight:800;margin-bottom:6px}.calendar-date span{font-size:8px;color:#7a8698}.calendar-events{display:flex;flex-direction:column;gap:4px}.event{display:flex;align-items:center;gap:5px;border-radius:7px;padding:5px 6px;font-size:8px;overflow:hidden}.event i{font-size:7px}.event span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event.scheduled{background:#edf3ff;color:#235cc8}.event.completed{background:#e7f8f0;color:#0f7f5a}.event.difference{background:#fff0f0;color:#bd1f1f}.more-events{font-size:8px;color:#7c8796;margin-top:2px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.file-drop{border:1.5px dashed #cbd5e1;background:#f8fafc;border-radius:14px;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:190px;cursor:pointer;position:relative}.file-drop:hover{border-color:#83a9ff;background:#f7faff}.file-drop i{font-size:28px;color:#2563eb;margin-bottom:10px}.file-drop span{font-size:12px;font-weight:800}.file-drop small{font-size:9px;color:#8a95a5;margin-top:5px}.file-drop strong{font-size:10px;color:#4b5a6e;margin-top:12px;word-break:break-all}.file-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-info{display:flex;gap:8px;align-items:flex-start;background:#eef5ff;color:#365d95;padding:10px 12px;border-radius:10px;font-size:10px;margin-top:14px}.progress-shell{margin-top:16px}.modal{position:fixed;inset:0;background:rgba(8,17,31,.52);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}.modal.show{display:flex}.modal-card{width:min(100%,520px);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.2);padding:20px}.modal-card.large{width:min(100%,760px)}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px}.modal-head h3{font-size:16px;margin:0}.modal-head p{font-size:10px;color:var(--muted);margin:5px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field input,.field select{height:40px;border:1px solid var(--border);border-radius:10px;padding:0 11px;outline:none}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.alert{padding:10px 12px;border-radius:10px;display:flex;gap:8px;align-items:flex-start;font-size:10px;margin-bottom:12px}.alert.error{background:#fff0f0;color:#b91c1c}.alert.success{background:#e9f8f1;color:#0f7f5a}.danger-panel{border-color:#fecaca}.admin-actions{display:flex;gap:8px}.toast-stack{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast{display:flex;gap:9px;align-items:center;background:#0f1f35;color:#fff;border-radius:11px;padding:11px 13px;box-shadow:0 12px 30px rgba(0,0,0,.18);font-size:11px;max-width:360px}.toast.error{background:#991b1b}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#eaf1ff 0,#f4f7fb 40%,#eef2f7 100%);padding:20px}.login-card{width:min(100%,410px);background:#fff;border:1px solid var(--border);border-radius:20px;padding:30px;box-shadow:0 18px 60px rgba(15,31,53,.1)}.login-logo{margin:0 auto 16px;width:52px;height:52px}.login-logo i{font-size:21px;color:#fff}.login-brand{text-align:center}.login-brand strong{display:block;font-size:19px}.login-brand span{display:block;color:var(--muted);font-size:10px;margin-top:5px}.login-form{margin-top:24px}.input-icon{height:42px;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;padding:0 11px;gap:9px}.input-icon i{font-size:12px;color:#91a0b2}.input-icon input{border:0;outline:0;width:100%;height:100%;font-size:12px}.login-help{display:flex;gap:7px;align-items:center;justify-content:center;color:#8894a5;font-size:9px;margin-top:15px;text-align:center}.login-help i{color:#2563eb}
@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.sidebar{transform:translateX(-105%);width:var(--sidebar)}.app-shell.mobile-open .sidebar{transform:translateX(0)}.main-content,.sidebar-collapsed .main-content{margin-left:0}.mobile-menu{display:grid;place-items:center}.topbar{padding:0 16px}.topbar-actions .btn span{display:none}.topbar-actions .btn{width:40px;padding:0}.view{padding:20px 14px 30px}.two-col{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.sidebar-toggle{display:none}.calendar-day{min-height:100px}}
@media(max-width:640px){.kpi-grid{grid-template-columns:1fr}.page-toolbar{align-items:flex-start;flex-direction:column}.upload-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.topbar h1{font-size:17px}.user-chip-text{display:none}.count-toolbar{align-items:stretch}.search-box.grow{width:100%}.calendar-grid{gap:4px}.calendar-day{min-height:88px;padding:5px}.event{padding:4px;font-size:7px}.event i{display:none}.calendar-dow{font-size:7px}.data-table th,.data-table td{padding:8px 8px}}

/* Resumen operativo y modales de detalle */
.summary-strip{margin-top:16px;display:grid;gap:14px}.summary-group{background:#f7f9fc;border:1px solid #e5eaf1;border-radius:14px;padding:14px}.summary-group h4{margin:0 0 12px;display:flex;align-items:center;gap:8px;font-size:13px;color:#26344a}.summary-group h4 small{font-size:11px;font-weight:500;color:#7c8797}.summary-grid{display:grid;grid-template-columns:repeat(13,minmax(58px,1fr));gap:7px;overflow:auto}.summary-grid>div{background:#fff;border:1px solid #e7ebf1;border-radius:10px;padding:8px 7px;text-align:center;min-width:58px}.summary-grid i{display:block;font-size:11px;color:#64748b;margin-bottom:5px}.summary-grid span{display:block;font-size:10px;color:#7b8798}.summary-grid strong{display:block;margin-top:3px;font-size:14px;color:#172033}.summary-metrics{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}.summary-metrics>div{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:16px}.summary-metrics span{display:block;font-size:12px;color:#64748b}.summary-metrics strong{display:block;font-size:24px;margin-top:4px;color:#10233d}.summary-metrics small{color:#8792a2;font-size:11px}.warehouse-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:420px;overflow:auto}.warehouse-check{display:flex;gap:10px;align-items:flex-start;border:1px solid #e4e9f0;border-radius:12px;padding:11px;background:#fafbfd;cursor:pointer}.warehouse-check input{margin-top:3px}.warehouse-check strong,.warehouse-check small{display:block}.warehouse-check small{font-size:11px;color:#7b8798;margin-top:3px}.calendar-day{border:0;background:#fff;width:100%;text-align:left;cursor:pointer}.calendar-day.has-events:hover{box-shadow:0 0 0 2px rgba(37,99,235,.12) inset}.calendar-day-list{display:grid;gap:9px;max-height:60vh;overflow:auto}.calendar-detail-card{display:grid;grid-template-columns:40px 1fr auto;gap:11px;align-items:center;border:1px solid #e5eaf1;border-radius:14px;padding:12px;background:rgba(255,255,255,.96)}.calendar-detail-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#eef4ff;color:#2563eb}.calendar-detail-card strong,.calendar-detail-card span,.calendar-detail-card small{display:block}.calendar-detail-card span{font-size:12px;color:#34445a;margin-top:2px}.calendar-detail-card small{font-size:11px;color:#7b8798;margin-top:4px}.modal.show{backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);background:rgba(15,23,42,.42)}.modal-card.large{max-width:960px}.table-panel{overflow:hidden}
@media(max-width:1000px){.summary-grid{grid-template-columns:repeat(6,minmax(70px,1fr))}.summary-metrics{grid-template-columns:1fr}.warehouse-check-grid{grid-template-columns:1fr}}

.count-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid #e8edf2;background:#fbfcfe}.count-info{display:flex;align-items:center;gap:8px;color:#64748b;font-size:10px}.count-info i{color:#2563eb}.count-pager{display:flex;align-items:center;gap:10px;color:#526173;font-size:10px;font-weight:800}.count-pager .icon-btn:disabled{opacity:.35;cursor:not-allowed}.summary-table-wrap{margin-top:16px;overflow:auto;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.summary-table{width:100%;min-width:1050px;border-collapse:separate;border-spacing:0}.summary-table th,.summary-table td{padding:12px 10px;border-right:1px solid #eef2f6;border-bottom:1px solid #eef2f6;text-align:center;font-size:10px}.summary-table thead th{background:#f5f7fb;color:#5f6d80;font-weight:800}.summary-table tbody th{background:#fafbfd;text-align:left;color:#364458;position:sticky;left:0;z-index:1}.summary-table tbody td{color:#34445a}.summary-table tbody tr:first-child td{font-weight:800;color:#173b70}.summary-table .metric-cell{font-size:16px;font-weight:900;color:#10233d!important}.summary-table .metric-cell small{display:block;font-size:9px;font-weight:600;color:#8390a1;margin-top:3px}.summary-table i{margin-right:6px;color:#2563eb}.calendar-detail-card{background:linear-gradient(135deg,#f8fbff,#ffffff);border:1px solid #dce6f2;box-shadow:0 8px 24px rgba(31,55,85,.07)}.calendar-detail-card strong{font-size:12px;color:#14243b}.calendar-detail-card span{font-size:11px;color:#43556d}.calendar-detail-card small{font-size:10px;color:#7a8798}.calendar-day-list{padding:2px}.calendar-day-list .empty-cell{padding:30px;text-align:center;background:#f8fafc;border:1px dashed #d7e0ea;border-radius:12px;color:#8592a3}.modal-card.large{max-height:86vh}.modal-card.large .modal-head{position:sticky;top:0;background:#fff;z-index:2;padding-bottom:10px;border-bottom:1px solid #edf1f5}
@media(max-width:700px){.count-footer{align-items:flex-start;flex-direction:column}.count-pager{align-self:flex-end}.summary-table-wrap{margin-left:-2px;margin-right:-2px}}

/* Resumen, calendario y experiencia de uso */
body.modal-open{overflow:hidden}
.summary-section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 4px 10px}
.summary-kicker{display:block;font-size:9px;font-weight:800;letter-spacing:.12em;color:#7a8799;margin-bottom:4px}
.summary-section-title h3{margin:0;font-size:14px;color:#1d2c42;display:flex;align-items:center;gap:8px}
.summary-section-title h3 i{color:#2563eb}
.summary-total-badge{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dce6f2;border-radius:999px;background:#f8fbff;color:#45617f;font-size:10px;font-weight:800}
.summary-total-badge i{color:#2563eb}
.summary-table-main{margin-top:0}
.summary-table-main .row-month-count th,.summary-table-main .row-day-count th,.summary-table-main .row-month-turns th{white-space:nowrap}
.summary-table-main .row-month-count td{background:#f8fbff}
.summary-table-main .row-day-count td{background:#fbfcfe}
.summary-table-main .row-month-turns td{background:#f7fbf8}
.summary-table-main .row-month-turns td,.summary-table-main .row-month-turns td.summary-total{color:#16724f}
.summary-table-main .summary-total{background:#f5f7fb!important;font-weight:900}
.summary-metrics-table{margin-top:12px}
.summary-metrics-table table{min-width:420px}
.summary-metrics-table .big-result{font-size:18px;font-weight:900;color:#10233d;text-align:center;background:linear-gradient(90deg,#f8fbff,#fff)}
.summary-metrics-table th:first-child{width:68%}
.summary-metrics-table th,.summary-metrics-table td{padding:14px 12px}

.calendar-day-list{display:grid;gap:14px;max-height:70vh;overflow:auto;padding:2px 4px 6px}
.calendar-group{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;overflow:hidden}
.calendar-group-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;background:linear-gradient(135deg,#eef4ff,#f9fbff);border-bottom:1px solid #e0e7f0}
.calendar-group-code{display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:900;color:#2563eb;letter-spacing:.03em}
.calendar-group-head h4{margin:4px 0 0;font-size:12px;color:#17263c}
.calendar-group-count{white-space:nowrap;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #dce6f2;font-size:9px;font-weight:800;color:#5f7086}
.calendar-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px}
.calendar-detail-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #e0e7ef;border-radius:13px;padding:10px;background:#fff;box-shadow:0 5px 18px rgba(30,52,78,.05)}
.calendar-detail-main{min-width:0}
.calendar-detail-main strong{display:block;font-size:11px;color:#14243b}
.calendar-detail-main span{display:block;font-size:10px;color:#41536b;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-detail-main small{display:block;font-size:9px;color:#7a8798;margin-top:5px}
.calendar-detail-main small i{color:#7b8ca1}
.calendar-detail-status{align-self:center;display:flex;align-items:center;justify-content:center;min-height:40px}
@media(max-width:760px){.calendar-group-grid{grid-template-columns:1fr}.summary-section-title{align-items:flex-start;flex-direction:column}.summary-total-badge{align-self:flex-start}.modal{padding:10px}.modal-card.large{width:min(100%,980px);max-height:92vh;border-radius:16px}}

/* Captura de conteo */
.read-only-table td,.read-only-table th{white-space:nowrap}
.count-entry-table{min-width:980px}
.count-entry-table th,.count-entry-table td{vertical-align:middle}
.count-entry-table .physical-input{width:120px;height:34px;border:1px solid #cfd9e5;border-radius:9px;padding:0 9px;font-size:12px;outline:none;background:#fff}
.count-entry-table .physical-input:focus,.count-entry-table .obs-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.count-entry-table .obs-input{width:190px;height:34px;border:1px solid #cfd9e5;border-radius:9px;padding:0 9px;font-size:11px;outline:none;background:#fff}
.entry-desc span{display:block;max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.entry-desc small{display:block;color:#7a8798;font-size:9px;margin-top:3px}
.read-only-table .status,.read-only-table .type{font-size:9px}
.schedule-mini{display:block;margin-top:3px;font-size:8px;color:#7b8798;font-weight:700;white-space:nowrap}.schedule-mini i{color:#2563eb;margin-right:3px}
#warehouseTable td:nth-child(n+5){font-variant-numeric:tabular-nums}.summary-table-main td,.summary-metrics-table td{font-variant-numeric:tabular-nums}

/* V35: estado perfectamente centrado dentro del ovalo del detalle del calendario */
.calendar-detail-status{align-self:stretch;min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0;}
.calendar-detail-status .status{height:30px;min-height:30px;line-height:30px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;padding:0 11px;margin:0;text-align:center;}
@media(max-width:760px){.calendar-detail-status{min-height:40px}.calendar-detail-status .status{height:30px;min-height:30px;line-height:30px;}}

/* Dashboard ejecutivo */
.dashboard-page-toolbar{align-items:center;margin-bottom:12px}.dashboard-mode-wrap{display:flex;align-items:center;gap:8px}.dashboard-mode{display:flex;align-items:center;padding:3px;background:#eef2f7;border:1px solid #dfe5ed;border-radius:12px;gap:2px}.dashboard-mode-btn{border:0;background:transparent;color:#718096;height:34px;padding:0 13px;border-radius:9px;font-size:10px;font-weight:800;display:flex;align-items:center;gap:7px}.dashboard-mode-btn i{font-size:10px}.dashboard-mode-btn.active{background:#fff;color:#15386e;box-shadow:0 2px 8px rgba(18,43,78,.10)}
.dashboard-filterbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:15px;position:relative;z-index:20}.dashboard-clear-btn,.dashboard-filter-btn{height:36px;border:1px solid #dce3eb;background:#fff;color:#46556a;border-radius:10px;display:flex;align-items:center;gap:7px;padding:0 10px;font-size:10px;box-shadow:0 2px 8px rgba(24,42,68,.035)}.dashboard-clear-btn{color:#5e6b7d;font-weight:700}.dashboard-clear-btn:hover,.dashboard-filter-btn:hover{border-color:#bdcad8;background:#fbfdff}.dashboard-filter{position:relative}.dashboard-filter-btn strong{font-weight:800;color:#1d3557;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-filter-btn .chevron{font-size:8px;color:#96a1b0;margin-left:2px}.dashboard-filter.open .dashboard-filter-btn{border-color:#94b1dc;box-shadow:0 0 0 3px rgba(37,99,235,.07)}.dashboard-filter-popover{display:none;position:absolute;top:42px;left:0;width:280px;max-height:340px;overflow:auto;background:#fff;border:1px solid #dbe3ed;border-radius:13px;box-shadow:0 18px 40px rgba(25,44,69,.16);padding:8px;z-index:50}.dashboard-filter.open .dashboard-filter-popover{display:block}.dashboard-filter-popover.single{width:200px}.dashboard-option{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;font-size:10px;color:#435269;cursor:pointer}.dashboard-option:hover{background:#f4f7fb}.dashboard-option input{accent-color:#173b73;width:14px;height:14px;flex:0 0 auto}.dashboard-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.dashboard-kpi{background:#fff;border:1px solid #dfe5ed;box-shadow:0 8px 22px rgba(22,43,70,.08);border-radius:7px;padding:10px 12px;min-height:86px;display:flex;flex-direction:column;justify-content:space-between}.dashboard-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#1a1f28}.dashboard-kpi-head span{font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-kpi-head i{font-size:13px;color:#6d7785}.dashboard-kpi strong{display:block;text-align:right;color:#000;font-size:33px;line-height:.95;letter-spacing:-.04em;font-weight:900;font-variant-numeric:tabular-nums}.dashboard-kpi:nth-child(2) strong{color:#111}.dashboard-chart-grid{display:grid;gap:10px;margin-bottom:10px}.dashboard-chart-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-chart-card{padding:12px 13px;margin-bottom:0;border-radius:3px;box-shadow:0 5px 18px rgba(27,46,70,.07)}.dashboard-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.dashboard-chart-head h3{margin:0;font-size:11px;font-weight:900;letter-spacing:.01em}.dashboard-chart-head span{display:block;color:#8b95a4;font-size:8px;margin-top:3px}.dashboard-chart-head>i{font-size:12px;color:#677386}.dashboard-chart-box{height:205px;position:relative}.dashboard-chart-box.tall{height:255px}.dashboard-top5-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dashboard-top5{padding:12px 13px;margin-bottom:0;border-radius:3px}.dashboard-top5 .data-table{min-width:0}.dashboard-top5 .data-table th,.dashboard-top5 .data-table td{padding:8px 7px;font-size:9px}.dashboard-top5 .data-table th{font-size:8px}.dashboard-top5 .desc-cell{max-width:0;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-top5 .num{white-space:nowrap}
@media(max-width:1200px){.dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-chart-grid-3{grid-template-columns:1fr 1fr}.dashboard-filterbar{gap:7px}}@media(max-width:900px){.dashboard-page-toolbar{align-items:flex-start;flex-direction:column}.dashboard-mode-wrap{width:100%;justify-content:space-between}.dashboard-chart-grid-3{grid-template-columns:1fr}.dashboard-top5-grid{grid-template-columns:1fr}.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-filter-popover{max-width:min(280px,calc(100vw - 36px))}}@media(max-width:640px){.dashboard-kpi-grid{grid-template-columns:1fr 1fr;gap:7px}.dashboard-kpi{min-height:82px;padding:9px}.dashboard-kpi strong{font-size:21px}.dashboard-mode-btn{padding:0 10px}.dashboard-clear-btn span{display:none}.dashboard-filter-btn{max-width:100%}.dashboard-filter-btn strong{max-width:105px}.dashboard-filterbar{overflow:visible}.dashboard-chart-box{height:195px}.dashboard-chart-box.tall{height:240px}}


/* Dashboard KPI refinado */
.dashboard-page-toolbar{margin-bottom:14px}
.dashboard-page-toolbar h2{font-size:18px;letter-spacing:-.01em}
.dashboard-page-toolbar p{font-size:9px;margin-top:4px}
.dashboard-mode-wrap{gap:9px}
.dashboard-mode{padding:3px;border-radius:999px;background:linear-gradient(180deg,#f4f7fb,#eaf0f7);border:1px solid #dde5ee;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.dashboard-mode-btn{height:32px;padding:0 14px;border-radius:999px;font-size:9px;gap:6px}
.dashboard-mode-btn.active{background:#fff;box-shadow:0 4px 12px rgba(18,43,78,.10)}
.dashboard-filterbar{gap:7px;margin-bottom:14px;align-items:center}
.dashboard-clear-btn,.dashboard-filter-btn{height:34px;border-radius:999px;padding:0 11px;font-size:9px;box-shadow:0 4px 12px rgba(24,42,68,.05)}
.dashboard-clear-btn{font-weight:800;color:#5e6b7d}
.dashboard-filter-btn strong{font-size:9px;max-width:145px}
.dashboard-filter-btn .chevron{font-size:7px}
.dashboard-filter-btn i:first-child,.dashboard-clear-btn i{font-size:9px;color:#3d5576}
.dashboard-filter.open .dashboard-filter-btn{box-shadow:0 0 0 3px rgba(37,99,235,.06),0 5px 14px rgba(24,42,68,.06)}
.dashboard-filter-popover{top:40px;border-radius:16px;box-shadow:0 20px 45px rgba(25,44,69,.15)}
.dashboard-option{font-size:9px;border-radius:10px;padding:8px 9px}

.dashboard-kpi-grid{gap:9px;margin-bottom:13px}
.dashboard-kpi{min-height:82px;padding:9px 11px;border-radius:16px;border:1px solid #e1e7ef;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 8px 22px rgba(22,43,70,.075)}
.dashboard-kpi-head span{font-size:9px;font-weight:800;color:#26364a}
.dashboard-kpi-head i{font-size:11px;color:#7a8796}
.dashboard-kpi strong{font-size:14px;line-height:1;letter-spacing:-.03em}

.dashboard-chart-grid{gap:11px;margin-bottom:11px}
.dashboard-chart-card{padding:12px 13px;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);box-shadow:0 8px 22px rgba(27,46,70,.065);border:1px solid #e3e9f0}
.dashboard-chart-head{margin-bottom:7px}
.dashboard-chart-head h3{font-size:10px;font-weight:900;letter-spacing:.02em}
.dashboard-chart-head span{font-size:7.5px;color:#8994a3;margin-top:2px}
.dashboard-chart-head>i{font-size:11px;color:#718094}
.dashboard-chart-box{height:205px;position:relative}
.dashboard-chart-box.tall{height:245px;position:relative}
.dashboard-top5{padding:12px 13px;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#f9fbfe 100%);border:1px solid #e3e9f0;box-shadow:0 7px 20px rgba(27,46,70,.065)}
.dashboard-top5 .data-table th,.dashboard-top5 .data-table td{padding:7px 7px;font-size:8.5px}
.dashboard-top5 .data-table th{font-size:7.5px}

@media(max-width:640px){
  .dashboard-kpi{min-height:78px;padding:8px;border-radius:14px}
  .dashboard-kpi-head span{font-size:8px}
  .dashboard-kpi strong{font-size:19px}
  .dashboard-mode-btn{padding:0 11px}
  .dashboard-filter-btn{height:32px;padding:0 9px}
  .dashboard-filter-btn strong{max-width:96px}
  .dashboard-chart-card,.dashboard-top5{border-radius:14px}
}


/* ===== V55: gráficos KPI ocupan más área visual y etiquetas de grupo compactas ===== */
.dashboard-chart-card{
  min-height:390px;
}
.dashboard-chart-box{
  min-height:320px;
  height:320px;
  flex:1 1 auto;
}
.dashboard-chart-box.tall{
  min-height:360px;
  height:360px;
}
.dashboard-chart-box canvas{
  width:100% !important;
  height:100% !important;
}
@media(max-width:1200px){
  .dashboard-chart-card{min-height:370px}
  .dashboard-chart-box{min-height:300px;height:300px}
  .dashboard-chart-box.tall{min-height:335px;height:335px}
}
@media(max-width:900px){
  .dashboard-chart-card{min-height:350px}
  .dashboard-chart-box{min-height:285px;height:285px}
  .dashboard-chart-box.tall{min-height:320px;height:320px}
}
@media(max-width:640px){
  .dashboard-chart-card{min-height:320px}
  .dashboard-chart-box{min-height:260px;height:260px}
  .dashboard-chart-box.tall{min-height:290px;height:290px}
}

/* Canvas responsive de los gráficos */
.dashboard-chart-box canvas{
  display:block;
  width:100% !important;
  height:100% !important;
}
/* Filtros y tooltips del dashboard */
.dashboard-filterbar{
  display:block;
  margin-bottom:14px;
  position:relative;
  z-index:20;
}
.dashboard-slicer-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.dashboard-slicer-title{
  display:flex;
  align-items:center;
  gap:7px;
  color:#25364b;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
}
.dashboard-slicer-title i{color:#3d5576;font-size:10px}
.dashboard-slicer{
  background:#fff;
  border:1px solid #e0e7ef;
  border-radius:12px;
  padding:8px 9px 9px;
  margin-bottom:7px;
  box-shadow:0 3px 12px rgba(24,42,68,.035);
}
.dashboard-slicer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:7px;
}
.dashboard-slicer-head>div{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-slicer-head i{font-size:9px;color:#6e7f95}
.dashboard-slicer-head strong{font-size:9px;color:#26384d;font-weight:900}
.dashboard-slicer-head>span{font-size:7.5px;color:#8995a4;white-space:nowrap}
.dashboard-slicer-options{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  max-height:112px;
  overflow:auto;
  padding:1px;
  scrollbar-width:thin;
}
.dashboard-slicer-option{
  appearance:none;
  border:1px solid #dbe3ec;
  background:#f8fafc;
  color:#4b5b70;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  font:700 8px/1.1 Inter,Arial,sans-serif;
  cursor:pointer;
  transition:border-color .12s ease,background .12s ease,color .12s ease,box-shadow .12s ease,transform .12s ease;
  max-width:100%;
}
.dashboard-slicer-option span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.dashboard-slicer-option:hover{border-color:#9bb0ca;background:#f2f6fa;color:#243b5a}
.dashboard-slicer-option.active{
  border-color:#315b91;
  background:#173d73;
  color:#fff;
  box-shadow:0 3px 10px rgba(23,61,115,.15);
}
.dashboard-slicer-option.active:hover{background:#173d73;color:#fff}
.dashboard-clear-btn{
  flex:0 0 auto;
  border:1px solid #d9e1ea;
  background:#fff;
  color:#536174;
  height:30px;
  border-radius:999px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:6px;
  font:800 8px/1 Inter,Arial,sans-serif;
  cursor:pointer;
}
.dashboard-clear-btn:hover{border-color:#aebdd0;background:#f8fafc}
.dashboard-chart-box{overflow:visible}
.dashboard-chart-box canvas{touch-action:manipulation}
.dashboard-chart-tooltip{
  position:absolute;
  z-index:100;
  min-width:125px;
  max-width:240px;
  padding:7px 9px;
  border:1px solid rgba(218,227,237,.95);
  border-radius:9px;
  background:rgba(255,255,255,.98);
  box-shadow:0 10px 28px rgba(25,44,69,.16);
  pointer-events:none;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .08s ease,transform .08s ease;
}
.dashboard-chart-tooltip.show{opacity:1;transform:translateY(0)}
.dashboard-chart-tooltip strong{
  display:block;
  color:#20334b;
  font:900 8.5px/1.2 Inter,Arial,sans-serif;
  white-space:normal;
}
.dashboard-chart-tooltip span{
  display:block;
  margin-top:3px;
  color:#66758a;
  font:700 8px/1.25 Inter,Arial,sans-serif;
  white-space:normal;
}
@media(max-width:640px){
  .dashboard-slicer{padding:7px}
  .dashboard-slicer-options{max-height:132px;gap:4px}
  .dashboard-slicer-option{min-height:27px;padding:5px 8px;font-size:7.5px}
  .dashboard-slicer-option span{max-width:205px}
  .dashboard-slicer-head>span{font-size:7px}
  .dashboard-slicer-toolbar{align-items:flex-start}
  .dashboard-slicer-title{font-size:9px}
}


/* Sidebar y gráficos del dashboard */
#view-dashboard{position:relative}
.dashboard-filter-shell{
  position:relative;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  min-height:38px;
  margin-bottom:10px;
  z-index:80;
}
.dashboard-filter-toggle{
  height:34px;
  border:1px solid #d6e0eb;
  border-radius:999px;
  background:#fff;
  color:#243a57;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 13px;
  font:800 9px/1 Inter,Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(24,42,68,.07);
  transition:.15s ease;
}
.dashboard-filter-toggle:hover{border-color:#9db3cf;background:#f9fbfe}
.dashboard-filter-count{
  display:inline-grid;
  place-items:center;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:999px;
  background:#173d73;
  color:#fff;
  font-size:7px;
}
.dashboard-filter-count:empty{display:none}
.dashboard-filter-sidebar{
  position:absolute;
  top:43px;
  right:0;
  width:350px;
  max-width:calc(100vw - 42px);
  max-height:min(78vh,720px);
  overflow:auto;
  padding:14px;
  border:1px solid #dbe4ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 22px 55px rgba(24,42,68,.18);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.dashboard-filter-shell.open .dashboard-filter-sidebar{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.dashboard-filter-sidebar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:11px;
  border-bottom:1px solid #edf1f5;
  margin-bottom:11px;
}
.dashboard-filter-sidebar-head>div{min-width:0}
.dashboard-filter-sidebar-head strong{display:block;font-size:12px;color:#20344e;font-weight:900}
.dashboard-filter-sidebar-head span{display:block;margin-top:3px;color:#8995a4;font-size:8px}
.dashboard-filter-close{
  flex:0 0 auto;
  width:29px;
  height:29px;
  border:1px solid #dde5ee;
  border-radius:9px;
  background:#fff;
  color:#657487;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.dashboard-filter-close:hover{background:#f5f8fb;color:#213a5a}
.dashboard-filter-primary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-bottom:8px;
}
.dashboard-filter-secondary{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
}
.dashboard-slicer{
  margin-bottom:0;
  padding:8px;
  border-radius:12px;
}
.dashboard-slicer-head{margin-bottom:6px}
.dashboard-slicer-options{max-height:128px}
.dashboard-filter-sidebar-foot{
  display:flex;
  justify-content:flex-end;
  padding-top:10px;
  margin-top:10px;
  border-top:1px solid #edf1f5;
}
.dashboard-filter-overlay{display:none}

/* Compresión vertical de los gráficos sin alterar su funcionalidad. */
.dashboard-chart-card{
  min-height:260px !important;
}
.dashboard-chart-box{
  min-height:175px !important;
  height:175px !important;
}
.dashboard-chart-box.tall{
  min-height:205px !important;
  height:205px !important;
}
.dashboard-chart-head{margin-bottom:5px}

/* Etiquetas de datos permanentes, visibles aun sin hover. */
.dashboard-chart-box canvas{overflow:visible}

@media(max-width:900px){
  .dashboard-filter-primary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  .dashboard-filter-shell{min-height:35px}
  .dashboard-filter-sidebar{
    top:41px;
    right:0;
    width:min(350px,calc(100vw - 24px));
    max-width:calc(100vw - 24px);
    max-height:82vh;
  }
  .dashboard-filter-primary{grid-template-columns:1fr;gap:6px}
  .dashboard-slicer-options{max-height:112px}
  .dashboard-filter-toggle{height:32px;padding:0 11px}
  .dashboard-chart-card{min-height:235px !important}
  .dashboard-chart-box{min-height:160px !important;height:160px !important}
  .dashboard-chart-box.tall{min-height:185px !important;height:185px !important}
  .dashboard-filter-overlay{
    position:fixed;
    inset:0;
    display:block;
    background:rgba(18,31,48,.18);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .16s ease,visibility .16s ease;
    z-index:-1;
  }
  .dashboard-filter-shell.open .dashboard-filter-overlay{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    z-index:-1;
  }
}

/* Filtros laterales del dashboard */
.dashboard-filter-shell{
  justify-content:flex-start !important;
  align-items:flex-start !important;
  margin-bottom:12px !important;
}
.dashboard-filter-toggle{
  border-radius:10px !important;
  min-width:118px;
  justify-content:center;
  height:38px !important;
  padding:0 14px !important;
  font-size:9.5px !important;
  letter-spacing:.02em;
  box-shadow:0 5px 14px rgba(24,42,68,.06) !important;
}
.dashboard-filter-sidebar{
  left:0 !important;
  right:auto !important;
  top:46px !important;
  width:365px !important;
  max-width:min(365px,calc(100vw - 24px)) !important;
  max-height:min(78vh,740px) !important;
  border-radius:14px !important;
  padding:0 !important;
  overflow:auto;
}
.dashboard-filter-sidebar-head{
  padding:14px 14px 11px !important;
  margin-bottom:0 !important;
  background:#fafbfc;
  position:sticky;
  top:0;
  z-index:2;
}
.dashboard-filter-sidebar-head strong{
  font-size:13px !important;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.dashboard-filter-primary,
.dashboard-filter-secondary{
  padding:12px 14px 0;
}
.dashboard-filter-primary{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.dashboard-filter-secondary{padding-top:8px}
.dashboard-slicer{
  border:1px solid #edf0f4;
  background:#fafafa;
  border-radius:9px !important;
}
.dashboard-slicer-head strong{font-size:8.5px !important}
.dashboard-slicer-option{
  border-color:#e8ebef !important;
  background:#fff !important;
  justify-content:flex-start !important;
}
.dashboard-slicer-option.active{
  background:#173d73 !important;
  color:#fff !important;
  border-color:#173d73 !important;
}
.dashboard-filter-sidebar-foot{
  position:sticky;
  bottom:0;
  background:#fff;
  padding:10px 14px 14px !important;
}
.dashboard-clear-btn{
  width:100%;
  justify-content:center;
  height:38px !important;
  border-radius:9px !important;
}
@media(max-width:640px){
  .dashboard-filter-toggle{min-width:108px;height:35px !important}
  .dashboard-filter-sidebar{
    left:0 !important;
    right:auto !important;
    top:41px !important;
    width:min(365px,calc(100vw - 18px)) !important;
    max-width:calc(100vw - 18px) !important;
    max-height:84vh !important;
  }
  .dashboard-filter-primary{grid-template-columns:1fr !important}
}


/* Sidebar interno del dashboard */
#view-dashboard{position:relative}
.dashboard-content-layout{
  display:grid;
  grid-template-columns:282px minmax(0,1fr);
  gap:16px;
  align-items:start;
  transition:grid-template-columns .18s ease;
}
.dashboard-content-layout.filters-collapsed{grid-template-columns:50px minmax(0,1fr)}
.dashboard-filter-column{min-width:0;position:sticky;top:12px;align-self:start;z-index:40}
.dashboard-main-column{min-width:0}
.dashboard-filter-shell{
  display:block !important;
  position:relative !important;
  margin:0 !important;
  min-height:0 !important;
  width:100% !important;
}
.dashboard-filter-rail-head{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 10px 0 12px;
  background:#fff;
  border:1px solid #e4e9ef;
  border-radius:10px;
  box-shadow:0 4px 14px rgba(24,42,68,.055);
  margin-bottom:8px;
}
.dashboard-filter-title{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-filter-title i{font-size:11px;color:#697786}
.dashboard-filter-title strong{font-size:10px;color:#4f5d6c;letter-spacing:.04em}
.dashboard-filter-count{font-size:7px;color:#8c98a5;font-weight:900}
.dashboard-filter-rail-toggle{
  width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center;
  border:1px solid #dfe5eb;border-radius:8px;background:#fff;color:#657383;cursor:pointer;
}
.dashboard-filter-rail-toggle:hover{background:#f4f7fa;color:#263a53}
.dashboard-filter-sidebar{
  position:static !important;
  width:100% !important;
  max-width:none !important;
  max-height:none !important;
  overflow:visible !important;
  padding:0 !important;
  border:1px solid #e4e9ef !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 7px 22px rgba(24,42,68,.06) !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}
.dashboard-filter-sidebar-head{
  display:block !important;
  padding:17px 14px 12px !important;
  margin:0 !important;
  border-bottom:1px solid #edf0f3;
  background:#fafafa;
}
.dashboard-filter-sidebar-head strong{display:block;font-size:13px !important;color:#495b6e !important;font-weight:900;letter-spacing:.02em}
.dashboard-filter-sidebar-head span{display:block;margin-top:4px;color:#97a2af !important;font-size:8px !important}
.dashboard-filter-primary,.dashboard-filter-secondary{display:block !important;padding:0 10px !important;margin:0 !important}
.dashboard-filter-secondary{padding-top:0 !important}
.dashboard-slicer{
  margin:10px 0 !important;
  padding:10px 9px 9px !important;
  border:1px solid #eef1f4 !important;
  border-radius:10px !important;
  background:#fafafa !important;
  box-shadow:none !important;
}
.dashboard-slicer-head{margin-bottom:8px !important}
.dashboard-slicer-head strong{font-size:10px !important;color:#4f6072 !important}
.dashboard-slicer-head>span{font-size:7.5px !important;color:#98a2ad !important}
.dashboard-slicer-options{display:flex !important;flex-direction:column !important;flex-wrap:nowrap !important;gap:4px !important;max-height:none !important;overflow:visible !important;padding:0 !important}
.dashboard-slicer-option{
  width:100% !important;min-height:31px !important;padding:6px 8px !important;
  display:flex !important;align-items:center !important;justify-content:space-between !important;
  gap:7px !important;border:1px solid #e1e5e9 !important;border-radius:8px !important;
  background:#fff !important;color:#536172 !important;font-size:8.5px !important;font-weight:700 !important;text-align:left !important;
}
.dashboard-slicer-option:before{content:'›';font-size:14px;font-weight:900;line-height:1;color:#8c97a3;flex:0 0 auto}
.dashboard-slicer-option span{flex:1;max-width:none !important;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-slicer-option.active{background:#efeaf4 !important;color:#4f4162 !important;border-color:#b8a9c5 !important;box-shadow:inset 3px 0 0 #76528a !important}
.dashboard-slicer-option.active:before{color:#76528a}
.dashboard-filter-sidebar-foot{position:static !important;padding:10px !important;margin-top:2px !important;border-top:1px solid #edf0f3;background:#fff;border-radius:0 0 12px 12px}
.dashboard-clear-btn{width:100% !important;height:36px !important;justify-content:center !important;border-radius:8px !important}
.dashboard-chart-card{min-height:240px !important}
.dashboard-chart-box{min-height:165px !important;height:165px !important;overflow:visible !important}
.dashboard-chart-box.tall{min-height:195px !important;height:195px !important}
.dashboard-chart-box canvas{overflow:visible !important}
.dashboard-filter-shell:not(.open) .dashboard-filter-sidebar{display:none !important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-head{padding-left:8px;padding-right:8px}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title strong,
.dashboard-content-layout.filters-collapsed .dashboard-filter-count{display:none}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title{justify-content:center}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-head{justify-content:center}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-toggle{margin:auto}

@media(max-width:900px){
  .dashboard-content-layout{grid-template-columns:1fr}
  .dashboard-content-layout.filters-collapsed{grid-template-columns:1fr}
  .dashboard-filter-column{position:relative;top:auto}
  .dashboard-filter-shell:not(.open) .dashboard-filter-rail-head{width:116px}
  .dashboard-filter-sidebar{max-height:58vh !important;overflow:auto !important}
}
@media(max-width:640px){
  .dashboard-chart-box{min-height:155px !important;height:155px !important}
  .dashboard-chart-box.tall{min-height:180px !important;height:180px !important}
  .dashboard-filter-rail-head{height:42px}
  .dashboard-filter-sidebar-head{padding:14px 12px 10px !important}
}


/* Compatibilidad del sidebar interno */
#view-dashboard{overflow:visible!important}
#userPanelContentLayout.dashboard-content-layout{
  display:grid!important;
  grid-template-columns:minmax(225px,305px) minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{
  grid-template-columns:44px minmax(0,1fr)!important;
}
.dashboard-filter-column{
  width:100%!important;
  min-width:0!important;
  position:relative!important;
  top:auto!important;
  align-self:start!important;
  z-index:1!important;
}
.dashboard-filter-shell{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  display:block!important;
  min-height:0!important;
}
.dashboard-filter-rail-head{
  width:100%!important;
  height:42px!important;
  margin:0 0 8px!important;
  padding:0 10px!important;
  box-sizing:border-box!important;
  border:1px solid #dfe5ec!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(24,42,68,.05)!important;
}
.dashboard-filter-title strong{font-size:11px!important;letter-spacing:.03em!important;color:#43536a!important}
.dashboard-filter-title i{font-size:12px!important;color:#65768b!important}
.dashboard-filter-rail-toggle{
  width:28px!important;height:28px!important;
  border:1px solid #dfe5ec!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.dashboard-filter-sidebar{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  max-width:none!important;
  max-height:500px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  padding:0!important;
  border:1px solid #e0e6ed!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(24,42,68,.06)!important;
}
.dashboard-filter-shell:not(.open) .dashboard-filter-sidebar{display:none!important}
.dashboard-filter-sidebar-head{
  position:static!important;
  padding:15px 14px 11px!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fafbfc!important;
}
.dashboard-filter-sidebar-head strong{font-size:13px!important;color:#4a5b70!important;font-weight:900!important}
.dashboard-filter-sidebar-head span{font-size:8px!important;margin-top:3px!important;color:#919ca9!important}
.dashboard-filter-primary,.dashboard-filter-secondary{
  display:block!important;
  padding:0 10px!important;
  margin:0!important;
}
.dashboard-filter-secondary{padding-top:0!important}
.dashboard-slicer{
  margin:10px 0!important;
  padding:10px!important;
  border:1px solid #edf1f4!important;
  border-radius:9px!important;
  background:#fbfbfc!important;
}
.dashboard-slicer-head{margin-bottom:7px!important}
.dashboard-slicer-head strong{font-size:10px!important;color:#4b5b6f!important}
.dashboard-slicer-head>span{font-size:7.5px!important;color:#9aa4b0!important}
.dashboard-slicer-options{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  max-height:none!important;
  overflow:visible!important;
}
.dashboard-slicer-option{
  width:100%!important;
  min-height:30px!important;
  padding:5px 7px!important;
  border:1px solid #e4e8ed!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#536274!important;
  font-size:8.5px!important;
  justify-content:flex-start!important;
  box-shadow:none!important;
}
.dashboard-slicer-option:before{content:'›'!important;font-size:14px!important;line-height:1!important;color:#93a0ae!important;flex:0 0 8px!important}
.dashboard-slicer-option span{display:block!important;flex:1!important;min-width:0!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.dashboard-slicer-option.active{background:#f0ebf5!important;color:#4d3f60!important;border-color:#b6a6c3!important;box-shadow:inset 3px 0 0 #78568e!important}
.dashboard-slicer-option.active:before{color:#78568e!important}
.dashboard-filter-sidebar-foot{position:static!important;padding:10px!important;margin-top:2px!important;border-top:1px solid #edf1f5!important;background:#fff!important}
.dashboard-clear-btn{height:35px!important;border-radius:8px!important;width:100%!important;justify-content:center!important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-head{
  width:44px!important;
  margin:0!important;
  padding:0!important;
  justify-content:center!important;
}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title strong,
.dashboard-content-layout.filters-collapsed .dashboard-filter-count{display:none!important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-title{justify-content:center!important}
.dashboard-content-layout.filters-collapsed .dashboard-filter-rail-toggle{margin:0!important}

@media(max-width:1200px){
  #userPanelContentLayout.dashboard-content-layout{grid-template-columns:250px minmax(0,1fr)!important}
  #userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:44px minmax(0,1fr)!important}
}
@media(max-width:760px){
  #userPanelContentLayout.dashboard-content-layout{grid-template-columns:210px minmax(0,1fr)!important;gap:10px!important}
  #userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:40px minmax(0,1fr)!important}
  .dashboard-filter-rail-head{height:40px!important}
  .dashboard-filter-sidebar-head{padding:12px 10px 9px!important}
  .dashboard-filter-primary,.dashboard-filter-secondary{padding:0 7px!important}
  .dashboard-slicer{padding:8px!important;margin:8px 0!important}
}

/* Sidebar de filtros estático */
#userPanelContentLayout.dashboard-content-layout{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{
  grid-template-columns:42px minmax(0,1fr)!important;
}
#userPanelFilters.dashboard-filter-shell{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  min-height:0!important;
  z-index:1!important;
}
#userPanelFilters .dashboard-filter-sidebar-static{
  display:block!important;
  width:100%!important;
  position:sticky!important;
  top:90px!important;
  box-sizing:border-box!important;
  height:500px!important;
  overflow:hidden!important;
  border:1px solid #e0e6ed!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(24,42,68,.07)!important;
}
#userPanelFilters .dashboard-filter-sidebar-static-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  height:46px!important;
  padding:0 10px 0 13px!important;
  box-sizing:border-box!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fff!important;
}
#userPanelFilters .dashboard-filter-title{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
#userPanelFilters .dashboard-filter-title i{font-size:11px!important;color:#65768b!important}
#userPanelFilters .dashboard-filter-title strong{font-size:10px!important;color:#4a5b70!important;letter-spacing:.04em!important}
#userPanelFilters .dashboard-filter-count{font-size:7px!important;color:#8c98a5!important;font-weight:900!important}
#userPanelFilters .dashboard-filter-static-toggle{
  width:28px!important;height:28px!important;flex:0 0 28px!important;
  display:grid!important;place-items:center!important;
  border:1px solid #dfe5eb!important;border-radius:8px!important;
  background:#fff!important;color:#657383!important;cursor:pointer!important;
}
#userPanelFilters .dashboard-filter-static-toggle:hover{background:#f4f7fa!important;color:#263a53!important}
#userPanelFilters .dashboard-filter-sidebar-static-body{
  display:block!important;
  width:100%!important;
  height:500px!important;
  overflow-y:hidden!important;
  overflow-x:hidden!important;
  scrollbar-width:thin!important;
}
#userPanelFilters .dashboard-filter-sidebar-head{
  display:block!important;
  padding:16px 14px 11px!important;
  margin:0!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fafbfc!important;
}
#userPanelFilters .dashboard-filter-sidebar-head strong{display:block!important;font-size:13px!important;color:#4a5b70!important;font-weight:900!important;letter-spacing:.02em!important}
#userPanelFilters .dashboard-filter-sidebar-head span{display:block!important;margin-top:4px!important;font-size:8px!important;color:#919ca9!important}
#userPanelFilters .dashboard-filter-primary,
#userPanelFilters .dashboard-filter-secondary{
  display:block!important;
  padding:0 10px!important;
  margin:0!important;
}
#userPanelFilters .dashboard-slicer{
  display:block!important;
  margin:10px 0!important;
  padding:10px!important;
  box-sizing:border-box!important;
  border:1px solid #edf1f4!important;
  border-radius:10px!important;
  background:#fbfbfc!important;
  box-shadow:none!important;
}
#userPanelFilters .dashboard-slicer-head{margin-bottom:7px!important}
#userPanelFilters .dashboard-slicer-head strong{font-size:10px!important;color:#4b5b6f!important}
#userPanelFilters .dashboard-slicer-head>span{font-size:7.5px!important;color:#9aa4b0!important}
#userPanelFilters .dashboard-slicer-options{
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  gap:4px!important;max-height:none!important;overflow:visible!important;padding:0!important;
}
#userPanelFilters .dashboard-slicer-option{
  width:100%!important;min-height:31px!important;padding:6px 8px!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:7px!important;border:1px solid #e2e7ec!important;border-radius:8px!important;
  background:#fff!important;color:#526174!important;font-size:8.5px!important;font-weight:700!important;text-align:left!important;
}
#userPanelFilters .dashboard-slicer-option:before{content:'›'!important;font-size:14px!important;font-weight:900!important;line-height:1!important;color:#93a0ae!important;flex:0 0 8px!important}
#userPanelFilters .dashboard-slicer-option span{display:block!important;flex:1!important;min-width:0!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
    #userPanelFilters .dashboard-slicer-option.active{background:#dde2ef!important;color:#2a5896!important;border-color:#152a46!important;box-shadow:inset 3px 0 0 #152a46!important}
#userPanelFilters .dashboard-slicer-option.active:before{color:#152a46!important}
#userPanelFilters .dashboard-filter-sidebar-foot{display:block!important;padding:10px!important;margin:0!important;border-top:1px solid #edf1f5!important;background:#fff!important}
#userPanelFilters .dashboard-clear-btn{width:100%!important;height:36px!important;justify-content:center!important;border-radius:8px!important}
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-sidebar-static{
  width:42px!important;
  overflow:hidden!important;
}
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-sidebar-static-head{
  justify-content:center!important;
  padding:0!important;
  border-bottom:0!important;
}
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-title strong,
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-count,
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-sidebar-static-body{display:none!important}
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-static-toggle{margin:0!important}
/* Neutraliza totalmente estilos heredados de versiones anteriores que creaban un botón/drawer flotante. */
.dashboard-filter-toggle,
.dashboard-filter-overlay,
#userPanelFilters .dashboard-filter-close{display:none!important}
#userPanelFilters .dashboard-filter-sidebar{position:static!important;display:contents!important;opacity:1!important;visibility:visible!important;transform:none!important;box-shadow:none!important;border:0!important;padding:0!important}
@media(max-width:1100px){
  #userPanelContentLayout.dashboard-content-layout{grid-template-columns:250px minmax(0,1fr)!important}
  #userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:42px minmax(0,1fr)!important}
}
@media(max-width:760px){
  /* Sigue siendo sidebar izquierdo dentro del layout; los gráficos ocupan el resto. */
  #userPanelContentLayout.dashboard-content-layout{grid-template-columns:205px minmax(0,1fr)!important;gap:9px!important}
  #userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:40px minmax(0,1fr)!important}
  #userPanelFilters .dashboard-filter-sidebar-static{top:76px!important;border-radius:10px!important}
  #userPanelFilters .dashboard-filter-sidebar-static-body{max-height:calc(100vh - 50px)!important}
  #userPanelFilters .dashboard-filter-sidebar-head{padding:13px 10px 10px!important}
  #userPanelFilters .dashboard-filter-primary,#userPanelFilters .dashboard-filter-secondary{padding:0 7px!important}
  #userPanelFilters .dashboard-slicer{margin:8px 0!important;padding:8px!important}
  #userPanelFilters .dashboard-slicer-option{min-height:28px!important;padding:5px 6px!important;font-size:8px!important}
}

/* Ajustes finales del sidebar */
#userPanelContentLayout.dashboard-content-layout{
  grid-template-columns:220px minmax(0,1fr)!important;
  gap:12px!important;
}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{
  grid-template-columns:65px minmax(0,1fr)!important;
}
#userPanelFilters .dashboard-filter-static-toggle{
  width:34px!important;
  height:34px!important;
  flex-basis:30px!important;
  border-radius:9px!important;
}
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-sidebar-static{
  width:62px!important;
}
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-static-toggle{
  width:42px!important;
  height:42px!important;
  flex-basis:30px!important;
  border-radius:11px!important;
}
#userPanelFilters .dashboard-filter-sidebar-static{
  max-width:220px!important;
}
@media(max-width:1100px){
  #userPanelContentLayout.dashboard-content-layout{grid-template-columns:220px minmax(0,1fr)!important}
  #userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:58px minmax(0,1fr)!important}
  #userPanelFilters .dashboard-filter-sidebar-static{max-width:220px!important}
}
@media(max-width:760px){
  #userPanelContentLayout.dashboard-content-layout{grid-template-columns:195px minmax(0,1fr)!important;gap:9px!important}
  #userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:54px minmax(0,1fr)!important}
  #userPanelFilters .dashboard-filter-sidebar-static{max-width:195px!important}
  #userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-sidebar-static{width:54px!important}
  #userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-static-toggle{width:40px!important;height:40px!important;flex-basis:40px!important}
}
/* ===== Franja PESCO del Dashboard ===== */
.pesco-dashboard-banner{
  width:100%;
  min-height:58px;
  margin:14px 0 16px;
  padding:8px 22px;
  display:flex;
  align-items:center;
  gap:16px;
  background:linear-gradient(100deg,#173b73 0%,#31579a 55%,#4969a5 100%);
  border-radius:10px;
  box-shadow:0 7px 20px rgba(23,59,115,.14);
  overflow:hidden;
}
.pesco-dashboard-banner img{
  width:108px;
  height:44px;
  object-fit:contain;
  object-position:center;
  display:block;
  flex:0 0 auto;
  border-radius:3px;
}
.pesco-banner-divider{
  width:1px;
  height:31px;
  background:rgba(255,255,255,.55);
  flex:0 0 auto;
}
.pesco-dashboard-banner strong{
  color:#fff;
  font-size:17px;
  line-height:1;
  font-weight:300;
  letter-spacing:.02em;
  white-space:nowrap;
}
.pesco-dashboard-banner strong b{font-weight:800}
@media(max-width:640px){
  .pesco-dashboard-banner{
    min-height:50px;
    margin:12px 0 14px;
    padding:7px 12px;
    gap:10px;
    border-radius:8px;
  }
  .pesco-dashboard-banner img{width:78px;height:34px}
  .pesco-banner-divider{height:25px}
  .pesco-dashboard-banner strong{font-size:10px}
}
/* Altura y scroll SOLO cuando los filtros están abiertos */
#userPanelFilters.open .dashboard-filter-sidebar-static{
  height:809px!important;
  overflow:hidden!important;
}

#userPanelFilters.open .dashboard-filter-sidebar-static-body{
  height:745px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* Cuando los filtros están ocultos, que quede pequeño */
#userPanelFilters:not(.open) .dashboard-filter-sidebar-static{
  height:46px!important;
  overflow:hidden!important;
}


/* Control de meses para cargas parciales */
.month-control-panel{margin-top:0}
.month-control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.month-control-card{border:1px solid var(--border);border-radius:13px;background:#fbfdff;padding:12px;min-width:0}
.month-control-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.month-control-top strong{font-size:12px;color:#1b2b40}
.month-control-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:8px;font-weight:800;white-space:nowrap}
.month-control-status.closed{background:#e9f8f1;color:#0f7f5a}.month-control-status.ready{background:#e8f0ff;color:#1d4ed8}.month-control-status.process{background:#fff3dc;color:#b46a00}.month-control-status.empty{background:#f1f3f5;color:#6b7687}
.month-control-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}.month-control-metrics span{font-size:8px;color:#7d8998;line-height:1.25}.month-control-metrics b{display:block;font-size:13px;color:#1d2d43;margin-bottom:2px}
.month-control-actions{min-height:36px;display:flex;align-items:center}.month-control-actions .btn{width:100%;height:34px;font-size:9px}.month-action-note{font-size:8px;color:#8793a2;line-height:1.35}
@media(max-width:1100px){.month-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.month-control-grid{grid-template-columns:1fr}}


.upload-month-row{margin-top:10px}.upload-month-row .field{max-width:320px}.upload-month-row select{width:100%;height:40px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:0 11px;color:var(--text);outline:none;font-size:11px}.upload-month-row select:focus{border-color:#8db0e6;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.upload-month-help{display:block;margin-top:5px;color:#8a95a4;font-size:9px;line-height:1.4}

/* ===== Control de meses · diseño renovado ===== */
.month-control-panel{
  padding:20px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  border-color:#dfe6ef;
}
.month-control-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:13px;
}
.month-control-title{min-width:0}
.month-control-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.1em;
  color:#8794a5;
  margin-bottom:4px;
}
.month-control-kicker i{font-size:9px;color:#2563eb}
.month-control-title h3{margin:0;font-size:15px;color:#17273d}
.month-control-title .panel-subtitle{font-size:9px;line-height:1.5;margin-top:4px;max-width:760px}
.month-control-header-meta{
  min-width:92px;
  height:58px;
  padding:9px 11px;
  border:1px solid #e3e9f1;
  border-radius:13px;
  background:#f7f9fc;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto 1fr;
  align-items:center;
  column-gap:7px;
  flex:0 0 auto;
}
.month-control-header-meta .month-cycle-label{
  font-size:8px;color:#8c98a8;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
}
.month-control-header-meta strong{font-size:17px;line-height:1;color:#173b71;grid-column:1}
.month-control-header-meta i{grid-column:2;grid-row:1 / span 2;color:#2563eb;font-size:15px}
.month-control-legend{
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  padding:9px 11px;
  margin-bottom:13px;
  border:1px solid #edf1f5;
  border-radius:10px;
  background:#f9fbfd;
  color:#778496;
  font-size:8px;
}
.month-control-legend span{display:inline-flex;align-items:center;gap:5px}
.month-control-legend .legend-dot{margin:0;width:7px;height:7px}
.month-dot-open{background:#d97706}
.month-dot-ready{background:#2563eb}
.month-dot-closed{background:#0f9f6e}
.month-control-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
}
.month-control-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
  padding:13px;
  box-shadow:0 5px 16px rgba(15,31,53,.045);
  transition:transform .18s, box-shadow .18s, border-color .18s;
}
.month-control-card:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(15,31,53,.07);border-color:#d3dce7}
.month-control-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#cbd5e1}
.month-control-card.process::before{background:#d97706}
.month-control-card.ready::before{background:#2563eb}
.month-control-card.closed::before{background:#0f9f6e}
.month-control-card.empty::before{background:#cbd5e1}
.month-control-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:11px}
.month-control-card-name{display:flex;align-items:center;gap:8px;min-width:0}
.month-control-index{
  width:31px;height:31px;border-radius:9px;background:#f0f4fa;color:#53657c;
  display:grid;place-items:center;font-size:10px;font-weight:900;flex:0 0 auto;
}
.month-control-card-name>div{display:flex;flex-direction:column;min-width:0}
.month-control-card-name small{font-size:6.5px;letter-spacing:.08em;font-weight:900;color:#9aa5b3;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.month-control-card-name strong{font-size:13px;color:#1c2d43;line-height:1.1}
.month-control-status{
  display:inline-flex;align-items:center;gap:5px;height:23px;padding:0 7px;border-radius:999px;
  font-size:7px;font-weight:900;white-space:nowrap;flex:0 0 auto;
}
.month-control-status i{font-size:7px}
.month-control-status.closed{background:#e9f8f1;color:#0f7f5a}
.month-control-status.ready{background:#eaf1ff;color:#2457b8}
.month-control-status.process{background:#fff4e2;color:#b46a00}
.month-control-status.empty{background:#f1f4f7;color:#758294}
.month-control-progress-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.month-control-progress-head span{font-size:7.5px;color:#8a96a5;font-weight:700}
.month-control-progress-head strong{font-size:8.5px;color:#44556b}
.month-control-progress{height:6px;border-radius:99px;background:#edf1f5;overflow:hidden;margin-bottom:11px}
.month-control-progress span{display:block;height:100%;border-radius:99px;background:#94a3b8;transition:width .25s ease}
.month-control-card.process .month-control-progress span{background:#d97706}
.month-control-card.ready .month-control-progress span{background:#2563eb}
.month-control-card.closed .month-control-progress span{background:#0f9f6e}
.month-control-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:9px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.month-control-metrics>div{min-width:0}
.month-control-metrics small{display:block;font-size:7px;color:#919cab;margin-bottom:3px}
.month-control-metrics b{display:block;font-size:11px;color:#26384e;line-height:1.1}
.month-control-actions{display:flex;align-items:center;min-height:33px;padding-top:10px}
.month-action{width:100%;height:32px;border:1px solid transparent;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:8px;font-weight:800;cursor:pointer;transition:.18s}
.month-action:disabled{opacity:.55;cursor:not-allowed}
.month-action-primary{background:#2563eb;color:#fff;box-shadow:0 5px 12px rgba(37,99,235,.15)}
.month-action-primary:hover{background:#1d4ed8}
.month-action-outline{background:#fff;color:#314158;border-color:#dfe5ec}
.month-action-outline:hover{background:#f8fafc;border-color:#cfd8e3}
.month-action-note{display:flex;align-items:center;gap:6px;color:#a06b1d;font-size:7.5px;line-height:1.3}
.month-action-note i{font-size:8px}
.month-action-note.muted{color:#8793a2}
@media(max-width:1100px){.month-control-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.month-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.month-control-header{align-items:flex-start}.month-control-header-meta{min-width:82px}}
@media(max-width:640px){
  .month-control-panel{padding:14px}
  .month-control-header{gap:10px}
  .month-control-title h3{font-size:14px}
  .month-control-title .panel-subtitle{font-size:8px;max-width:none}
  .month-control-header-meta{height:52px;min-width:72px;padding:8px 9px}
  .month-control-header-meta strong{font-size:15px}
  .month-control-legend{gap:10px;padding:8px 9px}
  .month-control-grid{grid-template-columns:1fr;gap:9px}
}

/* Conciliación automática: acción visible en el módulo Conteo */
.recon-btn{border:0;border-radius:8px;padding:7px 10px;background:#123A78;color:#fff;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.recon-btn:disabled{opacity:.6;cursor:wait}.recon-badge{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;white-space:nowrap}.recon-badge.done{background:#eaf7ee;color:#24713a}.recon-muted{color:#9aa4b2}
@media(max-width:700px){.recon-btn,.recon-badge{padding:6px 8px;font-size:11px}}


/* Avance de conteo: estilo visual tipo indicador de progreso */
.dashboard-kpi-grid{align-items:start}
/* Avance de conteo — diseño compacto */
.dashboard-kpi-avance{
  min-height:82px;
  justify-content:space-between;
}

.dashboard-kpi-avance .avance-card-body{
  position:relative;
  margin-top:auto;
  padding-top:2px;
  width:100%;
  min-height:51px;

  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto 6px;
  column-gap:8px;
  row-gap:0;

  text-align:right;
  align-items:end;
}

/* Valor principal */
.dashboard-kpi-avance .avance-main{
  grid-column:2;
  grid-row:1;

  color:#000;
  font-size:14px;
  line-height:.95;
  letter-spacing:-.035em;
  font-weight:900;
  white-space:nowrap;
  text-align:right;
}

/* Valor total */
.dashboard-kpi-avance .avance-sub{
  grid-column:2;
  grid-row:2;

  margin:-150px 0 0;
  color:#677386;
  font-size:10px;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
  text-align:right;
}

/* Porcentaje */
.dashboard-kpi-avance .avance-percent{
  grid-column:1;
  grid-row:1 / span 2;

  align-self:end;
  justify-self:start;

  margin:0;
  color:#6f9bdb;
  font-size:13px;
  line-height:.95;
  letter-spacing:-.025em;
  font-weight:900;
  white-space:nowrap;
  text-align:left;
}

/* Barra */
.dashboard-kpi-avance .avance-track{
  grid-column:1 / -1;
  grid-row:3;

  height:5px;
  width:100%;
  margin:5px 0 0;

  overflow:hidden;
  border-radius:999px;
  background:#e7ebf0;
}

.dashboard-kpi-avance .avance-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#6f9bdb;
}

@media(max-width:1200px){
  .dashboard-kpi-avance .avance-main{
    font-size:20px;
  }

  .dashboard-kpi-avance .avance-sub{
    font-size:9px;
  }

  .dashboard-kpi-avance .avance-percent{
    font-size:17px;
  }
}
/* Inventario General */
.general-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:18px}
.general-access-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;margin-bottom:14px;border:1px solid var(--border,#e5e7eb);border-radius:14px;background:var(--panel,#fff);color:var(--text,#172033);font-size:13px}
.general-access-banner .access-locked{color:#b42318;font-weight:700}
.inline-date{width:145px;max-width:100%;padding:8px 10px;border:1px solid var(--border,#d9dee8);border-radius:9px;background:#fff;font:inherit}
.btn-small{padding:7px 10px;font-size:12px;white-space:nowrap}
.status.completed{background:#ecfdf3;color:#027a48}.status.pending{background:#fff7ed;color:#b54708}
.rack-badge{display:inline-flex;min-width:32px;justify-content:center;padding:4px 8px;border-radius:8px;background:#eef2ff;font-weight:800}
.assignment-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.assignment-option{display:flex;gap:12px;padding:14px;border:1px solid var(--border,#e5e7eb);border-radius:12px;cursor:pointer;background:#fff}
.assignment-option input{margin-top:3px}.assignment-option span{display:flex;flex-direction:column;gap:3px}.assignment-option small{color:#667085}
.rack-selector-box{border:1px solid var(--border,#e5e7eb);border-radius:12px;padding:14px;margin-top:12px;background:#fafbfc}
.choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;margin-top:10px;max-height:250px;overflow:auto}
.choice-item{display:flex;gap:9px;align-items:flex-start;padding:9px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}
.choice-item span{display:flex;flex-direction:column;gap:2px}.choice-item small{font-size:11px;color:#667085}
.section-head-inline{display:flex;align-items:center;gap:10px}.section-head-inline strong{margin-right:auto}
.assignment-help{margin-top:12px;padding:11px 13px;border-radius:10px;background:#f5f7fa;color:#475467;font-size:12px}
@media(max-width:1100px){.general-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.general-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-mode-grid{grid-template-columns:1fr}.general-access-banner{align-items:flex-start;flex-direction:column}.inline-date{width:130px}}
.pin-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:8px;font-weight:800;letter-spacing:2px;background:rgba(37,99,235,.10);color:#1d4ed8;border:1px solid rgba(37,99,235,.20);font-variant-numeric:tabular-nums}.count-footer{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.count-info{display:flex;align-items:center;gap:8px}.count-info:empty{display:none}
/* Inventario General: administración agrupada por grupo */
.code-badges{display:flex;flex-wrap:wrap;gap:5px;max-width:180px}
.code-badge{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid #dbe3ec;border-radius:8px;background:#f8fafc;font-size:11px;font-weight:700;color:#334155}
.group-warehouse-list{vertical-align:middle;line-height:1.35;padding-top:8px!important;padding-bottom:8px!important}
.group-warehouse-codes{min-width:78px;width:90px;white-space:nowrap}
.group-wh-code{display:flex;align-items:center;min-height:20px;padding:2px 0}
.group-wh-code strong{font-size:11px;font-weight:800;letter-spacing:.02em;color:#172b4d;font-variant-numeric:tabular-nums}
.group-warehouse-names{min-width:300px}
.group-warehouse-name{display:block;min-height:20px;line-height:1.45;padding:2px 0;color:#334155;font-size:11px;white-space:normal}

.admin-warehouse-line{display:flex;align-items:flex-start;gap:8px;line-height:1.35;padding:3px 0}
.admin-warehouse-line strong{min-width:42px;color:#475569;font-size:11px}
.admin-warehouse-line span{color:#64748b;font-size:11px}

.contraloria-obs-input{min-width:180px;width:100%;border:1px solid #d8e0ea;border-radius:8px;padding:7px 9px;background:#fff}.contraloria-input{min-width:95px}.calendar-day.has-events{cursor:pointer}.calendar-day.has-events:hover{transform:translateY(-1px)}

/* Separador visual para racks que existen en el maestro pero no tienen stock cargado. Solo Resumen/Contraloría. */
.empty-rack-row td{height:24px!important;padding:0 11px!important;background:#fbfcfe!important;border-bottom:1px solid #edf0f4!important}.empty-rack-cell{font-size:9px!important;color:#9aa6b5!important;font-weight:700!important;text-align:center!important}.empty-rack-row:hover td{background:#fbfcfe!important}

/* Filtros de detalle para Conteo, Resumen y Contraloría */
.general-filterbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 14px;margin-bottom:14px}
.general-filterbar .field-inline input,.general-filterbar .field-inline select{height:38px;border:1px solid var(--border);border-radius:9px;padding:0 9px;background:#fff;min-width:125px;font-size:11px;outline:none}
.general-filterbar .field-inline input:focus,.general-filterbar .field-inline select:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.contra-stage-panel{padding:10px 14px;margin-bottom:12px}
.contra-stage-panel .count-info{font-size:10px}
.contra-stage-panel .count-info i{color:#2563eb;margin-right:6px}
.contraloria-input,.contraloria-input2,.contraloria-obs-input{height:31px;border:1px solid #dce2ea;border-radius:8px;outline:none;background:#fff;padding:0 7px;font-size:10px;min-width:90px}
.contraloria-obs-input{min-width:180px;width:100%}
.contraloria-input:focus,.contraloria-input2:focus,.contraloria-obs-input:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.contraloria-input:disabled,.contraloria-input2:disabled,.contraloria-obs-input:disabled{background:#f5f7fa;color:#9aa6b5}
@media(max-width:900px){.general-filterbar .field-inline{flex:1;min-width:150px}.general-filterbar .search-box{min-width:100%;order:10}}

/* Panel de control por usuario */
.userpanel-filter-list{max-height:calc(100vh - 235px);overflow:auto;padding:6px 10px 10px}.userpanel-filter-group{border-bottom:1px solid #edf1f5;padding:9px 0}.userpanel-filter-label{font-size:9px;font-weight:900;color:#516174;text-transform:uppercase;margin-bottom:6px}.userpanel-filter-options{display:flex;flex-direction:column;gap:4px}.userpanel-filter-options label{display:flex;align-items:center;gap:7px;font-size:9px;color:#435269;cursor:pointer}.userpanel-filter-options input{accent-color:#173b73}.userpanel-filter-range{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px 0}.userpanel-filter-range label{font-size:8px;font-weight:800;color:#68778a}.userpanel-filter-range input,.userpanel-filter-search input{width:100%;box-sizing:border-box;border:1px solid #dce3eb;border-radius:8px;height:30px;padding:0 8px;font-size:9px;margin-top:4px}.userpanel-filter-search{padding-bottom:10px}.userpanel-bars{min-height:245px;max-height:290px;overflow:auto;padding:4px 2px}.userpanel-bar-row{display:grid;grid-template-columns:105px 1fr 45px;gap:7px;align-items:center;margin:9px 0}.userpanel-bar-label{font-size:8px;font-weight:800;color:#425269;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.userpanel-bar-track{height:8px;background:#e8edf3;border-radius:99px;overflow:hidden}.userpanel-bar-track span{display:block;height:100%;background:#6f9bdb;border-radius:99px}.userpanel-bar-row b{font-size:8px;text-align:right;color:#435269}.userpanel-filter-shell{height:auto}.userpanel-filter-shell .dashboard-filter-sidebar{display:block!important}.userpanel-filter-shell.open .dashboard-filter-sidebar{display:block!important}@media(max-width:900px){.userpanel-bar-row{grid-template-columns:85px 1fr 42px}.userpanel-bars{min-height:210px}}

/* v39 — filtros compactos y panel por usuario rediseñado */
.filter-toolbar-modern{
  display:flex!important;align-items:flex-end;gap:9px!important;padding:11px 12px!important;
  overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap!important;scrollbar-width:thin;
}
.filter-toolbar-modern .filter-toolbar-title{display:flex;align-items:center;gap:7px;min-width:112px;height:38px;padding:0 9px;border:1px solid #e3e9f1;border-radius:10px;background:#f8fafc;color:#32445b;flex:0 0 auto}
.filter-toolbar-modern .filter-toolbar-title i{color:#356fe6;font-size:11px}.filter-toolbar-modern .filter-toolbar-title strong{font-size:10px;text-transform:uppercase;letter-spacing:.06em}.filter-toolbar-modern .filter-toolbar-title span{font-size:9px;color:#8a96a6;margin-left:auto}
.filter-toolbar-modern .field-inline{flex:0 0 auto;min-width:125px}.filter-toolbar-modern .field-inline label{font-size:8px;text-transform:uppercase;letter-spacing:.04em;color:#7c899a;margin-left:2px}.filter-toolbar-modern .field-inline select{height:38px;min-width:125px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;padding:0 28px 0 10px;font-size:10px;font-weight:700;color:#33445b;outline:none;box-shadow:0 1px 2px rgba(16,24,40,.02)}
.filter-toolbar-modern .field-inline select:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.filter-toolbar-modern .filter-clear-modern{height:38px;flex:0 0 auto;white-space:nowrap;margin-left:auto}
@media(max-width:900px){.filter-toolbar-modern{flex-wrap:wrap!important;overflow-x:visible}.filter-toolbar-modern .filter-toolbar-title{width:100%}.filter-toolbar-modern .field-inline{flex:1 1 145px}.filter-toolbar-modern .filter-clear-modern{margin-left:0}}

/* Panel por usuario: composición visual tipo dashboard ejecutivo */
.userpanel-layout .dashboard-main-column{min-width:0}
.userpanel-filter-shell{border-radius:16px!important;overflow:hidden;border:1px solid #e0e7f0!important;box-shadow:0 8px 25px rgba(27,52,84,.07)!important;background:#fff}
.userpanel-filter-shell .dashboard-filter-rail-head{background:linear-gradient(180deg,#f9fbff,#f4f7fb);border-bottom:1px solid #e8edf4!important}
.userpanel-filter-list{display:flex!important;flex-direction:column;gap:10px;padding:12px!important;max-height:calc(100vh - 255px);overflow:auto}
.userpanel-filter-control{padding:9px;border:1px solid #e8edf3;border-radius:11px;background:#fbfcfe}.userpanel-filter-control label{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.045em;color:#65758a}.userpanel-filter-control label i{font-size:9px;color:#356fe6;width:12px;text-align:center}
.userpanel-select-wrap{position:relative}.userpanel-select-wrap select{appearance:none;width:100%;height:34px;border:1px solid #dce4ed;border-radius:9px;background:#fff;color:#34465d;font-size:9px;font-weight:700;padding:0 27px 0 9px;outline:none}.userpanel-select-wrap select:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.userpanel-select-wrap>i{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:8px;color:#8996a7;pointer-events:none}
.userpanel-kpi-grid{margin-bottom:14px}.userpanel-kpi-grid .dashboard-kpi{min-height:78px}
.userpanel-insight-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,.85fr);gap:14px;margin-bottom:14px}.userpanel-hero-card,.userpanel-status-card{margin-bottom:0;min-height:205px}.userpanel-hero-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.userpanel-eyebrow{font-size:8px;font-weight:900;letter-spacing:.12em;color:#4777bd}.userpanel-hero-card h3{margin:5px 0 4px;font-size:16px;color:#24364c}.userpanel-hero-card p{margin:0;color:#8996a6;font-size:9px;max-width:520px;line-height:1.5}.userpanel-hero-ring{--ring-pct:0deg;width:118px;height:118px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:conic-gradient(#3977e8 var(--ring-pct),#e9eef5 var(--ring-pct));position:relative;box-shadow:inset 0 0 0 1px #e3e9f2}.userpanel-hero-ring:after{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}.userpanel-hero-ring>div{position:relative;z-index:1;text-align:center}.userpanel-hero-ring strong{display:block;font-size:20px;color:#1d3452}.userpanel-hero-ring span{display:block;font-size:8px;color:#8b98a8;text-transform:uppercase;font-weight:800;margin-top:2px}.userpanel-mini-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:20px}.userpanel-mini-stats>div{border:1px solid #e8edf3;background:#f9fbfd;border-radius:10px;padding:9px}.userpanel-mini-stats span{display:block;font-size:7px;color:#8a96a6;font-weight:900;letter-spacing:.05em}.userpanel-mini-stats strong{display:block;margin-top:3px;font-size:15px;color:#253a55}.userpanel-status-visual{display:flex;align-items:center;justify-content:center;gap:24px;height:145px}.status-donut{width:128px;height:128px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#2ca77b var(--done),#e7edf4 var(--done));position:relative}.status-donut:after{content:"";position:absolute;inset:14px;border-radius:50%;background:#fff}.status-donut>div{position:relative;z-index:1;text-align:center}.status-donut strong{display:block;font-size:18px;color:#203650}.status-donut span{font-size:7px;text-transform:uppercase;font-weight:900;color:#8794a5}.status-legend{display:flex;flex-direction:column;gap:9px}.status-legend span{display:flex;align-items:center;gap:7px;font-size:8px;color:#617187}.status-legend b{margin-left:auto;color:#263c56}.dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot.done{background:#2ca77b}.dot.pending{background:#dfe5ed}.dot.diff{background:#df8a35}
.userpanel-chart-grid{margin-bottom:14px}.userpanel-bars.polished{min-height:245px;max-height:285px;padding:8px 4px}.polished-row{grid-template-columns:110px 1fr 46px!important;margin:11px 0!important}.polished-row .userpanel-bar-track{height:9px;background:#edf1f6;box-shadow:inset 0 0 0 1px #e5eaf0}.polished-row .userpanel-bar-track span{background:linear-gradient(90deg,#4a83ea,#79a7ef)}.polished-row b{font-size:9px;color:#40536c}
@media(max-width:1050px){.userpanel-insight-grid{grid-template-columns:1fr}.userpanel-mini-stats{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.userpanel-mini-stats{grid-template-columns:repeat(2,1fr)}.userpanel-hero-top{align-items:flex-start}.userpanel-hero-ring{width:92px;height:92px}.userpanel-status-visual{gap:12px}.status-donut{width:105px;height:105px}}


/* v40 — Panel de control por grupos y parejas: interacción visual y tablas organizadas */
.userpanel-bar-click{
  width:100%;box-sizing:border-box;appearance:none;border:0;background:transparent;text-align:left;font:inherit;color:inherit;
  padding:3px 5px;border-radius:8px;cursor:pointer;transition:background .15s ease, transform .15s ease;
}
.userpanel-bar-click:hover{background:#f2f6fc;transform:translateX(1px)}
.userpanel-bar-click:focus-visible{outline:2px solid #6f9bdb;outline-offset:2px}
.userpanel-bar-click .userpanel-bar-track{display:block;width:100%}
.userpanel-bar-click .userpanel-bar-label{display:block}
.userpanel-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px;align-items:start}
.userpanel-detail-grid>.panel{min-width:0;margin-bottom:0}
.userpanel-detail-grid .table-wrap{max-width:100%;overflow:auto}
.userpanel-detail-grid .data-table{min-width:700px}
.userpanel-detail-grid .dashboard-chart-head{padding-bottom:9px}
.userpanel-detail-grid .dashboard-chart-head h3{font-size:11px}
#userPanelGroupTable td:nth-child(6),#userPanelPairTable td:nth-child(7){font-weight:800;color:#1c5ac8}
@media(max-width:1200px){.userpanel-detail-grid{grid-template-columns:1fr}}


/* Conteos enteros: inputs de texto numéricos sin controles de incremento/decremento */
.physical-input,.contraloria-input,.contraloria-input2{font-variant-numeric:tabular-nums;touch-action:pan-y;}
.physical-input:focus,.contraloria-input:focus,.contraloria-input2:focus{outline:2px solid rgba(37,99,235,.35);outline-offset:0;}


/* Progreso de plantillas por pareja: conteo registrado / SKU asignados */
.general-access-banner:has(.count-progress-grid){display:block;padding:14px 16px}
.count-progress-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#24364d;font-size:12px}
.count-progress-head>i{color:#2563eb;font-size:15px}
.count-progress-head strong{font-size:12px;font-weight:900}
.count-progress-head>span{margin-left:auto;color:#718096;font-size:10px}
.count-progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.count-progress-card{min-width:0;border:1px solid #e1e8f1;background:linear-gradient(135deg,#fff,#f8fbff);border-radius:12px;padding:12px 13px;box-shadow:0 3px 10px rgba(24,48,78,.035)}
.count-progress-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.count-progress-card-top>div{display:grid;gap:3px;min-width:0}
.count-progress-card-top strong{font-size:11px;line-height:1.35;color:#172b46;overflow-wrap:anywhere}
.count-progress-card-top small{font-size:9px;color:#7a8799;line-height:1.3}
.count-progress-card-top>b{font-size:13px;white-space:nowrap;color:#1d4ed8;font-variant-numeric:tabular-nums}
.count-progress-track{height:7px;border-radius:999px;background:#e8edf4;overflow:hidden;margin:11px 0 9px}
.count-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .25s ease}
.count-progress-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#7b8797}
.count-progress-card-bottom strong{font-size:10px;color:#334b68;font-variant-numeric:tabular-nums}
.count-progress-empty{padding:13px;border:1px dashed #d8e1eb;border-radius:10px;color:#8190a2;font-size:11px;background:#f9fbfd}
@media(max-width:650px){.count-progress-head{align-items:flex-start;flex-wrap:wrap}.count-progress-head>span{width:100%;margin-left:23px}.count-progress-grid{grid-template-columns:1fr}}

/* Capture rápida: mantener la fila estable mientras el guardado se procesa en segundo plano. */
.count-entry-table tr.count-saving td{transition:background-color .12s ease}
.count-entry-table tr.count-saving td{background:#f8fbff}


/* v49 — filtros persistentes y scroll interno de tablas principales */
.data-module-filter-sticky{position:sticky!important;top:78px;z-index:26;box-shadow:0 8px 18px rgba(22,42,70,.07);}
.data-module-table-scroll{max-height:calc(100vh - 265px);overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative;border-radius:0 0 12px 12px;}
.data-module-table-scroll table{margin:0;}
.data-module-table-scroll .data-table thead th{position:sticky;top:0;z-index:5;box-shadow:0 1px 0 #e8edf3;}
.count-position-filter-field input{height:38px;min-width:185px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;padding:0 10px;font-size:10px;font-weight:700;color:#33445b;outline:none;box-shadow:0 1px 2px rgba(16,24,40,.02);}
.count-position-filter-field input:focus{border-color:#7aa2ff;box-shadow:0 0 0 3px rgba(37,99,235,.08);}
@media(max-width:900px){.data-module-filter-sticky{top:78px}.data-module-table-scroll{max-height:calc(100vh - 295px)}}

/* Pair-specific type badges: each pair has its own status. */
.pair-type-cell{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:150px}.type.pendiente{background:#fff7ed;color:#9a3412}.type.mixto{background:#f3e8ff;color:#6b21a8}


/* Inventario General · administración dinámica y avance operativo */
.admin-group-manager{overflow:hidden}
.admin-group-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 4px 5px;max-height:354px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.admin-group-card{appearance:none;text-align:left;display:flex;flex-direction:column;gap:9px;min-width:0;min-height:184px;padding:14px;border:1px solid #dce5f0;border-radius:15px;background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);color:#22364f;cursor:pointer;box-shadow:0 4px 14px rgba(20,45,78,.045);transition:border-color .18s,box-shadow .18s,transform .18s}
.admin-group-card:hover{border-color:#83a8df;box-shadow:0 9px 22px rgba(18,58,120,.11);transform:translateY(-1px)}
.admin-group-card:focus-visible{outline:3px solid rgba(51,111,190,.22);outline-offset:2px}
.admin-group-card-top{display:flex;justify-content:space-between;align-items:center}
.admin-group-code,.admin-code-pill{display:inline-flex;align-items:center;border-radius:7px;background:#edf3fb;color:#214b82;font-size:9px;font-weight:900;letter-spacing:.045em;padding:5px 8px}
.admin-group-check{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;color:#fff;background:#173f79;font-size:10px;box-shadow:0 2px 5px rgba(23,63,121,.18)}
.admin-group-card-title{font-size:13px;color:#1d2f48;line-height:1.3;overflow-wrap:anywhere}
.admin-group-card-meta{display:flex;gap:12px;flex-wrap:wrap;color:#75849a;font-size:9px;font-weight:700}
.admin-group-card-meta i{color:#3b74b8;margin-right:4px}
.admin-group-warehouses{display:flex;flex-wrap:wrap;gap:5px;max-height:53px;overflow:hidden}
.admin-warehouse-chip{display:inline-flex;gap:5px;align-items:center;max-width:100%;padding:4px 7px;border-radius:7px;background:#f0f4f9;color:#5d6e84;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-warehouse-chip b{color:#244e82;font-size:8px}
.admin-group-progress{margin-top:auto;display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;color:#75849a;font-size:9px}
.admin-group-progress>span i{color:#3975b9;margin-right:4px}
.admin-group-progress>b{color:#1e4e89;font-size:10px}
.admin-group-progress-track{grid-column:1/-1;display:block;height:6px;border-radius:20px;background:#e7edf5;overflow:hidden}
.admin-group-progress-track>i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,var(--blue),var(--blue2))}
.admin-groups-empty{grid-column:1/-1;padding:28px}
.warehouse-rows-editor{display:grid;gap:9px;margin:10px 0 14px}
.warehouse-editor-row{display:grid;grid-template-columns:30px minmax(110px,.55fr) minmax(180px,1fr) 34px;gap:10px;align-items:end;padding:12px;border:1px solid #e3eaf3;border-radius:12px;background:#f9fbfe}
.warehouse-editor-index{align-self:center;width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:#2e639f;background:#eaf1fa}
.warehouse-editor-row .field{margin:0;min-width:0}
.warehouse-editor-row .field label{font-size:9px;color:#62758c;font-weight:800}
.warehouse-editor-row input{height:38px;border:1px solid #dce4ee;border-radius:9px;padding:0 10px;background:#fff;color:#263b55;width:100%;box-sizing:border-box}
.warehouse-row-remove{width:34px;height:36px;color:#9b4d4d;border-color:#eadada;background:#fff}
.warehouse-list-head{display:flex;align-items:center;justify-content:space-between;margin-top:18px}
.group-dates-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;padding:15px;border:1px solid #e1e8f1;border-radius:13px;background:linear-gradient(135deg,#fbfdff,#f3f7fc);margin-bottom:14px}
.group-dates-form .field{margin:0}
.group-dates-form input{height:40px;border:1px solid #d6e0ec;border-radius:9px;padding:0 10px;background:#fff;color:#2e4159}
.warehouse-control-list{display:grid;gap:9px;max-height:46vh;overflow:auto;padding:2px 3px 8px}
.warehouse-control-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid #e1e8f1;border-radius:13px;background:#fff}
.warehouse-control-main{display:flex;align-items:center;gap:11px;min-width:0}
.warehouse-control-code{flex:0 0 auto;min-width:52px;text-align:center;padding:8px 7px;border-radius:9px;background:#edf3fa;color:#1e4e85;font-size:11px;font-weight:900}
.warehouse-control-main>div{display:grid;gap:4px;min-width:0}
.warehouse-control-main strong{font-size:11px;color:#2b405b;overflow-wrap:anywhere}
.warehouse-control-main small{font-size:9px;color:#8390a1}
.warehouse-control-status{font-size:8px;font-weight:800}
.warehouse-control-status.is-frozen{color:#28734f}.warehouse-control-status.is-open{color:#9a7025}
.warehouse-control-actions{display:flex;gap:6px;align-items:center;flex:0 0 auto;flex-wrap:wrap}
.warehouse-control-actions .icon-btn{width:32px;height:32px;color:#9c5555}
.operational-assignment-panel{overflow:hidden}
.userpanel-assignment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:5px 2px 8px;max-height:650px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.operational-assignment-card{min-width:0;padding:14px;border:1px solid #e0e7f0;border-radius:14px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 3px 12px rgba(20,45,78,.04)}
.operational-assignment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.operational-assignment-head>div{display:grid;gap:4px;min-width:0}
.operational-code{font-size:8px;font-weight:900;letter-spacing:.08em;color:#3973b5}
.operational-assignment-head h4{margin:0;font-size:12px;color:#203650;overflow-wrap:anywhere}
.operational-total{font-size:9px;font-weight:900;color:#204c82;background:#edf3fa;border-radius:7px;padding:5px 8px;white-space:nowrap}
.operational-location{display:grid;gap:4px;padding:9px 0 11px;border-bottom:1px solid #e9eef4;color:#6d7d91;font-size:9px}
.operational-location>span i{color:#3976b9;margin-right:4px}
.operational-location strong{font-size:10px;color:#344b67}
.operational-pair-progress{padding:10px 0 3px}
.operational-pair-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px 7px;align-items:center}
.pair-code{grid-column:1;grid-row:1/3;align-self:center;padding:5px 6px;border-radius:7px;background:#eaf1fa;color:#1e4d84;font-size:8px;font-weight:900}
.pair-code-b{background:#e9f3fb;color:#3d6f9f}
.operational-pair-title strong{font-size:9px;color:#344a64;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operational-pair-title small{grid-column:2;font-size:8px;color:#8996a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operational-pair-title>b{grid-column:3;grid-row:1/3;font-size:11px;color:#1b4b86;font-variant-numeric:tabular-nums}
.operational-track{height:7px;border-radius:30px;background:#e8eef5;overflow:hidden;margin:8px 0 4px}
.operational-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--blue2));transition:width .25s ease}
.operational-pair-progress>small{font-size:8px;color:#8190a2}
.operational-assignment-foot{display:flex;justify-content:space-between;gap:8px;padding-top:9px;margin-top:6px;border-top:1px solid #edf1f5;font-size:8px;color:#8290a2}
.operational-assignment-foot i{color:#477bb6;margin-right:4px}.operational-assignment-foot strong{color:#1e4c82}
.operational-empty{grid-column:1/-1;padding:26px;text-align:center}
.count-pair-slot{display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px;padding:3px 6px;border-radius:5px;background:#eaf1fa;color:#1b4d86;font-size:7px;font-weight:900;letter-spacing:.05em;white-space:nowrap}
.count-pair-slot.slot-2{background:#e8f1f8;color:#426e98}
.count-input-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.count-input-wrap .physical-input{width:100%;min-width:80px;box-sizing:border-box}
.pair-quantity-cell{min-width:75px;text-align:center}
.pair-quantity-label{display:block;font-size:7px;font-weight:900;letter-spacing:.06em;color:#65809e;margin-bottom:3px}
.pair-quantity-cell strong{display:inline-block;padding:5px 9px;border-radius:7px;background:#f0f4fa;color:#263f5f;font-size:10px;font-variant-numeric:tabular-nums}
@media(max-width:1050px){.admin-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.userpanel-assignment-grid{grid-template-columns:1fr}}
@media(max-width:700px){.admin-group-grid{grid-template-columns:1fr;max-height:420px}.warehouse-editor-row{grid-template-columns:28px 1fr 34px}.warehouse-editor-row .field:nth-child(3){grid-column:2}.warehouse-editor-row .warehouse-row-remove{grid-column:3;grid-row:1}.group-dates-form{grid-template-columns:1fr}.warehouse-control-card{align-items:flex-start;flex-direction:column}.warehouse-control-actions{width:100%;justify-content:flex-end}}

/* Professional assignment and warehouse identifiers */
.admin-warehouse-chip{display:grid;grid-template-columns:1fr;gap:2px;white-space:normal;max-width:100%;}
.admin-warehouse-chip>b{font-size:7px;color:#55779f;letter-spacing:.035em;}
.admin-warehouse-chip>span{font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.assignment-code-list{display:flex;gap:4px;flex-wrap:wrap;max-width:230px;}
.assignment-code-list .admin-code-pill{font-size:7px;}
.operational-warehouse-code{display:block;margin-bottom:3px;color:#5e82ad;font-size:7px;letter-spacing:.045em;}
.admin-group-grid{height:354px;max-height:354px;overflow:auto;}
@media(max-width:700px){.admin-group-grid{height:420px;max-height:420px;}}

.operational-site-code{display:inline-flex;margin-left:5px;padding:2px 5px;border-radius:5px;background:#eef3fa;color:#5b78a0;font-size:7px;font-weight:900;letter-spacing:.03em;}
.admin-group-card{background:rgba(255,255,255,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.warehouse-control-card{background:rgba(255,255,255,.84);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}
.modal.show{background:rgba(18,36,60,.28);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);}
.modal-card{background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}

/* V53: feedback de numeración automática y contexto de almacén en administración */
.auto-code-preview{display:flex;align-items:center;gap:8px;margin-top:9px;padding:10px 12px;border:1px solid rgba(29,78,137,.16);border-radius:10px;background:rgba(29,78,137,.055);color:#234a7f;font-size:12px;font-weight:700;letter-spacing:.01em}
.admin-context-code{display:block;margin-top:4px;color:var(--muted,#74839a);font-size:11px;font-weight:600}
\n/* ===== Identidad visual oficial PESCO + VLTEC (V54) ===== */
.brand.brand-logos{height:76px;min-height:76px;display:flex;align-items:center;justify-content:center;padding:4px 8px 18px;margin:0 0 8px;overflow:hidden}
.brand-pesco-full{display:block;width:100%;max-width:208px;height:62px;object-fit:contain;object-position:center}
.brand-pesco-compact{display:none;width:42px;height:42px;object-fit:contain}
.sidebar-collapsed .brand.brand-logos{padding:0 0 12px;height:58px;min-height:58px}
.sidebar-collapsed .brand-pesco-full{display:none}
.sidebar-collapsed .brand-pesco-compact{display:block}
.sidebar-vltec-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:12px 2px 0;padding:12px 4px 2px;border-top:1px solid rgba(226,236,249,.30);min-height:75px}
.sidebar-vltec-brand span,.login-powered span{font-size:8px;letter-spacing:.12em;font-weight:800;color:rgba(226,236,249,.72)}
.sidebar-vltec-full{display:block;width:min(100%,154px);height:43px;object-fit:contain;object-position:center}
.sidebar-vltec-compact{display:none;width:39px;height:39px;object-fit:contain}
.sidebar-collapsed .sidebar-vltec-brand{margin:8px 0 0;padding:9px 0 0;min-height:53px}
.sidebar-collapsed .sidebar-vltec-brand span,.sidebar-collapsed .sidebar-vltec-full{display:none}
.sidebar-collapsed .sidebar-vltec-compact{display:block}
.pesco-dashboard-banner img{width:118px;height:46px;object-fit:contain}
.login-brand-panel{width:100%;min-height:104px;padding:17px 22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(115deg,#0f1f35,#173b73);border-radius:14px;margin:0 auto 18px}
.login-pesco-logo{display:block;width:min(100%,245px);height:70px;object-fit:contain}
.login-powered{margin-top:18px;padding-top:13px;border-top:1px solid #edf1f5;display:flex;flex-direction:column;align-items:center;gap:4px}
.login-powered span{color:#8491a3}
.login-powered img{width:128px;height:43px;object-fit:contain}
@media(max-width:640px){.brand.brand-logos{height:68px;min-height:68px}.brand-pesco-full{height:54px}.sidebar-vltec-full{height:38px}}

/* ==========================================================
   V55 — PESCO Logistics UI, navegación y filtros desplegables
   Alineado a las capturas de referencia del usuario.
   ========================================================== */
:root{
  --navy:#0d1d32;--navy2:#172b45;--blue:#2359e8;--blue2:#3776ed;
  --bg:#eff3f8;--card:#fff;--text:#172437;--muted:#8793a4;
  --border:#e4eaf2;--sidebar:205px;--sidebar-collapsed:66px;
  --shadow:0 5px 18px rgba(19,43,73,.055);
}
html,body{background:#eff3f8;color:#172437;font-family:Inter,Arial,sans-serif}
.app-shell{min-height:100vh;background:#eff3f8}
.sidebar{
  width:205px;padding:13px 10px 10px;background:#0d1d32;
  background-image:linear-gradient(180deg,#0d1d32 0%,#0c1b2e 100%);
  border-right:1px solid rgba(255,255,255,.08);box-shadow:none;
}
.sidebar-collapsed .sidebar{width:66px}
.brand.brand-logos{height:65px;min-height:65px;margin:0 0 9px;padding:3px 4px 10px;justify-content:flex-start}
.brand-pesco-full{width:100%;max-width:152px;height:54px;object-position:left center}
.brand-pesco-compact{width:40px;height:40px}
.sidebar-toggle{
  position:absolute;right:-21px;top:25px;width:42px;height:42px;border-radius:13px;
  border:1px solid #d7e0eb;background:#132842;color:#dbe5f2;display:grid;place-items:center;
  box-shadow:0 4px 10px rgba(14,34,58,.18);z-index:70;font-size:16px;
}
.sidebar-toggle:hover{background:#1d395d;color:#fff}
.sidebar-toggle i{transform:none!important}
.nav-menu{display:flex;flex-direction:column;gap:13px;margin:2px 0 12px;padding:0;overflow:auto;scrollbar-width:thin}
.nav-section{display:flex;flex-direction:column;gap:3px}
.nav-section-label{padding:0 9px 5px;color:#9aa9bd;font-size:8px;line-height:1.2;font-weight:900;letter-spacing:.075em;text-transform:uppercase}
.nav-item{
  position:relative;height:35px;min-height:35px;padding:0 11px;gap:10px;border-radius:7px;
  color:#b7c3d2;background:transparent;box-shadow:none;text-align:left;
}
.nav-item i{width:15px;min-width:15px;font-size:11px;color:#95a7bd}
.nav-item span{font-size:10px;font-weight:600;letter-spacing:0;line-height:1.15}
.nav-item:hover{background:rgba(255,255,255,.065);color:#fff}
.nav-item:hover i{color:#d6e5fa}
.nav-item.active{background:#1e3553;color:#fff;box-shadow:inset 4px 0 0 #2563eb}
.nav-item.active i{color:#9fc1ff}
.sidebar-bottom{margin-top:auto;gap:3px;border-top:0;padding-top:7px}
.sidebar-bottom .nav-item{height:31px;min-height:31px}
.sidebar-vltec-brand{margin:9px 2px 0;padding:10px 3px 1px;min-height:66px;gap:3px;border-top:1px solid rgba(220,232,247,.55)}
.sidebar-vltec-brand span{font-size:8px;letter-spacing:.01em;text-transform:none;color:#aab8ca;font-weight:700}
.sidebar-vltec-full{width:min(100%,128px);height:39px}
.sidebar-vltec-compact{width:38px;height:38px}
.sidebar-collapsed .brand.brand-logos{justify-content:center;padding:0 0 9px;height:55px;min-height:55px}
.sidebar-collapsed .nav-section-label{display:none}
.sidebar-collapsed .nav-menu{gap:8px}
.sidebar-collapsed .nav-item{justify-content:center;padding:0;height:38px;min-height:38px}
.sidebar-collapsed .nav-item span{display:none}
.sidebar-collapsed .sidebar-vltec-brand{border-top:1px solid rgba(220,232,247,.35)}
.main-content{margin-left:205px;min-height:100vh;transition:margin-left .22s ease;background:#eff3f8}
.sidebar-collapsed .main-content{margin-left:66px}
.topbar{
  height:80px;min-height:80px;padding:0 27px 0 30px;background:#fff;border-bottom:1px solid #e8edf3;
  box-shadow:0 2px 10px rgba(23,43,70,.035);z-index:35;
}
.topbar-left{gap:12px}
.mobile-menu{display:none}
.topbar-heading{min-width:220px}
.eyebrow{font-size:9px;letter-spacing:.09em;color:#b0bdcf;font-weight:900}
.topbar h1{margin:3px 0 0;color:#10233c;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.025em}
.topbar-actions{display:flex;align-items:center;gap:17px}
.topbar-icon-button{width:34px;height:34px;border:0;background:transparent;color:#2563eb;border-radius:50%;font-size:18px;display:grid;place-items:center}
.topbar-icon-button:hover{background:#eef4ff}
.locale-chip{display:flex;align-items:center;gap:7px;color:#13243b;min-width:64px}
.locale-flag{font-size:17px;line-height:1}
.locale-chip>span:nth-child(2){display:flex;flex-direction:column;line-height:1.05}
.locale-chip strong{font-size:11px;font-weight:900}
.locale-chip small{font-size:8px;color:#9aa8bb;margin-top:3px;font-weight:700}
.locale-chip>i{font-size:9px;color:#52637a;margin-left:-3px}
.topbar-notification{width:28px;height:32px;display:grid;place-items:center;color:#2563eb;font-size:16px}
.user-chip{gap:8px;min-width:0}
.user-chip .avatar{width:42px;height:42px;border-radius:14px;background:#edf3ff;color:#2563eb;font-size:17px;font-weight:900}
.user-chip-text strong{font-size:12px;color:#172437;white-space:nowrap}
.user-chip-text small{font-size:9px;color:#9eabc0;margin-top:4px}
.user-chevron{font-size:9px;color:#64748b;margin-left:1px}
.topbar-upload{height:35px;padding:0 12px;border-radius:9px}
.view{padding:18px 28px 36px;min-width:0;background:#eff3f8}
.page-toolbar{margin-bottom:17px;align-items:center}
.page-toolbar h2{font-size:18px;line-height:1.2;color:#17263a;font-weight:800;letter-spacing:-.025em}
.page-toolbar p{margin-top:3px;font-size:9px;color:#9aa5b2}
.btn{height:35px;border-radius:9px;font-size:10px;font-weight:800}
.btn-primary{background:#11253e;box-shadow:none;color:#fff}
.btn-primary:hover{background:#1b3a62}
.btn-outline{background:#fff;border-color:#e1e7ef;color:#2b3b50;box-shadow:none}
.icon-btn{border-radius:9px}
.panel{border:1px solid #e7edf4;border-radius:15px;background:#fff;box-shadow:0 4px 15px rgba(24,47,75,.045);padding:15px;margin-bottom:14px}
.panel-head{margin-bottom:12px}
.panel-head h3{font-size:12px;color:#20324a}
.panel-subtitle{font-size:9px;color:#94a0af}
.data-table th{background:#f7f9fc;color:#74849a;font-size:8px}
.data-table td{font-size:9px;color:#304258}
.data-table th,.data-table td{padding:9px 10px;border-bottom-color:#edf1f5}
.data-module-table-scroll{max-height:calc(100vh - 270px);overflow:auto;border-radius:12px}
.data-module-filter-sticky{top:80px!important}
.general-filterbar,.count-toolbar{
  border:1px solid #e7edf4;border-radius:13px;background:#fff;box-shadow:0 4px 15px rgba(24,47,75,.045);
  padding:10px 12px!important;gap:12px!important;
}
.filter-toolbar-modern .filter-toolbar-title{height:36px;min-width:112px;border:0;background:transparent;padding:0 4px;color:#26384e}
.filter-toolbar-modern .filter-toolbar-title i{color:#536c8a}
.filter-toolbar-modern .filter-toolbar-title strong{font-size:10px;text-transform:none;letter-spacing:0}
.filter-toolbar-modern .filter-toolbar-title span{display:none}
.filter-toolbar-modern .field-inline{min-width:115px;flex:1 1 120px}
.filter-toolbar-modern .field-inline label{font-size:8px;color:#25364c;font-weight:900;letter-spacing:.025em}
.filter-toolbar-modern .field-inline select,.filter-toolbar-modern .field-inline input{
  height:32px;min-width:0;width:100%;border:1px solid #d6dfeb;border-radius:8px;padding:0 9px;background:#fff;
  font-size:9px;color:#2c3d53;font-weight:700;box-shadow:none;
}
.filter-toolbar-modern .filter-clear-modern{height:32px;margin-left:auto}
.page-toolbar+.general-filterbar{margin-top:-2px}
.pesco-dashboard-banner{
  min-height:53px;margin:14px 0 16px;padding:6px 13px;gap:12px;border-radius:11px;
  background:linear-gradient(100deg,#2d5595 0%,#315b9f 55%,#31599a 100%);box-shadow:none;
}
.pesco-dashboard-banner img{width:88px;height:38px;object-fit:contain}
.pesco-banner-divider{height:33px;width:2px;background:rgba(255,255,255,.7)}
.pesco-dashboard-banner strong{font-size:15px;letter-spacing:.085em;font-weight:500}
.pesco-dashboard-banner strong b{font-weight:900}
.dashboard-page-toolbar{margin-bottom:11px}
.dashboard-page-toolbar h2{font-size:18px}
.dashboard-page-toolbar p{font-size:9px}
/* KPI filter panel — same design as the supplied dropdown-filter reference. */
#userPanelContentLayout.dashboard-content-layout{grid-template-columns:182px minmax(0,1fr)!important;gap:13px!important;align-items:start}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
#userPanelFilters .dashboard-filter-sidebar-static{max-width:none!important;width:100%;border:1px solid #e5ebf2!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 15px rgba(24,47,75,.045)!important;overflow:visible!important}
#userPanelFilters .dashboard-filter-sidebar-static-head{height:42px;padding:0 12px;border:0;border-bottom:1px solid #edf1f5;background:#fff;border-radius:14px 14px 0 0;display:flex;align-items:center;justify-content:space-between}
#userPanelFilters .dashboard-filter-title{gap:7px}
#userPanelFilters .dashboard-filter-title i{color:#65778f;font-size:11px}
#userPanelFilters .dashboard-filter-title strong{font-size:11px;color:#20334a;letter-spacing:0;text-transform:none}
#userPanelFilters .dashboard-filter-count{color:#8191a6;font-size:8px}
#userPanelFilters .dashboard-filter-static-toggle{width:25px;height:25px;border:0;background:#f2f5f9;border-radius:7px;color:#52647a}
#userPanelFilters .dashboard-filter-sidebar-static-body{padding:0 10px 10px;max-height:none;overflow:visible}
#userPanelFilters .dashboard-filter-sidebar-head{padding:12px 3px 8px;background:#fff;border-bottom:1px solid #edf1f5}
#userPanelFilters .dashboard-filter-sidebar-head strong{font-size:10px!important;color:#20334a!important;font-weight:800!important}
#userPanelFilters .dashboard-filter-sidebar-head span{font-size:8px!important;color:#98a4b3!important;line-height:1.4}
#userPanelFilters .dashboard-mode-in-filter{display:flex;margin:11px 0 12px;padding:3px;gap:3px;background:#f2f5f9;border:1px solid #e3e9f0;border-radius:10px}
#userPanelFilters .dashboard-mode-btn{height:29px;flex:1;justify-content:center;padding:0 6px;border-radius:8px;background:transparent;color:#9aa8ba;font-size:9px}
#userPanelFilters .dashboard-mode-btn.active{background:#fff;color:#173d73;box-shadow:0 2px 7px rgba(22,43,70,.1)}
#userPanelFilters .dashboard-mode-btn i{font-size:9px}
#userPanelFilters .dashboard-filter-primary{display:flex;flex-direction:column;gap:8px;padding:0!important;margin:0!important}
#userPanelFilters .dashboard-slicer{position:relative;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
#userPanelFilters .dashboard-slicer-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 4px!important}
#userPanelFilters .dashboard-slicer-head>div{display:flex;align-items:center;gap:6px}
#userPanelFilters .dashboard-slicer-head i{font-size:8px;color:#8494a8}
#userPanelFilters .dashboard-slicer-head strong{font-size:8px!important;color:#596a80!important;font-weight:800}
#userPanelFilters .dashboard-slicer-head>span{font-size:7px;color:#a0adbd}
#userPanelFilters .dashboard-slicer-trigger{width:100%;height:31px;padding:0 9px;border:1px solid #dce4ee;border-radius:8px;background:#fff;color:#34465e;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-size:9px;font-weight:700}
#userPanelFilters .dashboard-slicer-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#userPanelFilters .dashboard-slicer-trigger i{font-size:8px;color:#71839a}
#userPanelFilters .dashboard-slicer.is-open .dashboard-slicer-trigger{border-color:#8eacd4;box-shadow:0 0 0 3px rgba(35,89,232,.07)}
#userPanelFilters .dashboard-slicer-menu{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:90;max-height:220px;overflow:auto;padding:6px;border:1px solid #e1e7ef;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(19,43,73,.17)}
#userPanelFilters .dashboard-slicer-menu[hidden]{display:none!important}
#userPanelFilters .dashboard-slicer-option{width:100%!important;min-height:29px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;padding:6px 7px!important;border:0!important;border-radius:7px!important;background:#fff!important;color:#41536b!important;text-align:left!important;font-size:8px!important;font-weight:600!important;box-shadow:none!important}
#userPanelFilters .dashboard-slicer-option:before{display:none!important}
#userPanelFilters .dashboard-slicer-option i{font-size:11px;color:#98a7b9}
#userPanelFilters .dashboard-slicer-option.active{background:#edf3ff!important;color:#173d73!important;box-shadow:inset 2px 0 0 #2862d8!important}
#userPanelFilters .dashboard-slicer-option.active i{color:#2359e8}
#userPanelFilters .dashboard-slicer-clear{height:26px;padding:0 7px;border:0;border-bottom:1px solid #edf1f5;background:transparent;color:#41628e;font-size:8px;font-weight:800}
#userPanelFilters .dashboard-advanced-toggle{width:100%;height:34px;margin:12px 0 8px;padding:0 9px;border:1px solid #e3eaf2;border-radius:8px;background:#f5f7fa;color:#30445e;display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:800}
#userPanelFilters .dashboard-advanced-toggle span{display:flex;align-items:center;gap:7px}
#userPanelFilters .dashboard-advanced-toggle>i{font-size:8px;color:#7d8da2}
#userPanelFilters .dashboard-advanced-toggle.active{background:#eef4ff;border-color:#cbdaf0;color:#1d4c87}
#userPanelFilters .dashboard-filter-advanced{display:grid;gap:8px;padding-bottom:3px}
#userPanelFilters .dashboard-filter-advanced[hidden]{display:none!important}
#userPanelFilters .dashboard-filter-sidebar-foot{margin-top:9px!important;padding:9px 0 0!important;border-top:1px solid #edf1f5;background:#fff!important}
#userPanelFilters .dashboard-clear-btn{height:30px!important;border:1px solid #e0e7ef!important;background:#fff!important;color:#617188!important;border-radius:8px!important;font-size:8px!important}
#userPanelContentLayout.filters-collapsed #userPanelFilters .dashboard-filter-sidebar-static{width:44px!important;overflow:hidden!important}
.dashboard-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:13px}
.dashboard-kpi{min-height:74px;border-radius:13px;padding:9px 10px;background:#fff;box-shadow:0 4px 13px rgba(20,43,72,.045);border-color:#e6ecf3}
.dashboard-kpi-head span{font-size:8px;color:#273b55}
.dashboard-kpi-head i{font-size:10px;color:#7b8ba0}
.dashboard-kpi strong{font-size:18px;color:#112b4b}
.dashboard-chart-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:11px}
.dashboard-chart-card,.dashboard-top5{border-radius:14px;background:#fff;border:1px solid #e6ecf3;box-shadow:0 4px 13px rgba(20,43,72,.045);padding:12px;margin-bottom:0}
.dashboard-chart-head h3{font-size:9px;color:#20344e;letter-spacing:.035em}
.dashboard-chart-head span{font-size:8px;color:#9aa6b4}
.dashboard-chart-box{height:225px!important;min-height:225px!important}
.dashboard-chart-box.tall{height:245px!important;min-height:245px!important}
/* Panel grupos y parejas: same visual language, hierarchical multiselects and three levels of progress. */
.userpanel-banner{margin-top:4px}
#userPanelContentLayout.dashboard-content-layout{grid-template-columns:182px minmax(0,1fr)!important;gap:13px!important}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
.userpanel-filter-shell{border:1px solid #e5ebf2!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 15px rgba(24,47,75,.045)!important}
.userpanel-filter-shell .dashboard-filter-rail-head{height:42px;padding:0 11px;background:#fff;border:0;border-bottom:1px solid #edf1f5;border-radius:14px 14px 0 0}
.userpanel-filter-title strong{font-size:11px;color:#20334a;letter-spacing:0;text-transform:none}
.userpanel-filter-title i{color:#65778f}
.userpanel-filter-shell .dashboard-filter-sidebar{border:0!important;box-shadow:none!important;border-radius:0 0 14px 14px!important;background:#fff!important}
.userpanel-filter-shell .dashboard-filter-sidebar-head{padding:11px 13px 8px;background:#fff;border-bottom:1px solid #edf1f5}
.userpanel-filter-shell .dashboard-filter-sidebar-head strong{font-size:10px!important;color:#253a54!important}
.userpanel-filter-shell .dashboard-filter-sidebar-head span{font-size:8px!important;color:#97a4b3!important}
.userpanel-filter-list{display:flex!important;flex-direction:column!important;gap:9px!important;padding:11px!important;max-height:calc(100vh - 280px)!important;overflow:visible!important}
.userpanel-filter-control{position:relative;padding:0!important;border:0!important;background:transparent!important}
.userpanel-filter-control>label{display:flex;align-items:center;gap:6px;margin:0 0 4px!important;font-size:8px!important;color:#596b82!important;font-weight:800!important;letter-spacing:0!important;text-transform:none!important}
.userpanel-filter-control>label i{width:12px;color:#71859e!important}
.userpanel-dropdown-trigger{width:100%;height:31px;padding:0 9px;border:1px solid #dce4ee;border-radius:8px;background:#fff;color:#34465e;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-size:9px;font-weight:700}
.userpanel-dropdown-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.userpanel-dropdown-trigger i{font-size:8px;color:#71839a}
.userpanel-filter-control.is-open .userpanel-dropdown-trigger{border-color:#8eacd4;box-shadow:0 0 0 3px rgba(35,89,232,.07)}
.userpanel-dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:95;max-height:210px;overflow:auto;padding:6px;border:1px solid #e1e7ef;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(19,43,73,.17)}
.userpanel-dropdown-menu[hidden]{display:none!important}
.userpanel-dropdown-option{display:flex!important;align-items:center;gap:7px;padding:7px 6px;border-radius:7px;margin:0!important;color:#41536b!important;font-size:8px!important;cursor:pointer}
.userpanel-dropdown-option:hover{background:#f2f6fb}
.userpanel-dropdown-option input{width:13px;height:13px;margin:0;accent-color:#2359e8}
.userpanel-no-options{display:block;padding:8px;color:#8998aa;font-size:8px}
.userpanel-level-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 13px}
.userpanel-level-card{min-width:0;min-height:220px;margin:0;padding:12px;border-radius:14px;background:#fff;border:1px solid #e6ecf3;box-shadow:0 4px 13px rgba(20,43,72,.045)}
.userpanel-level-card .dashboard-chart-head{margin-bottom:12px}
.userpanel-level-card .dashboard-chart-head h3{font-size:9px;font-weight:900;color:#20344e}
.userpanel-level-list{display:flex;flex-direction:column;gap:13px;max-height:270px;overflow:auto;padding:2px 3px 5px;scrollbar-width:thin}
.userpanel-level-row{display:grid;gap:5px;min-width:0}
.userpanel-level-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.userpanel-level-top>div{display:grid;gap:2px;min-width:0}
.userpanel-level-top strong{font-size:8px;color:#344861;white-space:normal;line-height:1.3;overflow-wrap:anywhere}
.userpanel-level-top small{font-size:7px;color:#93a1b3;font-weight:700}
.userpanel-level-top>b{flex:0 0 auto;font-size:8px;color:#1c3f70;font-variant-numeric:tabular-nums}
.userpanel-level-track{height:9px;background:#e9edf3;border-radius:99px;overflow:hidden}
.userpanel-level-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#173d73,#3977d8);transition:width .25s ease}
.userpanel-level-meta{font-size:7px;color:#97a4b4}
.userpanel-chart-empty{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9aa7b6;font-size:9px}
.userpanel-chart-empty i{font-size:22px;color:#bdc9d8}
.userpanel-assignment-grid{max-height:520px;grid-template-columns:repeat(2,minmax(0,1fr))}
.operational-assignment-card{border-color:#e4eaf2;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(20,43,72,.035)}
.operational-track span{background:linear-gradient(90deg,#173d73,#3977d8)}
/* The count, control and administration modules share the reference's clean white filter bars. */
#view-summary .panel,#view-contraloria .panel,#view-count .panel,#view-admin .panel,#view-users .panel,#view-requests .panel,#view-logs .panel{border-radius:14px}
#view-users .users-page-panel,#view-requests .requests-page-panel{min-height:390px}
.users-search-field{flex:1 1 280px!important}
.users-search-field input{width:100%}
.admin-group-manager{border-radius:15px}
.admin-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;height:330px;max-height:330px;padding:9px 2px 4px}
.admin-group-card{border-radius:13px;border-color:#e2e9f1;background:rgba(255,255,255,.88)}
.warehouse-editor-row,.warehouse-control-card{border-radius:11px}
.modal-card{border-radius:18px;box-shadow:0 25px 70px rgba(12,31,54,.22)}
.modal-head h3{color:#1c3049}
/* Dark mode is optional and toggled from the moon icon; light remains the default. */
body.theme-dark,body.theme-dark .app-shell,body.theme-dark .main-content,body.theme-dark .view{background:#111d2d;color:#e5edf7}
body.theme-dark .topbar,body.theme-dark .panel,body.theme-dark .dashboard-kpi,body.theme-dark .dashboard-chart-card,body.theme-dark .dashboard-top5,body.theme-dark .general-filterbar,body.theme-dark .count-toolbar,body.theme-dark .userpanel-level-card{background:#19283b;border-color:#2a3b51;color:#e5edf7}
body.theme-dark .topbar h1,body.theme-dark .page-toolbar h2,body.theme-dark .panel-head h3,body.theme-dark .dashboard-chart-head h3,body.theme-dark .dashboard-kpi-head span{color:#e7eef8}
body.theme-dark .dashboard-filter-sidebar-static,body.theme-dark #userPanelFilters .dashboard-slicer-trigger,body.theme-dark #userPanelFilters .dashboard-slicer-menu,body.theme-dark .userpanel-filter-shell,body.theme-dark .userpanel-dropdown-trigger,body.theme-dark .userpanel-dropdown-menu{background:#19283b!important;border-color:#2a3b51!important;color:#e5edf7!important}
body.theme-dark .data-table th{background:#203149;color:#c3d1e2}
body.theme-dark .data-table td{color:#d1dbe8}
body.theme-dark input,body.theme-dark select{background:#17263a;color:#e2eaf5;border-color:#33475f}
@media(max-width:1100px){
  .dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-chart-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .userpanel-level-charts{grid-template-columns:1fr 1fr}
  #userPanelContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:182px minmax(0,1fr)!important}
}
@media(max-width:900px){
  .sidebar{transform:translateX(-105%);width:205px}
  .app-shell.mobile-open .sidebar{transform:translateX(0)}
  .main-content,.sidebar-collapsed .main-content{margin-left:0}
  .sidebar-toggle{display:none}
  .mobile-menu{display:grid;place-items:center;width:35px;height:35px;border:1px solid #e0e7ef;border-radius:10px;background:#fff;color:#1d3554}
  .topbar{height:72px;min-height:72px;padding:0 14px}
  .topbar-actions{gap:8px}
  .topbar-upload{display:none}
  .view{padding:16px 14px 28px}
  #userPanelContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:1fr!important}
  .dashboard-filter-column{position:relative;top:auto}
  #userPanelFilters .dashboard-filter-sidebar-static{max-width:none!important}
  .userpanel-filter-list{max-height:none!important}
  .general-filterbar{flex-wrap:wrap!important;overflow:visible!important}
  .userpanel-level-charts{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .topbar-heading{min-width:0}
  .topbar h1{font-size:16px}
  .eyebrow{font-size:7px}
  .topbar-actions{gap:4px}
  .locale-chip{display:none}
  .topbar-notification{display:none}
  .user-chip .avatar{width:34px;height:34px}
  .user-chip-text,.user-chevron{display:none}
  .page-toolbar{align-items:flex-start;flex-direction:row}
  .dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-chart-grid-3{grid-template-columns:1fr}
  .userpanel-level-charts{grid-template-columns:1fr}
  .userpanel-assignment-grid{grid-template-columns:1fr}
  .pesco-dashboard-banner{min-height:46px;padding:5px 9px;gap:8px}
  .pesco-dashboard-banner img{width:70px;height:32px}
  .pesco-dashboard-banner strong{font-size:10px;letter-spacing:.045em}
  .data-module-table-scroll{max-height:calc(100vh - 250px)}
}


/* V56 — topbar, vertical slicers and exact reference interactions */
.topbar-menu-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto}
.topbar-menu-trigger{border:0!important;background:transparent!important;padding:0!important;cursor:pointer;text-align:left}
.topbar-menu-trigger:hover{background:transparent!important}
.topbar-dropdown{position:absolute;right:0;top:calc(100% + 11px);z-index:140;display:flex;flex-direction:column;min-width:205px;padding:7px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;box-shadow:0 18px 44px rgba(17,38,64,.18);color:#20334b}
.topbar-dropdown[hidden]{display:none!important}
.topbar-dropdown button{width:100%;min-height:43px;display:flex;align-items:center;gap:10px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#25384f;text-align:left;cursor:pointer;font:600 11px Inter,Arial,sans-serif}
.topbar-dropdown button:hover{background:#f1f5fa}
.topbar-dropdown button>span:first-child{font-size:17px;line-height:1}
.topbar-dropdown button>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.topbar-dropdown button strong{font-size:10px;font-weight:800;color:#24374f}
.topbar-dropdown button small{font-size:8px;color:#8d9bad;font-weight:600}
.currency-dropdown button .fa-check{opacity:0;color:#2563eb;font-size:11px}
.currency-dropdown button.selected{background:#edf4ff}
.currency-dropdown button.selected .fa-check{opacity:1}
.topbar-notification{position:relative;border:0;background:transparent;border-radius:9px;cursor:pointer}
.topbar-notification:hover{background:#eef4ff}
.notification-badge{position:absolute;top:0;right:-2px;min-width:15px;height:15px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:99px;background:#dc3d4c;color:#fff;font-size:7px;font-weight:900}
.notification-badge[hidden]{display:none!important}
.notification-dropdown{width:min(370px,calc(100vw - 24px));max-height:min(490px,calc(100vh - 100px));padding:0;overflow:hidden}
.topbar-dropdown-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid #edf1f5}
.topbar-dropdown-head strong{font-size:11px;color:#1f344f}
.topbar-dropdown-head span{font-size:8px;color:#8b9aae}
.notification-list{max-height:410px;overflow:auto;padding:6px}
.notification-item{display:flex!important;align-items:flex-start!important;gap:9px!important;min-height:0!important;padding:9px!important;border-radius:10px!important}
.notification-type-icon{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;border-radius:8px;background:#fff0f0;color:#c83a47}
.notification-item.is-surplus .notification-type-icon{background:#fff5e9;color:#c16c15}
.notification-item-main{display:grid;gap:4px;flex:1;min-width:0}
.notification-item-main strong{font-size:9px!important;color:#26394f!important}
.notification-item-main small{font-size:8px!important;color:#8796a8!important;line-height:1.35}
.notification-item-main .notification-description{color:#60728a!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notification-item>i{align-self:center;color:#a3afbf;font-size:9px}
.notification-empty{min-height:90px;display:flex;align-items:center;justify-content:center;gap:8px;padding:18px;text-align:center;color:#91a0b2;font-size:9px}
.notification-empty i{font-size:16px}
.profile-dropdown{width:235px;gap:3px}
.profile-dropdown-user{display:flex;align-items:center;gap:10px;padding:10px 9px 12px;margin-bottom:3px;border-bottom:1px solid #edf1f5}
.profile-dropdown-user>span:last-child{display:grid;gap:3px;min-width:0}
.profile-dropdown-user strong{font-size:10px;color:#1f344f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-dropdown-user small{font-size:8px;color:#8c9aae;text-transform:capitalize}
.profile-dropdown button{min-height:37px;font-size:9px}
.profile-dropdown button i{width:16px;color:#71839a;text-align:center}
.profile-dropdown .profile-logout{color:#b83240}
.profile-dropdown .profile-logout i{color:#c5414d}
.filter-data-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:11px 0 12px;padding:10px 9px;border:1px solid #e7edf4;border-radius:10px;background:#f4f7fa;cursor:pointer;user-select:none}
.filter-data-toggle>span{display:grid;gap:3px;min-width:0}
.filter-data-toggle strong{font-size:9px;color:#263b55;font-weight:800}
.filter-data-toggle small{font-size:7.5px;color:#8998aa}
.filter-data-toggle input{position:absolute;opacity:0;pointer-events:none}
.filter-data-toggle>i{position:relative;width:34px;height:19px;flex:0 0 34px;border-radius:99px;background:#d7dfe8;transition:background .16s ease}
.filter-data-toggle>i:after{content:'';position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:transform .16s ease}
.filter-data-toggle input:checked+i{background:#2359e8}
.filter-data-toggle input:checked+i:after{transform:translateX(15px)}
.filter-data-toggle input:focus-visible+i{outline:3px solid rgba(35,89,232,.18);outline-offset:2px}
#userPanelContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:184px minmax(0,1fr)!important;gap:14px!important}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed,#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
#userPanelFilters .dashboard-filter-sidebar-static-body,.userpanel-filter-shell .dashboard-filter-sidebar{overflow:visible!important}
#userPanelFilters .dashboard-filter-sidebar-static{overflow:visible!important}
.userpanel-filter-shell .dashboard-filter-sidebar{position:relative!important;overflow:visible!important}
.userpanel-dropdown-menu{z-index:150!important}
#userPanelFilters .dashboard-slicer-menu{z-index:150!important}
.dashboard-slicer-head>span{font-size:7px!important;color:#8fa0b5!important}
.dashboard-slicer-option.active{background:#edf4ff!important;color:#173d73!important;border-color:#d5e4fa!important;box-shadow:inset 3px 0 0 #2862d8!important}
.dashboard-slicer-option.active i{color:#2359e8!important}
.userpanel-dropdown-option input{accent-color:#2359e8}
.userpanel-level-track span,.operational-track span{background:linear-gradient(90deg,#123a78,#3977d8)!important}
.dashboard-chart-head h3,.userpanel-level-card .dashboard-chart-head h3{color:#20344e}
.summary-focus-row{background:#fff8e6!important;outline:2px solid #f2c35c;outline-offset:-2px}
.summary-focus-row-pulse{animation:summaryRowPulse 1.6s ease-out 1}
@keyframes summaryRowPulse{0%{background:#ffe7a8}100%{background:#fff8e6}}
@media(max-width:640px){
  .locale-chip{display:flex!important;min-width:54px!important;gap:5px!important}
  .locale-flag{font-size:15px!important}
  .locale-chip strong{font-size:9px!important}
  .locale-chip small{font-size:7px!important}
  .topbar-notification{display:grid!important;width:25px!important;height:30px!important}
  .topbar-actions{gap:5px!important}
  .topbar-dropdown{right:-6px}
  .notification-dropdown{right:-48px}
  .profile-dropdown{right:0}
  #userPanelContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{grid-template-columns:1fr!important}
}
.dashboard-slicer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 4px 6px;border-bottom:1px solid #edf1f5;margin-bottom:4px}
.dashboard-slicer-actions button{border:0;background:transparent;padding:4px 2px;color:#315d96;font-size:8px;font-weight:800;cursor:pointer}
.dashboard-slicer-actions button:hover{text-decoration:underline}
.dashboard-slicer-actions .dashboard-slicer-clear{color:#8391a3}

/* V57 — filtro avanzado: únicamente visibilidad de gráficos sin datos. */
.advanced-chart-hidden{display:none!important}
/* Mantener tarjetas gráficas con un mínimo de aire cuando los filtros avanzados están desactivados. */
.userpanel-level-card[aria-hidden="false"],.userpanel-hero-card[aria-hidden="false"],.userpanel-status-card[aria-hidden="false"]{visibility:visible}
/* Slicers de selección múltiple con lectura consistente en panel y dashboard. */
.dashboard-slicer-option i{flex:0 0 13px;text-align:center}
.dashboard-slicer-option.active{background:#edf4ff!important;color:#173d73!important;border-color:#d4e3f7!important}
.userpanel-dropdown-option input{flex:0 0 14px}
.userpanel-dropdown-menu{max-height:260px!important}
.topbar-actions{gap:15px}
@media(max-width:780px){.topbar-actions{gap:7px}}

/* V56.2 · filtros de Logs, plantillas desplegables y directorio de usuarios */
.logs-filterbar{align-items:end;gap:14px;margin-bottom:16px}
.logs-user-field{min-width:220px;flex:1.2}
.logs-date-range{display:flex;align-items:center;gap:8px;white-space:nowrap}
.logs-date-range span{font-size:10px;color:var(--muted)}
.logs-date-range input{height:38px;min-width:138px;border:1px solid var(--border);border-radius:9px;padding:0 10px;background:#fff;color:var(--text);font:inherit;font-size:11px;outline:none}
.logs-date-range input:focus{border-color:#6f9cf5;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.logs-multi,.count-multi{position:relative;min-width:0;width:100%}
.logs-multi-trigger,.count-multi-trigger{height:38px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--text);font:inherit;font-size:11px;text-align:left;cursor:pointer;white-space:nowrap}
.logs-multi-trigger span,.count-multi-trigger span{overflow:hidden;text-overflow:ellipsis}
.logs-multi-trigger i,.count-multi-trigger i{font-size:10px;color:#68788d;flex:0 0 auto}
.logs-multi-menu,.count-multi-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:210px;max-height:280px;overflow:auto;z-index:80;padding:7px;background:#fff;border:1px solid #dbe3ed;border-radius:11px;box-shadow:0 14px 35px rgba(18,38,63,.16)}
.logs-multi-actions,.count-multi-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 5px 8px;border-bottom:1px solid #edf1f6;margin-bottom:5px}
.logs-multi-actions button,.count-multi-actions button{border:0;background:transparent;color:#2456a6;font-size:10px;font-weight:800;cursor:pointer;padding:4px}
.logs-multi-option,.count-multi-option{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 7px;border-radius:7px;color:#24364d;font-size:10px;cursor:pointer}
.logs-multi-option:hover,.count-multi-option:hover{background:#f1f6fc}
.logs-multi-option input,.count-multi-option input{accent-color:#2563eb;width:14px;height:14px;flex:0 0 auto}
.logs-multi-option span{display:flex;flex-direction:column;gap:2px}
.logs-multi-option small{font-size:9px;color:#8a97a9}
.logs-multi-empty,.count-multi-empty{padding:14px 8px;text-align:center;color:#8794a7;font-size:10px}
.count-toolbar .field-inline{min-width:122px;flex:1 1 125px}
.count-toolbar .count-position-filter-field{min-width:145px;flex:1.2 1 145px}
.count-multi{min-width:0}
.count-templates-list{display:flex;flex-direction:column;gap:12px;margin:0 0 18px}
.count-template-card{background:#fff;border:1px solid #dfe7f1;border-radius:15px;box-shadow:var(--shadow);overflow:visible}
.count-template-card>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 18px;cursor:pointer;user-select:none}
.count-template-card>summary::-webkit-details-marker{display:none}
.count-template-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:11px;background:#eaf1ff;color:#245bd3}
.count-template-name{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.count-template-name small{font-size:8px;letter-spacing:.08em;font-weight:900;color:#6d82a0}
.count-template-name strong{font-size:13px;color:#172b46;line-height:1.25}
.count-template-name em{font-style:normal;font-size:9px;color:#8290a4}
.count-template-pair-label{max-width:38%;font-size:9px;color:#546b8c;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.count-template-chevron{color:#7688a2;font-size:12px;transition:transform .18s ease}
.count-template-card[open] .count-template-chevron{transform:rotate(180deg)}
.count-template-content{padding:0 13px 13px}
.count-template-content .table-wrap{border:1px solid #e7edf5;border-radius:11px;max-height:68vh}
.count-template-content .data-table{min-width:1060px}
.count-template-content .data-table th{top:0}
/* V101.3 - PDF individual por pareja con cantidades y observaciones registradas */
.count-template-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 11px;margin-bottom:10px;border-bottom:1px solid #edf1f6}
.count-template-actions>span{display:flex;align-items:center;gap:7px;color:#7a899d;font-size:10px}
.count-template-actions>span i{color:#c23d3d}
.count-template-actions .btn{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto}
@media(max-width:650px){.count-template-actions{align-items:flex-start;flex-direction:column}.count-template-actions .btn{width:100%;justify-content:center}}

.count-template-empty{display:flex;align-items:center;justify-content:center;gap:9px;padding:30px;color:#8392a6;font-size:11px}
.count-template-empty i{font-size:20px;color:#9aabc2}
.users-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.users-role-card{min-width:0;margin-bottom:0;padding:15px;overflow:hidden}
.users-role-card .panel-head{margin-bottom:12px}
.users-role-card .panel-head h3{display:flex;align-items:center;gap:8px;font-size:13px}
.users-role-dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#2563eb}
.users-role-dot.admin{background:#7455d8}.users-role-dot.auditor{background:#d97706}.users-role-dot.user{background:#2563eb}
.users-role-table{min-width:0;width:100%}
.users-role-table th,.users-role-table td{padding:9px 7px;font-size:9px}
.users-role-table th{font-size:8px}
.users-role-table td:first-child{font-weight:800;color:#263c59}
.users-state{display:inline-flex;align-items:center;padding:4px 8px;border-radius:99px;font-size:8px;font-weight:800}
.users-state.active{background:#e9f8f1;color:#0b805a}.users-state.inactive{background:#fff0f0;color:#bc2d3a}
#usersRoleFilter{min-width:140px}
@media(max-width:1100px){.users-role-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.users-role-grid{grid-template-columns:1fr}.logs-filterbar{align-items:stretch}.logs-date-range{flex-wrap:wrap}.logs-date-range input{flex:1;min-width:120px}.count-toolbar .field-inline{flex-basis:calc(50% - 10px)}}


/* V57.1 — multiselect dropdowns for Summary / Contraloría / Logs */
.filter-multi{position:relative;min-width:0;width:100%;}
.filter-multi-trigger{height:38px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 11px;border:1px solid var(--border,#dbe3ed);border-radius:9px;background:#fff;color:var(--text,#26384e);font:inherit;font-size:11px;text-align:left;cursor:pointer;white-space:nowrap;box-shadow:0 1px 2px rgba(16,24,40,.02)}
.filter-multi-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-multi-trigger i{font-size:10px;color:#68788d;flex:0 0 auto}
.filter-multi-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:205px;max-height:285px;overflow:auto;z-index:120;padding:7px;background:#fff;border:1px solid #dbe3ed;border-radius:11px;box-shadow:0 14px 35px rgba(18,38,63,.16)}
.filter-multi-menu[hidden]{display:none!important}
.filter-multi-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 5px 8px;border-bottom:1px solid #edf1f6;margin-bottom:5px}
.filter-multi-actions button{border:0;background:transparent;color:#2456a6;font-size:10px;font-weight:800;cursor:pointer;padding:4px}
.filter-multi-option{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 7px;border-radius:7px;color:#24364d;font-size:10px;cursor:pointer}
.filter-multi-option:hover{background:#f1f6fc}
.filter-multi-option input{accent-color:#2563eb;width:14px;height:14px;flex:0 0 auto}
.filter-multi-empty{padding:14px 8px;text-align:center;color:#8794a7;font-size:10px}
.logs-filterbar{align-items:end;gap:14px}
.logs-filterbar .filter-toolbar-title{flex:0 0 105px}
.logs-filterbar .logs-user-field{min-width:240px;flex:1.2 1 250px}
.logs-filterbar .field-inline>label{display:block;margin:0 0 5px 2px;font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800}
.logs-date-range{display:grid;grid-template-columns:auto minmax(130px,1fr) auto minmax(130px,1fr);align-items:center;gap:8px}
.logs-date-range span{font-size:10px;color:#8794a7}
.logs-date-range input{width:100%;min-width:0;height:38px;border:1px solid #dbe3ed;border-radius:9px;padding:0 10px;background:#fff;color:#24364d;font:inherit;font-size:11px;outline:none}
.logs-date-range input:focus,.filter-multi-trigger:focus{border-color:#6f9cf5;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.filter-apply-modern,.logs-filterbar .filter-clear-modern{height:38px;white-space:nowrap}
.nav-count-wrap{position:relative}
.nav-count-toggle .nav-count-chevron{margin-left:auto;font-size:10px;transition:transform .18s ease;opacity:.8}
.nav-count-toggle.expanded .nav-count-chevron{transform:rotate(180deg)}
.nav-count-submenu{margin:3px 0 7px 14px;padding:5px 0 5px 10px;border-left:1px solid rgba(178,198,225,.25);display:flex;flex-direction:column;gap:3px}
.nav-count-submenu[hidden]{display:none!important}
.nav-subitem{width:100%;min-width:0;display:flex;align-items:center;gap:8px;padding:8px 9px;border:0;border-radius:8px;background:transparent;color:#bfcbda;text-align:left;cursor:pointer;font:inherit;font-size:10px;line-height:1.25}
.nav-subitem>i{width:13px;flex:0 0 13px;color:#8da8cc;font-size:10px}
.nav-subitem span{display:flex;flex-direction:column;gap:2px;min-width:0}
.nav-subitem strong{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-subitem small{font-size:8px;color:#8092aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-subitem:hover:not(:disabled),.nav-subitem.active{background:rgba(66,120,190,.22);color:#fff}
.nav-subitem.is-open>i{color:#65c99a}
.nav-subitem.is-locked{opacity:.55;cursor:not-allowed}
.nav-subitem:disabled{pointer-events:none}
.nav-subitem.nav-count-all{font-weight:800;color:#dbe8fb;background:rgba(255,255,255,.055)}
.nav-count-loading{display:block;padding:8px 10px;color:#8092aa;font-size:9px}
@media(max-width:760px){.logs-filterbar{align-items:stretch}.logs-filterbar .filter-toolbar-title{flex-basis:100%}.logs-date-range{grid-template-columns:auto 1fr;}.logs-date-range span:nth-of-type(2){grid-column:1}.logs-filterbar .filter-apply-modern,.logs-filterbar .filter-clear-modern{width:100%}}


/* V57.2 · Logs: filtro de usuario multiselección y fechas alineados al filtro horizontal de referencia */
.logs-filterbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.logs-filterbar .filter-toolbar-title{flex:0 0 108px}
.logs-filterbar .logs-user-field{min-width:260px;flex:1.15 1 360px}
.logs-filterbar .logs-multi{position:relative;width:100%;min-width:0}
.logs-filterbar .logs-multi .filter-multi-trigger{height:38px;min-height:38px;width:100%}
.logs-filterbar .logs-multi .filter-multi-menu{min-width:260px;max-height:300px}
.logs-filterbar .field-inline:has(.logs-date-range){min-width:420px;flex:1.4 1 440px}
.logs-filterbar .logs-date-range{display:grid;grid-template-columns:auto minmax(130px,1fr) auto minmax(130px,1fr);align-items:center;gap:9px}
.logs-filterbar .logs-date-range input{width:100%;min-width:0;height:38px}
.logs-filterbar .filter-clear-modern{height:38px;white-space:nowrap}
@media(max-width:1000px){.logs-filterbar .filter-toolbar-title{flex-basis:100%}.logs-filterbar .logs-user-field,.logs-filterbar .field-inline:has(.logs-date-range){flex:1 1 100%;min-width:0}}
@media(max-width:560px){.logs-filterbar .logs-date-range{grid-template-columns:1fr 1fr;gap:5px}.logs-filterbar .logs-date-range span{font-size:9px}.logs-filterbar .logs-date-range input{grid-row:2}}


/* V59 — Multiselect de directorio y tipografía uniforme de filtros */
.users-filter-multi{position:relative;width:100%;min-width:155px}
.users-filter-multi .filter-multi-trigger{height:38px;min-height:38px;width:100%;font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500;letter-spacing:0;color:#24364d}
.filter-multi-trigger,.count-multi-trigger,.logs-multi-trigger{font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500;letter-spacing:0}
.filter-multi-option,.count-multi-option,.logs-multi-option{font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500;line-height:1.35}
.filter-multi-actions button,.count-multi-actions button,.logs-multi-actions button{font-family:Inter,Arial,sans-serif;font-size:11px;font-weight:700}
.filter-multi-empty,.count-multi-empty,.logs-multi-empty{font-family:Inter,Arial,sans-serif;font-size:11px}
.users-filter-multi .filter-multi-menu{min-width:220px;max-height:280px}
#usersFilters .users-search-field{flex:1.5 1 280px;min-width:220px}
#usersFilters .field-inline{flex:1 1 180px;min-width:165px}
#usersFilters .users-search-field input{font-family:Inter,Arial,sans-serif;font-size:12px;font-weight:500}
@media(max-width:900px){#usersFilters .field-inline{flex:1 1 100%;min-width:0}}


/* V60 — corrección global: todos los desplegables multiselección permanecen abiertos al marcar opciones */
.filter-multi,.count-multi,.logs-multi{position:relative;z-index:1}
.filter-multi.is-open,.count-multi.is-open,.logs-multi.is-open{z-index:160}
.filter-multi.is-open .filter-multi-menu,.count-multi.is-open .count-multi-menu{z-index:161}
.userpanel-filter-shell{overflow:visible!important}
.userpanel-filter-list{overflow:visible!important;position:relative}
.userpanel-filter-control{position:relative;z-index:1}
.userpanel-filter-control.is-open{z-index:160}
.userpanel-filter-control.is-open .userpanel-dropdown-menu{z-index:161}
.dashboard-slicer.is-open{position:relative;z-index:160}
.dashboard-slicer.is-open .dashboard-slicer-menu{z-index:161}

/* V61 — popovers de filtros: elevar el contenedor completo y evitar recortes */
/* El z-index del menú por sí solo no superaba el stacking-context del filtro sticky. */
.data-module-filter-sticky:has(.filter-multi.is-open),
.data-module-filter-sticky:has(.count-multi.is-open),
.data-module-filter-sticky:has(.logs-multi.is-open) {
  position: sticky !important;
  z-index: 9990 !important;
  isolation: isolate;
  overflow: visible !important;
}
.general-filterbar,
.count-toolbar,
.logs-filterbar {
  overflow: visible !important;
}
.filter-multi.is-open,
.count-multi.is-open,
.logs-multi.is-open,
.userpanel-filter-control.is-open,
.dashboard-slicer.is-open {
  position: relative !important;
  z-index: 9992 !important;
}
.filter-multi-menu,
.count-multi-menu,
.logs-multi-menu,
.userpanel-dropdown-menu,
.dashboard-slicer-menu {
  z-index: 9995 !important;
}
.dashboard-filter-shell:has(.dashboard-slicer.is-open),
.userpanel-filter-shell:has(.userpanel-filter-control.is-open) {
  position: relative !important;
  z-index: 9990 !important;
  overflow: visible !important;
}
/* Las tarjetas/tablas que siguen al filtro no deben pintar encima de un menú abierto. */
.data-module-filter-sticky:has(.filter-multi.is-open) ~ *,
.data-module-filter-sticky:has(.count-multi.is-open) ~ *,
.data-module-filter-sticky:has(.logs-multi.is-open) ~ * {
  position: relative;
  z-index: 1;
}

/* V62 — tamaño y lectura de opciones de TODOS los filtros multiselección.
   Los checkboxes anteriores heredaban width:100% y height:32px desde
   .filter-toolbar-modern .field-inline input; esta regla específica lo anula. */
.filter-multi-menu,
.count-multi-menu,
.logs-multi-menu,
.userpanel-dropdown-menu,
.dashboard-slicer-menu {
  box-sizing: border-box !important;
  min-width: min(230px, calc(100vw - 24px)) !important;
  width: max(100%, 230px) !important;
  max-width: min(340px, calc(100vw - 24px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #c5d1df transparent;
}
.filter-multi-menu.align-right,
.count-multi-menu.align-right,
.logs-multi-menu.align-right,
.userpanel-dropdown-menu.align-right,
.dashboard-slicer-menu.align-right {
  left: auto !important;
  right: 0 !important;
}
.filter-multi-menu .filter-multi-option,
.filter-multi-menu .count-multi-option,
.filter-multi-menu .logs-multi-option,
.count-multi-menu .count-multi-option,
.logs-multi-menu .logs-multi-option,
.userpanel-dropdown-menu .userpanel-dropdown-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: auto !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent;
  color: #30445d !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  cursor: pointer;
  box-sizing: border-box !important;
}
.filter-multi-menu .filter-multi-option:hover,
.filter-multi-menu .count-multi-option:hover,
.filter-multi-menu .logs-multi-option:hover,
.count-multi-menu .count-multi-option:hover,
.logs-multi-menu .logs-multi-option:hover,
.userpanel-dropdown-menu .userpanel-dropdown-option:hover {
  background: #f1f6fc !important;
}
.filter-toolbar-modern .field-inline .filter-multi-option input[type="checkbox"],
.filter-toolbar-modern .field-inline .count-multi-option input[type="checkbox"],
.filter-toolbar-modern .field-inline .logs-multi-option input[type="checkbox"],
.filter-toolbar-modern .field-inline .userpanel-dropdown-option input[type="checkbox"],
.filter-multi-menu input[type="checkbox"],
.count-multi-menu input[type="checkbox"],
.logs-multi-menu input[type="checkbox"],
.userpanel-dropdown-menu input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  flex: 0 0 14px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  accent-color: #2459a6 !important;
  background: transparent !important;
  transform: none !important;
}
.filter-multi-menu .filter-multi-option > span,
.filter-multi-menu .count-multi-option > span,
.filter-multi-menu .logs-multi-option > span,
.count-multi-menu .count-multi-option > span,
.logs-multi-menu .logs-multi-option > span,
.userpanel-dropdown-menu .userpanel-dropdown-option > span {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #30445d !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.filter-multi-actions,
.count-multi-actions,
.logs-multi-actions,
.userpanel-dropdown-actions,
.dashboard-slicer-actions {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
.filter-multi-actions button,
.count-multi-actions button,
.logs-multi-actions button,
.userpanel-dropdown-actions button,
.dashboard-slicer-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}
body.theme-dark .filter-multi-menu .filter-multi-option,
body.theme-dark .filter-multi-menu .count-multi-option,
body.theme-dark .filter-multi-menu .logs-multi-option,
body.theme-dark .count-multi-menu .count-multi-option,
body.theme-dark .logs-multi-menu .logs-multi-option,
body.theme-dark .userpanel-dropdown-menu .userpanel-dropdown-option,
body.theme-dark .filter-multi-menu .filter-multi-option > span,
body.theme-dark .filter-multi-menu .count-multi-option > span,
body.theme-dark .filter-multi-menu .logs-multi-option > span,
body.theme-dark .count-multi-menu .count-multi-option > span,
body.theme-dark .logs-multi-menu .logs-multi-option > span,
body.theme-dark .userpanel-dropdown-menu .userpanel-dropdown-option > span {
  color: #e4edf8 !important;
}
body.theme-dark .filter-multi-actions,
body.theme-dark .count-multi-actions,
body.theme-dark .logs-multi-actions,
body.theme-dark .userpanel-dropdown-actions,
body.theme-dark .dashboard-slicer-actions {
  background: #19283b !important;
}


/* V63 — ajuste final de sidebar y filtros verticales estilo compacto (referencia del usuario). */
:root{--sidebar:224px;--sidebar-collapsed:66px}
.sidebar{width:224px!important;padding:14px 11px 11px!important}
.sidebar-collapsed .sidebar{width:66px!important}
.main-content{margin-left:224px!important}
.sidebar-collapsed .main-content{margin-left:66px!important}
.brand.brand-logos{padding-left:5px!important;padding-right:5px!important}
.brand-pesco-full{max-width:166px!important}
.nav-section-label{font-size:9px!important;padding-left:10px!important}
.nav-item{min-height:38px!important;height:38px!important;padding-left:12px!important;gap:11px!important}
.nav-item i{font-size:12px!important;width:16px!important;min-width:16px!important}
.nav-item span{font-size:11.5px!important;font-weight:650!important}
.sidebar-bottom .nav-item{height:34px!important;min-height:34px!important}
.sidebar-collapsed .nav-item{height:38px!important;min-height:38px!important}
#userPanelContentLayout.dashboard-content-layout{grid-template-columns:194px minmax(0,1fr)!important;gap:14px!important}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}
.dashboard-filter-count{display:none!important}
.dashboard-filter-sidebar-head{align-items:flex-start!important}
.dashboard-selected-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;min-height:18px;max-width:100%}
.selected-filter-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:22px;padding:3px 7px;border:1px solid #d9e5f4;border-radius:999px;background:#eef4fc;color:#24466f;font:600 9px/1.2 Inter,Arial,sans-serif;cursor:pointer}
.selected-filter-chip span{min-width:0;overflow-wrap:anywhere}
.selected-filter-chip i{font-size:8px;color:#6f87a5}
.selected-filter-empty{font-size:8px;color:#98a4b3}
.dashboard-slicer-accordion{position:relative!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;z-index:1}
.dashboard-slicer-accordion.is-open{z-index:180!important}
.dashboard-slicer-row,.userpanel-filter-row{width:100%;min-height:34px;height:auto;padding:7px 5px;border:0;border-bottom:1px solid #edf1f5;border-radius:0;background:#fff;color:#334a65;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font:650 10px/1.25 Inter,Arial,sans-serif;cursor:pointer}
.dashboard-slicer-row>span,.userpanel-filter-row>span{display:flex;align-items:center;gap:7px;min-width:0}
.dashboard-slicer-row>span i,.userpanel-filter-row>span i{width:13px;min-width:13px;text-align:center;color:#71869f;font-size:9px}
.dashboard-slicer-row>.slicer-chevron,.userpanel-filter-row>.slicer-chevron{font-size:8px;color:#71839a;transition:transform .15s ease}
.dashboard-slicer-accordion.is-open .dashboard-slicer-row>.slicer-chevron,.userpanel-filter-accordion.is-open .userpanel-filter-row>.slicer-chevron{transform:rotate(180deg)}
#userPanelFilters .dashboard-slicer-menu,.userpanel-filter-accordion .userpanel-dropdown-menu{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 2px)!important;z-index:220!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:260px!important;overflow:auto!important;padding:6px!important;border:1px solid #dfe7f0!important;border-radius:9px!important;background:#fff!important;box-shadow:0 14px 30px rgba(18,42,72,.2)!important}
#userPanelFilters .dashboard-slicer-menu[hidden],.userpanel-filter-accordion .userpanel-dropdown-menu[hidden]{display:none!important}
#userPanelFilters .dashboard-slicer-actions,.userpanel-filter-accordion .userpanel-dropdown-actions{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;padding:3px 5px 6px!important;margin-bottom:4px!important;border-bottom:1px solid #edf1f5!important;background:#fff!important}
#userPanelFilters .dashboard-slicer-actions button,.userpanel-filter-accordion .userpanel-dropdown-actions button{border:0!important;background:transparent!important;color:#315d96!important;font:700 9px/1.2 Inter,Arial,sans-serif!important;padding:4px!important;cursor:pointer}
#userPanelFilters .dashboard-slicer-option{display:flex!important;align-items:center!important;gap:8px!important;min-height:29px!important;height:auto!important;width:100%!important;padding:6px 7px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#344960!important;font:500 9px/1.3 Inter,Arial,sans-serif!important;text-align:left!important;box-shadow:none!important}
#userPanelFilters .dashboard-slicer-option i{width:13px;min-width:13px;font-size:11px!important;text-align:center}
#userPanelFilters .dashboard-slicer-option span{display:block!important;min-width:0!important;flex:1!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}
#userPanelFilters .dashboard-slicer-option.active{background:#edf4ff!important;color:#173d73!important;box-shadow:inset 2px 0 #2862d8!important}
.userpanel-filter-list{display:flex!important;flex-direction:column!important;gap:0!important;padding:4px 3px 8px!important;overflow:visible!important}
.userpanel-filter-control.userpanel-filter-accordion{position:relative!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;z-index:1!important}
.userpanel-filter-control.userpanel-filter-accordion.is-open{z-index:180!important}
.userpanel-filter-row{min-height:35px!important;border-bottom:1px solid #edf1f5!important;font-size:10px!important}
.userpanel-filter-accordion .userpanel-dropdown-menu{width:100%!important;min-width:0!important;max-width:none!important;max-height:245px!important}
.userpanel-dropdown-option{display:flex!important;align-items:center!important;gap:8px!important;min-height:29px!important;height:auto!important;padding:6px 7px!important;margin:0!important;border-radius:6px!important;background:transparent!important;color:#344960!important;font:500 9px/1.3 Inter,Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
.userpanel-dropdown-option input[type=checkbox]{width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;flex:0 0 13px!important;margin:0!important}
.userpanel-dropdown-option span{flex:1!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;color:inherit!important;font:inherit!important}
.userpanel-mode-switch{margin:10px 0 6px!important}
.userpanel-filter-shell .dashboard-filter-sidebar{overflow:visible!important}
.userpanel-filter-shell:has(.userpanel-filter-control.is-open),#userPanelFilters:has(.dashboard-slicer.is-open){z-index:250!important;position:relative!important}
.userpanel-filter-shell .dashboard-filter-sidebar-head{padding-bottom:9px!important}
@media(max-width:900px){
  :root{--sidebar:224px}
  .sidebar{width:224px!important}
  .main-content{margin-left:0!important}
  #userPanelContentLayout.dashboard-content-layout{grid-template-columns:1fr!important}
  #userPanelContentLayout .dashboard-filter-column{width:100%!important}
}
body.theme-dark .dashboard-slicer-row,body.theme-dark .userpanel-filter-row{background:#19283b!important;color:#e4edf8!important;border-color:#2b3c52!important}
body.theme-dark .selected-filter-chip{background:#23364d!important;color:#e4edf8!important;border-color:#3a5271!important}
body.theme-dark #userPanelFilters .dashboard-slicer-menu,body.theme-dark .userpanel-filter-accordion .userpanel-dropdown-menu{background:#19283b!important;border-color:#344861!important}

#userPanelContentLayout.dashboard-content-layout{grid-template-columns:194px minmax(0,1fr)!important;gap:14px!important}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:48px minmax(0,1fr)!important}


/* V64 — Acordeones de filtros integrados al sidebar.
   El listado se renderiza en el flujo normal: al abrirlo empuja los filtros
   siguientes hacia abajo, sin panel flotante ni caja independiente. */
#userPanelFilters .dashboard-slicer-accordion,
.userpanel-filter-list .userpanel-filter-accordion{
  position:static!important;
  z-index:auto!important;
  width:100%!important;
  overflow:visible!important;
}
#userPanelFilters .dashboard-slicer-accordion.is-open,
.userpanel-filter-list .userpanel-filter-accordion.is-open{
  z-index:auto!important;
}
#userPanelFilters .dashboard-slicer-accordion > .dashboard-slicer-menu,
.userpanel-filter-list .userpanel-filter-accordion > .userpanel-dropdown-menu{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:210px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  margin:0!important;
  padding:5px 2px 9px 20px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#userPanelFilters .dashboard-slicer-accordion > .dashboard-slicer-menu[hidden],
.userpanel-filter-list .userpanel-filter-accordion > .userpanel-dropdown-menu[hidden]{
  display:none!important;
}
#userPanelFilters .dashboard-slicer-actions,
.userpanel-filter-list .userpanel-dropdown-actions{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:3px 4px 6px!important;
  margin:0 0 4px!important;
  border:0!important;
  border-bottom:1px solid #e8edf3!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#userPanelFilters .dashboard-slicer-actions button,
.userpanel-filter-list .userpanel-dropdown-actions button{
  padding:3px 2px!important;
  border:0!important;
  background:transparent!important;
  color:#315d96!important;
  font:700 9px/1.25 Inter,Arial,sans-serif!important;
  cursor:pointer!important;
}
#userPanelFilters .dashboard-slicer-option,
.userpanel-filter-list .userpanel-dropdown-option{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:27px!important;
  height:auto!important;
  box-sizing:border-box!important;
  margin:1px 0!important;
  padding:5px 6px!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#344960!important;
  text-align:left!important;
  font:500 9px/1.3 Inter,Arial,sans-serif!important;
  box-shadow:none!important;
}
#userPanelFilters .dashboard-slicer-option:hover,
.userpanel-filter-list .userpanel-dropdown-option:hover{background:#f1f5fa!important}
#userPanelFilters .dashboard-slicer-option.active,
.userpanel-filter-list .userpanel-dropdown-option:has(input:checked){
  background:#eaf1fb!important;
  color:#173d73!important;
}
#userPanelFilters .dashboard-slicer-option i{flex:0 0 13px!important;width:13px!important;font-size:11px!important;text-align:center!important}
#userPanelFilters .dashboard-slicer-option span,
.userpanel-filter-list .userpanel-dropdown-option span{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:left!important;
}
.userpanel-filter-list .userpanel-dropdown-option input[type=checkbox]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  flex:0 0 13px!important;
  width:13px!important;
  min-width:13px!important;
  max-width:13px!important;
  height:13px!important;
  min-height:13px!important;
  margin:0!important;
  padding:0!important;
}
#userPanelFilters .dashboard-filter-sidebar-static-body{
  height:auto!important;
  min-height:0!important;
  max-height:calc(100vh - 112px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
.userpanel-filter-shell .dashboard-filter-sidebar,
.userpanel-filter-shell .dashboard-filter-sidebar-static-body{
  height:auto!important;
  max-height:calc(100vh - 112px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
.userpanel-filter-control.is-open,
.dashboard-slicer-accordion.is-open{z-index:auto!important}
body.theme-dark #userPanelFilters .dashboard-slicer-menu,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-menu,
body.theme-dark #userPanelFilters .dashboard-slicer-actions,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-actions{
  background:transparent!important;
  border-color:#2b3c52!important;
}
body.theme-dark #userPanelFilters .dashboard-slicer-option,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-option{color:#e4edf8!important}
body.theme-dark #userPanelFilters .dashboard-slicer-option:hover,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-option:hover,
body.theme-dark #userPanelFilters .dashboard-slicer-option.active,
body.theme-dark .userpanel-filter-list .userpanel-dropdown-option:has(input:checked){background:#23364d!important}


/* V65 — Sidebar de filtros fijo: no se permite ocultarlo ni contraerlo. */
#userPanelFilters .dashboard-filter-static-toggle,
#userPanelFilters .dashboard-filter-rail-toggle{display:none!important}
#userPanelContentLayout.dashboard-content-layout.filters-collapsed,
#userPanelContentLayout.dashboard-content-layout.filters-collapsed{grid-template-columns:194px minmax(0,1fr)!important}
#userPanelFilters .dashboard-filter-sidebar-static-head,
#userPanelFilters .dashboard-filter-rail-head{justify-content:flex-start!important}
#userPanelFilters .dashboard-filter-sidebar-static,
#userPanelFilters .dashboard-filter-sidebar{display:block!important;visibility:visible!important;opacity:1!important}
#userPanelFilters .dashboard-filter-sidebar-static-body{display:block!important}

/* V65 — Todas las etiquetas seleccionadas tienen idéntica altura. Los textos
   largos se recortan con puntos suspensivos en lugar de aumentar la etiqueta. */
.dashboard-selected-tags{
  display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;
  gap:5px!important;min-height:24px!important;max-width:100%!important;
}
.selected-filter-chip{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  box-sizing:border-box!important;flex:0 1 auto!important;
  height:24px!important;min-height:24px!important;max-height:24px!important;
  max-width:100%!important;min-width:0!important;
  padding:0 7px!important;gap:5px!important;overflow:hidden!important;
  white-space:nowrap!important;border-radius:999px!important;
  font:600 9px/22px Inter,Arial,sans-serif!important;
}
.selected-filter-chip span{
  display:block!important;flex:0 1 auto!important;min-width:0!important;max-width:150px!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  overflow-wrap:normal!important;line-height:22px!important;
}
.selected-filter-chip i{
  display:block!important;flex:0 0 9px!important;width:9px!important;height:9px!important;
  line-height:9px!important;text-align:center!important;font-size:8px!important;
}
.selected-filter-empty{display:inline-flex!important;align-items:center!important;min-height:24px!important;height:24px!important;line-height:24px!important}
@media(max-width:520px){.selected-filter-chip span{max-width:118px!important}}

/* V66 — Altura uniforme para todas las tarjetas KPI del Dashboard y Panel. */
.dashboard-kpi-grid{
  align-items:stretch!important;
  grid-auto-rows:74px!important;
}
.dashboard-kpi-grid>.dashboard-kpi{
  box-sizing:border-box!important;
  height:74px!important;
  min-height:74px!important;
  max-height:74px!important;
  align-self:stretch!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  gap:0!important;
  padding:9px 10px!important;
  overflow:hidden!important;
}
.dashboard-kpi-grid>.dashboard-kpi>.dashboard-kpi-head{
  flex:0 0 12px!important;
  min-height:12px!important;
  height:12px!important;
  margin:0!important;
}
.dashboard-kpi-grid>.dashboard-kpi>strong{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-end!important;
  flex:1 1 auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance{
  justify-content:space-between!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
  box-sizing:border-box!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  height:45px!important;
  margin:0!important;
  padding:1px 0 0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:14px 11px 5px!important;
  column-gap:7px!important;
  row-gap:1px!important;
  align-items:end!important;
  text-align:right!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-main{
  grid-column:2!important;grid-row:1!important;
  align-self:end!important;justify-self:end!important;
  margin:0!important;padding:0!important;
  font-size:14px!important;line-height:14px!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-sub{
  grid-column:2!important;grid-row:2!important;
  align-self:end!important;justify-self:end!important;
  margin:0!important;padding:0!important;
  font-size:9px!important;line-height:10px!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-percent{
  grid-column:1!important;grid-row:1 / span 2!important;
  align-self:end!important;justify-self:start!important;
  margin:0!important;padding:0!important;
  font-size:13px!important;line-height:14px!important;
}
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance .avance-track{
  grid-column:1 / -1!important;grid-row:3!important;
  align-self:end!important;
  width:100%!important;height:5px!important;min-height:5px!important;
  margin:0!important;padding:0!important;
}
@media(max-width:640px){
  .dashboard-kpi-grid{grid-auto-rows:78px!important}
  .dashboard-kpi-grid>.dashboard-kpi{
    height:78px!important;min-height:78px!important;max-height:78px!important;
    padding:8px!important;
  }
  .dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
    height:49px!important;
    grid-template-rows:15px 12px 5px!important;
  }
}


/* V67 — bajar ligeramente el bloque de avance dentro de su KPI, sin cambiar la altura de la tarjeta. */
.dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
  align-content:end!important;
  padding:1px 0 6px!important;
}
@media(max-width:640px){
  .dashboard-kpi-grid>.dashboard-kpi.dashboard-kpi-avance>.avance-card-body{
    padding:1px 0 6px!important;
  }
}

/* V68 — Sidebar ligeramente más ancho, tipografía de navegación más legible y toggle compacto. */
:root{--sidebar:235px;--sidebar-collapsed:66px}
.sidebar{width:235px!important;padding:14px 12px 11px!important}
.sidebar-collapsed .sidebar{width:66px!important}
.main-content{margin-left:235px!important}
.sidebar-collapsed .main-content{margin-left:66px!important}
.brand.brand-logos{padding-left:6px!important;padding-right:6px!important}
.brand-pesco-full{max-width:178px!important}
.nav-menu{gap:14px!important}
.nav-section-label{font-size:9.5px!important;padding-left:11px!important;letter-spacing:.08em!important}
.nav-item{height:39px!important;min-height:39px!important;padding-left:13px!important;gap:12px!important}
.nav-item i{width:17px!important;min-width:17px!important;font-size:13px!important}
.nav-item span{font-size:12.5px!important;font-weight:650!important;line-height:1.2!important}
.sidebar-bottom .nav-item{height:35px!important;min-height:35px!important}
.sidebar-toggle{right:-18px!important;top:27px!important;width:36px!important;height:36px!important;border-radius:11px!important;font-size:13px!important}
.sidebar-toggle i{font-size:13px!important}
.sidebar-collapsed .nav-item{height:38px!important;min-height:38px!important}
.sidebar-vltec-full{width:min(100%,138px)!important}
@media(max-width:900px){
  .sidebar{width:235px!important}
  .app-shell.mobile-open .sidebar{width:235px!important}
  .sidebar-toggle{display:none!important}
}


/* V69 — Sidebar contraído sin barras de scroll; subplantillas de Conteo solo en modo expandido. */
.sidebar{overflow-x:hidden!important}
.nav-menu{overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin}
.sidebar-collapsed .sidebar{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.sidebar-collapsed .nav-menu{
  overflow:hidden!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.sidebar-collapsed .nav-menu::-webkit-scrollbar,
.sidebar-collapsed .sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.sidebar-collapsed #countSidebarGroups,
.sidebar-collapsed .nav-count-submenu{display:none!important}
.sidebar-collapsed .nav-count-chevron{display:none!important}
.sidebar-collapsed .nav-count-wrap{width:100%;min-width:0;overflow:hidden}
.sidebar-collapsed #countNavToggle{justify-content:center!important;gap:0!important;overflow:hidden!important}
@media(max-width:900px){
  .sidebar{overflow-x:hidden!important;overflow-y:auto!important}
  .app-shell.mobile-open .sidebar{overflow-y:auto!important}
}
\n\n/* V71 — Toggle anclado al borde real del sidebar (no al extremo de la ventana). */
.sidebar{overflow:visible!important}
.sidebar-toggle{
  position:absolute!important;
  left:auto!important;
  right:-14px!important;
  top:17px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  border:1px solid rgba(219,229,242,.92)!important;
  border-radius:9px!important;
  background:#132842!important;
  color:#dbe5f2!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 3px 9px rgba(14,34,58,.20)!important;
  z-index:1001!important;
  font-size:11px!important;
  line-height:1!important;
}
.sidebar-toggle i{font-size:11px!important;line-height:1!important;transform:none!important}
.sidebar-toggle:hover{background:#1d395d!important;color:#fff!important}
.sidebar-collapsed .sidebar-toggle{right:-14px!important}
@media(max-width:900px){.sidebar-toggle{display:none!important}}

/* V72 — El botón de menú debe quedar completamente por delante del sidebar, incluso contraído.
   El sidebar conserva overflow visible; el menú interno controla su propio scroll. */
.sidebar-collapsed .sidebar{
  overflow:visible!important;
  overflow-x:visible!important;
  overflow-y:visible!important;
  z-index:120!important;
}
.sidebar-collapsed .sidebar-toggle{
  right:-14px!important;
  z-index:121!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.sidebar-collapsed .nav-menu{
  overflow:hidden!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
}


/* V73 — Toggle independiente del sidebar: siempre delante, anclado al borde en ambos estados.
   Se ubica como hijo directo de app-shell para escapar del stacking context del aside. */
.sidebar-toggle{
  position:fixed!important;
  left:calc(var(--sidebar) - 14px)!important;
  right:auto!important;
  top:27px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(219,229,242,.92)!important;
  border-radius:9px!important;
  background:#132842!important;
  color:#dbe5f2!important;
  box-shadow:0 3px 10px rgba(14,34,58,.28)!important;
  z-index:100000!important;
  isolation:isolate;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transition:left .25s ease,background .18s ease,box-shadow .18s ease!important;
}
.sidebar-collapsed .sidebar-toggle{
  left:calc(var(--sidebar-collapsed) - 14px)!important;
  right:auto!important;
  z-index:100000!important;
}
.sidebar-toggle i{font-size:11px!important;line-height:1!important;transform:none!important}
.sidebar-toggle:hover{background:#1d395d!important;color:#fff!important}
@media(max-width:900px){.sidebar-toggle{display:none!important}}


/* PIN dinámico para filas manuales: flujo integrado en el modal de Agregar nueva fila. */
.manual-pin-step{margin-top:4px}
.manual-pin-step[hidden]{display:none!important}
.manual-pin-alert{display:flex;align-items:flex-start;gap:11px;padding:13px 15px;margin:4px 0 16px;border:1px solid #cfe0f4;border-radius:12px;background:#f3f8ff;color:#173d70;font-size:12px;line-height:1.45}
.manual-pin-alert>i{font-size:18px;color:#2563eb;margin-top:1px}
.manual-pin-alert strong{display:block;font-size:13px;margin-bottom:3px}
.manual-pin-alert p{margin:0;color:#526b8a}
.manual-pin-countdown{padding:11px 13px;margin-bottom:15px;border:1px solid #e1e9f3;border-radius:11px;background:#fbfdff}
.manual-pin-countdown-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#52627a;font-weight:700;margin-bottom:8px}
.manual-pin-countdown-head strong{font-size:12px;color:#174a91;font-variant-numeric:tabular-nums}
.manual-pin-progress{height:6px;border-radius:999px;overflow:hidden;background:#e8eef6}
.manual-pin-progress span{display:block;height:100%;width:100%;border-radius:inherit;background:#2864b7;transition:width .2s linear}
.pin-rotation-label{display:block;margin-top:4px;font-size:10px;font-weight:600;letter-spacing:0;color:#64748b;white-space:nowrap}
.pin-badge{min-width:76px;font-size:15px;letter-spacing:3px}
#manualPin{font-size:20px;letter-spacing:5px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums;max-width:240px}


/* Panel por grupos de parejas: detalles en filas independientes */
.userpanel-detail-stack{display:flex;flex-direction:column;gap:16px;margin-top:16px;min-width:0}
.userpanel-detail-panel{min-width:0;padding:16px;border:1px solid var(--line,#dfe6ef);border-radius:16px;background:var(--panel,#fff);box-shadow:0 5px 18px rgba(25,48,78,.045)}
.userpanel-detail-panel .dashboard-chart-head{margin-bottom:12px}
.userpanel-detail-panel .dashboard-chart-head h3{font-size:13px;font-weight:750;text-transform:none;letter-spacing:0;color:var(--text,#203047)}
.userpanel-detail-panel .table-wrap{max-width:100%;overflow-x:auto}
.userpanel-detail-panel .data-table{min-width:760px}
.userpanel-top-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.userpanel-top-grid .data-table{min-width:580px}
.userpanel-detail-panel .table-subtext{display:block;margin-top:3px;color:var(--muted,#8190a4);font-size:10px}
.userpanel-detail-panel .text-success{color:#159b70}
.userpanel-detail-panel .text-danger{color:#dc625b}
.userpanel-kpi-grid .dashboard-kpi-head span{text-transform:none}
.userpanel-level-card .dashboard-chart-head h3{text-transform:none;letter-spacing:0}
@media(max-width:900px){.userpanel-top-grid{grid-template-columns:1fr}}

.userpanel-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1100px){.userpanel-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.userpanel-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


#userPanelContentLayout.dashboard-content-layout{grid-template-columns:220px minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
#userPanelContentLayout.filters-collapsed{grid-template-columns:220px minmax(0,1fr)!important}
#userPanelFilters.dashboard-filter-shell{display:block!important;width:100%!important;position:relative!important}
#userPanelFilters .dashboard-filter-sidebar-static{max-width:220px!important}
#userPanelFilters.open .dashboard-filter-sidebar-static{height:809px!important;overflow:hidden!important}
#userPanelFilters.open .dashboard-filter-sidebar-static-body{height:745px!important;overflow-y:auto!important;overflow-x:hidden!important}
@media(max-width:760px){#userPanelContentLayout.dashboard-content-layout{grid-template-columns:195px minmax(0,1fr)!important;gap:9px!important}#userPanelFilters .dashboard-filter-sidebar-static{max-width:195px!important}}
@media(max-width:900px){#userPanelContentLayout.dashboard-content-layout{grid-template-columns:1fr!important}#userPanelFilters .dashboard-filter-sidebar-static{position:relative!important;top:auto!important;height:auto!important;max-height:none!important}#userPanelFilters .dashboard-filter-sidebar-static-body{height:auto!important;max-height:55vh!important}}

/* V78 — Scrollbars discretas y filtros contenidos.
   Los contenedores siguen siendo desplazables; la barra solo se revela al pasar
   el puntero por el propio contenedor, sin invadir el contenido. */
:root{
  --ig-scroll-thumb:rgba(137,153,173,.62);
  --ig-scroll-thumb-hover:rgba(111,132,157,.82);
}
html,body,*{
  scrollbar-width:thin!important;
  scrollbar-color:transparent transparent!important;
}
html:hover,body:hover,*:hover{
  scrollbar-color:var(--ig-scroll-thumb) transparent!important;
}
*::-webkit-scrollbar{
  width:6px!important;
  height:6px!important;
}
*::-webkit-scrollbar-track{
  background:transparent!important;
  border:0!important;
}
*::-webkit-scrollbar-thumb{
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  background-clip:padding-box!important;
}
*:hover::-webkit-scrollbar-thumb{
  background:var(--ig-scroll-thumb)!important;
  border:1px solid transparent!important;
  background-clip:padding-box!important;
}
*:hover::-webkit-scrollbar-thumb:hover{
  background:var(--ig-scroll-thumb-hover)!important;
}

/* Panel por grupos y parejas: sidebar fijo tipo Dashboard, con scroll interno
   funcional y barra visualmente oculta hasta interactuar con el sidebar. */
#userPanelContentLayout.dashboard-content-layout{
  grid-template-columns:220px minmax(0,1fr)!important;
  min-width:0!important;
  max-width:100%!important;
  align-items:start!important;
}
#userPanelContentLayout .dashboard-filter-column,
#userPanelContentLayout .dashboard-main-column{
  min-width:0!important;
  max-width:100%!important;
}
#userPanelFilters .dashboard-filter-sidebar-static{
  position:sticky!important;
  top:90px!important;
  width:100%!important;
  max-width:none!important;
  height:809px!important;
  max-height:calc(100vh - 100px)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
#userPanelFilters .dashboard-filter-sidebar-static-body{
  display:block!important;
  height:calc(100% - 46px)!important;
  max-height:none!important;
  min-height:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:transparent transparent!important;
}
#userPanelFilters .dashboard-filter-sidebar-static-body:hover{
  scrollbar-color:var(--ig-scroll-thumb) transparent!important;
}
@media(max-width:900px){
  #userPanelContentLayout.dashboard-content-layout{
    grid-template-columns:1fr!important;
  }
  #userPanelFilters .dashboard-filter-sidebar-static{
    position:relative!important;
    top:auto!important;
    height:auto!important;
    max-height:none!important;
  }
  #userPanelFilters .dashboard-filter-sidebar-static-body{
    height:auto!important;
    max-height:55vh!important;
  }
}

/* Resumen, Contraloría y Conteo: la fila de filtros queda dentro del panel.
   En pantallas angostas se desplaza horizontalmente, nunca se sale del borde. */
#view-summary,
#view-contraloria,
#view-count{
  min-width:0!important;
  max-width:100%!important;
}
#summaryFilters,
#contraloriaFilters,
#view-count .count-toolbar{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:flex-end!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin!important;
  scrollbar-color:transparent transparent!important;
}
#summaryFilters:hover,
#contraloriaFilters:hover,
#view-count .count-toolbar:hover{
  scrollbar-color:var(--ig-scroll-thumb) transparent!important;
}
#summaryFilters>.filter-toolbar-title,
#contraloriaFilters>.filter-toolbar-title,
#view-count .count-toolbar>.filter-toolbar-title{
  flex:0 0 112px!important;
  width:112px!important;
  min-width:112px!important;
}
#summaryFilters>.field-inline,
#contraloriaFilters>.field-inline,
#view-count .count-toolbar>.field-inline{
  flex:0 0 145px!important;
  width:145px!important;
  min-width:145px!important;
  max-width:145px!important;
}
#view-count .count-toolbar>.count-position-filter-field{
  flex-basis:235px!important;
  width:235px!important;
  min-width:235px!important;
  max-width:235px!important;
}
#summaryFilters>.filter-clear-modern,
#contraloriaFilters>.filter-clear-modern,
#view-count .count-toolbar>.filter-clear-modern,
#view-count .count-toolbar>#manualRowBtn{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
#summaryFilters .filter-multi,
#contraloriaFilters .filter-multi,
#view-count .count-toolbar .count-multi{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
#summaryFilters .filter-multi-trigger,
#contraloriaFilters .filter-multi-trigger,
#view-count .count-toolbar .count-multi-trigger{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:760px){
  #summaryFilters,
  #contraloriaFilters,
  #view-count .count-toolbar{
    flex-wrap:nowrap!important;
    align-items:flex-end!important;
  }
  #summaryFilters>.field-inline,
  #contraloriaFilters>.field-inline,
  #view-count .count-toolbar>.field-inline{
    flex:0 0 145px!important;
  }
}


/* V79 — Barra del menú lateral: aparece solamente al interactuar con el borde
   de desplazamiento o durante un desplazamiento con rueda/trackpad. */
.sidebar .nav-menu{
  box-sizing:content-box!important;
  margin-right:-8px!important;
  padding-right:8px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin!important;
  scrollbar-color:transparent transparent!important;
  overscroll-behavior:contain!important;
}
.sidebar .nav-menu:hover{
  scrollbar-color:transparent transparent!important;
}
.sidebar .nav-menu::-webkit-scrollbar{
  display:block!important;
  width:5px!important;
  height:5px!important;
}
.sidebar .nav-menu::-webkit-scrollbar-track{
  background:transparent!important;
  border:0!important;
}
.sidebar .nav-menu::-webkit-scrollbar-thumb,
.sidebar .nav-menu:hover::-webkit-scrollbar-thumb{
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  background-clip:padding-box!important;
}
.sidebar .nav-menu.scrollbar-reveal{
  scrollbar-color:rgba(150,166,186,.72) transparent!important;
}
.sidebar .nav-menu.scrollbar-reveal::-webkit-scrollbar-thumb,
.sidebar .nav-menu.scrollbar-reveal:hover::-webkit-scrollbar-thumb{
  background:rgba(150,166,186,.72)!important;
  border:1px solid transparent!important;
  background-clip:padding-box!important;
}
.sidebar .nav-menu.scrollbar-reveal::-webkit-scrollbar-thumb:hover{
  background:rgba(183,198,216,.9)!important;
}

/* V79 — El filtro de Panel grupos y parejas conserva la tarjeta alta del
   Dashboard, pero su contenido crece en flujo normal al abrir los acordeones.
   No se recorta el sidebar ni se crea un segundo scroll dentro de la tarjeta. */
#userPanelFilters .dashboard-filter-sidebar-static{
  position:sticky!important;
  top:90px!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:min(809px,calc(100vh - 24px))!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
#userPanelFilters .dashboard-filter-sidebar-static-head{
  position:relative!important;
  flex:0 0 46px!important;
}
#userPanelFilters .dashboard-filter-sidebar-static-body{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
}
#userPanelFilters .dashboard-filter-primary{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:visible!important;
}
#userPanelFilters .dashboard-slicer-accordion,
#userPanelFilters .dashboard-slicer-accordion.is-open{
  position:static!important;
  overflow:visible!important;
}
#userPanelFilters .dashboard-slicer-accordion>.dashboard-slicer-menu{
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  max-height:210px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  margin:0!important;
  box-sizing:border-box!important;
}
#userPanelFilters .dashboard-slicer-accordion>.dashboard-slicer-menu[hidden]{
  display:none!important;
}
#userPanelFilters .dashboard-filter-sidebar-foot{
  position:static!important;
  margin-top:8px!important;
}
@media(max-width:900px){
  #userPanelContentLayout.dashboard-content-layout{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }
  #userPanelFilters .dashboard-filter-sidebar-static{
    position:relative!important;
    top:auto!important;
    height:auto!important;
    min-height:min(809px,calc(100vh - 24px))!important;
    max-height:none!important;
    overflow:visible!important;
  }
  #userPanelFilters .dashboard-filter-sidebar-static-body{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
}
@media(max-width:520px){
  #userPanelFilters .dashboard-filter-sidebar-static{
    min-height:min(809px,calc(100vh - 18px))!important;
  }
}

/* V80 — Filtros del Dashboard y Panel grupos/parejas: expansión vertical real.
   Al abrir un acordeón, sus opciones ocupan el flujo normal, empujan los filtros
   siguientes y aumentan la altura de la tarjeta y de la página. No hay scroll
   vertical interno ni altura máxima en el sidebar o en las listas. */
#dashboardFilters,
#userPanelFilters{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-self:start!important;
}
#dashboardContentLayout .dashboard-filter-column,
#userPanelContentLayout .dashboard-filter-column{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-self:start!important;
}
#dashboardFilters .dashboard-filter-sidebar-static,
#userPanelFilters .dashboard-filter-sidebar-static{
  height:auto!important;
  min-height:min(809px,calc(100vh - 24px))!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
#dashboardFilters .dashboard-filter-sidebar-static-body,
#userPanelFilters .dashboard-filter-sidebar-static-body{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
}
#dashboardFilters .dashboard-filter-primary,
#userPanelFilters .dashboard-filter-primary{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
#dashboardFilters .dashboard-slicer-accordion,
#dashboardFilters .dashboard-slicer-accordion.is-open,
#userPanelFilters .dashboard-slicer-accordion,
#userPanelFilters .dashboard-slicer-accordion.is-open{
  position:static!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
#dashboardFilters .dashboard-slicer-accordion>.dashboard-slicer-menu,
#userPanelFilters .dashboard-slicer-accordion>.dashboard-slicer-menu{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  margin:0!important;
  box-sizing:border-box!important;
}
#dashboardFilters .dashboard-slicer-accordion>.dashboard-slicer-menu[hidden],
#userPanelFilters .dashboard-slicer-accordion>.dashboard-slicer-menu[hidden]{
  display:none!important;
}
#dashboardFilters .dashboard-filter-sidebar-foot,
#userPanelFilters .dashboard-filter-sidebar-foot{
  position:static!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  margin-top:8px!important;
}
@media(max-width:900px){
  #dashboardFilters .dashboard-filter-sidebar-static,
  #userPanelFilters .dashboard-filter-sidebar-static{
    position:relative!important;
    top:auto!important;
    height:auto!important;
    min-height:min(809px,calc(100vh - 24px))!important;
    max-height:none!important;
    overflow:visible!important;
  }
  #dashboardFilters .dashboard-filter-sidebar-static-body,
  #userPanelFilters .dashboard-filter-sidebar-static-body{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
}


/* V81 — Menus multiselección flotantes: se renderizan en body para escapar del
   recorte horizontal de las barras superiores de Resumen, Contraloría y Conteo.
   Su posición se calcula respecto al control y acompaña scroll/resize. */
body > .ig-floating-multi-menu{
  position:fixed!important;
  z-index:100000!important;
  display:block;
  margin:0!important;
  visibility:visible!important;
  pointer-events:auto!important;
  box-sizing:border-box!important;
  width:var(--ig-floating-menu-width)!important;
  min-width:0!important;
  max-width:none!important;
  max-height:calc(100vh - 24px)!important;
  box-shadow:0 16px 38px rgba(18,38,63,.22)!important;
}
body > .ig-floating-multi-menu[hidden]{display:none!important}
body > .ig-floating-multi-menu .filter-multi-actions,
body > .ig-floating-multi-menu .count-multi-actions{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  background:#fff!important;
}
body.theme-dark > .ig-floating-multi-menu .filter-multi-actions,
body.theme-dark > .ig-floating-multi-menu .count-multi-actions{
  background:#19283b!important;
}

/* V85 — Experiencia móvil tipo aplicación nativa. Solo afecta pantallas <= 760px. */
.mobile-app-nav,.mobile-nav-popover,.mobile-filter-backdrop,.mobile-filter-drawer{display:none}
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;background:#edf2f7}
  body{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .app-shell{min-height:100dvh;max-width:100vw;overflow-x:clip}
  .sidebar,.sidebar-toggle{display:none!important}
  .main-content,.sidebar-collapsed .main-content{margin-left:0!important;width:100%;min-width:0;max-width:100vw}
  .topbar{height:76px;min-height:76px;padding:0 16px;position:sticky;top:0;z-index:80;background:rgba(237,242,247,.96);border:0;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .topbar-left{gap:12px;min-width:0;flex:1}
  .mobile-menu{display:grid!important;place-items:center;width:40px;height:40px;flex:0 0 40px;border:0;border-radius:50%;background:var(--navy);color:#fff;font-size:16px;box-shadow:0 3px 9px rgba(15,31,53,.16)}
  #mobileMenu[hidden]{display:none!important}
  .topbar-heading{min-width:0}
  .topbar-heading .eyebrow{font-size:9px;letter-spacing:.1em;color:#b6c3d4}
  .topbar h1{font-size:20px;line-height:1.15;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-actions{flex:0 0 auto;gap:0;margin-left:8px}
  .topbar-actions>#themeToggle,.topbar-actions>#currencyMenuWrap,.topbar-actions>#notificationWrap{display:none!important}
  .profile-wrap{position:relative}
  .profile-wrap>.user-chip{width:42px;height:42px;display:grid;place-items:center}
  .profile-wrap .avatar{width:42px;height:42px;border-radius:13px;background:#8295a8;color:#fff;font-size:16px;font-weight:800;position:relative}
  .profile-wrap .avatar:after{content:"";position:absolute;right:-3px;top:-3px;width:11px;height:11px;border:2px solid #edf2f7;border-radius:50%;background:#79dc54}
  .profile-wrap .user-chip-text,.profile-wrap .user-chevron{display:none!important}
  .profile-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:min(310px,calc(100vw - 28px));padding:10px;border-radius:18px;z-index:180;background:#fff}
  .mobile-profile-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:8px 2px 10px;border-bottom:1px solid #edf1f5;margin-bottom:4px}
  .mobile-profile-tools>#themeToggle,.mobile-profile-tools>#currencyMenuWrap>.locale-chip,.mobile-profile-tools>#notificationWrap>.topbar-notification{min-height:43px;width:100%;display:flex!important;align-items:center;justify-content:center;gap:6px;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#f8fafc!important;color:#273c58!important;padding:0 8px!important}
  .mobile-profile-tools>#themeToggle{font-size:15px}
  .mobile-profile-tools .locale-chip{min-width:0!important}
  .mobile-profile-tools .locale-chip>span:nth-child(2){display:grid;gap:1px}
  .mobile-profile-tools .locale-chip strong{font-size:9px!important}
  .mobile-profile-tools .locale-chip small{font-size:8px!important}
  .mobile-profile-tools .topbar-notification{font-size:15px}
  .mobile-profile-tools .topbar-dropdown{top:calc(100% + 5px);right:0;z-index:220}
  .mobile-profile-tools .notification-dropdown{right:-4px;width:min(310px,calc(100vw - 34px))}
  .mobile-profile-tools .currency-dropdown{right:auto;left:0}
  .profile-dropdown-user{padding:8px 6px 10px}
  .view{width:100%;min-width:0;max-width:100vw;padding:12px 12px 28px;overflow:visible}
  .page-toolbar{gap:8px;margin-bottom:12px;align-items:center}
  .page-toolbar>div{min-width:0}
  .page-toolbar h2{font-size:17px;line-height:1.2}
  .page-toolbar p{font-size:10px;line-height:1.35;margin-top:4px}
  .page-toolbar>.btn{width:36px;height:36px;min-width:36px;padding:0;font-size:0;flex:0 0 36px}
  .page-toolbar>.btn i{font-size:13px}
  .pesco-dashboard-banner{width:100%;min-width:0;max-width:100%;margin-bottom:10px;overflow:hidden;border-radius:14px}
  #dashboardContentLayout.dashboard-content-layout,#userPanelContentLayout.dashboard-content-layout{display:block!important;width:100%;min-width:0;max-width:100%;gap:0!important}
  #dashboardContentLayout .dashboard-filter-column,#userPanelContentLayout .dashboard-filter-column{display:none!important}
  #dashboardContentLayout .dashboard-main-column,#userPanelContentLayout .dashboard-main-column{width:100%;min-width:0;max-width:100%}
  .dashboard-kpi-grid,.userpanel-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:10px}
  .dashboard-kpi{min-width:0;min-height:78px;padding:9px;border-radius:13px}
  .dashboard-kpi-head span{font-size:9px;white-space:normal}
  .dashboard-kpi strong{font-size:23px!important;line-height:1.05}
  .dashboard-chart-grid,.dashboard-chart-grid-3{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;margin-bottom:9px}
  .dashboard-chart-card,.dashboard-top5,.panel.userpanel-hero-card,.userpanel-level-card,.userpanel-status-card{width:100%;min-width:0;max-width:100%;border-radius:14px;padding:11px}
  .dashboard-chart-head h3{font-size:10px}
  .dashboard-chart-head span{font-size:8px;line-height:1.35}
  .dashboard-chart-box{height:210px!important;width:100%;max-width:100%;min-width:0}
  .dashboard-chart-box.tall{height:235px!important}
  .dashboard-top5-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px}
  .userpanel-insight-grid,.userpanel-level-charts,.userpanel-assignment-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  .userpanel-level-grid,.userpanel-level-cards{grid-template-columns:minmax(0,1fr)!important}
  .panel,.card,.dashboard-chart-card,.dashboard-top5{min-width:0;max-width:100%}
  .table-wrap,.data-module-table-scroll{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .data-table{max-width:none}
  .general-filterbar,.count-toolbar,#summaryFilters,#contraloriaFilters{min-width:0;max-width:100%;}
  .count-toolbar,#summaryFilters,#contraloriaFilters{display:none!important}
  .dashboard-filter-column{display:none!important}
  .mobile-filter-backdrop{display:block;position:fixed;inset:0;background:rgba(10,22,39,.42);backdrop-filter:blur(3px);z-index:300}
  .mobile-filter-backdrop[hidden],.mobile-filter-drawer[hidden],.mobile-nav-popover[hidden]{display:none!important}
  .mobile-filter-drawer{display:flex;position:fixed;left:0;top:0;bottom:0;width:min(390px,91vw);max-width:calc(100vw - 34px);z-index:310;background:#f7f9fc;border-radius:0 22px 22px 0;box-shadow:18px 0 45px rgba(9,23,42,.2);flex-direction:column;overflow:hidden;transform:translateX(-105%);transition:transform .24s ease}
  .mobile-filter-drawer.is-open{transform:translateX(0)}
  .mobile-filter-drawer-head{height:68px;min-height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#fff;border-bottom:1px solid #e5ebf2}
  .mobile-filter-drawer-head>div{display:grid;gap:3px}
  .mobile-filter-drawer-head small{font-size:8px;letter-spacing:.1em;color:#8b9aae;font-weight:800}
  .mobile-filter-drawer-head strong{font-size:16px;color:#1b2d46}
  .mobile-filter-drawer-head>button{width:36px;height:36px;border:0;border-radius:50%;background:#edf2f7;color:#263c57;font-size:16px}
  .mobile-filter-drawer-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 12px calc(20px + env(safe-area-inset-bottom));overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .mobile-filter-drawer-content>#dashboardFilters,.mobile-filter-drawer-content>#userPanelFilters{display:block!important;width:100%!important;max-width:100%!important;margin:0!important}
  .mobile-filter-drawer .dashboard-filter-sidebar-static{position:relative!important;top:auto!important;width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;border-radius:17px!important}
  .mobile-filter-drawer .dashboard-filter-sidebar-static-head{height:42px!important;min-height:42px!important}
  .mobile-filter-drawer .dashboard-filter-sidebar-static-body{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:10px!important}
  .mobile-filter-drawer .dashboard-slicer-menu{max-height:none!important;overflow:visible!important}
  .mobile-filter-drawer .dashboard-slicer-option{min-height:36px;font-size:11px}
  .mobile-filter-drawer .dashboard-slicer-option span{max-width:100%;white-space:normal;text-align:left}
  .mobile-filter-drawer #summaryFilters,.mobile-filter-drawer #contraloriaFilters,.mobile-filter-drawer .count-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important;padding:12px!important;overflow:visible!important;position:static!important}
  .mobile-filter-drawer .filter-toolbar-title{width:100%;flex:0 0 auto!important}
  .mobile-filter-drawer .field-inline{width:100%!important;min-width:0!important;max-width:100%!important;flex:0 0 auto!important}
  .mobile-filter-drawer .field-inline>label{font-size:10px}
  .mobile-filter-drawer .filter-multi,.mobile-filter-drawer .count-multi,.mobile-filter-drawer input[type=search]{width:100%!important;max-width:100%!important}
  .mobile-filter-drawer .filter-clear-modern,.mobile-filter-drawer #manualRowBtn{width:100%;min-height:42px}
  .mobile-filter-drawer .mobile-filter-drawer-content{overflow-y:auto}
  .mobile-app-nav{display:flex;align-items:center;justify-content:space-around;gap:0;position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(100vw - 30px);max-width:460px;height:64px;padding:4px 8px;border-radius:28px;background:#0d1d31;box-shadow:0 10px 28px rgba(9,24,42,.22);z-index:200}
  .mobile-nav-item{appearance:none;position:relative;display:flex;flex:1 1 0;min-width:0;height:54px;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:0;border-radius:17px;background:transparent;color:#aebdce;padding:3px 1px}
  .mobile-nav-item>i{font-size:19px;line-height:1}
  .mobile-nav-item>span{font-size:7px;font-weight:700;line-height:1;white-space:nowrap;opacity:.86}
  .mobile-nav-item.active{color:#fff;background:rgba(255,255,255,.08)}
  .mobile-nav-item.active>i{color:#dce9ff}
  .mobile-nav-count{flex:0 0 58px;width:58px;height:58px;margin-top:-25px;border-radius:50%;border:5px solid #edf2f7;background:#b7c3d4;color:#10243c;box-shadow:0 4px 12px rgba(0,0,0,.16)}
  .mobile-nav-count>i{font-size:24px}
  .mobile-nav-count>span{font-size:7px;color:#263c57}
  .mobile-nav-count.active{background:#d6e2f5;color:#10243c}
  .mobile-nav-count.active>i{color:#10243c}
  .mobile-nav-popover{display:block;position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 28px));max-height:min(56vh,470px);overflow:hidden;background:#fff;border:1px solid #e3eaf2;border-radius:19px;box-shadow:0 18px 45px rgba(12,29,50,.2);z-index:250}
  .mobile-admin-popover{left:auto;right:14px;transform:none;width:min(275px,calc(100vw - 28px))}
  .mobile-nav-popover-head{height:48px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f6}
  .mobile-nav-popover-head strong{font-size:12px;color:#1d3452}
  .mobile-nav-popover-head button{width:30px;height:30px;border:0;border-radius:50%;background:#f0f4f8;color:#60738b}
  .mobile-nav-popover-list{padding:7px;overflow-y:auto;max-height:calc(min(56vh,470px) - 48px);display:grid;gap:5px}
  .mobile-nav-popover-list>.nav-subitem,.mobile-nav-popover-list>button{width:100%;min-height:52px;display:flex;align-items:center;gap:11px;padding:9px 11px;border:1px solid #edf1f6;border-radius:12px;background:#f9fbfd;color:#28415f;text-align:left}
  .mobile-nav-popover-list>.nav-subitem>i,.mobile-nav-popover-list>button>i{width:20px;text-align:center;color:#6d86a5}
  .mobile-nav-popover-list span,.mobile-nav-popover-list>button>span{font-size:11px;font-weight:700}
  .mobile-nav-popover-list .nav-count-group span{display:grid;gap:3px}
  .mobile-nav-popover-list .nav-count-group strong{font-size:11px}
  .mobile-nav-popover-list .nav-count-group small{font-size:8px;color:#8999ac}
  .mobile-nav-empty{padding:20px 12px;color:#8594a8;font-size:11px;text-align:center}
  .mobile-filter-open{overflow:hidden!important}
  .mobile-filter-open .mobile-app-nav{pointer-events:none}
  /* Conteo: cada ubicación se convierte en una tarjeta seleccionable y desplegable. */
  .count-toolbar{display:none!important}
  .count-templates-list{width:100%;min-width:0;gap:10px;margin-bottom:12px}
  .count-template-card{width:100%;min-width:0;border:1px solid #dfe7f1;border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(17,42,69,.06)}
  .count-template-card>summary{padding:12px;gap:9px;min-width:0}
  .count-template-icon{width:36px;height:36px;border-radius:11px}
  .count-template-name strong{font-size:12px;white-space:normal}
  .count-template-name em{font-size:8px;line-height:1.3;white-space:normal}
  .count-template-pair-label{display:none}
  .count-template-content{padding:0 9px 10px}
  .count-desktop-table{display:none!important}
  .count-mobile-list{display:grid;gap:8px;width:100%;min-width:0}
  .count-mobile-item{width:100%;min-width:0;background:#fff;border:1px solid #e3eaf2;border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(20,43,69,.04)}
  .count-mobile-item[open]{border-color:#b6cbed;box-shadow:0 5px 15px rgba(36,91,151,.08)}
  .count-mobile-item-summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:8px;padding:11px 10px;cursor:pointer;min-width:0}
  .count-mobile-item-summary::-webkit-details-marker{display:none}
  .count-mobile-position{display:flex;align-items:center;gap:6px;min-width:0;color:#244b7c}
  .count-mobile-position i{font-size:11px;color:#7990ae;flex:0 0 auto}
  .count-mobile-position strong{font-size:12px;font-weight:900;overflow-wrap:anywhere}
  .count-mobile-item-main{min-width:0;display:grid;gap:3px;grid-column:1 / 2}
  .count-mobile-item-main>strong{font-size:10px;color:#213752;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .count-mobile-item-main>small{font-size:9px;color:#71829a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .count-mobile-item-main>em{font-size:8px;color:#95a2b3;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .count-mobile-state{grid-column:2;grid-row:1;align-self:center}
  .count-mobile-state .status{font-size:8px;white-space:nowrap}
  .count-mobile-item-summary>.fa-chevron-down{grid-column:3;grid-row:1;color:#8192a8;font-size:10px;transition:transform .18s}
  .count-mobile-item[open]>.count-mobile-item-summary>.fa-chevron-down{transform:rotate(180deg)}
  .count-mobile-entry{padding:0 11px 12px;border-top:1px solid #edf1f5;display:grid;gap:10px;min-width:0}
  .count-mobile-entry-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px}
  .count-mobile-entry-title .count-pair-slot{font-size:8px}
  .count-mobile-warehouse{font-size:8px;color:#8594a8;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .count-mobile-input-label{display:grid;gap:6px;font-size:9px;font-weight:800;color:#62748c}
  .count-mobile-input-label input{width:100%;height:46px;min-width:0;border:1px solid #cbd8e8;border-radius:12px;background:#fbfdff;padding:0 12px;color:#1e344f;font-size:16px;outline:none}
  .count-mobile-input-label input:focus{border-color:#5084ca;box-shadow:0 0 0 3px rgba(55,119,190,.12)}
  .count-mobile-input-label input:disabled{background:#f0f3f7;color:#9aa8b8}
  .count-mobile-status-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px dashed #e5ebf2;border-bottom:1px dashed #e5ebf2;color:#72839a;font-size:9px}
  .count-mobile-status-line .status{font-size:9px}
  .count-mobile-locked{font-size:8px;color:#9a6c37;display:flex;gap:5px;align-items:center}
  .count-input-wrap{display:block;min-width:0}
  .count-mobile-input-label .count-input-wrap .count-pair-slot{display:none}
  .count-progress-grid{grid-template-columns:minmax(0,1fr)!important}
  .count-progress-card{min-width:0;padding:10px;border-radius:13px}
  /* Tablas administrativas y de consulta no ensanchan la pantalla: scroll solo dentro de su tabla. */
  .view>.panel,.view>article,.view>.content-grid,.view>.users-role-grid{min-width:0;max-width:100%;}
  .content-grid,.users-role-grid{grid-template-columns:minmax(0,1fr)!important}
  canvas{max-width:100%!important}
}
@media(max-width:390px){
  .topbar{padding:0 12px}
  .topbar h1{font-size:18px}
  .mobile-menu{width:37px;height:37px;flex-basis:37px}
  .view{padding-left:9px;padding-right:9px}
  .mobile-app-nav{width:calc(100vw - 20px);padding-left:5px;padding-right:5px}
  .mobile-nav-item>i{font-size:17px}
  .mobile-nav-count{flex-basis:54px;width:54px;height:54px}
  .count-mobile-item-summary{grid-template-columns:minmax(0,1fr) auto 10px;gap:6px;padding:10px 8px}
  .count-mobile-state .status{font-size:7px}
}

.count-mobile-list{display:none}
.count-mobile-item{display:none}

@media(max-width:760px){.count-mobile-list{display:grid!important}.count-mobile-item{display:block!important}.count-desktop-table{display:none!important}}


/* V86: filas compactas en plantillas, Consolidado y Contraloría; se conserva separación visual. */
.count-entry-table th,.count-entry-table td{padding:5px 8px!important;border-bottom:1px solid #e8edf3!important;line-height:1.2}
.count-entry-table .physical-input,.count-entry-table .obs-input{height:29px!important;font-size:10px!important;border-radius:7px!important}
#view-consolidado .data-table th,#view-consolidado .data-table td,#view-contraloria .data-table th,#view-contraloria .data-table td{padding:5px 8px!important;line-height:1.2;border-bottom:1px solid #e8edf3!important}
#view-consolidado .data-table td .status,#view-contraloria .data-table td .status{height:20px;padding:0 7px}
@media(max-width:760px){.count-mobile-list{gap:6px}.count-mobile-item-summary{padding:9px 9px}.count-mobile-entry{gap:8px;padding:0 9px 10px}.count-mobile-input-label input{height:42px}}


/* V89 — Tipo en Contraloría: etiqueta compacta alineada con el contenido de cada fila.
   No se dibuja un guion suelto cuando el tipo todavía no se puede determinar. */
#view-contraloria .data-table td.contra-type-cell{
  vertical-align:middle!important;
  text-align:left!important;
  white-space:nowrap!important;
  min-width:112px;
}
#view-contraloria .contra-type-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:22px!important;
  padding:0 9px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}
#view-contraloria .contra-type-pill.is-square{
  color:#087443!important;
  background:#eaf8f0!important;
  border-color:#cbeed9!important;
}
#view-contraloria .contra-type-pill.is-difference,
#view-contraloria .contra-type-pill.is-final-difference{
  color:#a64b0b!important;
  background:#fff4e8!important;
  border-color:#f6dfc7!important;
}


/* V90 — Ajustes del acceso: separación del botón y crédito personal. */
.login-form>.btn[type="submit"]{margin-top:14px!important;}
.login-powered{margin-top:18px;padding-top:13px;}
.login-powered span{font-size:10px!important;letter-spacing:.01em!important;font-weight:600!important;color:#8491a3!important;text-transform:none!important;}

/* V94 — Acciones de exportación para los módulos de datos. */
.page-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
@media(max-width:640px){
  .page-toolbar-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .page-toolbar-actions>.btn{width:100%;min-width:0;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;font-size:10px;white-space:nowrap}
}


/* V95 — Ajuste de modalidad de conteo por parejas. */
.admin-count-mode-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:0 0 16px;border:1px solid #dfe7f0;background:linear-gradient(135deg,#fff 0%,#f7faff 100%)}
.admin-count-mode-copy{display:flex;align-items:flex-start;gap:13px;min-width:0}
.admin-count-mode-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;background:#eaf1fb;color:#24599a;font-size:17px}
.admin-count-mode-copy h3{margin:0 0 5px;color:#1c2f47;font-size:14px;font-weight:850}
.admin-count-mode-copy p{margin:0 0 8px;color:#718096;font-size:11px;line-height:1.55;max-width:680px}
.admin-count-mode-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:900;letter-spacing:.035em;background:#e8f5ee;color:#197348}
.admin-count-mode-status.is-inactive{background:#fff2df;color:#9b5a06}
.admin-count-mode-toggle{margin:0;min-width:285px;max-width:350px;flex:0 0 330px;background:#fff}
.admin-count-mode-toggle strong{font-size:10px}
.admin-count-mode-toggle small{font-size:8px;line-height:1.4}
@media(max-width:720px){.admin-count-mode-panel{align-items:stretch;flex-direction:column;gap:12px;padding:14px}.admin-count-mode-toggle{min-width:0;max-width:none;flex-basis:auto;width:100%}}


/* V96 — Tipo de cambio PEN/USD administrable. */
.admin-exchange-rate-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:0 0 16px;border:1px solid #dfe7f0;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)}
.admin-exchange-rate-icon{background:#e8f4ee;color:#16845a}
.exchange-rate-help{display:inline-flex;margin-top:4px;color:#1b6d50;font-size:11px;font-weight:800}
.exchange-rate-editor{display:grid;grid-template-columns:auto minmax(120px,150px) auto;align-items:end;gap:9px;flex:0 0 auto}
.exchange-rate-editor>label{grid-column:1/-1;color:#465a73;font-size:10px;font-weight:800}
.exchange-rate-input-wrap{height:39px;display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #d7e1ed;border-radius:10px;background:#fff;color:#53657d}
.exchange-rate-input-wrap span{font-size:12px;font-weight:800}
.exchange-rate-input-wrap input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#172b45;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.exchange-rate-editor .btn{height:39px;white-space:nowrap}
@media(max-width:720px){.admin-exchange-rate-panel{align-items:stretch;flex-direction:column;gap:12px;padding:14px}.exchange-rate-editor{grid-template-columns:minmax(0,1fr);width:100%}.exchange-rate-editor>label{grid-column:auto}.exchange-rate-editor .btn{width:100%}}


/* Panel de grupos y parejas: fecha operativa programada */
#userPanelFilters .userpanel-date-filter{display:flex;flex-direction:column;gap:6px;margin:10px 10px 12px;padding:10px 11px;border:1px solid #e4eaf1;border-radius:12px;background:#f8fafc}
#userPanelFilters .userpanel-date-filter>span{font-size:11px;font-weight:800;color:#43566d}
#userPanelFilters .userpanel-date-filter input{width:100%;min-height:38px;padding:7px 10px;border:1px solid #d7e0eb;border-radius:8px;background:#fff;color:#21364f;font:inherit;font-size:12px}
#userPanelFilters .userpanel-date-filter small{font-size:9px;line-height:1.45;color:#78879a}

/* V100: aviso de alcance automático por almacenes abiertos hoy (sin filtro de fecha). */
.userpanel-active-schedule-note{display:flex;align-items:flex-start;gap:7px;margin:0 11px 9px;padding:8px 9px;border:1px solid #dce8f7;border-radius:9px;background:#f5f8fd;color:#536a86;font-size:8px;line-height:1.45;font-weight:600}.userpanel-active-schedule-note i{flex:0 0 auto;margin-top:1px;color:#3976c8}
body.theme-dark .userpanel-active-schedule-note{background:#1b2c42;border-color:#314963;color:#b9cce3}


/* V100.4 — Reconteo: tabla compacta y argumento técnico editable en su módulo de origen. */
#view-reconteo .reconteo-detail-table{min-width:1780px;}
#view-reconteo .reconteo-detail-table .reconteo-argument-input{min-width:280px;width:100%;min-height:34px;resize:vertical;line-height:1.35;}
#view-reconteo .reconteo-detail-table .reconteo-quantity-cell{min-width:120px;}
#view-contraloria .contraloria-detail-table .argumento-tecnico-readonly{min-width:220px;max-width:360px;white-space:normal;overflow-wrap:anywhere;color:var(--text-muted,#64748b);}


/* V100.5 — Reconteo abierto al rol Usuario y controles de captura con acabado uniforme. */
#reconteoFilters{display:grid;grid-template-columns:112px repeat(6,minmax(0,1fr));align-items:end;gap:11px!important;}
#reconteoFilters .filter-toolbar-title{grid-column:auto;height:36px;min-width:112px;margin:0;}
#reconteoFilters .field-inline{min-width:0!important;flex:initial!important;}
#view-reconteo .reconteo-detail-table{min-width:1860px;}
#view-reconteo .reconteo-detail-table th{white-space:nowrap;}
#view-reconteo .reconteo-detail-table td{vertical-align:middle;}
.ig-entry-field{display:flex;align-items:stretch;gap:0;width:100%;min-width:112px;min-height:36px;overflow:hidden;border:1px solid #d7e2ef;border-radius:10px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 2px 6px rgba(24,48,78,.045);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;}
.ig-entry-field:focus-within{border-color:#7fa5df;box-shadow:0 0 0 3px rgba(55,111,190,.12),0 3px 9px rgba(24,48,78,.06);background:#fff;}
.ig-entry-icon{display:flex;align-items:center;justify-content:center;flex:0 0 31px;color:#7b91ad;background:#f0f5fb;border-right:1px solid #e3ebf5;font-size:10px;}
.ig-entry-field input,.ig-entry-field textarea{display:block;flex:1 1 auto;width:100%;min-width:0;margin:0;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#1d3554!important;font:600 11px/1.4 Inter,Arial,sans-serif!important;padding:8px 10px!important;}
.ig-entry-field input{height:36px!important;font-variant-numeric:tabular-nums;}
.ig-entry-field textarea{min-height:46px;max-height:125px;resize:vertical;line-height:1.45!important;font-weight:500!important;}
.ig-entry-field input::placeholder,.ig-entry-field textarea::placeholder{color:#9aa9bc;font-weight:500;opacity:1;}
.ig-entry-field.is-locked{border-color:#e1e7ef;background:linear-gradient(180deg,#f8fafc 0%,#f2f5f9 100%);box-shadow:none;}
.ig-entry-field.is-locked .ig-entry-icon{color:#a0adbd;background:#edf1f6;border-right-color:#e3e8ef;}
.ig-entry-field.is-locked input:disabled{color:#8d9bad!important;-webkit-text-fill-color:#8d9bad;cursor:not-allowed;}
.ig-entry-field.is-locked textarea:read-only{color:#77879b!important;cursor:default;}
#view-reconteo .reconteo-quantity-cell{min-width:160px;}
#view-reconteo .reconteo-detail-table .reconteo-argument-input{min-width:280px;width:100%;}
#view-reconteo .reconteo-detail-table .ig-entry-field textarea{min-height:48px!important;line-height:1.45!important;}
#view-reconteo .ig-entry-textarea{min-width:270px;}
#view-contraloria .contraloria-detail-table .ig-entry-number{min-width:130px;}
#view-contraloria .contraloria-detail-table .contra-final-input{min-width:0;width:100%;}
@media(max-width:1240px){#reconteoFilters{grid-template-columns:repeat(3,minmax(140px,1fr));}#reconteoFilters .filter-toolbar-title{grid-column:1/-1;height:auto;}}
@media(max-width:700px){#reconteoFilters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;}#reconteoFilters .filter-toolbar-title{grid-column:1/-1;height:auto;}#view-reconteo .ig-entry-textarea{min-width:230px;}}


/* V100.6 — Campos compactos estilo Observación: 180 x 35 px en Contraloría y Reconteo. */
#view-contraloria .contraloria-detail-table .ig-entry-field,
#view-reconteo .reconteo-detail-table .ig-entry-field{
  display:block!important;width:180px!important;min-width:180px!important;max-width:180px!important;
  height:35px!important;min-height:35px!important;max-height:35px!important;margin:0!important;padding:0!important;
  overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#view-contraloria .contraloria-detail-table .ig-entry-icon,
#view-reconteo .reconteo-detail-table .ig-entry-icon{display:none!important;}
#view-contraloria .contraloria-detail-table .ig-entry-field input,
#view-reconteo .reconteo-detail-table .ig-entry-field input,
#view-contraloria .contraloria-detail-table .ig-entry-field textarea,
#view-reconteo .reconteo-detail-table .ig-entry-field textarea{
  display:block!important;box-sizing:border-box!important;width:180px!important;min-width:180px!important;max-width:180px!important;
  height:35px!important;min-height:35px!important;max-height:35px!important;margin:0!important;padding:0 9px!important;
  border:1px solid #d7e0ee!important;border-radius:9px!important;outline:none!important;background:#fff!important;box-shadow:none!important;
  color:#3f526b!important;font:400 11px/1.3 Inter,Arial,sans-serif!important;resize:none!important;
}
#view-contraloria .contraloria-detail-table .ig-entry-field input:focus,
#view-reconteo .reconteo-detail-table .ig-entry-field input:focus,
#view-contraloria .contraloria-detail-table .ig-entry-field textarea:focus,
#view-reconteo .reconteo-detail-table .ig-entry-field textarea:focus{
  border-color:#b9cbe2!important;box-shadow:0 0 0 2px rgba(59,130,246,.07)!important;
}
#view-contraloria .contraloria-detail-table .ig-entry-field input::placeholder,
#view-reconteo .reconteo-detail-table .ig-entry-field input::placeholder,
#view-contraloria .contraloria-detail-table .ig-entry-field textarea::placeholder,
#view-reconteo .reconteo-detail-table .ig-entry-field textarea::placeholder{color:#8796aa!important;opacity:1!important;font-weight:400!important;}
#view-contraloria .contraloria-detail-table .ig-entry-field.is-locked input:disabled,
#view-reconteo .reconteo-detail-table .ig-entry-field.is-locked input:disabled,
#view-reconteo .reconteo-detail-table .ig-entry-field.is-locked input:read-only{
  background:#f8fafc!important;color:#8796aa!important;-webkit-text-fill-color:#8796aa;cursor:not-allowed;
}
#view-reconteo .reconteo-detail-table .reconteo-quantity-cell{min-width:190px!important;}
#view-reconteo .reconteo-detail-table .ig-entry-textarea{min-width:180px!important;}
#view-contraloria .contraloria-detail-table .ig-entry-number{min-width:180px!important;}

/* V101.0 — Panel por grupos y parejas: orden y tarjetas KPI por modo */
.userpanel-kpi-grid.userpanel-kpi-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.userpanel-kpi-grid.userpanel-kpi-six{grid-template-columns:repeat(6,minmax(0,1fr))}
.userpanel-top-grid.single{grid-template-columns:minmax(0,1fr)}
.userpanel-top-grid[hidden]{display:none!important}
.userpanel-level-row .userpanel-level-top>div{min-width:0}
.userpanel-level-row .userpanel-level-top small{display:block;margin-top:3px;font-size:8px;font-weight:700;color:#74849a;line-height:1.35;letter-spacing:.015em}
@media(max-width:1100px){.userpanel-kpi-grid.userpanel-kpi-five,.userpanel-kpi-grid.userpanel-kpi-six{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.userpanel-kpi-grid.userpanel-kpi-five,.userpanel-kpi-grid.userpanel-kpi-six{grid-template-columns:repeat(2,minmax(0,1fr))}.userpanel-top-grid.single{grid-template-columns:minmax(0,1fr)}}

/* V101.3 - Descarga de formato físico independiente por pareja */
.count-template-actions{align-items:flex-start;}
.count-template-pdf-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0;}
.count-template-pdf-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.count-template-no-pdf{font-size:10px;color:#8492a6;padding:7px 0;}
@media(max-width:650px){
 .count-template-pdf-buttons{width:100%;display:grid;grid-template-columns:1fr;}
 .count-template-pdf-btn{width:100%;justify-content:flex-start;}
}

/* V101.6 · Administración de parejas agrupada por grupo de almacenes */
.admin-entity-group-stack{display:grid;gap:14px;min-width:0}
.admin-entity-group-block{min-width:0;overflow:hidden;border:1px solid #dfe7f1;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(23,55,91,.035)}
.admin-entity-group-head{display:flex;align-items:center;gap:11px;padding:13px 15px;background:linear-gradient(110deg,#f1f6fc,#fbfdff);border-bottom:1px solid #e5ebf3}
.admin-entity-group-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:#e5eef9;color:#285b94}
.admin-entity-group-title{min-width:0;flex:1}
.admin-entity-group-title>span{display:inline-flex;padding:3px 7px;border-radius:6px;background:#e5edf8;color:#244f82;font-size:8px;font-weight:900;letter-spacing:.05em}
.admin-entity-group-title h4{margin:4px 0 2px;color:#203752;font-size:12px;font-weight:850;overflow-wrap:anywhere}
.admin-entity-group-title small{font-size:9px;color:#7b899b}
.admin-entity-group-chevron{color:#8293a8;font-size:13px}
.admin-entity-group-content{display:grid;gap:12px;padding:12px}
.admin-entity-subblock{min-width:0;border:1px solid #e8edf4;border-radius:11px;overflow:hidden;background:#fff}
.admin-entity-subhead{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;background:#fafcff;border-bottom:1px solid #edf1f6}
.admin-entity-subhead>div{display:grid;gap:2px;min-width:0}
.admin-entity-subhead strong{font-size:10px;color:#324b68}
.admin-entity-subhead small{font-size:8px;color:#8997a8}
.admin-entity-count{flex:0 0 auto;padding:4px 8px;border-radius:20px;background:#edf2f8;color:#60738c;font-size:8px;font-weight:800}
.admin-entity-count.is-available{background:#eaf6ef;color:#24734a}
.admin-entity-subblock .table-wrap{border:0;border-radius:0;margin:0;overflow-x:auto}
.admin-entity-subblock .data-table{margin:0;min-width:720px}
.admin-entity-subblock .data-table th,.admin-entity-subblock .data-table td{padding:8px 10px}
.admin-entity-subblock .data-table td strong{display:block;margin-top:3px}
.admin-entity-subblock .data-table .admin-context-code{display:block;margin-top:3px}
.admin-entity-actions{white-space:nowrap}
.admin-entity-actions .btn{margin:1px 0}
.admin-entity-empty{padding:13px 14px;color:#8794a5;font-size:9px;background:#fff}
@media(max-width:700px){.admin-entity-group-head{padding:11px}.admin-entity-group-content{padding:8px}.admin-entity-subhead{align-items:flex-start}.admin-entity-subhead small{max-width:250px}}
.admin-entity-group-head-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.admin-entity-group-head-actions .btn{white-space:nowrap}
.admin-available-pair-strip{padding:10px 12px;border-top:1px solid #edf1f6;background:#fcfdff}
.admin-available-pair-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.admin-available-pair-heading strong{font-size:9px;color:#435a76}
.admin-available-pair-heading span{font-size:8px;font-weight:800;color:#28734d;background:#eaf6ef;padding:4px 7px;border-radius:20px}
.admin-available-pair-chips{display:flex;gap:6px;flex-wrap:wrap}
.admin-available-pair-chip{display:inline-flex;gap:6px;align-items:center;padding:5px 8px;border:1px solid #dfe9e2;border-radius:7px;background:#f7fcf8;max-width:100%}
.admin-available-pair-chip b{font-size:8px;color:#315d45}
.admin-available-pair-chip small{font-size:8px;color:#829489;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.admin-entity-group-head{align-items:flex-start;flex-wrap:wrap}.admin-entity-group-head-actions{width:100%;justify-content:flex-end}.admin-entity-group-head-actions .btn{font-size:9px}}

/* V101.8 · Panel grupos y parejas: avance por sede, grupos y pareja/rack */
.userpanel-progress-layout{grid-template-columns:minmax(0,.88fr) minmax(0,1.32fr)!important;align-items:stretch}
.userpanel-progress-left{display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0}
.userpanel-progress-left .userpanel-level-card{min-height:205px}
.userpanel-pair-rack-card{min-height:420px!important}
.userpanel-site-block{display:grid;gap:8px;padding:0 0 9px;margin:0 0 4px;border-bottom:1px solid #edf1f6}
.userpanel-site-block:last-child{border-bottom:0;margin-bottom:0}
.userpanel-site-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.userpanel-site-heading strong{font-size:8px;color:#183b70;text-transform:uppercase;letter-spacing:.035em}
.userpanel-site-heading span{font-size:7px;color:#95a2b3;white-space:nowrap}
.userpanel-site-block .userpanel-level-row{margin-left:7px;padding-left:8px;border-left:2px solid #e6edf7}
.userpanel-pair-rack-list{display:flex;flex-direction:column;gap:12px;max-height:375px;overflow:auto;padding:2px 3px 5px;scrollbar-width:thin}
.userpanel-pair-rack-group{border:1px solid #edf1f6;border-radius:10px;padding:9px;background:#fbfcfe;display:grid;gap:9px}
.userpanel-pair-rack-title{display:grid;gap:3px;min-width:0}
.userpanel-pair-rack-title strong{font-size:8px;line-height:1.35;color:#243c5b}
.userpanel-pair-rack-title small{font-size:7px;color:#8392a6;font-weight:800;letter-spacing:.025em}
.userpanel-pair-rack-row{display:grid;grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);gap:8px;align-items:center;padding:5px 0;border-top:1px solid #e9eef4}
.userpanel-pair-rack-side{display:grid;gap:4px;min-width:0}
.userpanel-pair-rack-head{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.userpanel-pair-rack-head strong{font-size:7px;color:#334a66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.userpanel-pair-rack-head b{font-size:7px;color:#1e4b8c;font-variant-numeric:tabular-nums;flex:0 0 auto}
.userpanel-pair-rack-track{height:8px;border-radius:99px;background:#e8edf4;position:relative;overflow:hidden}
.userpanel-pair-rack-track span{position:absolute;top:0;bottom:0;display:block;background:linear-gradient(90deg,#173d73,#3977d8);border-radius:99px;transition:width .2s ease}
.userpanel-pair-rack-side.pair-a .userpanel-pair-rack-track span{left:0;right:auto}
.userpanel-pair-rack-side.pair-b .userpanel-pair-rack-track span{right:0;left:auto}
.userpanel-pair-rack-side small{font-size:7px;color:#94a1b1;text-align:center}
.userpanel-rack-name{text-align:center;font-size:7px;font-weight:900;color:#1b3f70;white-space:nowrap;line-height:1.3}
.userpanel-eri-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px;align-items:stretch}
.userpanel-eri-charts>.userpanel-level-card{min-height:220px;margin:0}
.userpanel-eri-charts .userpanel-level-list{max-height:270px}
.userpanel-level-track.eri-track span{background:linear-gradient(90deg,#1f966f,#49bd91)!important}
.userpanel-status-visual{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;height:auto!important;align-items:start!important}
.status-chart-group{min-width:0;display:grid;gap:8px;justify-items:center}
.status-chart-title{width:100%;font-size:8px;font-weight:900;color:#5e7088;text-align:center}
.status-chart-body{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0}
.status-donut{width:82px!important;height:82px!important;flex:0 0 82px;background:conic-gradient(#2ca77b var(--done),#e7edf4 var(--done))}
.status-donut:after{inset:9px!important}
.status-donut.status-donut-blue{background:conic-gradient(#3977e8 var(--done),#e7edf4 var(--done))}
.status-donut.status-donut-green{background:conic-gradient(#2ca77b 0 var(--done),#df8a35 var(--done) 100%)}
.status-donut strong{font-size:13px!important}
.status-donut span{font-size:6px!important}
.status-legend{gap:7px!important;min-width:0;flex:1}
.status-legend span{font-size:7px!important;gap:5px!important;white-space:nowrap}
.status-legend b{font-size:8px}
.dot-blue{background:#3977e8}
.dot-green{background:#2ca77b}
.userpanel-top-open{border:0;border-radius:9px;background:#eef4fc;color:#315f9d;width:30px;height:30px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.userpanel-top-open:hover{background:#dfeafb;color:#164780}
.userpanel-top-diff-row{cursor:pointer;transition:background .15s ease}
.userpanel-top-diff-row:hover{background:#f0f6ff}
.userpanel-top-diff-row:focus{outline:2px solid #6f9bdb;outline-offset:-2px}
@media(max-width:1050px){
 .userpanel-progress-layout{grid-template-columns:1fr!important}
 .userpanel-progress-left{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
 .userpanel-pair-rack-card{min-height:300px!important}
 .userpanel-eri-charts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .userpanel-progress-left,.userpanel-eri-charts{grid-template-columns:minmax(0,1fr)!important}
 .userpanel-pair-rack-card{min-height:0!important}
 .userpanel-pair-rack-list{max-height:430px}
 .userpanel-pair-rack-row{grid-template-columns:minmax(0,1fr) 43px minmax(0,1fr);gap:5px}
 .userpanel-status-visual{grid-template-columns:minmax(0,1fr)!important;gap:15px!important}
 .status-chart-body{justify-content:space-evenly}
}

/* V101.9 · Distribución correcta de los dos indicadores circulares */
.userpanel-hero-ring-area{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.userpanel-hero-completion-legend{display:flex;flex-direction:column;gap:9px;min-width:110px}
.userpanel-hero-completion-legend span{display:flex;align-items:center;gap:7px;font-size:8px;color:#617187;white-space:nowrap}
.userpanel-hero-completion-legend b{margin-left:auto;color:#263c56}
.userpanel-status-visual{display:flex!important;align-items:center;justify-content:center;height:auto!important;min-height:150px}
.status-chart-group-eri{width:100%;justify-items:center}
.status-chart-group-eri .status-chart-body{max-width:280px;margin:0 auto;gap:18px}
.status-chart-group-eri .status-donut{width:112px!important;height:112px!important;flex-basis:112px!important}
.status-chart-group-eri .status-donut:after{inset:12px!important}
@media(max-width:700px){
 .userpanel-hero-ring-area{gap:8px}
 .userpanel-hero-completion-legend{min-width:0}
 .userpanel-status-visual{min-height:125px}
 .status-chart-group-eri .status-chart-body{gap:10px}
 .status-chart-group-eri .status-donut{width:98px!important;height:98px!important;flex-basis:98px!important}
}

/* V102.0 - responsable automático de Reconteo */
#view-reconteo .reconteo-assigned-pair{min-width:145px;white-space:normal;}
#view-reconteo .reconteo-assigned-pair strong{display:block;font-size:12px;color:var(--text-primary,#1f2937);}
#view-reconteo .reconteo-assigned-pair small{display:block;margin-top:2px;color:var(--text-muted,#718096);font-size:11px;line-height:1.25;}

/* V102.3 · Vista avanzada de Reconteo por pareja/rack y detalle modal Top Sobrantes/Faltantes */
.userpanel-progress-layout.is-advanced{grid-template-columns:minmax(0,1fr)!important}
.userpanel-progress-layout.is-advanced .userpanel-progress-left{display:none!important}
.userpanel-progress-layout.is-advanced .userpanel-pair-rack-card{min-height:280px!important;width:100%;grid-column:1/-1}
.userpanel-reconteo-pair-group{gap:8px;background:linear-gradient(145deg,#fbfdff,#f5f8fc)}
.userpanel-reconteo-rack-row{display:grid;gap:5px;padding:8px 2px;border-top:1px solid #e8eef5}
.userpanel-reconteo-rack-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.userpanel-reconteo-rack-head strong{font-size:8px;color:#294867;font-weight:850}
.userpanel-reconteo-rack-head b{font-size:8px;color:#237d62;font-variant-numeric:tabular-nums}
.userpanel-reconteo-rack-track{height:9px;overflow:hidden;border-radius:99px;background:#e7edf3;position:relative}
.userpanel-reconteo-rack-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#168b69,#47bd91);transition:width .22s ease}
.userpanel-reconteo-rack-row small{font-size:7px;color:#8795a7}
.userpanel-logistics-detail-modal{max-width:1250px!important;width:min(96vw,1250px)}
.userpanel-logistics-detail-table-wrap{max-height:65vh;overflow:auto;border:1px solid #e4eaf2;border-radius:10px}
.userpanel-logistics-detail-table-wrap .data-table{min-width:1050px}
.userpanel-logistics-detail-table-wrap .data-table td{vertical-align:middle}
@media(max-width:700px){.userpanel-progress-layout.is-advanced .userpanel-pair-rack-card{min-height:0!important}.userpanel-logistics-detail-modal{width:calc(100vw - 20px)}}

/* V102.5 · Acceso al detalle completo de sobrantes y faltantes */
.userpanel-view-all{display:inline-flex;align-items:center;gap:6px;border:1px solid #d8e3f0;background:#f7faff;color:#275486;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:800;white-space:nowrap;cursor:pointer}
.userpanel-view-all b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 5px;border-radius:20px;background:#e5eef9;color:#1c4f86;font-size:9px}
.userpanel-view-all:disabled{opacity:.45;cursor:not-allowed}
.userpanel-top-diff-row[data-logistics-type]{cursor:pointer}
.userpanel-top-diff-row[data-logistics-type]:hover{background:#f2f7fd}
@media(max-width:700px){.userpanel-view-all{padding:5px 7px;font-size:9px}}


/* V102.11 — Ocultar el botón flotante del sidebar mientras cualquier modal está abierto.
   El botón tenía z-index 100000 y quedaba por encima del backdrop de los modales. */
body.modal-open #sidebarToggle,
body.modal-open .sidebar-toggle{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* V102.14: identificación visual del rol Supervisor */
.role.supervisor{background:#e0f2fe;color:#075985}.users-role-dot.supervisor{background:#0e7490}

/* Dashboard: dos gráficos principales por almacén y modal de detalle completo */
.dashboard-chart-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:11px}
.dashboard-chart-box.dashboard-chart-box-large{height:330px;min-height:330px}
.dashboard-top-all-wrap{max-height:min(65vh,680px);overflow:auto}
.dashboard-top-all-wrap .data-table{min-width:640px}
@media(max-width:900px){.dashboard-chart-grid-2{grid-template-columns:1fr}.dashboard-chart-box.dashboard-chart-box-large{height:285px;min-height:285px}}


/* V102.18 Dashboard: gráficos principales en dos columnas; apilar solo en móvil angosto. */
.dashboard-chart-grid.dashboard-chart-grid-2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch;gap:11px!important}
.dashboard-chart-grid.dashboard-chart-grid-2>.dashboard-chart-card{min-width:0;width:100%}
.dashboard-chart-grid.dashboard-chart-grid-2 .dashboard-chart-box-large{width:100%;min-width:0}
@media(max-width:520px){.dashboard-chart-grid.dashboard-chart-grid-2{grid-template-columns:minmax(0,1fr)!important}.dashboard-chart-grid.dashboard-chart-grid-2 .dashboard-chart-box-large{min-height:300px}}

/* Top Diferencias en modo avanzado: valores por pareja y clasificación frente a SAP. */
.userpanel-top-advanced-pair-differences{grid-column:1/-1;min-width:0}
.userpanel-top-advanced-pair-differences .table-wrap{max-width:100%;overflow-x:auto}
.userpanel-top-advanced-pair-differences .data-table{min-width:1180px}
.userpanel-pair-type-list{display:flex;flex-wrap:wrap;gap:4px;min-width:132px}
.userpanel-pair-type-chip{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:700;background:#f1f5f9;color:#475569}
.userpanel-pair-type-chip.sobrante{background:#eef2ff;color:#4338ca}
.userpanel-pair-type-chip.faltante{background:#fff0f0;color:#bd3030}
.userpanel-pair-type-chip.cuadrado{background:#eaf7f0;color:#168052}

/* V102.21 · Consola individual de permisos (vista exclusiva Admin). */
.module-console-admin-badge{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid rgba(18,58,120,.14);border-radius:999px;background:rgba(18,58,120,.06);color:#123a78;font-size:12px;font-weight:800;white-space:nowrap}
.module-console-panel{padding:20px;display:flex;flex-direction:column;gap:18px}
.module-console-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.module-console-intro h3{margin:0 0 6px;font-size:16px;color:var(--text,#1e2d42)}
.module-console-intro h3 i{color:var(--primary,#174987);margin-right:7px}
.module-console-intro p{margin:0;color:var(--muted,#73839a);font-size:12px;line-height:1.55;max-width:780px}
.module-console-form{display:flex;flex-direction:column;gap:8px}
.module-console-form>label{font-size:11px;font-weight:800;color:var(--muted,#718198);text-transform:uppercase;letter-spacing:.05em}
.module-console-input-row{display:flex;align-items:center;gap:10px;min-height:52px;padding:7px 9px 7px 14px;border:1px solid #cbd6e4;border-radius:12px;background:var(--surface,#fff);box-shadow:0 3px 12px rgba(24,51,87,.05)}
.module-console-input-row>span{color:#1d7b59;font:700 12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
.module-console-input-row input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--text,#21344e);font:600 13px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;padding:8px 2px!important}
.module-console-output{max-height:360px;min-height:190px;overflow:auto;border-radius:12px;background:#101b2b;color:#dce8f8;border:1px solid #25364e;box-shadow:inset 0 1px 4px rgba(0,0,0,.18)}
.module-console-output-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#17263a;border-bottom:1px solid #30435d;color:#a8bdd8;font-size:10px;font-weight:800;letter-spacing:.07em}
.module-console-output-head>span i{font-size:8px;color:#39b980;margin-right:7px}
.module-console-output-head .btn{color:#b8cae1}
.module-console-output pre{margin:0;padding:15px 16px;color:#d9e7f7;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;min-height:140px}
.module-console-examples{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.module-console-examples strong{font-size:11px;color:var(--muted,#718198);margin-right:3px}
@media(max-width:680px){.module-console-panel{padding:14px}.module-console-intro{align-items:stretch;flex-direction:column}.module-console-input-row{align-items:stretch;flex-wrap:wrap}.module-console-input-row>span{width:100%}.module-console-input-row input{flex-basis:100%;min-height:36px}.module-console-input-row .btn{width:100%;justify-content:center}.module-console-admin-badge{font-size:11px}}


/* V102.22: asignación manual de Reconteo por sede, almacén, rack y SKU. */
.reconteo-assignment-panel{margin-top:18px}
.admin-reconteo-assignment-panel{margin-top:18px;overflow:hidden}
.reconteo-assignment-guidance{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin:0 0 14px;border:1px solid var(--line,#dbe3ed);border-radius:12px;background:var(--surface-soft,#f7f9fc);color:var(--muted,#64748b);font-size:12px;line-height:1.5}
.reconteo-assignment-guidance i{color:var(--primary,#2563eb);margin-top:2px}
.reconteo-assignment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.reconteo-assignment-kpi{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--line,#dbe3ed);border-radius:12px;background:var(--surface,#fff)}
.reconteo-assignment-kpi strong{font-size:22px;line-height:1.15;color:var(--text,#172033);font-weight:800}
.reconteo-assignment-kpi span{font-size:11px;color:var(--muted,#64748b)}
.reconteo-assignment-blocks{display:flex;flex-direction:column;gap:14px}
.reconteo-assignment-site{border:1px solid var(--line,#dbe3ed);border-radius:15px;overflow:hidden;background:var(--surface,#fff)}
.reconteo-assignment-site-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--surface-soft,#f7f9fc);border-bottom:1px solid var(--line,#dbe3ed)}
.reconteo-assignment-site-head h4{margin:2px 0 0;font-size:15px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.reconteo-assignment-site-head small{font-size:9px;letter-spacing:.08em;color:var(--muted,#64748b);font-weight:800}
.reconteo-assignment-site-head>span:last-child{margin-left:auto;padding:5px 9px;border-radius:20px;background:var(--surface,#fff);font-size:11px;font-weight:700;white-space:nowrap}
.reconteo-assignment-site-content{padding:12px;display:flex;flex-direction:column;gap:12px}
.reconteo-assignment-warehouse{border:1px solid var(--line,#e2e8f0);border-radius:12px;overflow:hidden}
.reconteo-assignment-warehouse-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--surface-soft,#f8fafc);border-bottom:1px solid var(--line,#e2e8f0)}
.reconteo-assignment-warehouse-head>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.reconteo-assignment-warehouse-head strong{font-size:12px;overflow-wrap:anywhere}
.reconteo-assignment-warehouse-head small{width:100%;padding-left:2px;color:var(--muted,#64748b);font-size:10px}
.reconteo-assignment-warehouse-count{margin-left:auto;white-space:nowrap;font-size:11px;font-weight:800;color:var(--primary,#2563eb)}
.reconteo-assignment-rack{padding:10px 12px;border-bottom:1px solid var(--line,#e2e8f0)}
.reconteo-assignment-rack:last-child{border-bottom:0}
.reconteo-assignment-rack>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:2px 0 9px}
.reconteo-assignment-rack>header>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.reconteo-assignment-rack>header strong{font-size:11px;color:var(--text,#172033)}
.reconteo-assignment-rack>header small,.reconteo-assignment-rack>header>span{font-size:10px;color:var(--muted,#64748b)}
.reconteo-assignment-rack .table-wrap{overflow-x:auto}
.reconteo-assignment-rack table{min-width:820px}
.reconteo-assignment-description{min-width:180px;max-width:320px;white-space:normal;overflow-wrap:anywhere;font-size:11px}
.reconteo-assignment-select{min-width:190px;max-width:240px;width:100%;padding:7px 9px;border:1px solid var(--line,#cbd5e1);border-radius:8px;background:var(--surface,#fff);color:var(--text,#172033);font-size:11px}
.reconteo-assignment-status{display:inline-flex;align-items:center;gap:4px;margin-top:5px;font-size:9px;font-weight:700}
.reconteo-assignment-status.is-assigned{color:#15803d}.reconteo-assignment-status.is-pending{color:#b45309}
.reconteo-assignment-locked{display:block;margin-top:4px;color:var(--muted,#64748b);font-size:9px}
.reconteo-assignment-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:35px 15px;text-align:center;color:var(--muted,#64748b)}
.reconteo-assignment-empty i{font-size:28px;color:var(--primary,#2563eb)}
.reconteo-assignment-empty strong{font-size:13px;color:var(--text,#172033)}
.reconteo-assignment-empty span{max-width:520px;font-size:11px;line-height:1.5}
@media(max-width:760px){.reconteo-assignment-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.reconteo-assignment-kpi{padding:9px}.reconteo-assignment-kpi strong{font-size:18px}.reconteo-assignment-site-head{padding:12px}.reconteo-assignment-site-content{padding:8px}.reconteo-assignment-warehouse-head{padding:10px}.reconteo-assignment-rack{padding:8px}.reconteo-assignment-guidance{font-size:11px}}


/* V102.23: selección múltiple de SKU para asignación manual de Reconteo. */
.reconteo-assignment-bulk{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--line,#e2e8f0);background:var(--surface-soft,#f8fafc)}
.reconteo-assignment-bulk-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.reconteo-assignment-bulk-top>strong{font-size:11px;color:var(--primary,#2563eb);font-weight:800}
.reconteo-assignment-select-all{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:var(--text,#334155);cursor:pointer;user-select:none}
.reconteo-assignment-select-all input,.reconteo-assignment-check-cell input{width:16px;height:16px;accent-color:var(--primary,#2563eb);cursor:pointer;flex:0 0 auto}
.reconteo-assignment-bulk-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.reconteo-assignment-bulk-actions .reconteo-assignment-select{min-width:210px}
.reconteo-assignment-check-cell{width:34px;text-align:center}
.reconteo-assignment-rack .rack-select-all{margin-left:auto}
.reconteo-assignment-rack>header{flex-wrap:wrap}
.reconteo-assignment-rack table{min-width:760px}
.reconteo-assignment-rack tbody tr:has(.reconteo-assignment-check-cell input:checked){background:rgba(37,99,235,.045)}
.reconteo-assignment-check-cell input:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:760px){.reconteo-assignment-bulk{align-items:stretch;padding:10px}.reconteo-assignment-bulk-top{width:100%;justify-content:space-between}.reconteo-assignment-bulk-actions{width:100%;margin-left:0}.reconteo-assignment-bulk-actions .reconteo-assignment-select{min-width:0;flex:1}.reconteo-assignment-bulk-actions .btn{white-space:nowrap}.reconteo-assignment-select-all{font-size:10px}}


/* V102.24.4: acción de eliminar fila manual junto a Observación */
.count-observation-row{display:flex;align-items:center;gap:6px;min-width:0}
.count-observation-row .obs-input{flex:1;min-width:0}
.count-delete-manual{flex:0 0 auto;min-width:30px;height:30px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center}
.count-mobile-observation-row{display:flex;align-items:flex-end;gap:8px}
.count-mobile-observation-row .count-mobile-input-label{flex:1;min-width:0}
.count-mobile-observation-row .count-delete-manual{margin-bottom:1px}

/* V102.24.6 - Búsqueda avanzada en Consolidado y Contraloría */
#summaryFilters .advanced-search-field input,#contraloriaFilters .advanced-search-field input{width:100%;min-width:180px;}


/* V102.24.8: búsqueda avanzada alineada como campo independiente en la fila de filtros */
#summaryFilters>.advanced-search-field,
#contraloriaFilters>.advanced-search-field{
  flex:0 0 220px!important;
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;
}
#summaryFilters>.advanced-search-field input,
#contraloriaFilters>.advanced-search-field input{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}


/* V102.24.9: búsqueda avanzada en Reconteo y altura uniforme en los tres módulos */
#summaryFilters>.advanced-search-field,
#contraloriaFilters>.advanced-search-field,
#reconteoFilters>.advanced-search-field{
  flex:1 1 180px!important;
  min-width:180px!important;
  max-width:240px;
}
#summaryFilters>.advanced-search-field input,
#contraloriaFilters>.advanced-search-field input,
#reconteoFilters>.advanced-search-field input{
  box-sizing:border-box!important;
  height:38px!important;
  min-height:38px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0 11px!important;
  border:1px solid var(--border,#dbe3ed)!important;
  border-radius:9px!important;
  background:#fff!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:38px!important;
}
