/* ================================================================
   STAFF (Personeller) — Modern UI  |  BS5 uyumlu
   Sadece görsel. Hiçbir JS/mantık kodu değiştirilmemiştir.
================================================================ */

/* ════════════════════════════════════════════════════════════
   1. SAYFA & ANA KART
════════════════════════════════════════════════════════════ */
body          { background: #F1F5F9 !important; }
.page-wrapper { background: #F1F5F9; }

.card.block {
  border-radius: 16px !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07) !important;
  border: none !important;
  overflow: hidden;
}

.card.block .card-body { padding: 1.75rem !important; }

/* Başlık aksanı */
.card.block .card-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #1E293B !important;
  margin-bottom: 0.25rem !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card.block .card-title::before {
  content: '';
  flex-shrink: 0;
  display: inline-block;
  width: 4px; height: 18px;
  background: linear-gradient(180deg, #4F46E5, #7C3AED);
  border-radius: 99px;
}
.card.block .card-subtitle {
  font-size: 0.82rem !important;
  color: #94A3B8 !important;
  font-weight: 500 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.5;
}
#staff-limit-info {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4F46E5;
  background: #EEF2FF;
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.4rem;
}

/* ════════════════════════════════════════════════════════════
   2. FOOTABLE — TABLO
════════════════════════════════════════════════════════════ */

/* FooTable filter bar */
.footable-filtering .input-group {
  margin-bottom: 1rem;
}
.footable-filtering .input-group .form-control {
  border-radius: 9px 0 0 9px !important;
  border: 1.5px solid #E2E8F0 !important;
  border-right: none !important;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.9rem !important;
  background: #fff !important;
}
.footable-filtering .input-group .form-control:focus {
  border-color: #4F46E5 !important;
  box-shadow: none !important;
}
.footable-filtering .input-group .btn,
.footable-filtering .input-group-btn .btn {
  border-radius: 0 9px 9px 0 !important;
  border: 1.5px solid #E2E8F0 !important;
  border-left: none !important;
  background: #F8FAFC !important;
  color: #64748B !important;
  padding: 0.5rem 0.85rem !important;
}

/* "Personel Ekle" / Add row button (FooTable dinamik oluşturur) */
.footable-add-row.btn,
.btn-footable-add,
[data-add-row] {
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.45rem 1.1rem !important;
  background: #4F46E5 !important;
  border-color: #4F46E5 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(79,70,229,0.28) !important;
  transition: all 0.18s;
}
[data-add-row]:hover,
.footable-add-row.btn:hover {
  background: #4338CA !important;
  border-color: #4338CA !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(79,70,229,0.38) !important;
}

/* Tablo yapısı */
#footable-staff { border: none !important; }

#footable-staff thead th {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748B !important;
  background: #F8FAFC !important;
  border-bottom: 2px solid #E2E8F0 !important;
  border-top: none !important;
  padding: 0.9rem 1rem !important;
  white-space: nowrap;
}

#footable-staff tbody tr {
  transition: background 0.14s;
}
#footable-staff tbody tr:hover {
  background: #F5F3FF !important;
}
#footable-staff tbody td {
  border-bottom: 1px solid #F1F5F9 !important;
  border-top: none !important;
  padding: 0.85rem 1rem !important;
  vertical-align: middle !important;
  font-size: 0.875rem !important;
  color: #374151 !important;
}

/* Personel avatarı */
#footable-staff tbody td img {
  border-radius: 50% !important;
  width: 38px !important; height: 38px !important;
  object-fit: cover !important;
  box-shadow: 0 2px 8px rgba(79,70,229,0.18) !important;
  border: 2px solid #fff !important;
}

/* Aksiyon butonları (Düzenle / Sil) */
#footable-staff .btn-xs,
#footable-staff .btn-sm {
  border-radius: 8px !important;
  padding: 0.3rem 0.7rem !important;
  font-size: 0.73rem !important;
  font-weight: 700 !important;
  transition: transform 0.15s, box-shadow 0.15s;
  margin: 0 0.15rem;
}
#footable-staff .btn-xs:hover,
#footable-staff .btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Düzenle */
#footable-staff .btn-info,
#footable-staff .btn-warning,
#footable-staff [data-edit-row] {
  background: #EEF2FF !important;
  color: #4F46E5 !important;
  border-color: transparent !important;
}
#footable-staff .btn-info:hover,
#footable-staff .btn-warning:hover,
#footable-staff [data-edit-row]:hover {
  background: #4F46E5 !important;
  color: #fff !important;
}

