.bt-15{
    padding-bottom: 15px;
}
.w10{
    width:10% !important;
}
.w12{
    width:12% !important;
}
.w80{
    width:80% !important;
}
.w100{
    width:100% !important;
}

/* ==================== CSS VARIABLES ==================== */
:root {
    /* FullCalendar Variables */
    --fc-button-text-color: #636e7b;
    --fc-button-bg-color: transparent;
    --fc-button-border-color: transparent;
    --fc-button-hover-bg-color: transparent;
    --fc-button-hover-border-color: transparent;
    --fc-button-active-bg-color: transparent;
    --fc-button-active-border-color: transparent;
}

/* Light Mode Variables */
[data-theme='light'] {
    --select2-bg: #fff;
    --select2-border: #d9dee3;
    --select2-text: #697a8d;
    --select2-hover-bg: #696cff;
    --select2-selected-bg: #e7e7ff;
    --input-bg: #fff;
    --input-border: #d9dee3;
    --input-text: #697a8d;
}

/* Dark Mode Variables */
[data-theme='dark'] {
    --select2-bg: #2b2c40;
    --select2-border: #444564;
    --select2-text: #a3a4cc;
    --select2-hover-bg: #696cff;
    --select2-selected-bg: #444564;
    --input-bg: #2b2c40;
    --input-border: #444564;
    --input-text: #a3a4cc;
    --dark-body-bg: #232333;
    --dark-card-bg: #2b2c40;
    --dark-weekend-bg: #1a1b28;
    --dark-disabled-bg: #1a1b28;
    --dark-placeholder: #7071a3;
}

/* FullCalendar Dark Mode Styles */
[data-theme='dark'] .fc {
    --fc-border-color: #444564;
    --fc-page-bg-color: #232333;
}

/* Dark mode: Takvim başlıkları (günler) */
[data-theme='dark'] .fc .fc-col-header-cell {
    background-color: #2b2c40 !important;
    color: #a3a4cc !important;
}

/* Dark mode: Haftasonu hücreleri - daha koyu */
[data-theme='dark'] .fc .fc-day-sat,
[data-theme='dark'] .fc .fc-day-sun {
    background-color: #040e43 !important; /* Hafta sonları için daha koyu */
}

/* Dark mode: Hafta sonu gün hücreleri - spesifik class'lar için */
[data-theme='dark'] .fc-day.fc-day-sat,
[data-theme='dark'] .fc-day.fc-day-sun {
    background-color: #1a1b28 !important; /* Hafta sonları günleri için daha koyu */
}


/* Dark mode: Hafta içi hücreleri */
[data-theme='dark'] .fc .fc-daygrid-day {
    background-color: #232333 !important;
}

/* Dark mode: Hücre border */
[data-theme='dark'] .fc td,
[data-theme='dark'] .fc th {
    border-color: #444564 !important;
}


/* DARK mode: Haftasonu rengi (mevcut) */
[data-theme='dark'] .fc .fc-day-sat,
[data-theme='dark'] .fc .fc-day-sun {
    background-color: #1a1a28 !important;
}


/* Light mode: Haftasonu rengi (mevcut) */
[data-theme='light'] .fc .fc-day-sat,
[data-theme='light'] .fc .fc-day-sun {
    background-color: #f2f2f2 !important;
}

/* Dark mode: Bugünün tarihi vurgusu */
[data-theme='dark'] .fc .fc-day-today {
    background-color: rgba(105, 108, 255, 0.08) !important;
}

/* Dark mode: Event (effort) kutuları daha belirgin */
[data-theme='dark'] .fc-event {
    border-color: #444564 !important;
}

/* Dark mode: Event text rengi */
[data-theme='dark'] .fc-event-title,
[data-theme='dark'] .fc-event-time {
    color: #fff !important;
}

/* Dark mode: Takvim header toolbar */
[data-theme='dark'] .fc .fc-toolbar-title {
    color: #a3a4cc !important;
}

/* Dark mode: Navigation butonları */
[data-theme='dark'] .fc .fc-button {
    color: #a3a4cc !important;
    border-color: #444564 !important;
}

[data-theme='dark'] .fc .fc-button:hover {
    background-color: #2b2c40 !important;
    border-color: #696cff !important;
}

[data-theme='dark'] .fc .fc-button:active,
[data-theme='dark'] .fc .fc-button-active {
    background-color: #696cff !important;
    border-color: #696cff !important;
    color: #fff !important;
}

/* ==================== SELECT2 STYLES (BOTH MODES) ==================== */

/* Select2 Pills - HER İKİ MODE İÇİN ORTAK STİL */
/* Inline style ile background-color'ı OLMAYANLAR için mavi renk (proje, görev, danışman vb) */
.select2-container--default .select2-selection--multiple .select2-selection__choice:not([style*="background-color"]) {
    background-color: #696cff !important;
    border-color: #696cff !important;
}

