.weekly-services-wrap{max-width:1540px;padding-bottom:60px}.weekly-main-toolbar{margin-bottom:20px}.weekly-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 34px;margin-bottom:18px;border-radius:24px;background:linear-gradient(135deg,#071f3d 0%,#0c3e73 62%,#1267aa 100%);color:#fff;box-shadow:0 20px 48px rgba(7,40,78,.18)}.weekly-hero:after{content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-90px;top:-130px;box-shadow:0 0 0 45px rgba(255,255,255,.035),0 0 0 90px rgba(255,255,255,.025)}.weekly-hero>div{position:relative;z-index:1}.weekly-hero h2{max-width:800px;margin:12px 0 8px;font-size:clamp(24px,3vw,38px);line-height:1.08;color:#fff}.weekly-hero p{max-width:850px;margin:0;color:rgba(255,255,255,.78);line-height:1.55}.weekly-hero-pill{display:inline-flex;padding:7px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);font-size:11px;font-weight:900;letter-spacing:.12em}.weekly-hero-rule{min-width:150px;text-align:center;padding:18px;border-radius:18px;background:#fff;color:#0b315e;box-shadow:0 10px 30px rgba(0,0,0,.13)}.weekly-hero-rule strong{display:block;font-size:38px;line-height:1}.weekly-hero-rule span{display:block;margin-top:6px;font-size:12px;font-weight:800;color:#718096}.weekly-selector-card{margin-bottom:18px}.weekly-selector-row{display:flex;gap:22px;align-items:flex-end;justify-content:space-between}.weekly-selector-field{flex:1;max-width:620px}.weekly-view-summary{display:flex;gap:10px}.weekly-view-summary>div{min-width:145px;padding:12px 15px;border:1px solid #e3ebf4;border-radius:14px;background:#f8fbff}.weekly-view-summary strong{display:block;font-size:22px;color:#0b315e}.weekly-view-summary span{font-size:11px;color:#718096}.weekly-self-status{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:16px 18px}.weekly-self-status p{margin:3px 0 0;color:#68788d}.weekly-self-status.good{border-color:#bfe7d2;background:#f3fcf7}.weekly-self-status.blocked{border-color:#f1c8c8;background:#fff7f7}.weekly-self-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;font-weight:900;background:#fff;border:1px solid currentColor}.weekly-self-status.good .weekly-self-icon{color:#118557}.weekly-self-status.blocked .weekly-self-icon{color:#c73c43}.week-board{overflow:hidden;border:1px solid #dce7f2;border-radius:24px;background:#fff;box-shadow:0 16px 42px rgba(11,49,94,.07)}.week-board-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e7edf5;background:linear-gradient(180deg,#fff,#f9fbfd)}.week-board-head h2{margin:2px 0 4px;color:#102f55;font-size:24px}.week-board-head p{margin:0;color:#7d8b9c;font-size:12px}.current-week-pill{padding:8px 11px;border-radius:999px;background:#e8f4ff;color:#0865b9;font-size:11px;font-weight:900;letter-spacing:.06em}.week-days-list{padding:16px;display:flex;flex-direction:column;gap:14px}.week-day-row{display:grid;grid-template-columns:125px 1fr;gap:14px;padding:14px;border:1px solid #e4ebf3;border-radius:18px;background:#fbfdff}.week-day-row.past{opacity:.68;background:#f8f9fb}.week-day-side{padding:12px 10px;border-right:1px solid #e3eaf3;display:flex;flex-direction:column;justify-content:center}.week-day-name{font-size:11px;letter-spacing:.1em;font-weight:900;color:#1d6fb1;text-transform:uppercase}.week-day-side strong{margin-top:5px;font-size:18px;color:#102f55}.week-day-side small{margin-top:5px;color:#9aa6b5}.week-shifts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.week-shift-card{min-width:0;display:flex;flex-direction:column;border:1px solid #e2eaf3;border-radius:15px;background:#fff;overflow:hidden}.week-shift-card.open{border-top:3px solid #2990d8}.week-shift-card.near{border-top:3px solid #e6a31d}.week-shift-card.full,.week-shift-card.over{border-top:3px solid #d64248}.week-shift-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px 7px}.week-shift-title>div{display:flex;align-items:center;gap:7px}.shift-dot{width:7px;height:7px;border-radius:50%;background:#2d91da}.near .shift-dot{background:#e5a21d}.full .shift-dot,.over .shift-dot{background:#d64248}.week-shift-title b{font-size:13px;color:#173b62}.week-capacity{padding:4px 7px;border-radius:999px;font-size:10px;font-weight:900;background:#edf7ff;color:#0d6db9}.week-capacity.near{background:#fff6df;color:#a46c00}.week-capacity.full,.week-capacity.over{background:#fff0f1;color:#c72c35}.capacity-track{height:3px;margin:0 11px 9px;background:#edf2f7;border-radius:999px;overflow:hidden}.capacity-track span{display:block;height:100%;background:#2990d8}.near .capacity-track span{background:#e6a31d}.full .capacity-track span,.over .capacity-track span{background:#d64248}.week-people{display:flex;flex-direction:column;gap:6px;padding:0 10px 10px;flex:1}.week-person{position:relative;display:flex;align-items:center;gap:8px;padding:7px 8px;border:1px solid #e8edf3;border-radius:10px;background:#fbfcfe}.week-person.is-me{border-color:#4ca0df;background:#eef8ff;box-shadow:0 0 0 1px rgba(43,145,218,.08)}.week-person.historical{border-style:dashed}.week-person-avatar{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#e9f3fc;color:#1168ad;font-size:11px;font-weight:900}.week-person-info{min-width:0}.week-person-info b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#243b55;font-size:11px}.week-person-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8996a6;font-size:9px}.my-service-tag{margin-left:auto;padding:3px 5px;border-radius:999px;background:#1678c3;color:#fff;font-size:8px;font-weight:900}.week-empty-shift{min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#95a1af;text-align:center}.week-empty-shift span{font-size:20px}.week-empty-shift b{font-size:11px;color:#718096}.week-empty-shift small{font-size:9px}.week-shift-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-top:1px solid #edf1f5;background:#fafcff}.week-shift-footer>span{font-size:9px;color:#8390a0}.week-pick-btn{border:0;border-radius:8px;padding:7px 9px;font-size:9px;font-weight:900;cursor:pointer;background:#0d6fba;color:#fff;transition:transform .15s ease,background .15s ease}.week-pick-btn:hover:not(:disabled){transform:translateY(-1px);background:#095e9e}.week-pick-btn.selected{background:#e8f7ef;color:#147a4d}.week-pick-btn.full,.week-pick-btn.disabled{background:#eef1f5;color:#8b97a6;cursor:not-allowed}.auth-error{margin-bottom:16px}
@media(max-width:1180px){.week-shifts-grid{grid-template-columns:1fr}.week-day-row{grid-template-columns:110px 1fr}.weekly-view-summary{display:none}}
@media(max-width:760px){.weekly-hero{padding:24px;align-items:flex-start;flex-direction:column}.weekly-hero-rule{min-width:120px}.weekly-selector-row{align-items:stretch;flex-direction:column}.week-day-row{display:block}.week-day-side{border-right:0;border-bottom:1px solid #e3eaf3;padding:4px 3px 10px;margin-bottom:12px}.week-days-list{padding:10px}.week-board-head{align-items:flex-start;flex-direction:column}.week-shift-footer{align-items:stretch;flex-direction:column}.week-pick-btn{width:100%;padding:10px}}

/* --- Gestión administrativa y asistencia --- */
.week-person-tools{margin-left:auto;display:flex;align-items:center;gap:6px;min-width:0}.week-attendance-select{min-width:104px;max-width:116px;border:1px solid #d9e2ec;border-radius:8px;padding:5px 24px 5px 7px;font-size:9px;font-weight:900;outline:none;background-color:#f5f7fa;color:#657386}.week-attendance-select.present{background:#e8f7ef;border-color:#b6dfc9;color:#137a4c}.week-attendance-select.absent{background:#fff0f1;border-color:#efc6c9;color:#bd2630}.week-attendance-select.excused{background:#fff7df;border-color:#ead59b;color:#9a6b00}.week-attendance-select.pending{background:#f4f6f8;color:#768395}.attendance-badge{margin-left:auto;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:900}.attendance-badge.present{background:#e8f7ef;color:#137a4c}.attendance-badge.absent{background:#fff0f1;color:#bd2630}.attendance-badge.excused{background:#fff7df;color:#9a6b00}.week-remove-person{flex:0 0 24px;width:24px;height:24px;border:0;border-radius:7px;background:#fff0f1;color:#bf2933;font-weight:900;cursor:pointer}.week-remove-person:hover{background:#ffdfe2}.week-admin-bar{padding:0 10px 9px}.week-admin-actions{display:flex;gap:6px;flex-wrap:wrap}.week-admin-btn{border:0;border-radius:8px;padding:7px 9px;font-size:9px;font-weight:900;cursor:pointer;transition:.15s ease}.week-admin-btn.add{background:#eef7ff;color:#0b6db8}.week-admin-btn.add:hover{background:#dcefff}.week-admin-btn.remove{background:#fff3f3;color:#ba3037}.week-admin-btn.remove:hover{background:#ffe3e5}.week-admin-btn.restore{background:#eef8f2;color:#17784f}.week-shift-card.removed{border:1px dashed #c8d2df;background:#f7f9fb}.week-shift-card.removed .shift-dot{background:#9da9b6}.week-removed-body{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#8b98a8;padding:18px}.week-removed-body>span{font-size:25px}.week-removed-body b{margin-top:4px;color:#5f6f81;font-size:11px}.week-removed-body small{margin-top:4px;font-size:9px;max-width:180px}.week-shift-card.removed .week-shift-footer{justify-content:space-between}

.weekly-metrics{padding:18px 24px 20px;border-bottom:1px solid #e5edf5;background:linear-gradient(180deg,#fbfdff,#f7faff)}.weekly-metrics-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.weekly-metrics-head h3{margin:3px 0 0;color:#13385f;font-size:18px}.metrics-pending{padding:7px 10px;border-radius:999px;background:#fff6df;color:#956700;font-size:10px;font-weight:900}.metrics-table{overflow:hidden;border:1px solid #cfd9e5;border-radius:12px;background:#fff}.metric-row{display:grid;grid-template-columns:1.5fr .55fr 1.6fr .65fr}.metric-row:not(:last-child){border-bottom:1px solid #dbe3ec}.metric-row>div{min-height:42px;display:flex;align-items:center;padding:8px 10px}.metric-name{background:#c8c8c8;color:#17253a;font-size:10px;font-weight:900;border-right:1px solid #9ea7b0}.metric-value{justify-content:flex-end;background:#fff;color:#102f55;font-size:12px;font-weight:900;border-right:1px solid #d2d9e2}.metric-value.rate{font-variant-numeric:tabular-nums}.metric-note{background:#f5f7fa;color:#748194;font-size:9px;border-right:1px solid #d8e0e9}.metric-row>div:last-child{border-right:0}

.weekly-volunteer-modal{z-index:1200}.weekly-volunteer-modal-box{max-width:650px}.weekly-volunteer-choices{margin-top:12px;max-height:58vh;overflow:auto;display:flex;flex-direction:column;gap:7px;padding-right:3px}.weekly-vol-choice{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #e1e9f2;border-radius:12px;background:#fff;padding:9px 10px;cursor:pointer;transition:.15s ease}.weekly-vol-choice:hover{border-color:#77b7e6;background:#f3f9ff;transform:translateY(-1px)}.weekly-vol-choice>span:nth-child(2){min-width:0}.weekly-vol-choice b{display:block;color:#213c5a;font-size:11px}.weekly-vol-choice small{display:block;margin-top:2px;color:#8390a1;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:1180px){.week-person{align-items:flex-start;flex-wrap:wrap}.week-person-tools{width:100%;margin-left:35px}.week-attendance-select{max-width:none;flex:1}.metric-row{grid-template-columns:1.4fr .6fr 1.5fr .75fr}}
@media(max-width:760px){.weekly-metrics{padding:14px 10px}.weekly-metrics-head{align-items:flex-start;flex-direction:column}.metric-row{grid-template-columns:1fr .55fr}.metric-row .metric-name:nth-child(3){border-top:1px solid #dbe3ec}.metric-row .metric-value:nth-child(4){border-top:1px solid #dbe3ec}.week-person-tools{margin-left:0}.week-admin-actions{flex-direction:column}.week-admin-btn{width:100%}}

/* Numeración 1-10 y encargado de turno */
.week-person-number{
  font-variant-numeric:tabular-nums;
  font-weight:900;
  letter-spacing:0;
}
.week-person.shift-leader{
  border-color:rgba(5,101,201,.32);
  background:linear-gradient(135deg,rgba(5,101,201,.08),rgba(255,255,255,.96));
  box-shadow:inset 3px 0 0 #0565c9;
}
.week-person.shift-leader .week-person-info>b{
  color:#073d8c;
}
.week-person.shift-leader .week-person-number{
  background:#073d8c;
  color:#fff;
}


/* --- Ajuste de legibilidad de nombres y mayor ancho de la semana --- */
.weekly-services-wrap{
  width:min(98vw,1880px);
  max-width:1880px;
}
.week-day-row{grid-template-columns:108px minmax(0,1fr)}
.week-shifts-grid{grid-template-columns:repeat(3,minmax(350px,1fr));overflow-x:auto;padding-bottom:3px}
.week-shift-card{min-width:350px}
.week-person{align-items:flex-start}
.week-person-info{flex:1 1 190px;min-width:150px;padding-top:1px}
.week-person-info b{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  line-height:1.28;
  font-size:11px;
}
.week-person-info small{white-space:normal;line-height:1.25;margin-top:2px}
.week-person-tools{flex:0 0 auto}
@media(max-width:1450px){
  .week-shifts-grid{grid-template-columns:repeat(3,minmax(330px,1fr))}
  .week-shift-card{min-width:330px}
  .week-attendance-select{min-width:96px;max-width:102px}
}
@media(max-width:1180px){
  .week-shifts-grid{grid-template-columns:1fr;overflow-x:visible}
  .week-shift-card{min-width:0}
  .week-person-info{min-width:200px}
}


/* --- Confirmación profesional de autoasignación --- */
.self-assign-confirm-modal{z-index:1350;padding:18px}
.self-assign-confirm-box{width:min(760px,96vw);max-width:760px;padding:0;overflow:hidden;border-radius:22px}
.self-confirm-head{position:relative;display:grid;grid-template-columns:48px 1fr 36px;gap:13px;align-items:start;padding:22px 24px 18px;border-bottom:1px solid #e5edf5;background:linear-gradient(135deg,#f7fbff,#fff)}
.self-confirm-head h3{margin:4px 0 5px;color:#12385e;font-size:21px}.self-confirm-head p{margin:0;color:#708197;font-size:11px;line-height:1.5}
.self-confirm-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#0a6fc0,#073d8c);color:#fff;font-size:19px;font-weight:900;box-shadow:0 8px 18px rgba(5,101,201,.2)}
.self-confirm-person{display:flex;align-items:center;gap:12px;margin:18px 24px 12px;padding:13px 15px;border:1px solid #dce8f4;border-radius:14px;background:#f8fbff}
.self-confirm-person-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#e5f2fd}.self-confirm-person div{min-width:0}.self-confirm-person small{display:block;color:#7b8da1;font-size:8px;font-weight:900;letter-spacing:.11em}.self-confirm-person b{display:block;margin-top:2px;color:#153a60;font-size:13px}.self-confirm-person span{display:block;margin-top:2px;color:#75869a;font-size:9px}
.self-confirm-service-grid{display:grid;grid-template-columns:1.4fr .7fr 1.25fr 1fr;gap:8px;padding:0 24px 14px}.self-confirm-service-grid>div{min-width:0;padding:11px 12px;border:1px solid #e1e9f2;border-radius:12px;background:#fff}.self-confirm-service-grid small{display:block;color:#8190a1;font-size:8px;font-weight:900;letter-spacing:.07em}.self-confirm-service-grid b{display:block;margin-top:5px;color:#183c61;font-size:10px;line-height:1.35}
.self-confirm-notices{display:flex;flex-direction:column;gap:7px;padding:0 24px 14px}.self-confirm-notice{display:flex;align-items:flex-start;gap:9px;padding:9px 11px;border:1px solid #dce9f5;border-radius:11px;background:#f7fbff}.self-confirm-notice>span{flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#e5f2fd;color:#0a67ad;font-size:10px;font-weight:900}.self-confirm-notice p{margin:1px 0;color:#5f7186;font-size:9.5px;line-height:1.45}.self-confirm-notice p b{color:#214562}.self-confirm-notice.important{border-color:#efd7a1;background:#fffaf0}.self-confirm-notice.important>span{background:#fff0c7;color:#986900}
.self-confirm-check{display:flex!important;align-items:flex-start;gap:11px;margin:0 24px 15px;padding:13px 14px;border:1px solid #cbd9e7;border-radius:13px;background:#fff;cursor:pointer;transition:.15s ease}.self-confirm-check:hover{border-color:#73aede;background:#f9fcff}.self-confirm-check input{flex:0 0 auto;width:18px;height:18px;margin-top:1px;accent-color:#0565c9}.self-confirm-check span{min-width:0}.self-confirm-check b{display:block;color:#1c3c5d;font-size:10.5px}.self-confirm-check small{display:block;margin-top:4px;color:#74869a;font-size:9px;line-height:1.45}
.self-confirm-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 24px;border-top:1px solid #e8eef5;background:#f9fbfd}.self-confirm-actions .btn{min-width:145px}.self-confirm-actions .btn.primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
.self-confirm-footnote{margin:0!important;padding:0 24px 16px;text-align:right;color:#95a2b0!important;font-size:8px!important;background:#f9fbfd}.self-assign-confirm-box .auth-error{margin:0 24px 12px}
html[data-theme="dark"] .self-confirm-head{background:linear-gradient(135deg,#0c1d31,#10243b)!important;border-color:#293e55!important}html[data-theme="dark"] .self-confirm-head h3{color:#edf5ff!important}html[data-theme="dark"] .self-confirm-head p{color:#9fb2c7!important}
html[data-theme="dark"] .self-confirm-person,html[data-theme="dark"] .self-confirm-service-grid>div,html[data-theme="dark"] .self-confirm-check{background:#0d1e31!important;border-color:#2b425a!important}html[data-theme="dark"] .self-confirm-person b,html[data-theme="dark"] .self-confirm-service-grid b,html[data-theme="dark"] .self-confirm-check b{color:#e7f1fc!important}
html[data-theme="dark"] .self-confirm-notice{background:#0d2138!important;border-color:#29445f!important}html[data-theme="dark"] .self-confirm-notice p{color:#b7c7d9!important}html[data-theme="dark"] .self-confirm-notice p b{color:#e3eef9!important}html[data-theme="dark"] .self-confirm-notice.important{background:#2c260f!important;border-color:#5e5125!important}
html[data-theme="dark"] .self-confirm-actions,html[data-theme="dark"] .self-confirm-footnote{background:#09192a!important;border-color:#273a50!important}
@media(max-width:760px){.self-assign-confirm-modal{padding:8px}.self-confirm-head{grid-template-columns:42px 1fr 32px;padding:18px 16px 14px}.self-confirm-service-grid{grid-template-columns:1fr 1fr;padding:0 16px 12px}.self-confirm-person{margin:14px 16px 10px}.self-confirm-notices{padding:0 16px 12px}.self-confirm-check{margin:0 16px 12px}.self-confirm-actions{padding:12px 16px;flex-direction:column-reverse}.self-confirm-actions .btn{width:100%}.self-confirm-footnote{padding:0 16px 13px;text-align:center}.self-assign-confirm-box .auth-error{margin:0 16px 10px}}

/* --- Encargado de turno seleccionable por Coordinación --- */
.shift-leader-control{display:block;margin:0 0 8px;padding:9px 10px;border:1px solid #d9e6f2;border-radius:11px;background:linear-gradient(135deg,#f7fbff,#ffffff)}
.shift-leader-control>span{display:block;margin-bottom:6px;color:#0d5f9f;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.shift-leader-control select{width:100%;box-sizing:border-box;border:1px solid #cfddea;border-radius:9px;background:#fff;color:#173b62;padding:7px 30px 7px 9px;font-size:9px;font-weight:800;outline:none;cursor:pointer}
.shift-leader-control select:focus{border-color:#5da8df;box-shadow:0 0 0 3px rgba(41,144,216,.12)}
.shift-leader-control small{display:block;margin-top:5px;color:#8292a5;font-size:8px;line-height:1.35}
.shift-leader-control.empty{background:#fafbfd;border-style:dashed}.shift-leader-control.empty>span{margin-bottom:3px}.shift-leader-control.empty small{margin:0}
html[data-theme="dark"] .shift-leader-control{background:linear-gradient(135deg,#0c1f34,#10263e)!important;border-color:#2c465f!important}
html[data-theme="dark"] .shift-leader-control>span{color:#78bff1!important}
html[data-theme="dark"] .shift-leader-control select{background:#0a192a!important;border-color:#314a62!important;color:#e8f2fd!important}
html[data-theme="dark"] .shift-leader-control small{color:#9db0c3!important}
@media(max-width:760px){.shift-leader-control select{font-size:10px;padding:9px 30px 9px 10px}}


/* Identificación visual de voluntarios nuevos */
.volunteer-new-tag{display:inline-flex;align-items:center;vertical-align:middle;margin-left:6px;padding:2px 7px;border-radius:999px;border:1px solid rgba(88,166,255,.42);background:rgba(40,128,255,.15);color:#8ec5ff;font-size:.58rem;font-weight:900;letter-spacing:.08em;line-height:1.35;white-space:nowrap}
.week-person.shift-leader .volunteer-new-tag{border-color:rgba(255,189,74,.45);background:rgba(255,174,31,.12);color:#ffd78b}

/* =========================================================
   SEMANA DE SERVICIO · LAYOUT SIN RECORTES (2026-08-16)
   El tablero vive dentro del shell lateral: nunca debe volver
   a medir 98vw ni imponer anchos mínimos por turno.
   ========================================================= */
.staff-module-main .weekly-services-wrap{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.weekly-board-host,.week-board,.week-days-list,.week-day-row,.week-shifts-grid{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.week-day-row{grid-template-columns:96px minmax(0,1fr)!important;gap:10px!important;padding:12px!important}
.week-day-side{padding:10px 8px!important}
.week-shifts-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  overflow:visible!important;
  padding-bottom:0!important;
}
.week-shift-card{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.week-shift-title{padding:10px 10px 7px!important}.week-shift-title b{font-size:12px!important}.week-capacity{font-size:9px!important}
.week-people{padding:0 8px 8px!important;gap:7px!important;min-width:0!important}
.week-person{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  align-items:start!important;
  gap:6px 8px!important;
  min-width:0!important;
  padding:8px!important;
}
.week-person-avatar{grid-column:1;grid-row:1;align-self:start!important}
.week-person-info{grid-column:2;grid-row:1;min-width:0!important;flex:none!important;padding-top:0!important}
.week-person-info b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;line-height:1.25!important;font-size:10.5px!important}
.week-person-info small,.replacement-line{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;line-height:1.3!important}
.week-person-tools{
  grid-column:1/-1!important;
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
.week-person-tools .week-attendance-select{flex:1 1 105px!important;min-width:0!important;max-width:none!important;width:auto!important;height:32px!important}
.week-person-tools .weekly-replace-person{flex:0 1 auto!important;min-height:30px!important;padding:5px 7px!important;white-space:nowrap!important}
.week-person-tools .week-remove-person{flex:0 0 30px!important;width:30px!important;height:30px!important}
.my-service-tag,.attendance-badge{margin-left:0!important}
.week-admin-bar{padding:0 8px 8px!important;min-width:0!important}
.week-admin-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;min-width:0!important}
.week-admin-btn{width:100%!important;min-width:0!important;white-space:normal!important;line-height:1.25!important;padding:7px 6px!important}
.shift-leader-control{min-width:0!important}.shift-leader-control select{min-width:0!important;width:100%!important}
.week-shift-footer{padding:8px!important;flex-wrap:wrap!important}.week-shift-footer>span{min-width:0!important}.week-pick-btn{max-width:100%!important;white-space:normal!important}

/* Mantiene los tres turnos visibles en escritorio; en pantallas realmente
   estrechas se apilan, en vez de crear un carrusel horizontal invisible. */
@media(max-width:920px){
  .week-day-row{grid-template-columns:1fr!important}
  .week-day-side{border-right:0!important;border-bottom:1px solid #263d54!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important}
  .week-day-side strong,.week-day-side small{margin-top:0!important}
  .week-shifts-grid{grid-template-columns:1fr!important}
}

/* =========================================================
   CONFIRMACIÓN MODERNA PARA RETIRAR VOLUNTARIO / TURNO
   ========================================================= */
.weekly-remove-confirm-modal{z-index:10070!important;padding:18px!important}
.weekly-remove-confirm-box{
  width:min(650px,calc(100vw - 36px))!important;
  max-height:calc(100vh - 110px)!important;
  overflow:auto!important;
  padding:0!important;
  border-radius:20px!important;
  background:linear-gradient(155deg,#0d2137,#081827)!important;
  border:1px solid #314a63!important;
  box-shadow:0 32px 100px rgba(0,0,0,.56)!important;
}
.weekly-remove-confirm-head{display:grid;grid-template-columns:46px minmax(0,1fr) 36px;gap:14px;align-items:start;padding:22px 24px 18px;border-bottom:1px solid #203a54;background:linear-gradient(180deg,rgba(120,35,50,.14),rgba(8,24,39,0))}
.weekly-remove-confirm-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#c43c4c,#8b2230);color:#fff;font-size:1.55rem;font-weight:900;box-shadow:0 10px 25px rgba(196,60,76,.2)}
.weekly-remove-confirm-head h3{margin:3px 0 5px!important;color:#fff!important;font-size:1.2rem!important}.weekly-remove-confirm-head p{margin:0!important;color:#94abc1!important;font-size:.76rem!important;line-height:1.5!important}
.weekly-remove-confirm-body{padding:20px 24px 14px}
.weekly-remove-subject{display:flex;align-items:center;gap:12px;padding:14px 15px;border:1px solid #2b4864;border-radius:14px;background:#091c2f}
.weekly-remove-subject-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:#122e49;color:#9ec9f2;flex:0 0 39px}.weekly-remove-subject div{min-width:0}.weekly-remove-subject small,.weekly-remove-service small{display:block;color:#7190ae;font-size:.57rem;font-weight:900;letter-spacing:.09em}.weekly-remove-subject b{display:block;margin-top:4px;color:#f6f9fd;font-size:.94rem;overflow-wrap:anywhere}.weekly-remove-subject span{display:block;margin-top:4px;color:#89a3bc;font-size:.68rem}
.weekly-remove-service{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.weekly-remove-service>div{padding:12px 13px;border:1px solid #28445e;border-radius:12px;background:#0a1b2c}.weekly-remove-service b{display:block;margin-top:5px;color:#eaf3fd;font-size:.8rem}
.weekly-remove-warning{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:13px 14px;border:1px solid #6f3940;border-radius:13px;background:rgba(119,38,49,.2);color:#d6b2b7;font-size:.72rem;line-height:1.55}.weekly-remove-warning>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#a63140;color:#fff;font-weight:900;flex:0 0 25px}.weekly-remove-warning p{margin:0}.weekly-remove-warning b{color:#fff0f1}
.weekly-remove-confirm-box .auth-error{margin:14px 0 0!important}
.weekly-remove-confirm-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 24px 22px;border-top:1px solid #1f3851}.weekly-remove-confirm-actions .btn{min-width:145px}.weekly-remove-confirm-actions .btn.danger{background:linear-gradient(135deg,#b73545,#8e2735)!important;color:#fff!important;border:1px solid #d35a68!important}.weekly-remove-confirm-actions .btn.danger:hover{filter:brightness(1.08)}
@media(max-width:620px){.weekly-remove-confirm-head{grid-template-columns:42px minmax(0,1fr) 34px;padding:18px}.weekly-remove-confirm-body{padding:16px 18px 12px}.weekly-remove-service{grid-template-columns:1fr}.weekly-remove-confirm-actions{padding:14px 18px 18px;flex-direction:column-reverse}.weekly-remove-confirm-actions .btn{width:100%}}


/* 2026-08-16 · Contexto explícito al retirar un reemplazante */
.weekly-remove-replacement-context{margin:12px 0 2px;padding:12px;border:1px solid #285072;border-radius:14px;background:linear-gradient(145deg,#0b2034,#0d2942)}
.weekly-remove-relation-label{color:#71b6ff;font-size:.62rem;font-weight:950;letter-spacing:.12em;margin-bottom:9px}
.weekly-remove-relation-grid{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:8px;align-items:stretch}
.weekly-remove-relation-person{min-width:0;padding:10px 11px;border:1px solid #294761;border-radius:11px;background:#0a1c2e}
.weekly-remove-relation-person small{display:block;color:#7892aa;font-size:.56rem;font-weight:900;letter-spacing:.09em;margin-bottom:4px}
.weekly-remove-relation-person b{display:block;color:#f5f9ff;font-size:.76rem;line-height:1.25;overflow-wrap:anywhere}
.weekly-remove-relation-person span{display:block;color:#8ca5bc;font-size:.62rem;margin-top:4px;overflow-wrap:anywhere}
.weekly-remove-relation-person.replacement{border-color:#226b9c;background:linear-gradient(145deg,#0b2740,#0a2035)}
.weekly-remove-relation-person.official{border-color:#604d2d;background:linear-gradient(145deg,#252015,#131d28)}
.weekly-remove-relation-arrow{display:grid;place-items:center;color:#73b9ff;font-size:1.25rem;font-weight:900}
@media(max-width:620px){.weekly-remove-relation-grid{grid-template-columns:1fr}.weekly-remove-relation-arrow{transform:rotate(90deg);height:22px}}

/* Bitácora semanal: integrada al diseño y usable en móvil. */
.weekly-audit{margin:0 0 16px;padding:18px;min-width:0}
.weekly-audit [hidden]{display:none!important}
.weekly-audit-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.weekly-audit-head h3{margin:5px 0;font-size:1.1rem}.weekly-audit-head p,.weekly-audit-foot{font-size:.78rem;opacity:.78;margin:6px 0}
.weekly-audit-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:16px 0 10px}.weekly-audit-filters label{display:grid;gap:5px;font-size:.75rem;flex:1;min-width:130px}.weekly-audit-filters select{width:100%;min-width:0}
.weekly-audit-scroll{overflow:auto;max-height:540px;border:1px solid rgba(125,145,166,.25);border-radius:10px;margin:10px 0}
.weekly-audit-table{width:100%;border-collapse:collapse;min-width:850px;text-align:left;font-size:.78rem}.weekly-audit-table th,.weekly-audit-table td{padding:10px 12px;border-bottom:1px solid rgba(125,145,166,.2);vertical-align:top}.weekly-audit-table th{font-size:.72rem;white-space:nowrap}.weekly-audit-table td small{display:block;opacity:.75;margin-top:3px}.weekly-audit-kind{font-weight:700}.weekly-audit-kind[data-kind="AGREGADO"]{color:#289c68}.weekly-audit-kind[data-kind="ELIMINADO"]{color:#d65353}.weekly-audit #weeklyAuditMessage{font-size:.8rem;opacity:.85}.weekly-audit-foot{margin-top:14px}