/* Sil */
#footable-staff .btn-danger,
#footable-staff [data-delete-row] {
  background: #FEF2F2 !important;
  color: #EF4444 !important;
  border-color: transparent !important;
}
#footable-staff .btn-danger:hover,
#footable-staff [data-delete-row]:hover {
  background: #EF4444 !important;
  color: #fff !important;
}

/* Sayfalama */
.footable-paging .pagination {
  margin-top: 1rem !important;
}
.footable-paging .pagination .page-item .page-link {
  border-radius: 8px !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #4F46E5 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  margin: 0 0.15rem !important;
  transition: all 0.15s;
}
.footable-paging .pagination .page-item.active .page-link {
  background: #4F46E5 !important;
  border-color: #4F46E5 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(79,70,229,0.3);
}
.footable-paging .pagination .page-item .page-link:hover {
  background: #EEF2FF !important;
  border-color: #4F46E5 !important;
}

/* ════════════════════════════════════════════════════════════
   3. MODAL — GENEL
════════════════════════════════════════════════════════════ */
#staff-modal .modal-dialog {
  max-width: 640px !important;
  margin: 1.5rem auto !important;
}
#staff-modal .modal-content {
  border: none !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 72px rgba(0,0,0,0.20) !important;
  overflow: hidden;
}

/* ── Modal Header ─────────────────────────────────────────── */
#staff-modal .modal-header {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
  border-bottom: none !important;
  padding: 1.35rem 1.75rem !important;
}
#staff-modal .modal-title {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#staff-modal .modal-title::before {
  content: '👤';
  font-size: 1rem;
}
#staff-modal .modal-header .close {
  color: rgba(255,255,255,0.85) !important;
  text-shadow: none !important;
  font-size: 1.6rem !important;
  opacity: 1 !important;
  padding: 0.25rem 0.5rem;
  transition: color 0.18s, transform 0.18s;
}
#staff-modal .modal-header .close:hover {
  color: #fff !important;
  transform: rotate(90deg);
}

/* ── Modal Body ───────────────────────────────────────────── */
#staff-modal .modal-body {
  padding: 1.5rem 1.75rem !important;
  background: #fff;
  max-height: 68vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #C7D2FE transparent;
}
#staff-modal .modal-body::-webkit-scrollbar { width: 5px; }
#staff-modal .modal-body::-webkit-scrollbar-thumb {
  background: #C7D2FE; border-radius: 99px;
}

/* Form grup satırı */
#staff-modal .form-group.row {
  margin-bottom: 1rem !important;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #F8FAFC;
}
#staff-modal .form-group.row:last-child {
  border-bottom: none;
  margin-bottom: 0 !important;
}

/* Etiket */
#staff-modal label.control-label {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  padding-top: 0.55rem !important;
  line-height: 1.4;
}

/* Form kontrol genel */
#staff-modal .form-control {
  border-radius: 9px !important;
  border: 1.5px solid #E2E8F0 !important;
  font-size: 0.875rem !important;
  color: #374151 !important;
  background: #fff !important;
  padding: 0.475rem 0.875rem !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  box-shadow: none !important;
}
#staff-modal .form-control:focus {
  border-color: #4F46E5 !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
  outline: none !important;
}
#staff-modal select.form-control { cursor: pointer; }
#staff-modal textarea.form-control { resize: vertical; min-height: 88px; }

