/* ERYANI V40 · selección central y desglose claro por persona. */
#empleados.v40-ready #v37Metrics{display:none!important}
#empleados .v40-person-control{display:flex;flex-direction:column;gap:5px;min-width:195px;max-width:260px;flex:0 1 240px;color:#655331;font-weight:850;font-size:12px}
#empleados .v40-person-control select{width:100%;background:#fffdf7!important;color:#24354a!important;border:1px solid #dbbf7c!important;border-radius:12px;padding:11px 32px 11px 13px;min-height:48px;font-weight:850;font-family:inherit;box-shadow:0 4px 10px #bb8d2412}
#empleados .v38-toolbar-main{justify-content:flex-start!important;gap:15px!important}
#empleados .v38-range{margin-left:auto}
#empleados .v40-dashboard{margin:15px 0 19px}
#empleados .v40-loading{padding:16px;color:#887242;border:1px solid #eadbb8;border-radius:13px;background:#fffcf4}
#empleados .v40-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:11px}
#empleados .v40-kpi{padding:17px;background:#fffefa;border:1px solid #e6d7b5;border-radius:17px;box-shadow:0 5px 18px #9a72340a;min-width:0}
#empleados .v40-kpi small,#empleados .v40-kpi strong,#empleados .v40-kpi span{display:block}
#empleados .v40-kpi small{color:#667684;font-weight:850;font-size:12px}
#empleados .v40-kpi strong{margin:6px 0 8px;color:#9f7113;font-size:clamp(21px,2.1vw,29px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#empleados .v40-kpi span{color:#73818d;font-size:11px}
#empleados .v40-detail-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:15px}
#empleados .v40-detail-header h3{color:#243951;margin:0;font-size:19px}
#empleados .v40-detail-header p{font-size:12px;color:#687684;margin:4px 0 11px}
#empleados .v40-detail-header>span{color:#9e762d;font-size:12px;font-weight:850}
#empleados .v40-person-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px;margin:12px 0}
#empleados .v40-person-cards article{background:#fff9ed;border:1px solid #ebd8b2;border-radius:13px;padding:13px}
#empleados .v40-person-cards small,#empleados .v40-person-cards strong,#empleados .v40-person-cards span{display:block}
#empleados .v40-person-cards small{font-weight:900;color:#526071;font-size:12px}
#empleados .v40-person-cards strong{font-size:21px;color:#916212;margin:6px 0}
#empleados .v40-person-cards span{font-size:11px;color:#74818a}
#empleados .v40-payroll-hint,#empleados .v40-note{font-size:12px;color:#677a87;line-height:1.55;margin:12px 0}
#empleados .v40-warning{padding:11px 14px;background:#fff2e7;border:1px solid #e7bfa8;border-radius:10px;color:#944c23;font-weight:750;font-size:12px}
#empleados .v40-table-scroll{width:100%;overflow-x:auto;border:1px solid #ebdbb8;background:#fffefa;border-radius:14px;max-height:380px}
#empleados .v40-table{border-collapse:collapse;min-width:680px;width:100%;font-size:12px;font-variant-numeric:tabular-nums}
#empleados .v40-table th{background:#fff5db;color:#78601f;font-size:11px;text-align:left;font-weight:900;position:sticky;top:0;white-space:nowrap}
#empleados .v40-table td,#empleados .v40-table th{padding:11px 13px;border-bottom:1px solid #f1e9d5;white-space:nowrap}
#empleados .v40-table tr:last-child td{border-bottom:0}
#empleados .v40-table tbody tr:hover{background:#fff9ec}
#empleados .v40-weekly-distribution{padding:14px 0 7px}
#empleados .v40-weekly-distribution h4{color:#22354d;margin:5px 0;font-size:16px}
#empleados .v40-weekly-distribution>p{font-size:12px;color:#607586;line-height:1.5;margin:4px 0 13px}
#empleados .v40-week-stats{display:flex;gap:10px;flex-wrap:wrap;margin:9px 0}
#empleados .v40-week-stats span{padding:9px 13px;border:1px solid #e6d6b5;border-radius:12px;background:#fff;color:#607184;font-size:12px}
#empleados .v40-week-stats b{color:#96701f;font-weight:900;margin-left:5px}
#empleados .v40-auto-pill{color:#a67b2f;font-size:11px;font-weight:850;background:#fff4da;border:1px solid #f0dab1;padding:7px 9px;border-radius:9px}
#empleados.v40-filtered .v37-columns,#empleados.v40-filtered .v37-days{display:none!important}
#empleados.v40-filtered:not(.v40-filter-josue) #v39SalaryPanel{display:none!important}
@media(max-width:1120px){#empleados .v40-person-control{flex:1 1 220px;max-width:100%}#empleados .v38-range{margin-left:0}}
@media(max-width:680px){#empleados .v40-person-control{flex:1 1 100%;max-width:none}#empleados .v38-range{width:100%}#empleados .v40-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#empleados .v40-person-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){#empleados .v40-kpis,#empleados .v40-person-cards{grid-template-columns:1fr}}
