#applyLeaveModalParent.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
#applyLeaveModalParent .modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 780px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
#applyLeaveModalParent .modal-header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  padding-right: 56px;
}
#applyLeaveModalParent .modal-title { font-size: 32px; font-weight: 600; color: #111827; }
#applyLeaveModalParent .modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 14px;
  line-height: 1;
}
#applyLeaveModalParent .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 24px 20px;
}
#applyLeaveModalParent .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}
#applyLeaveModalParent .btn-cancel,
#applyLeaveModalParent .btn-save {
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
#applyLeaveModalParent .btn-cancel { border: 1px solid #d1d5db; background: #fff; color: #4b5563; }
#applyLeaveModalParent .btn-save { border: none; color: #fff; background: linear-gradient(to right, #ed2047, #f26225); }
#applyLeaveModalParent .apply-leave-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
#applyLeaveModalParent .apply-leave-grid .full { grid-column: 1 / -1; }
#applyLeaveModalParent .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
}
#applyLeaveModalParent .form-group input,
#applyLeaveModalParent .form-group select,
#applyLeaveModalParent .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
#applyLeaveModalParent .number-stepper {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
}
#applyLeaveModalParent .stepper-btn {
  border: none;
  background: #f3f4f6;
  cursor: pointer;
}
#applyLeaveModalParent .stepper-value {
  border: none !important;
  text-align: center;
}
#applyLeaveModalParent #parentLeaveEndDate:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}
#applyLeaveModalParent .attachment-btn {
  width: 100%;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  cursor: pointer;
}
#applyLeaveModalParent .attachment-help {
  margin-top: 8px;
}
#applyLeaveModalParent .attachment-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
#applyLeaveModalParent .attachment-preview.is-pending-removal {
  opacity: 0.45;
  filter: grayscale(0.35);
  pointer-events: none;
}
#applyLeaveModalParent .attachment-preview > .fa-file {
  color: #ed2047;
  font-size: 16px;
}
#applyLeaveModalParent .attachment-preview span {
  flex: 1;
  min-width: 0;
}
#applyLeaveModalParent .remove-attachment {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
#applyLeaveModalParent .remove-attachment:hover {
  color: #ef4444;
}
#applyLeaveModalParent .modal-attachment-undo-btn {
  display: none;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ed2047;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 8px;
  cursor: pointer;
}
#applyLeaveModalParent .modal-attachment-undo-btn:hover {
  background: #fef2f2;
}
