
#kanban_board {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px;
    background: #f8f9fa;
    min-height: 500px;
}

/* Dark mode untuk kanban board */
[data-bs-theme="dark"] #kanban_board {
    background: var(--bs-body-bg);
}

/* Force horizontal */
.kanban-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
}

/* Jangan biarkan board turun */
.kanban-board {
    min-width: 280px;
    max-width: 280px;
    margin-right: 15px;
    border-radius: 12px;
}

/* Dark mode untuk kanban board */
[data-bs-theme="dark"] .kanban-board {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

/* Footer Add Task selalu di bawah */
.kanban-drag {
    padding: 10px;
    min-height: 100px;
}

.add-task-btn {
    border-style: dashed;
    margin-top: 10px;
}

/* Add Section Card */
.add-section-card {
    min-width: 280px;
    max-width: 280px;
    height: fit-content;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.add-section-card:hover {
    background: #f1f5ff;
    border-color: #3b82f6;
}

/* Dark mode untuk add section card */
[data-bs-theme="dark"] .add-section-card {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .add-section-card:hover {
    background: var(--bs-hover-bg);
    border-color: #3b82f6;
}

/* =========================
   Select2 Single - Metronic Fix Selected Color
   ========================= */

.single-select2 + .select2-container {
    width: 100% !important;
}

.single-select2 + .select2-container .select2-selection--single {
    height: calc(1.5em + 1.65rem + 2px);
    border: 1px solid #dbdfe9;
    border-radius: 0.475rem;
    background-color: #ffffff;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
}

/* Dark mode untuk select2 single */
[data-bs-theme="dark"]
    .single-select2
    + .select2-container
    .select2-selection--single {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

/* Selected text */
.single-select2
    + .select2-container
    .select2-selection--single
    .select2-selection__rendered {
    color: #181c32 !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: normal !important;
    padding-left: 0 !important;
    padding-right: 2rem !important;
}

/* Dark mode untuk selected text */
[data-bs-theme="dark"]
    .single-select2
    + .select2-container
    .select2-selection--single
    .select2-selection__rendered {
    color: var(--bs-body-color) !important;
}

/* Placeholder */
.single-select2
    + .select2-container
    .select2-selection--single
    .select2-selection__placeholder {
    color: #a1a5b7 !important;
}

/* Dark mode untuk placeholder */
[data-bs-theme="dark"]
    .single-select2
    + .select2-container
    .select2-selection--single
    .select2-selection__placeholder {
    color: var(--bs-body-color) !important;
    opacity: 0.6;
}

/* Arrow */
.single-select2
    + .select2-container
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 10px;
    top: 0;
}

/* Dark mode untuk arrow */
[data-bs-theme="dark"]
    .single-select2
    + .select2-container
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: var(--bs-body-color) transparent transparent transparent !important;
}

/* Focus */
.single-select2
    + .select2-container.select2-container--focus
    .select2-selection--single,
.single-select2
    + .select2-container.select2-container--open
    .select2-selection--single {
    border-color: #009ef7;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.25);
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid #dbdfe9;
    border-radius: 0.475rem;
    overflow: hidden;
}

/* Dark mode untuk dropdown */
[data-bs-theme="dark"] .select2-dropdown {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

/* Dropdown option */
.select2-results__option {
    padding: 10px 14px;
    color: #181c32;
}

/* Dark mode untuk option */
[data-bs-theme="dark"] .select2-results__option {
    color: var(--bs-body-color) !important;
}

/* Selected option */
.select2-results__option--selected {
    background-color: #f1faff !important;
    color: #009ef7 !important;
}

/* Dark mode untuk selected option */
[data-bs-theme="dark"] .select2-results__option--selected {
    background-color: rgba(0, 158, 247, 0.15) !important;
    color: #009ef7 !important;
}

/* Hover option */
.select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #009ef7 !important;
    color: #ffffff !important;
}

/* Dark mode untuk hover option */
[data-bs-theme="dark"]
    .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #009ef7 !important;
    color: #ffffff !important;
}

/* ==========================================
   Project Category Select2 Multiple
   ========================================== */

.multiple-select2 + .select2-container {
    width: 100% !important;
}

.multiple-select2 + .select2-container .select2-selection--multiple {
    min-height: calc(1.5em + 1.65rem + 2px);
    border: 1px solid #dbdfe9;
    border-radius: 0.475rem;
    background: #fff;
    padding: 4px 8px;
}

/* Dark mode untuk select2 multiple */
[data-bs-theme="dark"]
    .multiple-select2
    + .select2-container
    .select2-selection--multiple {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

/* focus */
.multiple-select2
    + .select2-container.select2-container--focus
    .select2-selection--multiple,
.multiple-select2
    + .select2-container.select2-container--open
    .select2-selection--multiple {
    border-color: #009ef7;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.25);
}

/* input */
.multiple-select2 + .select2-container .select2-search__field {
    margin-top: 4px !important;
}

/* Dark mode untuk input search */
[data-bs-theme="dark"]
    .multiple-select2
    + .select2-container
    .select2-search__field {
    color: var(--bs-body-color) !important;
    background-color: var(--bs-body-bg) !important;
}

/* selected tags */
.multiple-select2 + .select2-container .select2-selection__choice {
    background: #f1faff !important;
    border: 1px solid #cfe8ff !important;
    color: #009ef7 !important;
    border-radius: 0.475rem !important;
    padding: 4px 10px !important;
    margin-top: 4px !important;
    margin-right: 6px !important;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Dark mode untuk selected tags */
[data-bs-theme="dark"]
    .multiple-select2
    + .select2-container
    .select2-selection__choice {
    background: rgba(0, 158, 247, 0.15) !important;
    border-color: rgba(0, 158, 247, 0.3) !important;
    color: #009ef7 !important;
}

/* remove button */
.multiple-select2 + .select2-container .select2-selection__choice__remove {
    color: #009ef7 !important;
    margin-right: 6px !important;
    border-right: none !important;
}

.multiple-select2
    + .select2-container
    .select2-selection__choice__remove:hover {
    color: #f1416c !important;
    background: transparent !important;
}

/* Dark mode untuk remove button */
[data-bs-theme="dark"]
    .multiple-select2
    + .select2-container
    .select2-selection__choice__remove {
    color: #009ef7 !important;
}

[data-bs-theme="dark"]
    .multiple-select2
    + .select2-container
    .select2-selection__choice__remove:hover {
    color: #f1416c !important;
}

/* placeholder */
.multiple-select2
    + .select2-container
    .select2-search--inline
    .select2-search__field::placeholder {
    color: #a1a5b7;
}

/* Dark mode untuk placeholder */
[data-bs-theme="dark"]
    .multiple-select2
    + .select2-container
    .select2-search--inline
    .select2-search__field::placeholder {
    color: var(--bs-body-color) !important;
    opacity: 0.6;
}

/* dropdown */
.select2-dropdown {
    border: 1px solid #dbdfe9;
    border-radius: 0.475rem;
    overflow: hidden;
}

.select2-results__option {
    padding: 10px 14px;
}

.select2-results__option--selected {
    background-color: #f1faff !important;
    color: #009ef7 !important;
}

.select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #009ef7 !important;
    color: #fff !important;
}

/* Dark mode untuk search field di dropdown */
[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
}

/* Dark mode untuk dropdown container */
[data-bs-theme="dark"]
    .select2-container--default
    .select2-results__option[aria-selected="true"] {
    background-color: rgba(0, 158, 247, 0.15) !important;
}

/* Fix untuk select2 dropdown arrow di dark mode */
[data-bs-theme="dark"]
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: var(--bs-body-color) transparent transparent transparent !important;
}

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

/* Fix untuk clear button di dark mode */
[data-bs-theme="dark"]
    .select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    color: var(--bs-body-color) !important;
}