/* TÜM pill'ler için ortak stil (etiketler dahil) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #fff !important;
    border-radius: 0.375rem !important;
    padding: 0.3rem 0.6rem !important;
    padding-left: 1.6rem !important; /* × butonu için yer */
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    position: relative !important;
    display: inline-block !important;
    margin: 0.125rem !important;
    height: auto !important;
}

/* × butonu - Absolute position ile sol tarafta */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    background: none !important;
    border: none !important;
    opacity: 0.8;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 1.3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    opacity: 1;
}

/* Dark mode: Select2 - CSS variables kullanarak */
[data-theme='dark'] .select2-container--default .select2-selection--single,
[data-theme='dark'] .select2-container--default .select2-selection--multiple {
    background-color: var(--select2-bg) !important;
    border-color: var(--select2-border) !important;
    color: var(--select2-text) !important;
}

[data-theme='dark'] .select2-container--default .select2-dropdown {
    background-color: var(--select2-bg) !important;
    border-color: var(--select2-border) !important;
}

[data-theme='dark'] .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--dark-body-bg) !important;
    border-color: var(--select2-border) !important;
    color: var(--select2-text) !important;
}

[data-theme='dark'] .select2-container--default .select2-results__option {
    background-color: var(--select2-bg) !important;
    color: var(--select2-text) !important;
}

[data-theme='dark'] .select2-container--default .select2-results__option--highlighted {
    background-color: var(--select2-hover-bg) !important;
    color: #fff !important;
}

[data-theme='dark'] .select2-container--default .select2-results__option--selected {
    background-color: var(--select2-selected-bg) !important;
    color: #fff !important;
}

/* Pills dark mode için de ortak stil kullanıyor (satır 135-158) */

[data-theme='dark'] .select2-container--default .select2-selection--single .select2-selection__placeholder,
[data-theme='dark'] .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: var(--dark-placeholder) !important;
}

/* Light mode: Select2 placeholder renkleri - daha koyu yapıldı */
[data-theme='light'] .select2-container--default .select2-selection--single .select2-selection__placeholder,
[data-theme='light'] .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #697a8d !important;
    opacity: 0.85 !important;
}

/* Select2 disabled durumda - light mode */
[data-theme='light'] .select2-container--default.select2-container--disabled .select2-selection--single,
[data-theme='light'] .select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #e9ecef !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* Select2 disabled durumda - dark mode */
[data-theme='dark'] .select2-container--default.select2-container--disabled .select2-selection--single,
[data-theme='dark'] .select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: var(--dark-disabled-bg) !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

[data-theme='dark'] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--select2-text) transparent transparent transparent !important;
}

[data-theme='dark'] .select2-container--default.select2-container--focus .select2-selection--single,
[data-theme='dark'] .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #696cff !important;
}

[data-theme='dark'] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--select2-text) !important;
}

/* ==================== SELECT2 - BOOTSTRAP FORM-CONTROL UYUMLU ==================== */

/* Select2 container - tam genişlik */
.select2-container {
    width: 100% !important;
    display: block !important;
}

/* Select2 single selection - form-control ile aynı stil */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;  /* Sağda icon için yer */
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    line-height: 1.53 !important;
    border-radius: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
}

/* Select2 rendered text - ortalı */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.53 !important;
    padding: 0 !important;
    display: block !important;
}

/* Select2 arrow - sağ üstte, ortalı */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 5px 4px 0 4px !important;
    margin: 0 !important;
}

/* Select2 multiple - form-control uyumlu */
.select2-container--default .select2-selection--multiple {
    min-height: 38px !important;
    max-height: 120px !important; /* Maximum yükseklik sınırı */
    overflow-y: auto !important; /* Scroll ekle gerekirse */
    padding: 0.1875rem 0.75rem !important;
    font-size: 0.9375rem !important;
    border-radius: 0.375rem !important;
}

/* Select2 multiple seçimlerinde çok fazla büyümesini engelle */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

/* Dashboard consultant filter için özel stil - Dark/Light mode uyumlu */
#consultantFilter + .select2-container {
  width: 100% !important;
}

/* Light mode */
[data-theme='light'] #consultantFilter + .select2-container .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.9375rem !important;
  border: 1px solid #d9dee3 !important;
  border-radius: 0.375rem !important;
  background-color: #fff !important;
  color: #697a8d !important;
}

[data-theme='light'] #consultantFilter + .select2-container .select2-selection__rendered {
  line-height: 1.5 !important;
  padding: 0 !important;
  color: #697a8d !important;
}

/* Dark mode */
[data-theme='dark'] #consultantFilter + .select2-container .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.9375rem !important;
  border: 1px solid var(--select2-border) !important;
  border-radius: 0.375rem !important;
  background-color: var(--select2-bg) !important;
  color: var(--select2-text) !important;
}

[data-theme='dark'] #consultantFilter + .select2-container .select2-selection__rendered {
  line-height: 1.5 !important;
  padding: 0 !important;
  color: var(--select2-text) !important;
}

