/* Reporte de valor: the sheet is always light (it is the document the clinic receives and prints),
   the controls and the internal box follow the dashboard theme. */
.rv-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.rv-bar select{flex:1;min-width:160px;height:38px;background:var(--bg-card);color:var(--text);border:1px solid var(--border-hover);border-radius:8px;padding:0 10px;font:inherit;font-size:13px}
.rv-bar .btn{width:auto}
.rv-sheet{background:#fff;color:#141414;border:1px solid #d9d6d0;border-radius:6px;padding:22px;font-family:'Inter',-apple-system,sans-serif}
.rv-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:2px solid #141414;padding-bottom:8px;margin-bottom:14px;font-size:12px}
.rv-head b{font-size:14px}
.rv-big{font-size:21px;line-height:1.2;letter-spacing:-.01em;font-weight:700;margin:0 0 14px}
.rv-big em{font-style:normal;color:#c8371e}
.rv-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));border-top:1px solid #e2dfda}
.rv-kpi{padding:10px 10px 10px 0;border-bottom:1px solid #e2dfda}
.rv-kpi .v{font-size:24px;font-weight:700;letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}
.rv-kpi .l{font-size:12px;color:#5c5852;line-height:1.3}
.rv-kpi.hot .v{color:#c8371e}
.rv-hours{margin-top:16px}
.rv-hours-t{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;margin-bottom:6px}
.rv-hours-t span{color:#5c5852}
.rv-sw{display:inline-block;width:9px;height:9px;background:#c8371e;margin-right:5px;vertical-align:middle}
.rv-bars{display:flex;align-items:flex-end;gap:2px;height:76px;border-bottom:1px solid #d9d6d0}
.rv-bars i{flex:1;background:#141414;opacity:.85;display:block;min-height:1px}
.rv-bars i.off{background:#c8371e;opacity:1}
.rv-ax{display:flex;justify-content:space-between;font-size:11px;color:#5c5852;margin-top:3px}
.rv-trend{width:100%;border-collapse:collapse;margin-top:16px;font-size:12.5px}
.rv-trend th{font-weight:500;color:#5c5852;background:none;text-transform:none;letter-spacing:0;font-size:12px;border-bottom:2px solid #141414;padding:5px 4px;text-align:right;white-space:nowrap}
.rv-trend td{background:none;color:#141414;border-bottom:1px solid #e2dfda;padding:6px 4px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.rv-trend th:first-child,.rv-trend td:first-child{text-align:left;white-space:normal}
.rv-foot{font-size:11px;color:#5c5852;border-top:1px solid #e2dfda;margin:14px 0 0;padding-top:8px;line-height:1.45}
.rv-internal{margin-top:14px;background:var(--bg-card);border:1px dashed var(--border-hover);border-radius:8px;padding:12px 14px;font-size:12px;color:var(--text-2)}
.rv-int-title{font-weight:700;color:var(--text);margin-bottom:6px}
.rv-internal ul{margin:0 0 6px;padding-left:18px}
.rv-internal li{margin-bottom:3px}
.rv-sup summary{cursor:pointer;color:var(--accent);margin-top:6px}
.rv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:10px 0}
.rv-field span{display:block;margin-bottom:4px}
.rv-field input{width:100%;height:34px;background:var(--bg);color:var(--text);border:1px solid var(--border-hover);border-radius:6px;padding:0 8px;font:inherit}
.rv-sup .btn{width:auto;margin-right:8px}
@media print{
    @page{size:A4;margin:14mm}
    body.printing-report > :not(#rvPrint){display:none !important}
    body.printing-report{background:#fff !important}
    #rvPrint .rv-sheet{border:0;padding:0}
    #rvPrint .rv-bars i,#rvPrint .rv-sw{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
