/* İş Takvimi - Özel CSS */

/* Öğrenci Düzenleme Modalı - Z-Index */
#ogrenci-edit-modal {
    z-index: 99999 !important;
}

#ogrenci-edit-modal .uk-modal-dialog {
    z-index: 100000 !important;
}

.uk-modal-page {
    overflow: hidden;
}

/* Yıllık görünüm - Sabit gün yüksekliği (tüm günler görünsün) */
.fc-multiMonthYear-view .fc-multimonth,
.fc-multiMonthYear-view .fc-multimonth-month,
.fc-multiMonthYear-view .fc-multimonth-daygrid,
.fc-multiMonthYear-view .fc-daygrid,
.fc-multiMonthYear-view .fc-daygrid-body,
.fc-multiMonthYear-view .fc-scrollgrid-sync-table,
.fc-multiMonthYear-view .fc-daygrid-body table {
    height: auto !important;
}

.fc-multiMonthYear-view .fc-daygrid-body tr {
    height: var(--work-year-day-height, 112px) !important;
    max-height: var(--work-year-day-height, 112px) !important;
}

.fc-multiMonthYear-view .fc-daygrid-day,
.fc-multiMonthYear-view .fc-daygrid-day-frame {
    height: var(--work-year-day-height, 112px) !important;
    min-height: var(--work-year-day-height, 112px) !important;
    max-height: var(--work-year-day-height, 112px) !important;
}

.fc-multiMonthYear-view .fc-daygrid-day-top {
    min-height: 18px !important;
}

.fc-multiMonthYear-view .fc-daygrid-day-events {
    min-height: 0 !important;
    margin-top: 2px !important;
}

.fc-multiMonthYear-view .fc-daygrid-event-harness {
    height: 22px !important;
    max-height: 22px !important;
    margin-bottom: 4px !important;
}