/* İnput group */
#staff-modal .input-group .input-group-text,
#staff-modal .input-group .input-group-append .input-group-text,
#staff-modal .input-group .input-group-prepend .input-group-text {
  border-radius: 9px 0 0 9px !important;
  border: 1.5px solid #E2E8F0 !important;
  border-right: none !important;
  background: #F8FAFC !important;
  color: #64748B !important;
  font-size: 0.82rem !important;
  font-weight: 600;
}
#staff-modal .input-group .form-control {
  border-radius: 0 9px 9px 0 !important;
  border-left: none !important;
}
#staff-modal .input-group:focus-within .input-group-text { border-color: #4F46E5 !important; }
#staff-modal .input-group:focus-within .form-control    { border-left: none !important; box-shadow: none !important; }

/* Saat ikonlu input group (pickadate) */
#staff-modal .ti-alarm-clock { color: #4F46E5; }

/* ── Fotoğraf Yükleme ─────────────────────────────────────── */
#staff-modal .custom-file { border-radius: 10px; overflow: hidden; }
#staff-modal .plus-file-label {
  border-radius: 10px !important;
  border: 2px dashed #C7D2FE !important;
  background: #F8FAFC !important;
  color: #4F46E5 !important;
  font-size: 1.6rem !important;
  text-align: center;
  line-height: 2.8rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#staff-modal .plus-file-label:hover {
  border-color: #4F46E5 !important;
  background: #EEF2FF !important;
}
#staff-modal .showRemover ~ .remover,
#staff-modal .remover {
  background: #EF4444 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 22px; height: 22px;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
#staff-modal .remover:hover { background: #B91C1C !important; }

/* ── "Tüm Hizmetleri Ekle" butonu ────────────────────────── */
#staff-modal .btn-success {
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 0.83rem !important;
  padding: 0.5rem 1rem !important;
  background: linear-gradient(135deg, #10B981, #059669) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(16,185,129,0.3) !important;
  transition: all 0.18s;
}
#staff-modal .btn-success:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16,185,129,0.38) !important;
}

/* ── Tooltip rozeti (?) ───────────────────────────────────── */
#staff-modal .badge.badge-dark.allround {
  background: #EEF2FF !important;
  color: #4F46E5 !important;
  border-radius: 50% !important;
  width: 18px; height: 18px;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  padding: 0;
  border: 1.5px solid #C7D2FE !important;
}

/* ── Checkbox (material-inputs) ──────────────────────────── */
#staff-modal input[type="checkbox"] {
  accent-color: #4F46E5;
  width: 15px; height: 15px;
  cursor: pointer;
}
#staff-modal .form-group label[for="customPricing"],
#staff-modal label[for="customPricing"] {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer;
}

/* ── Select2 (hizmetler) ──────────────────────────────────── */
#staff-modal .select2-container { width: 100% !important; }
#staff-modal .select2-container--default .select2-selection--multiple {
  border-radius: 9px !important;
  border: 1.5px solid #E2E8F0 !important;
  min-height: 40px !important;
  padding: 0.2rem 0.4rem !important;
  background: #fff !important;
  transition: border-color 0.18s;
}
#staff-modal .select2-container--default.select2-container--focus
    .select2-selection--multiple {
  border-color: #4F46E5 !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
}
#staff-modal .select2-container--default
    .select2-selection--multiple .select2-selection__choice {
  background: #EEF2FF !important;
  color: #4F46E5 !important;
  border: 1px solid #C7D2FE !important;
  border-radius: 6px !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  padding: 0.15rem 0.5rem !important;
}
#staff-modal .select2-container--default
    .select2-selection--multiple .select2-selection__choice__remove {
  color: #7C3AED !important;
  margin-right: 0.25rem;
}

/* Servis container (custom pricing) */
#staff-serviceContainer {
  background: #F8FAFC;
  border-radius: 10px;
  border: 1.5px dashed #C7D2FE;
  margin-top: 0.75rem;
}

/* ── Geçersiz geri bildirim ───────────────────────────────── */
#staff-modal .invalid-feedback {
  font-size: 0.75rem !important;
  color: #EF4444 !important;
}

/* ── Modal Footer ─────────────────────────────────────────── */
#staff-modal .modal-footer {
  background: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
  padding: 1rem 1.75rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Esnek Çalışan checkbox alanı */