/* Arrow - her iki mode için */
#consultantFilter + .select2-container .select2-selection__arrow {
  height: calc(1.5em + 0.75rem + 2px) !important;
  right: 8px !important;
}

/* ==================== SELECT2 MODAL SCROLL FIX ==================== */

/* StackOverflow çözümü: https://stackoverflow.com/questions/60747651 */
/* Select2'nin gizli elementi scroll sorununa sebep olmasın */
.select2-hidden-accessible {
    position: fixed !important;
}

/* Dropdown z-index artır (modal üstünde görünsün) */
.select2-dropdown {
    z-index: 9999 !important;
}

/* Modal body scroll edilebilir ama scroll bar gizli (tarayıcı scroll bar gibi) */
.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto !important;
    /* Scroll bar gizle ama scroll edilebilir tut */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal-body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ==================== FORM ELEMENTS (BOTH MODES) ==================== */

/* Dark mode: Input & Select - CSS variables */
[data-theme='dark'] select.form-select,
[data-theme='dark'] select.form-control,
[data-theme='dark'] input.form-control,
[data-theme='dark'] textarea.form-control {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--input-text) !important;
}

[data-theme='dark'] select.form-select:focus,
[data-theme='dark'] select.form-control:focus,
[data-theme='dark'] input.form-control:focus,
[data-theme='dark'] textarea.form-control:focus {
    background-color: var(--input-bg) !important;
    border-color: #696cff !important;
    color: var(--input-text) !important;
    box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25) !important;
}

[data-theme='dark'] input.form-control::placeholder,
[data-theme='dark'] textarea.form-control::placeholder {
    color: var(--dark-placeholder) !important;
}

[data-theme='dark'] input.form-control:disabled,
[data-theme='dark'] select.form-select:disabled,
[data-theme='dark'] textarea.form-control:disabled {
    background-color: var(--dark-disabled-bg) !important;
    color: var(--dark-placeholder) !important;
}

/* ==================== DATATABLES (DARK MODE) ==================== */

[data-theme='dark'] .dataTables_wrapper {
    color: var(--select2-text) !important;
}

[data-theme='dark'] table.dataTable thead th,
[data-theme='dark'] table.dataTable thead td {
    background-color: var(--dark-card-bg) !important;
    color: var(--select2-text) !important;
    border-bottom-color: var(--select2-border) !important;
}

[data-theme='dark'] table.dataTable tbody tr {
    background-color: var(--dark-body-bg) !important;
    color: var(--select2-text) !important;
}

[data-theme='dark'] table.dataTable.hover tbody tr:hover,
[data-theme='dark'] table.dataTable.display tbody tr:hover {
    background-color: var(--dark-card-bg) !important;
}

[data-theme='dark'] table.dataTable tbody td,
[data-theme='dark'] table.dataTable tbody th {
    border-color: var(--select2-border) !important;
}

[data-theme='dark'] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--select2-text) !important;
}

[data-theme='dark'] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important;
    background: var(--dark-card-bg) !important;
    border-color: var(--select2-border) !important;
}

[data-theme='dark'] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important;
    background: #696cff !important;
    border-color: #696cff !important;
}

[data-theme='dark'] .dataTables_wrapper .dataTables_info {
    color: var(--select2-text) !important;
}

[data-theme='dark'] .dataTables_wrapper .dataTables_length select,
[data-theme='dark'] .dataTables_wrapper .dataTables_filter input {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--input-text) !important;
}

[data-theme='dark'] .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #696cff !important;
}

[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  [type=radio] + img {
    cursor: pointer;
    width: 40px;
    height: 40px;
  }

  [type=radio]:checked + img {
    outline: 2px solid #f00;
  }


:required {
    background: red;
}

.avatar .avatar_text {
    line-height: 2.5rem !important;
    color: white !important;
}

.avatar .avatar_text_table {
  color: white !important;
  text-align:center !important;
}

label.required::after {
  content: '*';
  color: red;
  margin-left: 4px;
  font-size: 0.75rem;
}
.requiredControl , .requiredControl + span span span.select2-selection.select2-selection--multiple{
  border-color: red !important;
}
.loading-panels {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
}
.loading-panels.Processing {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.8);
  z-index: 9999;
  display: block;
}
.loading-panels .loading-panels-content{
  display: flex;
  height: 100%;
  align-items: center;
  color: #fff;
  justify-content: center;
}

.mr-2 {
  margin-right: .5rem !important;
}
.float-right{
  float: right !important;
}
.mt-6 {
  margin-top: 2rem !important;
}

@media (max-width: 768px) {
 .custom-wrap {
  white-space: normal !important;
  word-wrap: break-word !important;
  }
}

.fc-daygrid-day-bottom {
  font-size: 8px;
  font-weight: bold;
  color: red !important;
  /* color: #696cff !important; */
}