.cp {
    cursor: pointer;
}

table.tdFirstCenter tbody tr td:first-child {
    text-align: center;
}

.dt-paging.paging_simple_numbers {
    padding: 0;
}

i {
    padding: 0 !important;
    margin: 0 !important;
}

tr.clickable {
    cursor: pointer;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Chrome/Safari/Opera */
    -khtml-user-select: none;
    /* Konqueror */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* non-prefixed version, currently */
}

tr.selectedRow {
    background-color: #f7f9fb;
    font-style: italic;
    font-weight: bold;
}

.custom-length {
    width: 10% !important;
}

.custom-pagination {
    width: 15% !important;
}

/* jstree */
.vakata-context {
    z-index: 9999 !important;
}

/* === Custom Pagination Style === */

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.page-item .page-link {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: transparent;
    color: #1e1e2d;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Aktif */
.page-item.active .page-link {
    background-color: #e3fbe2;
    color: #17C653;
}

.page-link span {
    display: flex;
}

/* Hover */
.page-item:not(.previous):not(.next) .page-link:hover,
.page-item .page-link:not(.previous):not(.next):hover {
    background-color: #17C653;
    color: white !important;
}

.page-item.previous .page-link:hover,
.page-item.next .page-link:hover,
.page-link.previous:hover,
.page-link.next:hover {
    background-color: transparent !important;
    color: inherit !important;
}


/* Panah navigasi (← →) */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    color: #4CAF50;
  font-size: 16px;
}

/* Custom style untuk select jumlah data per halaman */
.custom-datatable-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    font-size: 14px;
    color: red;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

/* ========================================= */
/* === GLOBAL FLATPICKR CUSTOM STYLING === */
/* ========================================= */

.flatpickr-calendar {
    width: 600px !important;
    height: 375px !important;
}

@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 100% !important;
        height: auto !important;
    }
}

.flatpickr-months {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

.flatpickr-months .flatpickr-month {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.flatpickr-months .flatpickr-prev-month {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: left;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}

.flatpickr-months .flatpickr-next-month {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: left;
    position: absolute !important;
    right: 280px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #e9e9e9;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 12px;
    height: 12px;
    fill: #666 !important;
}

.flatpickr-current-month {
    display: flex;
    align-items: left;
    justify-content: left;
    width: 100%;
    text-align: left;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.flatpickr-weekdays {
    height: 35px;
    background: #f8f9fa;
}

.flatpickr-weekday {
    font-weight: 600;
    color: #666;
}

.flatpickr-days {
    width: 100%;
}

.flatpickr-day {
    width: calc(100% / 7);
    height: 35px;
    line-height: 35px;
    margin: 0;
    border-radius: 20px;
}

.flatpickr-day:hover {
    background: #f0f0f0;
}

.flatpickr-day.today {
    background: #45AB48 !important;
    color: white !important;
    border-color: #45AB48 !important;
    font-weight: 600;
}

.flatpickr-day.selected {
    background: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
    font-weight: 600;
}

.flatpickr-day.selected:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Ensure arrows are visible and properly styled */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================= */
/* === END FLATPICKR CUSTOM STYLING === */
/* ========================================= */

.nav-pills .nav-link.active {
  /* Menghilangkan background */
  background-color: transparent !important;
  
  /* Mengubah warna teks menjadi hijau (success) */
  color: var(--bs-success) !important;
}

/* Jika ingin link yang tidak aktif juga memiliki teks yang lebih jelas */
.nav-pills .nav-link {
    color: var(--bs-secondary); /* Warna abu-abu yang lebih terang */
}