#staff-modal .modal-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
#staff-modal .modal-footer label[for="flex"] {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer;
  margin: 0;
}
#staff-modal .modal-footer input[type="checkbox"] {
  accent-color: #4F46E5;
  width: 15px; height: 15px;
  cursor: pointer;
}

/* Kaydet butonu */
#staff-modal .modal-footer .btn-primary {
  border-radius: 9px !important;
  padding: 0.55rem 1.75rem !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  background: #4F46E5 !important;
  border-color: #4F46E5 !important;
  box-shadow: 0 3px 12px rgba(79,70,229,0.3) !important;
  transition: all 0.18s;
}
#staff-modal .modal-footer .btn-primary:hover {
  background: #4338CA !important;
  border-color: #4338CA !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79,70,229,0.38) !important;
}
#staff-modal .modal-footer .btn-primary:active { transform: translateY(0); }

/* İptal butonu */
#staff-modal .modal-footer .btn-default {
  border-radius: 9px !important;
  padding: 0.55rem 1.25rem !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  background: #fff !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #64748B !important;
  transition: all 0.18s;
  margin-left: 0.5rem;
}
#staff-modal .modal-footer .btn-default:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #374151 !important;
}

/* ════════════════════════════════════════════════════════════
   4. RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .card.block .card-body { padding: 1.25rem !important; }

  /* Tablo */
  #footable-staff thead th,
  #footable-staff tbody td { padding: 0.65rem 0.75rem !important; font-size: 0.8rem !important; }
  #footable-staff tbody td img { width: 30px !important; height: 30px !important; }

  /* Modal */
  #staff-modal .modal-dialog {
    max-width: 100% !important;
    margin: 0.4rem !important;
  }
  #staff-modal .modal-content { border-radius: 14px !important; }
  #staff-modal .modal-header  { padding: 1rem 1.25rem !important; }
  #staff-modal .modal-body    { padding: 1.15rem 1rem !important; max-height: 78vh; }
  #staff-modal .modal-footer  { padding: 0.85rem 1rem !important; flex-wrap: wrap; gap: 0.5rem; }

  /* Etiketler sola yasla */
  #staff-modal label.control-label { text-align: left !important; }

  /* Çalışma saati ikilisi */
  #staff-modal .form-group .row .col-sm-6 { margin-bottom: 0.5rem; }

  /* Footer butonlar tam genişlik */
  #staff-modal .modal-footer .btn-primary,
  #staff-modal .modal-footer .btn-default {
    width: 100%;
    margin: 0.2rem 0 !important;
  }
  #staff-modal .modal-footer > div { width: 100%; }
}

@media (max-width: 480px) {
  #staff-modal .modal-content { border-radius: 10px !important; }
}

/* ════════════════════════════════════════════════════════════
   ÖZEL GÜN & İZİN YÖNETİMİ (StaffExceptions)
════════════════════════════════════════════════════════════ */

/* ── Bölüm ayırıcı ───────────────────────────────────────── */
.exc-section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.85rem;
  color: #4F46E5;
}
.exc-section-divider::before,
.exc-section-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, #E0E7FF, transparent);
  border-radius: 99px;
}
.exc-section-divider::before { background: linear-gradient(90deg, transparent, #E0E7FF); }
.exc-section-divider span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── Toggle satırı ───────────────────────────────────────── */
.exc-toggle-row { margin-bottom: 1rem !important; }
.exc-toggle-label { font-size: 0.78rem !important; font-weight: 700 !important; }

/* ── Özel Toggle Switch (material checkbox çakışmasından bağımsız) ── */
.exc-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  margin: 0;
  user-select: none;
}
/* Gerçek checkbox'ı tamamen gizle — hiçbir framework stili ulaşmasın */
.exc-switch__input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Slider ray */
.exc-switch__slider {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background: #CBD5E1;
  border-radius: 99px;
  transition: background 0.22s;
  flex-shrink: 0;
}
/* Slider topuzu */
.exc-switch__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.20);
}
/* Checked state */
.exc-switch__input:checked ~ .exc-switch__slider {
  background: #4F46E5;
}
.exc-switch__input:checked ~ .exc-switch__slider::after {
  transform: translateX(18px);
}
/* Label metni */
.exc-switch__label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #374151;
}
/* material-inputs label'larının pseudo elementlerini exc-switch içinde sıfırla */
.exc-switch > label::before,
.exc-switch > label::after,
.exc-switch__label::before,
.exc-switch__label::after {
  display: none !important;
  content: none !important;
}

