/* Protected annual reset and bulk schedule management. */

/* Gestión masiva: action-first, preview-before-commit; typography consistent with FarmaTurnos. */
.bulk-page{display:grid;gap:14px;min-width:0;padding-bottom:24px;color:var(--ink)}
.bulk-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap}
.bulk-header h1{font-size:26px;letter-spacing:-.03em;margin:3px 0 8px}
.bulk-header p:not(.eyebrow){font-size:13px;line-height:1.5;color:var(--ink-3);max-width:76ch}
.bulk-section{padding:18px 20px;display:grid;gap:13px;min-width:0;background:var(--surface)}
.bulk-section-header{display:flex;align-items:flex-start;gap:12px}
.bulk-section-header>div{flex:1;min-width:0}
.bulk-section-header h2{font-size:16px;line-height:1.3;margin-bottom:4px}
.bulk-section-header p{font-size:12px;color:var(--ink-3);line-height:1.45}
.bulk-step{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:var(--surface-inset);border:1px solid var(--line);color:var(--brand);font-weight:760;font-size:13px}
.bulk-operation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.bulk-operation{min-width:0;min-height:80px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);padding:12px 14px;text-align:left;cursor:pointer}
.bulk-operation b{font-size:14px;line-height:1.3}
.bulk-operation small{font-size:12px;color:var(--ink-3);line-height:1.3}
.bulk-operation.selected{border:2px solid var(--brand);background:color-mix(in srgb,var(--brand) 7%,var(--surface));padding:11px 13px}
.bulk-operation:hover{border-color:var(--brand)}
.bulk-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bulk-field{display:grid;gap:6px;align-content:start;min-width:0}
.bulk-field>span{font-size:12px;font-weight:690;color:var(--ink-2)}
.bulk-field>small{font-size:11px;line-height:1.4;color:var(--ink-3)}
.bulk-field select,.bulk-field input{min-width:0;width:100%;height:39px;border:1px solid var(--line-strong);border-radius:7px;background:var(--surface);color:var(--ink);padding:6px 10px;font:inherit;font-size:13px;box-sizing:border-box}
.bulk-field input:focus-visible,.bulk-field select:focus-visible,.bulk-operation:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.bulk-employees-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.bulk-employees-title>label{display:flex;gap:6px;align-items:center;font-size:12px;cursor:pointer;color:var(--ink-2)}
.bulk-employees{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:7px;background:var(--surface-inset);padding:10px;border-radius:8px}
.bulk-employee{display:flex;align-items:center;min-width:0;gap:7px;font-size:12px;cursor:pointer}
.bulk-employee span:nth-of-type(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bulk-employee-dot{width:7px;height:12px;border-radius:4px;flex-shrink:0}
.bulk-employee small{font-size:10px;color:var(--ink-3);margin-left:auto}
.bulk-night{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px dashed var(--line-strong);border-radius:8px;cursor:pointer}
.bulk-night input{margin-top:2px;flex:0 0 16px}
.bulk-night span{display:grid;gap:2px}
.bulk-night b{font-size:12px}
.bulk-night small{font-size:11px;color:var(--ink-3);line-height:1.35}
.bulk-selection-summary{font-size:12px;color:var(--ink-3);background:var(--surface-inset);padding:7px 10px;border-radius:6px}
.bulk-preview-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bulk-status{font-size:12px;color:var(--ink-2)}
.bulk-preview{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.bulk-preview>p,.bulk-info{font-size:12px;color:var(--ink-3);line-height:1.5}
.bulk-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.bulk-stats>div{display:grid;gap:3px;padding:11px 12px;background:var(--surface-inset);border-radius:9px}
.bulk-stats small{font-size:11px;color:var(--ink-3)}
.bulk-stats b{font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums}
.bulk-stats .bulk-stat-alert b{color:var(--danger)}
.bulk-explainer{display:grid;gap:5px;font-size:12px;color:var(--ink-2);line-height:1.45}
.bulk-tags{display:flex;flex-wrap:wrap;gap:6px}
.bulk-tags>span{background:var(--surface-inset);border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:11px}
.bulk-tags b{font-variant-numeric:tabular-nums}
.bulk-warning{border-left:3px solid #c76f2f;padding:11px 13px;border-radius:5px;background:color-mix(in srgb,#efb05a 12%,var(--surface));font-size:12px;line-height:1.5}
.bulk-warning ul{margin:7px 0 0 15px}
.bulk-sample{font-size:12px;border-top:1px solid var(--line);padding-top:8px}
.bulk-sample>summary{cursor:pointer;color:var(--brand);font-weight:700;min-height:30px}
.bulk-table-scroll{overflow:auto;max-height:250px;max-width:100%}
.bulk-sample table{width:100%;border-collapse:collapse;font-size:12px}
.bulk-sample td,.bulk-sample th{padding:7px 9px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.bulk-confirm{display:grid;gap:12px;padding:12px 13px;border:1px solid var(--line-strong);border-radius:9px}
.bulk-confirm>p{font-size:12px;color:var(--ink-3)}
.bulk-ack{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:700}
.bulk-phrase{display:grid;gap:7px;font-size:12px}
.bulk-phrase input{font:inherit;max-width:340px;width:100%;height:40px;border-radius:7px;padding:8px 10px;border:1px solid var(--line-strong);color:var(--ink);background:var(--surface)}
.bulk-confirm-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.bulk-danger{background:#ae342c!important;color:#fff!important;border-color:#96261e!important}
.bulk-confirm-actions button:disabled{opacity:.42;cursor:not-allowed}
.bulk-history-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.bulk-history-row>div:first-child{display:grid;gap:3px}
.bulk-history-row b{font-size:12px}
.bulk-history-row small{font-size:11px;color:var(--ink-3)}
.bulk-history-actions{display:flex;gap:7px;flex-wrap:wrap}
#bulkAnnualMount .yr-panel{margin:0}
@media(max-width:850px){.bulk-operation-grid{grid-template-columns:1fr}.bulk-operation{min-height:62px}.bulk-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .bulk-header h1{font-size:22px}
 .bulk-page{gap:10px}
 .bulk-section{padding:12px}
 .bulk-filter-grid{grid-template-columns:minmax(0,1fr)}
 .bulk-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bulk-preview-actions button,.bulk-confirm-actions button{width:100%}
 .bulk-employee small{display:none}
 .bulk-employees{max-height:215px;overflow-y:auto;overscroll-behavior:contain}
 .bulk-history-row{align-items:flex-start;flex-direction:column}
 .bulk-history-actions{width:100%}
}

.nl-whole-range{display:flex;gap:12px;align-items:flex-start;margin:12px 0 4px;padding:13px 14px;border:1px solid color-mix(in srgb,var(--brand,#168160) 45%,transparent);border-radius:10px;background:color-mix(in srgb,var(--brand,#168160) 5%,transparent);cursor:pointer}
.nl-whole-range input{margin-top:3px;flex:none;accent-color:var(--brand,#087b59);width:17px;height:17px}
.nl-whole-range span{display:flex;flex-direction:column;gap:4px;min-width:0}
.nl-whole-range b{font-size:.85rem;line-height:1.35}
.nl-whole-range small{font-size:.77rem;line-height:1.5;opacity:.85}
.nl-whole-range-note{padding:13px;border-radius:9px;border:1px solid color-mix(in srgb,#a97a29 45%,transparent);background:color-mix(in srgb,#d9aa40 10%,transparent);font-size:.8rem;line-height:1.5;margin:13px 0}
.yr-panel{padding:19px 22px!important;margin:14px 0 22px;border:1px solid color-mix(in srgb,currentColor 14%,transparent)!important}
.yr-panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.yr-panel-head h2{font-size:1.08rem;margin:4px 0 7px}
.yr-panel-head p:last-child{font-size:.83rem;opacity:.75;line-height:1.45;max-width:610px;margin:0}
.yr-reset-trigger{white-space:nowrap}
.yr-status{font-size:.82rem;line-height:1.45;min-height:0;margin:10px 0 0;white-space:normal}
.yr-status:empty{display:none}
.yr-preview{margin-top:14px;border:1px solid color-mix(in srgb,currentColor 15%,transparent);border-radius:11px;padding:17px;background:color-mix(in srgb,currentColor 1.5%,transparent)}
.yr-alert-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.94rem}
.yr-badge-blocked,.yr-badge-ready{border-radius:999px;padding:4px 9px;font-size:.72rem;font-weight:700;border:1px solid currentColor}
.yr-badge-blocked{color:#c64235}.yr-badge-ready{color:#9a6413}
.yr-kpi-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.yr-kpi-row>span{padding:11px;background:color-mix(in srgb,currentColor 5%,transparent);border-radius:8px;display:flex;flex-direction:column;gap:3px}
.yr-kpi-row b{font-size:1.25rem;font-variant-numeric:tabular-nums}
.yr-kpi-row small{opacity:.72;font-size:.72rem;line-height:1.35}
.yr-preview>p{font-size:.82rem;line-height:1.5;margin:12px 0}
.yr-phrase{display:flex;flex-direction:column;gap:7px;margin:16px 0 12px;font-size:.81rem}
.yr-phrase input{font:inherit;font-weight:650;min-height:42px;border:1px solid color-mix(in srgb,currentColor 35%,transparent);border-radius:8px;padding:9px 12px;max-width:300px;background:var(--surface,transparent);color:inherit}
.yr-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.yr-danger-button{background:#aa3128!important;color:#fff!important;border:1px solid #96271f!important}
.yr-danger-button:disabled{opacity:.4!important;cursor:not-allowed}
.yr-error{color:#cb493b;font-weight:600}.yr-paused{font-weight:600}
.yr-backups{margin-top:14px;border-top:1px solid color-mix(in srgb,currentColor 13%,transparent);padding-top:12px}
.yr-backups>summary{cursor:pointer;font-size:.82rem;font-weight:650}
.yr-backup-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;font-size:.8rem}
.yr-backup-row span{display:flex;flex-direction:column;gap:4px}.yr-backup-row small{opacity:.75}
@media(max-width:650px){.yr-panel{padding:14px!important}.yr-panel-head{flex-direction:column;align-items:stretch}.yr-reset-trigger{width:100%}.yr-kpi-row{grid-template-columns:1fr 1fr}.yr-kpi-row>span:last-child{grid-column:span 2}.yr-actions{flex-direction:column}.yr-actions>.button{width:100%}.yr-backup-row{align-items:flex-start;flex-direction:column}.yr-backup-row>.button{width:100%}}