/* Fix untuk disabled state */
[data-bs-theme="dark"]
    .select2-container--default.select2-container--disabled
    .select2-selection--single {
    background-color: var(--bs-body-bg) !important;
    opacity: 0.6;
}

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

/* Scrollbar untuk kanban board di dark mode */
[data-bs-theme="dark"] #kanban_board::-webkit-scrollbar {
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] #kanban_board::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] #kanban_board::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 10px;
}

[data-bs-theme="dark"] #kanban_board::-webkit-scrollbar-thumb:hover {
    background: var(--bs-border-color);
}
/* ==========================================
   DARK MODE UNTUK FILTER INVOICE
   ========================================== */

/* Dark mode untuk menu filter dropdown */
[data-bs-theme="dark"] .menu-sub-dropdown {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .menu-item {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .menu-link {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .menu-link:hover {
    background: var(--bs-hover-bg) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .text-gray-900 {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .text-muted {
    color: var(--bs-body-color) !important;
    opacity: 0.7;
}

[data-bs-theme="dark"] .menu-sub-dropdown .separator {
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .border-gray-200 {
    border-color: var(--bs-border-color) !important;
}

/* Dark mode untuk form di dalam menu filter */
[data-bs-theme="dark"] .menu-sub-dropdown .form-label {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .form-select {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .form-select:focus {
    border-color: #009ef7 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.2) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .form-select option {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .form-control {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .form-control:focus {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: #009ef7 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.2) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .form-control::placeholder {
    color: var(--bs-body-color) !important;
    opacity: 0.5;
}

/* Dark mode untuk select2 di dalam menu filter */
[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-container--default
    .select2-selection--multiple {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-container--default.select2-container--focus
    .select2-selection--multiple {
    border-color: #009ef7 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.2) !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background: rgba(0, 158, 247, 0.15) !important;
    border-color: rgba(0, 158, 247, 0.3) !important;
    color: #009ef7 !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    color: #009ef7 !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    color: #f1416c !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-container--default
    .select2-search--inline
    .select2-search__field {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-container--default
    .select2-search--inline
    .select2-search__field::placeholder {
    color: var(--bs-body-color) !important;
    opacity: 0.5;
}

/* Dark mode untuk select2 dropdown di dalam menu filter */
[data-bs-theme="dark"] .menu-sub-dropdown .select2-dropdown {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .select2-results__option {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .select2-results__option--selected {
    background: rgba(0, 158, 247, 0.15) !important;
    color: #009ef7 !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-results__option--highlighted {
    background: #009ef7 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-search--dropdown
    .select2-search__field {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .select2-search--dropdown
    .select2-search__field::placeholder {
    color: var(--bs-body-color) !important;
    opacity: 0.5;
}

/* Dark mode untuk tombol di menu filter */
[data-bs-theme="dark"] .menu-sub-dropdown .btn-light {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .btn-light:hover {
    background: var(--bs-hover-bg) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .btn-primary {
    background: #009ef7 !important;
    border-color: #009ef7 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .menu-sub-dropdown .btn-primary:hover {
    background: #0095e8 !important;
    border-color: #0095e8 !important;
}

/* Dark mode untuk badge di menu filter */
[data-bs-theme="dark"] .menu-sub-dropdown .badge-primary {
    background: rgba(0, 158, 247, 0.15) !important;
    color: #009ef7 !important;
}

/* Dark mode untuk date range label */
[data-bs-theme="dark"] .menu-sub-dropdown .text-muted.fs-7 {
    color: var(--bs-body-color) !important;
    opacity: 0.7;
}

[data-bs-theme="dark"] .menu-sub-dropdown .ki-calendar {
    color: var(--bs-body-color) !important;
    opacity: 0.7;
}

/* Dark mode untuk tombol filter di card header */
[data-bs-theme="dark"] .btn-light-primary {
    background: rgba(0, 158, 247, 0.1) !important;
    color: #009ef7 !important;
    border-color: rgba(0, 158, 247, 0.2) !important;
}

[data-bs-theme="dark"] .btn-light-primary:hover {
    background: rgba(0, 158, 247, 0.2) !important;
    color: #009ef7 !important;
    border-color: rgba(0, 158, 247, 0.3) !important;
}

[data-bs-theme="dark"] .btn-light-secondary {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .btn-light-secondary:hover {
    background: var(--bs-hover-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .btn-light-secondary .ki-filter {
    color: var(--bs-body-color) !important;
    opacity: 0.7;
}

[data-bs-theme="dark"] .btn-light-primary .ki-calendar {
    color: #009ef7 !important;
}

/* Dark mode untuk badge di button filter */
[data-bs-theme="dark"] .badge-primary {
    background: rgba(0, 158, 247, 0.15) !important;
    color: #009ef7 !important;
}

/* Dark mode untuk select2 dengan class form-select-solid */
[data-bs-theme="dark"] .form-select-solid {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .form-select-solid:focus {
    border-color: #009ef7 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.2) !important;
}

[data-bs-theme="dark"] .form-select-solid option {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

/* Dark mode untuk select2 yang menggunakan data-kt-select2 */
[data-bs-theme="dark"]
    .select2-container--default
    .select2-selection--multiple.form-select-solid {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"]
    .select2-container--default.select2-container--focus
    .select2-selection--multiple.form-select-solid {
    border-color: #009ef7 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.2) !important;
}

/* Dark mode untuk tombol reset dan apply di filter */
[data-bs-theme="dark"] .menu-sub-dropdown .btn-light.btn-active-light-primary {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"]
    .menu-sub-dropdown
    .btn-light.btn-active-light-primary:hover {
    background: var(--bs-hover-bg) !important;
    color: var(--bs-body-color) !important;
}

/* Dark mode untuk responsive */
@media (max-width: 768px) {
    [data-bs-theme="dark"] .menu-sub-dropdown {
        width: 90% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}