/* ── exc-body ────────────────────────────────────────────── */
#exc-body { margin-top: 0.5rem; }

/* ── Takvim wrapper ──────────────────────────────────────── */
.exc-calendar-wrap {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  user-select: none;
}

/* ── Takvim Header ───────────────────────────────────────── */
.exc-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.exc-month-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.01em;
}
.exc-nav-btn {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  width: 30px; height: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4F46E5;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: all 0.15s;
  padding: 0;
}
.exc-nav-btn:hover {
  background: #EEF2FF;
  border-color: #4F46E5;
}

/* ── Gün başlıkları ──────────────────────────────────────── */
.exc-cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.exc-cal-days-header span {
  text-align: center;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  padding: 3px 0;
}

/* ── Gün grid ────────────────────────────────────────────── */
.exc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.exc-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s, transform 0.14s;
  border: 1.5px solid transparent;
}
.exc-day:hover:not(.exc-day--empty) {
  background: #EEF2FF;
  border-color: #C7D2FE;
  transform: scale(1.06);
}
.exc-day--empty { cursor: default; pointer-events: none; }
.exc-day__num {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  line-height: 1;
}

/* Bugün */
.exc-day--today { background: #EEF2FF; border-color: #C7D2FE; }
.exc-day--today .exc-day__num { color: #4F46E5; font-weight: 800; }

/* Seçili */
.exc-day--selected {
  background: #4F46E5 !important;
  border-color: #4F46E5 !important;
  transform: scale(1.08);
}
.exc-day--selected .exc-day__num { color: #fff !important; font-weight: 800; }

/* İstisna var — turuncu nokta */
.exc-day--has-exc { background: #FFF7ED; border-color: #FED7AA; }
.exc-day--has-exc .exc-day__num { color: #C2410C; }
.exc-day--has-exc.exc-day--selected { background: #4F46E5 !important; }
.exc-day--has-exc.exc-day--selected .exc-day__num { color: #fff !important; }

/* İzinli gün — kırmızı ton */
.exc-day--off { background: #FEF2F2; border-color: #FECACA; }
.exc-day--off .exc-day__num { color: #EF4444; }
.exc-day--off.exc-day--selected { background: #4F46E5 !important; }
.exc-day--off.exc-day--selected .exc-day__num { color: #fff !important; }

/* Nokta göstergesi */
.exc-day__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #F97316;
  margin-top: 2px;
  flex-shrink: 0;
}
.exc-day--selected .exc-day__dot { background: rgba(255,255,255,0.85); }
.exc-day--off .exc-day__dot       { background: #EF4444; }

/* ── Gece geçiş bilgi notu ───────────────────────────────── */
.exc-overnight-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  color: #92400E;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}
.exc-overnight-note strong { color: #78350F; }

/* ── Gün Detay Paneli ────────────────────────────────────── */
.exc-day-panel {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-left: 4px solid #4F46E5;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.exc-day-panel.exc-panel--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.exc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}
.exc-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.exc-panel-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  cursor: pointer;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.16s;
  padding: 0;
}
.exc-panel-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: rotate(90deg);
}
.exc-panel-body {
  padding: 1rem;
}

/* Panel form satırları */
.exc-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.exc-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}
.exc-lbl--working { color: #059669 !important; }
.exc-lbl--off     { color: #EF4444 !important; }

/* Saat satırı */
.exc-time-row {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.exc-time-field { flex: 1; }
.exc-time-divider {
  color: #94A3B8;
  font-weight: 700;
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* İstisnai mesai mola alanı (StaffExceptions) — sch-* sınıflarını yeniden kullanır */
.exc-breaks-wrap {
  margin-top: 0.55rem;
  margin-bottom: 0.6rem;
  border-top: 1px dashed #E2E8F0;
  padding-top: 0.55rem;
}
.exc-breaks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.exc-breaks-wrap #exc-breaks .sch-break-row {
  border-radius: 8px;
  margin-top: 0.3rem;
  padding-left: 0.85rem;
}
.exc-select {
  border-radius: 9px !important;
  border: 1.5px solid #E2E8F0 !important;
  font-size: 0.82rem !important;
  color: #374151 !important;
  padding: 0.4rem 0.7rem !important;
  background: #fff !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  cursor: pointer;
  box-shadow: none !important;
}
.exc-select:focus {
  border-color: #4F46E5 !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
  outline: none !important;
}

/* Panel butonları */
.exc-panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}
.exc-btn-save {
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.45rem 1.25rem !important;
  background: #4F46E5 !important;
  color: #fff !important;
  border-color: #4F46E5 !important;
  box-shadow: 0 3px 10px rgba(79,70,229,0.28) !important;
  transition: all 0.16s;
  display: flex; align-items: center; gap: 0.4rem;
}
.exc-btn-save:hover:not(:disabled) {
  background: #4338CA !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(79,70,229,0.35) !important;
}
.exc-btn-save:disabled { opacity: 0.65; cursor: not-allowed; }
.exc-btn-delete {
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.45rem 1rem !important;
  background: #FEF2F2 !important;
  color: #EF4444 !important;
  border-color: transparent !important;
  transition: all 0.16s;
}
.exc-btn-delete:hover {
  background: #EF4444 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(239,68,68,0.28) !important;
}

/* ── İstisna Listesi ─────────────────────────────────────── */
.exc-list-wrap {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}
.exc-list-title {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.exc-count-badge {
  background: #4F46E5;
  color: #fff;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  min-width: 20px;
  text-align: center;
}
.exc-empty-msg {
  padding: 1rem;
  font-size: 0.82rem;
  color: #94A3B8;
  text-align: center;
  font-style: italic;
}
.exc-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  gap: 0.5rem;
  transition: background 0.14s;
}
.exc-list-item:last-child { border-bottom: none; }
.exc-list-item:hover { background: #EEF2FF; }
.exc-list-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.exc-list-item__date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.exc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 0.18rem 0.55rem;
}
.exc-status--working {
  background: #D1FAE5;
  color: #065F46;
}
.exc-status--off {
  background: #FEE2E2;
  color: #991B1B;
}
.exc-list-item__actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.exc-action-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}
.exc-action-btn i,
.exc-action-btn .mdi {
  font-size: 1rem !important;
  line-height: 1 !important;
  display: inline-block !important;
}
.exc-action-btn--edit {
  background: #4F46E5;
  color: #fff;
}
.exc-action-btn--edit i { color: #fff !important; }
.exc-action-btn--edit:hover {
  background: #4338CA;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(79,70,229,0.35);
}
.exc-action-btn--del {
  background: #EF4444;
  color: #fff;
}
.exc-action-btn--del i { color: #fff !important; }
.exc-action-btn--del:hover {
  background: #DC2626;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(239,68,68,0.35);
}

/* ── Tüm İstisnaları Kaldır butonu ───────────────────────── */
.exc-clear-wrap {
  padding: 0.75rem 1rem;
  border-top: 1px solid #F1F5F9;
}
.exc-btn-clear-all {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.55rem 1rem !important;
  background: #FEF2F2 !important;
  color: #EF4444 !important;
  border: 1.5px solid #FECACA !important;
  transition: all 0.18s;
}
.exc-btn-clear-all i { font-size: 1rem; }
.exc-btn-clear-all:hover {
  background: #EF4444 !important;
  color: #fff !important;
  border-color: #EF4444 !important;
  box-shadow: 0 4px 14px rgba(239,68,68,0.3) !important;
  transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 575px) {
  .exc-cal-days-header span { font-size: 0.6rem; }
  .exc-day { min-height: 30px; }
  .exc-day__num { font-size: 0.72rem; }
  .exc-time-row { flex-direction: column; gap: 0.4rem; }
  .exc-time-divider { display: none; }
  .exc-time-field { width: 100%; }
  .exc-panel-actions { flex-direction: column; }
  .exc-btn-save,
  .exc-btn-delete { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   HAFTALIK ÇALIŞMA PROGRAMI (StaffSchedule)
════════════════════════════════════════════════════════════ */

/* ── Copy Monday button ──────────────────────────────────── */
.sch-copy-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}
.sch-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid #C7D2FE;
  background: #EEF2FF;
  color: #4F46E5;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.18s;
}
.sch-copy-btn:hover {
  background: #4F46E5;
  color: #fff;
  border-color: #4F46E5;
  box-shadow: 0 3px 10px rgba(79,70,229,0.28);
  transform: translateY(-1px);
}
.sch-copy-btn i { font-size: 0.95rem; }

/* ── Day row ─────────────────────────────────────────────── */
.sch-day {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: border-color 0.18s, opacity 0.25s, box-shadow 0.18s;
  overflow: hidden;
}
.sch-day:hover { border-color: #C7D2FE; box-shadow: 0 2px 8px rgba(79,70,229,0.06); }

.sch-day--off {
  background: #FAFAFA;
  border-color: #F1F5F9;
}
.sch-day--off .sch-day-label { color: #94A3B8; text-decoration: line-through; }
.sch-day--off .sch-times,
.sch-day--off .sch-add-break,
.sch-day--off .sch-breaks {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Day header ──────────────────────────────────────────── */
.sch-day-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  flex-wrap: wrap;
}
.sch-day-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1E293B;
  min-width: 78px;
  flex-shrink: 0;
}
.sch-day-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  flex-wrap: wrap;
}
.sch-switch { flex-shrink: 0; }

/* ── Time selects ────────────────────────────────────────── */
.sch-times {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.25s;
}
.sch-time-select {
  border-radius: 9px;
  border: 1.5px solid #E2E8F0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  padding: 0.3rem 0.45rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  min-width: 70px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394A3B8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}
.sch-time-select:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.sch-time-sep {
  color: #94A3B8;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* ── Add break button ────────────────────────────────────── */
.sch-add-break {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1.5px dashed #CBD5E1;
  background: transparent;
  color: #64748B;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sch-add-break:hover {
  border-color: #4F46E5;
  color: #4F46E5;
  background: #EEF2FF;
}
.sch-add-break i { font-size: 0.9rem; }

/* ── Breaks container ────────────────────────────────────── */
.sch-breaks {
  transition: opacity 0.25s;
}
.sch-breaks:empty { display: none; }

/* ── Single break row ────────────────────────────────────── */
.sch-break-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem 0.4rem 1.6rem;
  border-top: 1px dashed #F1F5F9;
  background: #FAFBFF;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.14s;
}
.sch-break-row--in {
  opacity: 1;
  transform: translateY(0);
}
.sch-break-row--out {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.2s, transform 0.2s;
}
.sch-break-row:hover { background: #F0EDFF; }

.sch-break-icon {
  color: #94A3B8;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-right: 0.15rem;
}

/* ── Break delete button ─────────────────────────────────── */
.sch-break-del {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: #FEF2F2;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s;
  flex-shrink: 0;
  padding: 0;
  margin-left: 0.25rem;
}
.sch-break-del i { font-size: 1rem; line-height: 1; }
.sch-break-del:hover {
  background: #EF4444;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(239,68,68,0.3);
}

/* ── Buffer time select styling ──────────────────────────── */
#randevuArasiBosluk {
  border-radius: 9px !important;
  border: 1.5px solid #E2E8F0 !important;
  font-size: 0.875rem !important;
  font-weight: 600;
  color: #374151 !important;
  padding: 0.475rem 0.875rem !important;
  transition: border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
#randevuArasiBosluk:focus {
  border-color: #4F46E5 !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 575px) {
  .sch-day-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .sch-day-label { min-width: auto; }
  .sch-day-controls { width: 100%; }
  .sch-times { flex: 1; min-width: 0; }
  .sch-time-select { min-width: 60px; font-size: 0.75rem; padding: 0.25rem 0.35rem; }
  .sch-break-row { padding-left: 0.85rem; flex-wrap: wrap; }
  .sch-copy-btn { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
}