.fc-multiMonthYear-view .fc-daygrid-event {
    height: 18px !important;
    max-height: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Diğer görünümler için gün hücresi yüksekliği */
.fc-resourceTimelineMonth .fc-daygrid-day,
.fc-resourceDayGridWeekCustom .fc-daygrid-day,
.fc-listWeek .fc-daygrid-day {
    height: 85px !important;
    min-height: 85px !important;
}

/* Saatler butonunu gizle (ekstra güvence) */
.hours-floating-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Takvim Görünümü Filtreleri */
.calendar-view-filters {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.calendar-filter-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
}

.calendar-filter-header .filter-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.calendar-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-toggle-item {
    display: flex;
    align-items: center;
}

.filter-toggle-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filter-toggle-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-toggle-label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.filter-toggle-item:hover .filter-toggle-label {
    color: #0066cc;
}

/* ====================================================
   TÜM EVENT TİPLERİ – ORTAK STANDART STİL
   RAM Rapor, İzin, Heyet Raporu, Araç, Etkinlik/Hatırlatma
   ==================================================== */

.fc-event.ram-report-event,
.fc-event.personel-permit-event,
.fc-event.hospital-report-event,
.fc-event.vehicle-inspection-event,
.fc-event.vehicle-insurance-event,
.fc-event.reminder-event,
.fc-event.event-event {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    padding: 0 !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1px !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
    border: none !important;
    margin-bottom: 2px !important;
}

/* Tıklanamaz Rapor Tipleri */
.fc-event.ram-report-event,
.fc-event.personel-permit-event,
.fc-event.hospital-report-event,
.fc-event.vehicle-inspection-event,
.fc-event.vehicle-insurance-event {
    cursor: default !important;
}

/* Tıklanabilir Özel Etkinlikler */
.fc-event.reminder-event,
.fc-event.event-event {
    cursor: pointer !important;
}

/* Event İçerik Alanı – Dikey Ortalama */
.fc-event.ram-report-event .fc-event-main,
.fc-event.personel-permit-event .fc-event-main,
.fc-event.hospital-report-event .fc-event-main,
.fc-event.vehicle-inspection-event .fc-event-main,
.fc-event.vehicle-insurance-event .fc-event-main,
.fc-event.reminder-event .fc-event-main,
.fc-event.event-event .fc-event-main {
    height: 22px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

/* Başlık Metin Hizalaması */
.fc-event.ram-report-event .fc-event-title,
.fc-event.personel-permit-event .fc-event-title,
.fc-event.hospital-report-event .fc-event-title,
.fc-event.vehicle-inspection-event .fc-event-title,
.fc-event.vehicle-insurance-event .fc-event-title,
.fc-event.reminder-event .fc-event-title,
.fc-event.event-event .fc-event-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    flex: 1 !important;
}

/* Tüm Görünümlerde Yükseklik Standardı */
.fc-view-harness .fc-event.ram-report-event,
.fc-dayGridMonth-view .fc-event.ram-report-event,
.fc-dayGridWeek-view .fc-event.ram-report-event,
.fc-multiMonthYear-view .fc-event.ram-report-event,
.fc-view-harness .fc-event.personel-permit-event,
.fc-dayGridMonth-view .fc-event.personel-permit-event,
.fc-dayGridWeek-view .fc-event.personel-permit-event,
.fc-multiMonthYear-view .fc-event.personel-permit-event,
.fc-view-harness .fc-event.hospital-report-event,
.fc-dayGridMonth-view .fc-event.hospital-report-event,
.fc-dayGridWeek-view .fc-event.hospital-report-event,
.fc-multiMonthYear-view .fc-event.hospital-report-event,
.fc-view-harness .fc-event.vehicle-inspection-event,
.fc-dayGridMonth-view .fc-event.vehicle-inspection-event,
.fc-dayGridWeek-view .fc-event.vehicle-inspection-event,
.fc-multiMonthYear-view .fc-event.vehicle-inspection-event,
.fc-view-harness .fc-event.vehicle-insurance-event,
.fc-dayGridMonth-view .fc-event.vehicle-insurance-event,
.fc-dayGridWeek-view .fc-event.vehicle-insurance-event,
.fc-multiMonthYear-view .fc-event.vehicle-insurance-event,
.fc-view-harness .fc-event.reminder-event,
.fc-dayGridMonth-view .fc-event.reminder-event,
.fc-dayGridWeek-view .fc-event.reminder-event,
.fc-multiMonthYear-view .fc-event.reminder-event,
.fc-view-harness .fc-event.event-event,
.fc-dayGridMonth-view .fc-event.event-event,
.fc-dayGridWeek-view .fc-event.event-event,
.fc-multiMonthYear-view .fc-event.event-event {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
}

/* Event'ler Arası Boşluk – ::after bloğu FC layout hesabını bozmaz */
.fc-dayGridMonth-view .fc-daygrid-event-harness::after {
    content: '';
    display: block;
    height: 2px;
}

/* ====================================================
   RENK ATAMALARI
   ==================================================== */

/* RAM Raporu Bitiş – Kırmızı */
.fc-event.ram-report-event {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Personel İzin Bitiş – Mavi */
.fc-event.personel-permit-event {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #ffffff !important;
}

/* Hastane / Heyet Raporu Bitiş – Amber */
.fc-event.hospital-report-event {
    background-color: #e6a817 !important;
    border-color: #e6a817 !important;
    color: #ffffff !important;
}
.fc-event.hospital-report-event .fc-event-title {
    color: #ffffff !important;
}

/* Araç Muayene Bitiş – İndigo */
.fc-event.vehicle-inspection-event {
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}
.fc-event.vehicle-inspection-event .fc-event-title {
    color: #ffffff !important;
}

/* Araç Sigorta / Kasko Bitiş – Turuncu */
.fc-event.vehicle-insurance-event {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}
.fc-event.vehicle-insurance-event .fc-event-title {
    color: #ffffff !important;
}

/* MultiMonthYear Görünümü - TEK SÜTUN - Ay İsimleri Sticky ve Boş Günler Gri */

/* Ay başlıkları sticky */
.fc-multimonth-title {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #f8f9fa !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px !important;
    border-bottom: 2px solid #0066cc !important;
}

/* Boş günler (diğer aydan) gri renkte */
.fc-dayGridYear-view .fc-day-other {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

.fc-dayGridYear-view .fc-day-other .fc-daygrid-day-number {
    color: #999 !important;
    opacity: 0.6 !important;
}

/* Aktif günler */
.fc-dayGridYear-view .fc-day:not(.fc-day-other) {
    background-color: #ffffff !important;
}

/* Hafta sonu günleri */
.fc-dayGridYear-view .fc-day-sat,
.fc-dayGridYear-view .fc-day-sun {
    background-color: #fafafa !important;
}

/* Bugün vurgusu */
.fc-dayGridYear-view .fc-day-today {
    background-color: #e3f2fd !important;
}

.fc-dayGridYear-view .fc-day-today .fc-daygrid-day-number {
    background-color: #0066cc !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
