.modal.bulk-schedule-modal {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
}
.bulk-schedule-modal [hidden] { display: none !important; }
.bulk-schedule-modal .modal-body { max-height: calc(100dvh - 220px); padding-bottom: 18px; }
.bulk-schedule-modal .modal-actions { border-top: 1px solid var(--line); }
.bulk-schedule-modal .button:disabled,
.bulk-schedule-modal .icon-button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.bulk-schedule-intro { padding: 14px 16px; margin-bottom: 20px; border-radius: 12px; color: #1849a9; background: #eff5ff; font-size: 13px; line-height: 1.8; }
.bulk-schedule-section { border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.bulk-schedule-section h3 { margin: 0 0 16px; font-size: 15px; }
.bulk-schedule-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bulk-schedule-section-head h3 { margin: 0; }
.bulk-schedule-section-head > div { display: flex; align-items: center; gap: 8px; }
.bulk-schedule-section-head > div > span { color: #667085; font-size: 12px; white-space: nowrap; }
.bulk-schedule-employees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.bulk-schedule-employee { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #dfe6f0; border-radius: 10px; cursor: pointer; }
.bulk-schedule-employee:has(input:checked) { border-color: #4b80e7; background: #f2f6ff; }
.bulk-schedule-employee > input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: #2563eb; flex: 0 0 auto; }
.bulk-schedule-employee > span { display: grid; gap: 4px; min-width: 0; }
.bulk-schedule-employee strong { font-size: 13px; }
.bulk-schedule-employee small { color: #667085; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.bulk-schedule-employee .bulk-schedule-saved-label { color: #175cd3; margin-top: 3px; }
.bulk-schedule-rules-status { margin: 12px 0 0; font-size: 12px; color: #667085; line-height: 1.6; }
.bulk-schedule-modal #bulk-reload-rules { margin-top: 10px; }
.bulk-schedule-modal .field { margin-bottom: 16px; }
.bulk-schedule-modal .field:last-child { margin-bottom: 0; }
.bulk-schedule-weekdays { margin: 0 0 18px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-schedule-weekdays legend { font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 9px; }
.bulk-schedule-weekdays label { display: flex; align-items: center; gap: 7px; border: 1px solid #dfe6f0; border-radius: 9px; padding: 9px 12px; cursor: pointer; font-size: 13px; }
.bulk-schedule-weekdays label:has(input:checked) { color: #175cd3; background: #edf4ff; border-color: #8eadeb; }
.bulk-schedule-weekdays input { width: 15px; height: 15px; margin: 0; accent-color: #2563eb; }
.bulk-schedule-help { font-size: 12px; line-height: 1.7; color: #667085; margin: 3px 0 0; }
.bulk-schedule-save-rule { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.7; color: #344054; cursor: pointer; }
.bulk-schedule-save-rule input { width: 16px; height: 16px; margin-top: 3px; accent-color: #2563eb; flex: 0 0 auto; }
.bulk-schedule-status { font-size: 13px; line-height: 1.7; padding: 12px 14px; border-radius: 10px; background: #f5f7fa; color: #475467; }
.bulk-schedule-status.error { background: #fff1ef; color: #b42318; }
.bulk-schedule-preview { margin-top: 20px; }
.bulk-schedule-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bulk-schedule-preview-head .eyebrow { margin: 0 0 5px; }
.bulk-schedule-preview-head h3 { font-size: 16px; margin: 0; }
.bulk-schedule-preview-expiry { font-size: 11px; color: #667085; line-height: 1.6; padding-top: 2px; }
.bulk-schedule-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.bulk-schedule-stats > div { padding: 12px; border: 1px solid #dfe6f0; border-radius: 10px; display: grid; gap: 4px; }
.bulk-schedule-stats strong { font-size: 20px; font-weight: 700; color: #175cd3; }
.bulk-schedule-stats span { font-size: 11px; color: #667085; }
.bulk-schedule-notice { color: #475467; font-size: 12px; line-height: 1.8; margin: 10px 0; }
.bulk-schedule-notice.warning { padding: 12px; border-radius: 10px; background: #fffaeb; color: #93370d; }
.bulk-schedule-rule-save { font-size: 12px; color: #175cd3; line-height: 1.8; }
.bulk-schedule-results { display: grid; gap: 12px; margin-top: 15px; }
.bulk-schedule-result { padding: 15px; border: 1px solid #dfe6f0; border-radius: 12px; }
.bulk-schedule-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bulk-schedule-result-head h4 { margin: 0 0 6px; font-size: 14px; }
.bulk-schedule-result-head p { margin: 0; color: #667085; font-size: 12px; line-height: 1.7; }
.bulk-schedule-result-head > span { font-size: 12px; color: #175cd3; background: #eff5ff; border-radius: 7px; padding: 6px 9px; white-space: nowrap; }
.bulk-schedule-result-counts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #667085; margin-top: 10px; }
.bulk-schedule-result-counts .add { color: #067647; }
.bulk-schedule-result-counts .protected { color: #93370d; }
.bulk-schedule-result-details, .bulk-schedule-protections { margin-top: 12px; border-top: 1px solid #edf0f5; padding-top: 12px; font-size: 12px; }
.bulk-schedule-result-details summary, .bulk-schedule-protections summary { cursor: pointer; color: #175cd3; font-weight: 600; }
.bulk-schedule-result-details > div { padding-top: 5px; }
.bulk-schedule-result-details h5 { font-size: 12px; margin: 12px 0 8px; }
.bulk-schedule-dates { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; }
.bulk-schedule-date { display: inline-block; padding: 5px 7px; border-radius: 6px; background: #f2f4f7; color: #344054; font-size: 11px; }
.bulk-schedule-date.add { color: #067647; background: #ecfdf3; }
.bulk-schedule-date.remove { color: #b42318; background: #fff1ef; }
.bulk-schedule-empty { font-size: 12px; color: #98a2b3; }
.bulk-schedule-saturday { display: grid; gap: 7px; margin-top: 12px; }
.bulk-schedule-saturday > strong { font-size: 12px; color: #475467; }
.bulk-schedule-protections summary { color: #93370d; }
.bulk-schedule-protections ul { padding: 0; margin: 10px 0 0; list-style: none; display: grid; gap: 7px; }
.bulk-schedule-protections li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; border-radius: 8px; padding: 9px 10px; background: #fffaeb; font-size: 12px; line-height: 1.7; }
.bulk-schedule-protections li > time { font-weight: 600; color: #7a2e0e; }
.bulk-schedule-protections li > span { color: #93370d; flex: 1 1 auto; }
.bulk-schedule-protections li > strong { font-weight: 600; color: #7a2e0e; }
.bulk-schedule-protections li > small { color: #b54708; font-size: 11px; }
@media (max-width: 760px) {
  .bulk-schedule-employees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-schedule-modal .modal-head, .bulk-schedule-modal .modal-body { padding-left: 16px; padding-right: 16px; }
  .bulk-schedule-modal .modal-actions { padding-left: 16px; padding-right: 16px; }
  .bulk-schedule-section { padding: 14px; }
  .bulk-schedule-preview-head { flex-direction: column; gap: 7px; }
  .bulk-schedule-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
  .bulk-schedule-employees { grid-template-columns: 1fr; }
  .bulk-schedule-section-head { align-items: flex-start; flex-direction: column; }
  .bulk-schedule-section-head > div { flex-wrap: wrap; }
  .bulk-schedule-modal .modal-actions { gap: 6px; }
  .bulk-schedule-modal .modal-actions .button { padding-left: 10px; padding-right: 10px; font-size: 12px; }
  .bulk-schedule-modal .modal-body { max-height: calc(100dvh - 215px); }
  .bulk-schedule-stats > div { padding: 10px 8px; }
  .bulk-schedule-stats strong { font-size: 18px; }
  .bulk-schedule-result-head { flex-direction: column; gap: 9px; }
}
