/* RedSalva · Ventas por mes, día y hora */
.vmh-page{padding:24px 26px!important;background:#fff}
.vmh-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.vmh-heading h2{font-size:25px;font-weight:600;color:#17365d;margin:0 0 4px}
.vmh-heading p{font-size:13px;color:#718096;margin:0}
.vmh-view-tag{display:flex;align-items:center;gap:8px;background:#eaf7f6;color:#168b91;padding:10px 14px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}
.vmh-view-tag svg{width:17px;height:17px}
.vmh-filter-card,.vmh-card{background:#fff;border:1px solid #dce6f2;border-radius:13px;box-shadow:0 3px 12px rgba(25,55,90,.055)}
.vmh-filter-card{padding:14px 16px;margin-bottom:14px}
.vmh-filter-grid{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(360px,1.8fr) minmax(155px,.9fr) auto;gap:12px;align-items:end}
.vmh-field label{display:block;font-size:12px;font-weight:600;color:#17365d;margin:0 0 7px}
.vmh-select{height:39px;width:100%;border:1px solid #d4e0ef;border-radius:8px;padding:0 11px;background:#fff;color:#24415f;font:inherit;font-size:12px;outline:none}
.vmh-select:focus{border-color:#4bb9b5;box-shadow:0 0 0 3px rgba(75,185,181,.12)}
.vmh-horizon-field{min-width:0}
.vmh-horizons{display:flex;flex-wrap:wrap;gap:5px}
.vmh-horizons button{height:31px;padding:0 10px;border:1px solid #d4e0ef;border-radius:8px;background:#fff;color:#34516d;font:500 10px 'Poppins',sans-serif;white-space:nowrap;cursor:pointer}
.vmh-horizons button:hover{border-color:#4bb9b5;background:#f1fbfa}
.vmh-horizons button.active{background:#4bb9b5;border-color:#4bb9b5;color:#fff}
.vmh-filter-actions{display:flex;gap:7px}
.vmh-btn{height:39px;border-radius:8px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:600 11px 'Poppins',sans-serif;cursor:pointer;white-space:nowrap}
.vmh-btn svg{width:15px;height:15px}
.vmh-btn-primary{background:#4bb9b5;color:#fff;border:1px solid #4bb9b5}
.vmh-btn-primary:hover{background:#329e9c}
.vmh-btn-outline{background:#fff;color:#267f87;border:1px solid #4bb9b5}
.vmh-btn-outline:hover{background:#effafa}
.vmh-filter-note{display:flex;align-items:center;gap:7px;margin-top:11px;padding:8px 10px;background:#eef6ff;border-radius:7px;color:#496d96;font-size:11px;width:max-content;max-width:100%}
.vmh-filter-note svg{width:15px;height:15px;flex-shrink:0;color:#3489d8}
.vmh-message{padding:11px 14px;margin-bottom:14px;border-radius:8px;background:#fff1f0;color:#a53b35;border:1px solid #ffd7d3;font-size:12px}
.vmh-loading{display:flex;align-items:center;gap:9px;padding:10px 0;color:#64748b;font-size:12px}
.vmh-spinner{width:17px;height:17px;border:2px solid #d8e7ed;border-top-color:#36aaa7;border-radius:50%;animation:vmh-spin .7s linear infinite}
@keyframes vmh-spin{to{transform:rotate(360deg)}}
.vmh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.vmh-kpi{padding:13px 15px;min-width:0}
.vmh-kpi-top{display:flex;align-items:center;justify-content:space-between;color:#62748b;font-size:11px;font-weight:600}
.vmh-kpi-top svg{width:19px;height:19px;color:#36aaa7}
.vmh-kpi strong{display:block;color:#17365d;font-size:23px;font-weight:600;letter-spacing:-.5px;margin:7px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vmh-kpi small{font-size:10px;color:#8794a6}
.vmh-chart-grid{display:grid;gap:12px;margin-bottom:12px}
.vmh-chart-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.vmh-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;margin-bottom:20px;align-items:stretch}
.vmh-panel{padding:13px 14px;min-width:0}
.vmh-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}
.vmh-panel-head h3{font-size:14px;font-weight:600;color:#17365d;margin:0 0 3px}
.vmh-panel-head p{font-size:10px;color:#8794a6;margin:0}
.vmh-chart-box{height:245px;position:relative}
.vmh-heatmap-wrap{overflow-x:auto;padding-bottom:4px}
.vmh-heatmap{display:grid;grid-template-columns:64px repeat(14,minmax(19px,1fr));gap:4px;min-width:390px}
.vmh-heat-label{font-size:9px;color:#6c7b90;display:flex;align-items:center;justify-content:center;min-height:21px}
.vmh-heat-label.day{justify-content:flex-start;font-weight:600;color:#3e5876}
.vmh-heat-cell{height:23px;border-radius:4px;background:#f1f5f9;cursor:default}
.vmh-heat-cell:hover{outline:2px solid #17365d;z-index:2}
.vmh-heat-legend{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:11px;font-size:9px;color:#8794a6}
.vmh-heat-legend i{width:18px;height:8px;border-radius:2px;background:#e6f5f3}
.vmh-heat-legend i:nth-of-type(2){background:#a9ded8}.vmh-heat-legend i:nth-of-type(3){background:#59bdb3}.vmh-heat-legend i:nth-of-type(4){background:#087f86}
.vmh-detail-panel{min-width:0}
.vmh-table-tools{display:flex;align-items:center;gap:8px}
.vmh-unit{font-size:10px;color:#278b91;background:#eaf7f6;border-radius:20px;padding:5px 9px;white-space:nowrap}
.vmh-export{height:31px;padding:0 9px}
.vmh-table-wrap{overflow:auto;max-height:420px}
.vmh-table{border-collapse:collapse;width:100%;font-size:10px;color:#294663}
.vmh-table th{position:sticky;top:0;background:#f5f8fc;color:#53677f;font-size:9px;font-weight:600;text-align:left;z-index:1;white-space:nowrap}
.vmh-table td,.vmh-table th{padding:8px 8px;border-bottom:1px solid #e8eef5}
.vmh-table td.num,.vmh-table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.vmh-table tbody tr:hover{background:#f7fbfc}
.vmh-table tfoot th{background:#eaf7f6;color:#17365d;border-top:2px solid #4bb9b5}
.vmh-participation{display:flex;align-items:center;gap:8px;min-width:115px}
.vmh-progress{height:6px;background:#eaf0f6;border-radius:10px;overflow:hidden;flex:1;min-width:35px}
.vmh-progress i{height:100%;display:block;background:linear-gradient(90deg,#8b0a50,#d64b91);border-radius:10px}
.vmh-participation small{width:32px;text-align:right;color:#718096;font-size:9px}
.vmh-empty{text-align:center!important;color:#8794a6;padding:24px!important}
@media(max-width:1350px){.vmh-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vmh-horizon-field{grid-column:span 2}.vmh-chart-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}.vmh-chart-grid-three article:last-child{grid-column:span 2}}
@media(max-width:1000px){.vmh-chart-grid-three,.vmh-bottom-grid{grid-template-columns:1fr}.vmh-chart-grid-three article:last-child{grid-column:auto}.vmh-chart-box{height:260px}}
@media(max-width:600px){.vmh-page{padding:20px 14px!important}.vmh-heading{flex-direction:column}.vmh-heading h2{font-size:21px}.vmh-filter-grid{grid-template-columns:1fr}.vmh-horizon-field{grid-column:auto}.vmh-filter-actions{width:100%}.vmh-filter-actions .vmh-btn{flex:1}.vmh-kpis{grid-template-columns:1fr 1fr;gap:8px}.vmh-kpi{padding:11px}.vmh-kpi strong{font-size:18px}.vmh-panel{padding:12px}.vmh-chart-box{height:235px}.vmh-filter-note{align-items:flex-start}.vmh-table-wrap{max-height:360px}}

/* Exportación general ubicada junto a Consultar */
.vmh-export-top {
    min-width: 126px;
    height: 40px;
}


/* Reportes complementarios: comparativo horario mensual y diagnóstico */
.vmh-advanced-panel{margin:0 0 14px;padding:15px 16px}
.vmh-advanced-head{align-items:flex-start;flex-wrap:wrap}
.vmh-month-legend{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:62%}
.vmh-month-chip,.vmh-month-all{height:27px;padding:0 9px;border:1px solid #dce6f2;border-radius:18px;background:#fff;color:#52677f;font:500 10px 'Poppins',sans-serif;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,opacity .15s}
.vmh-month-chip i{width:8px;height:8px;border-radius:50%;background:var(--month-color);display:inline-block;flex:0 0 8px}
.vmh-month-chip.is-active{background:#f4f8fb;border-color:var(--month-color);color:#294663}
.vmh-month-chip.is-muted{background:#f8fafc;color:#9aa6b5;border-color:#e8edf3;opacity:.72}
.vmh-month-chip.is-muted i{opacity:.35}
.vmh-month-chip:hover,.vmh-month-all:hover{border-color:#4bb9b5;background:#effafa}
.vmh-month-all{color:#267f87;border-color:#b9dddd;font-weight:600}
.vmh-no-months{font-size:10px;color:#8794a6}
.vmh-compare-chart{height:310px;position:relative}
.vmh-audit-wrap{overflow:auto;max-height:390px}
.vmh-audit-table{min-width:720px}
.vmh-audit-table tbody tr{cursor:pointer;transition:background .12s}
.vmh-audit-table tbody tr:hover{background:#f3faf9}
.vmh-audit-table tbody tr.is-selected{background:#e7f6f4;box-shadow:inset 3px 0 #36aaa7}
.vmh-audit-note{margin:10px 0 0;color:#8794a6;font-size:10px;line-height:1.45}
@media(max-width:900px){.vmh-month-legend{max-width:100%;justify-content:flex-start}.vmh-compare-chart{height:280px}}
@media(max-width:600px){.vmh-advanced-panel{padding:12px}.vmh-compare-chart{height:250px}.vmh-month-legend{gap:5px}.vmh-month-chip,.vmh-month-all{font-size:9px;padding:0 7px}}
