:root{--blue:#143f72;--blue2:#0c315c;--bg:#f4f6f8;--card:#fff;--text:#172230;--muted:#657180;--border:#dde3ea;--green:#15803d;--red:#b42318;--gold:#b8872f}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Arial,Helvetica,sans-serif;color:var(--text)}header{background:linear-gradient(90deg,var(--blue2),var(--blue));color:#fff;box-shadow:0 2px 8px #0002}.wrap{max-width:1450px;margin:auto;padding:12px 18px;display:flex;align-items:center;gap:22px}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;font-weight:bold;min-width:230px}.brand img{height:48px;width:auto;max-width:105px;object-fit:contain}.brand small{font-size:10px;letter-spacing:.4px}nav{display:flex;gap:13px;flex:1;flex-wrap:wrap}nav a,.who a{color:#fff;text-decoration:none;font-size:14px}.who{display:flex;align-items:center;gap:7px;white-space:nowrap}.who small{background:#ffffff22;padding:4px 7px;border-radius:999px}.who a{margin-left:5px;text-decoration:underline}main{max-width:1300px;margin:28px auto;padding:0 16px;min-height:75vh}footer{text-align:center;color:var(--muted);padding:25px}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:22px;margin-bottom:18px;box-shadow:0 2px 9px #0000000c;overflow:auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:17px}.wide{grid-column:span 2}.narrow{max-width:820px;margin:auto}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}.stat{background:white;border:1px solid var(--border);border-radius:13px;padding:18px}.stat b{display:block;font-size:28px;color:var(--blue)}.stat span{color:var(--muted);font-size:13px}.heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}label{display:block;font-weight:bold;margin:12px 0 5px}input,select,textarea{width:100%;border:1px solid #cbd3dd;border-radius:8px;padding:10px;background:white}textarea{min-height:90px}button,.btn{border:0;background:var(--blue);color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:bold;cursor:pointer;display:inline-block}.light{background:#e9eef4;color:#172230}.ok{background:var(--green)}.danger{background:var(--red)}.actions,.menu{display:flex;gap:8px;flex-wrap:wrap}.inline{display:inline}.flash{background:#eaf2ff;border-left:4px solid var(--blue);padding:12px 14px;border-radius:8px;margin-bottom:14px}.notice{display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--border);padding:10px 0}.clock{font-size:36px;font-weight:bold;margin:12px 0}.badge{display:inline-block;background:#edf1f5;border-radius:999px;padding:4px 8px;font-size:12px}.muted,small{color:var(--muted)}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top;font-size:14px}th{background:#f8fafc}.login{max-width:430px;margin:60px auto;text-align:center}.login form{text-align:left}.loginlogo{max-width:170px;max-height:90px}.signature{margin-top:24px;color:var(--muted);font-size:13px}.thread{border:1px solid var(--border);border-radius:10px;padding:13px;margin:10px 0}.reply{background:#f0f6ff;border-radius:8px;padding:10px}.warn{margin-top:15px;background:#fff6df;border:1px solid #f2d18b;padding:12px;border-radius:8px}.checkbox{display:flex;align-items:end;padding-bottom:10px}.checkbox input{width:auto;margin-right:7px}@media(max-width:900px){.wrap{align-items:flex-start;flex-direction:column}.who{width:100%;flex-wrap:wrap}.wide{grid-column:span 1}.formgrid{grid-template-columns:1fr}.heading{align-items:flex-start;flex-direction:column}nav{gap:9px}.brand{min-width:0}}
.yearcal{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.month{padding:14px}.month h3{text-align:center;margin-top:0}.month table th,.month table td{text-align:center;padding:5px}.month td:nth-child(6),.month td:nth-child(7){background:#f5f5f5}.month td.holiday{font-weight:700;background:#fff0f0}.month td.holiday span{display:block;font-size:8px}.who small{display:block}
.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.filters select,.filters input{width:auto;min-width:180px}.status{display:inline-block;padding:5px 9px;border-radius:999px;font-weight:700;font-size:12px}.status-pendiente{background:#fff1c7;color:#805b00}.status-en-tramite{background:#dbeafe;color:#174ea6}.status-aprobada{background:#dcfce7;color:#166534}.status-rechazada{background:#fee2e2;color:#991b1b}.status-propuesta-rrhh{background:#f3e8ff;color:#6b21a8}.legend{display:flex;gap:8px;margin-bottom:10px}.legend .fest{background:#fee2e2}.legend .vac{background:#dcfce7}.legend .perm{background:#dbeafe}.month td.has-event{cursor:pointer}.month td.vacation{background:#dcfce7;font-weight:700}.month td.permission{background:#dbeafe;font-weight:700}.month td.holiday.vacation{background:linear-gradient(135deg,#fee2e2 50%,#dcfce7 50%)}
/* V6 */
.flash{font-size:18px;font-weight:700;padding:18px 20px;border-left-width:6px;box-shadow:0 3px 12px #0001}
button:disabled{background:#c9cfd6!important;color:#707984!important;cursor:not-allowed;opacity:1}
.last-punch{background:#f4f7fb;border-radius:8px;padding:9px 12px;color:var(--muted)}
.periodo-lote{font-size:18px;background:#eaf2ff;border:1px solid #bdd3ef;border-radius:10px;padding:12px;margin:10px 0 14px}
nav a{padding:8px 2px;border-bottom:3px solid transparent}nav a:hover{border-bottom-color:#f59e0b}.brand img{height:54px;max-width:125px}
@media(max-width:600px){.filters select,.filters input{width:100%;min-width:100%}.actions form,.actions button{width:100%}}
.status-revision-solicitada{background:#ffedd5;color:#9a3412}
.modal-overlay{position:fixed;inset:0;background:#0b1f3a99;z-index:1000;align-items:center;justify-content:center;padding:20px}.modal-card{width:min(560px,100%);background:#fff;border-radius:16px;box-shadow:0 18px 60px #0004;padding:0 22px 22px;overflow:hidden}.modal-head{margin:0 -22px 18px;padding:16px 22px;background:linear-gradient(90deg,var(--blue2),var(--blue));color:#fff;display:flex;align-items:center;justify-content:space-between}.modal-head h3{margin:0}.modal-x{background:transparent;color:#fff;font-size:26px;padding:0 6px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.review-box{background:#fff7ed;border:1px solid #fdba74;border-left:5px solid #f97316;border-radius:10px;padding:12px 14px;margin:14px 0}.review-box p{margin:7px 0}

.cal-event{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border-radius:10px;margin:10px 0;border-left:5px solid}.cal-event span{color:var(--muted)}.cal-fest{background:#fff1f2;border-color:#dc2626}.cal-vac{background:#ecfdf3;border-color:#16a34a}.cal-perm{background:#eff6ff;border-color:#2563eb}

/* V7.2 ajustes finales */
main{max-width:1450px}
.geo-check{display:flex!important;align-items:center;gap:8px;margin:8px 0!important;font-weight:600}
.geo-check input[type=checkbox]{width:auto!important;min-width:16px!important;margin:0!important;flex:0 0 auto}
.festivo-add{display:grid;grid-template-columns:180px minmax(280px,1fr) minmax(360px,1.3fr) auto;gap:18px;align-items:end}
.festivo-centros{border:1px solid var(--border);border-radius:10px;padding:8px 12px;max-height:210px;overflow:auto;background:#fafbfd}
.festivo-centros.compact{max-height:155px;min-width:320px;font-size:12px}
.festivos-table th:nth-child(1){width:14%}.festivos-table th:nth-child(2){width:31%}.festivos-table th:nth-child(3){width:39%}.festivos-table th:nth-child(4){width:16%}
.festivos-table td:nth-child(2) input{min-width:300px}.festivo-actions{display:flex;gap:8px;align-items:center;white-space:nowrap}.table-scroll{overflow-x:auto}
.admin-grid{grid-template-columns:380px minmax(0,1fr)}
.admin-grid .wide{grid-column:auto}.admin-grid table{font-size:13px}.admin-grid th,.admin-grid td{padding:8px 7px}
@media(max-width:1050px){.festivo-add{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}}
