/**
 * Modern Agraria GovTech - Admin Dashboard CSS
 * Kementerian Agraria dan Tata Ruang / Badan Pertanahan Nasional
 */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #faf8ff;
    color: #131b2e;
}

input, select, textarea, button, optgroup, .govtech-input, .govtech-textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Custom Scrollbar for Sidebar */
aside::-webkit-scrollbar {
    width: 4px;
}
aside::-webkit-scrollbar-track {
    background: transparent;
}
aside::-webkit-scrollbar-thumb {
    background: #e2e7ff;
    border-radius: 9999px;
}
aside::-webkit-scrollbar-thumb:hover {
    background: #c4c5d5;
}

/* Micro-animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Mobile Sidebar Drawer */
@media (max-width: 1023px) {
    #admin-sidebar.sidebar-open {
        transform: translateX(0) !important;
    }
}

/* Modern Table Enhancements for JDIH Dashboard */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f2f3ff;
    color: #444653;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid #c4c5d5;
}

.table-modern tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #131b2e;
    border-bottom: 1px solid #eaedff;
    vertical-align: middle;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover td {
    background-color: #f2f3ff;
}

/* Letter Icon Pill in Data Per User */
.letter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eaedff;
    color: #00288e;
    font-weight: 700;
    font-size: 12px;
}

.letter-icon-title {
    font-weight: 600;
    color: #131b2e;
}

/* Rankings in Top Downloads and Views */
.topDownloads tr td:first-child, .topViews tr td:first-child {
    font-weight: 800;
    text-align: center;
    font-size: 14px;
}

.topDownloads tr:nth-child(1) td:first-child, .topViews tr:nth-child(1) td:first-child {
    color: #d97706;
}

.topDownloads tr:nth-child(2) td:first-child, .topViews tr:nth-child(2) td:first-child {
    color: #006c4a;
}

.topDownloads tr:nth-child(3) td:first-child, .topViews tr:nth-child(3) td:first-child {
    color: #1e40af;
}

/* Badges generated inside HTML */
.badge, .label {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}
.badge-success, .label-success {
    background-color: #82f5c1;
    color: #005137;
}
.badge-danger, .label-danger {
    background-color: #ffdad6;
    color: #ba1a1a;
}
.badge-primary, .label-primary {
    background-color: #dde1ff;
    color: #001453;
}
.badge-info, .label-info {
    background-color: #eaedff;
    color: #1e40af;
}

/* ========================================================
   Modern Agraria GovTech - SweetAlert2 & Alert System Theme
   ======================================================== */
.swal2-container.swal-jdih-container {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(19, 27, 46, 0.45) !important;
    z-index: 99999 !important;
}

.swal2-popup.swal-jdih-popup {
    border-radius: 1.5rem !important; /* rounded-3xl */
    padding: 1.75rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(196, 197, 213, 0.4) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 40, 142, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.04) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    width: 90% !important;
    max-width: 440px !important;
}

.swal2-popup.swal-jdih-popup .swal2-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #131b2e !important;
    padding: 0.5rem 0 0.25rem 0 !important;
    line-height: 1.3 !important;
}

.swal2-popup.swal-jdih-popup .swal2-html-container {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.8125rem !important;
    color: #444653 !important;
    line-height: 1.5 !important;
    margin: 0.25rem 0 0 0 !important;
    padding: 0 !important;
}

.swal2-popup.swal-jdih-popup .swal-jdih-desc {
    margin: 0;
    font-size: 0.8125rem;
    color: #444653;
    line-height: 1.5;
}

/* Custom Icon Styling */
.swal2-popup.swal-jdih-popup .swal-jdih-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
}
.swal-jdih-icon-success {
    background: rgba(130, 245, 193, 0.3);
    color: #006c4a;
}
.swal-jdih-icon-error {
    background: rgba(255, 218, 214, 0.65);
    color: #ba1a1a;
}
.swal-jdih-icon-warning {
    background: rgba(255, 220, 195, 0.6);
    color: #a15c00;
}
.swal-jdih-icon-info {
    background: rgba(222, 225, 255, 0.65);
    color: #00288e;
}
.swal-jdih-icon-question {
    background: rgba(234, 237, 255, 0.85);
    color: #1e40af;
}

/* Actions Buttons */
.swal2-popup.swal-jdih-popup .swal2-actions {
    display: flex !important;
    gap: 0.625rem !important;
    margin-top: 1.375rem !important;
    width: 100% !important;
    justify-content: center !important;
}

.swal2-styled.swal-jdih-btn-confirm {
    border-radius: 0.75rem !important;
    padding: 0.625rem 1.375rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #ffffff !important;
    background: #00288e !important;
    border: none !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}
.swal2-styled.swal-jdih-btn-confirm:hover {
    background: #1e40af !important;
    box-shadow: 0 4px 6px -1px rgba(0, 40, 142, 0.25) !important;
}
.swal2-styled.swal-jdih-btn-danger {
    background: #ba1a1a !important;
}
.swal2-styled.swal-jdih-btn-danger:hover {
    background: #93000a !important;
    box-shadow: 0 4px 6px -1px rgba(186, 26, 26, 0.25) !important;
}

.swal2-styled.swal-jdih-btn-cancel {
    border-radius: 0.75rem !important;
    padding: 0.625rem 1.375rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #131b2e !important;
    background: #f2f3ff !important;
    border: 1px solid rgba(196, 197, 213, 0.45) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}
.swal2-styled.swal-jdih-btn-cancel:hover {
    background: #eaedff !important;
    color: #00288e !important;
}

/* Toast Styling */
.swal2-popup.swal-jdih-toast {
    border-radius: 1rem !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(196, 197, 213, 0.35) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.swal2-popup.swal-jdih-toast .swal2-title {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #131b2e !important;
}
.swal2-popup.swal-jdih-toast .swal2-timer-progress-bar {
    background: #00288e !important;
}

/* ========================================================
   Modern Agraria GovTech - Universal Modern Dropdowns & Selects
   ======================================================== */
.modern-dropdown {
    position: relative;
    display: inline-block;
}

.modern-dropdown-menu {
    transform-origin: top right;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-dropdown-menu.hidden {
    display: none !important;
}

@keyframes dropdownScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-dropdown {
    animation: dropdownScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chevron Rotation */
.dropdown-chevron {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-chevron.rotate-180 {
    transform: rotate(180deg);
}

/* Universal Modern Select Controls */
.modern-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f2f3ff;
    color: #131b2e;
    border: 1px solid rgba(196, 197, 213, 0.45);
    border-radius: 0.75rem; /* rounded-xl */
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.modern-select:hover {
    background-color: #eaedff;
    border-color: rgba(0, 40, 142, 0.35);
}

.modern-select:focus {
    background-color: #ffffff;
    border-color: #00288e;
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.1);
    outline: none;
}

.select-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.select-dropdown-wrapper .select-chevron {
    position: absolute;
    right: 0.625rem;
    pointer-events: none;
    color: #747685;
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.select-dropdown-wrapper:focus-within .select-chevron {
    color: #00288e;
    transform: rotate(180deg);
}

/* ========================================================
   MODERN GOVTECH FORM & MODAL COMPATIBILITY STYLES
   ======================================================== */

/* Grid System for Forms */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Form Groups & Controls */
.form-group {
    margin-bottom: 1.125rem;
}

.form-group > label,
label.text-semibold {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.form-control {
    display: block !important;
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    background-clip: padding-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.form-control:hover {
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
}

.form-control:focus {
    color: #0f172a !important;
    background-color: #ffffff !important;
    border-color: #00288e !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12) !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

select.form-control {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25em 1.25em !important;
    padding-right: 2.5rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

input[type="file"].form-control {
    padding: 0.5rem 0.75rem !important;
    cursor: pointer !important;
    background-color: #ffffff !important;
}

/* Modern Checkbox & Radio */
.checkbox, .radio {
    position: relative;
    display: block;
    margin-top: 0.625rem;
    margin-bottom: 0.625rem;
}

.checkbox label, .radio label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #334155;
    margin-bottom: 0;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #00288e;
    cursor: pointer;
    margin: 0;
}

/* Modal Structure Enhancements */
.app-modal .modal-header {
    padding: 1.25rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}

.app-modal .modal-header .modal-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: -0.01em;
}

.app-modal .modal-header .close {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.375rem !important;
    border-radius: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.app-modal .modal-header .close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.app-modal .modal-body {
    padding: 1.5rem !important;
    max-height: calc(85vh - 130px) !important;
    overflow-y: auto !important;
    background-color: #ffffff !important;
}

.app-modal .modal-footer {
    padding: 1rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom-left-radius: 1.5rem !important;
    border-bottom-right-radius: 1.5rem !important;
}

/* Buttons inside Modals & Tables */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #00288e !important;
    color: #ffffff !important;
    border-color: #00288e !important;
}
.btn-primary:hover {
    background-color: #001f70 !important;
    border-color: #001f70 !important;
}

.btn-success {
    background-color: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}
.btn-success:hover {
    background-color: #047857 !important;
    border-color: #047857 !important;
}

.btn-default {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
.btn-default:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.btn-xs {
    padding: 0.3125rem 0.625rem !important;
    font-size: 0.6875rem !important;
    border-radius: 0.625rem !important;
}

.btn-sm {
    padding: 0.4375rem 0.875rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.6875rem !important;
}

/* File Dropzone Box Modern */
.file-dropzone-box {
    border: 2px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}
.file-dropzone-box:hover {
    border-color: #00288e !important;
    background: #f0fdf4 !important;
}

/* Radio Card Option Modern */
.radio-card-option {
    border: 2px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    padding: 1rem 1.125rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    height: 100% !important;
    display: block !important;
    margin-bottom: 0 !important;
}
.radio-card-option:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}
.radio-card-option.selected {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* =========================================================
   Ultra-Smooth Modern Agraria GovTech - Soft Select2 Styling
   ========================================================= */

/* The Container (Full-width for forms, auto/compact for table toolbars) */
.select2-container:not(.select2-container--dt-length):not(.select2-container--compact):not(.select2-container--auto):not(.select2-container--open) {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 1. The Trigger Box (Closed & Open) */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 40px 0 16px !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.03) !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
    background-color: #fafbfc !important;
}

/* When Trigger is Open or Focused: KEEP ROUNDED CORNERS! Soft ambient halo, NOT harsh dark border */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    border-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.12) !important;
    outline: none !important;
}

/* Text Rendered inside Trigger */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding: 0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Clear button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size: 16px !important;
    color: #94a3b8 !important;
    margin-right: 24px !important;
    line-height: 46px !important;
    transition: color 0.15s ease !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #e11d48 !important;
}

/* 2. Arrow: Soft SVG Chevron with Smooth Rotation (Kill the black CSS triangle forever!) */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 12px !important;
    width: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: '' !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: rotate(180deg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* 3. Dropdown Floating Popover Card (Detached, Soft, Luminous) */
.select2-dropdown,
.select2-container--open .select2-dropdown,
.select2-container--open .select2-dropdown--below,
.select2-container--open .select2-dropdown--above {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
    background-color: #ffffff !important;
    z-index: 999999 !important;
    padding: 6px !important;
    overflow: hidden !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    animation: smoothDropdownEnter 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.select2-container--open .select2-dropdown--below {
    margin-top: 6px !important;
}

.select2-container--open .select2-dropdown--above {
    margin-top: -6px !important;
}

@keyframes smoothDropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 4. Search Box inside Dropdown */
.select2-search--dropdown,
.select2-container--default .select2-search--dropdown {
    padding: 2px 2px 6px 2px !important;
    background-color: transparent !important;
    border: none !important;
}

.select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown .select2-search__field {
    width: 100% !important;
    height: 38px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    padding: 0 12px 0 36px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 11px center !important;
    background-size: 15px !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.select2-search--dropdown .select2-search__field:focus,
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2.5px rgba(59, 130, 246, 0.12) !important;
    outline: none !important;
}

/* 5. Results List & Scrollbar */
.select2-results__options {
    max-height: 250px !important;
    padding: 2px 0 !important;
}

.select2-results__options::-webkit-scrollbar {
    width: 5px;
}
.select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}
.select2-results__options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 9999px;
}
.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* 6. Option Items (Smooth Rounded Pills) */
.select2-results__option,
.select2-container--default .select2-results__option {
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: background-color 0.12s ease, color 0.12s ease !important;
    cursor: pointer !important;
}

/* Soft, Gentle Hover State (NEVER HARSH DARK BLUE, NEVER SOLID BRIGHT BLUE) */
.select2-results__option--highlighted,
.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f1f5f9 !important; /* Soft cool slate 100 */
    color: #1e293b !important; /* Slate 800 */
    font-weight: 600 !important;
}

/* Selected State */
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-results__option[aria-selected="true"] {
    background-color: #eff6ff !important; /* Soft blue 50 */
    color: #1d4ed8 !important; /* Blue 700 */
    font-weight: 600 !important;
}

/* Empty message */
.select2-results__message {
    padding: 14px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    font-style: italic !important;
}

/* Multiple Selection Support (for tags/clusters) */
.select2-container--default .select2-selection--multiple {
    min-height: 48px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 4px 10px !important;
    background-color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.select2-container--default .select2-selection--multiple:hover {
    border-color: #94a3b8 !important;
}

.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #00288e !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 40, 142, 0.12) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f0f4ff !important;
    border: 1px solid #d2d9f4 !important;
    border-radius: 8px !important;
    padding: 4px 10px 4px 6px !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #00288e !important;
    margin: 3px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #64748b !important;
    margin-right: 6px !important;
    font-weight: bold !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ba1a1a !important;
}

/* =========================================================
   Modern Compact & Auto Toolbar Select2 Variant (e.g. Filters)
   ========================================================= */
.select2-container.select2-container--compact,
.select2-container.select2-container--auto {
    width: auto !important;
    min-width: 170px !important;
    max-width: 100% !important;
}

.select2-container--compact .select2-selection--single,
.select2-container--auto .select2-selection--single {
    height: 38px !important;
    border-radius: 12px !important;
    padding: 0 32px 0 12px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(196, 197, 213, 0.45) !important;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.03) !important;
}

.select2-container--compact .select2-selection--single:hover,
.select2-container--auto .select2-selection--single:hover {
    border-color: #94a3b8 !important;
    background-color: #fafbfc !important;
}

.select2-container--compact.select2-container--open .select2-selection--single,
.select2-container--auto.select2-container--open .select2-selection--single,
.select2-container--compact.select2-container--focus .select2-selection--single,
.select2-container--auto.select2-container--focus .select2-selection--single {
    border-color: #00288e !important;
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12) !important;
}

.select2-container--compact .select2-selection--single .select2-selection__rendered,
.select2-container--auto .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.select2-container--compact .select2-selection--single .select2-selection__arrow,
.select2-container--auto .select2-selection--single .select2-selection__arrow {
    right: 8px !important;
    width: 20px !important;
}

.select2-container--compact .select2-selection--single .select2-selection__arrow::after,
.select2-container--auto .select2-selection--single .select2-selection__arrow::after {
    background-size: 14px !important;
}

.select2-dropdown.select2-dropdown-compact {
    min-width: 170px !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
}

.select2-dropdown.select2-dropdown-compact .select2-results__option {
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
}

/* Guard against manual chevrons clashing with Select2 */
.select2-hidden-accessible ~ .select-chevron,
.select2-hidden-accessible ~ .material-symbols-outlined {
    display: none !important;
}

/* =========================================================
   Modern Agraria GovTech - Global Ultra-Premium Datepicker
   ========================================================= */

/* 1. Trigger Box & Wrapper */
.govtech-datepicker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background-color: #ffffff;
    padding: 0 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.03);
    cursor: pointer;
    box-sizing: border-box;
}

.govtech-datepicker-wrapper:hover {
    border-color: #cbd5e1;
    background-color: #fafbfc;
}

.govtech-datepicker-wrapper.is-open,
.govtech-datepicker-wrapper:focus-within {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

.govtech-datepicker-icon {
    color: #2563eb;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    pointer-events: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.govtech-datepicker-wrapper input.govtech-datepicker-field {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 90px !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    cursor: pointer !important;
    letter-spacing: 0.03em !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.govtech-datepicker-wrapper input.govtech-datepicker-field::placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: normal !important;
}

/* Status Badge inside trigger */
.govtech-status-badge {
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.govtech-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}

.govtech-badge--workday {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.govtech-badge--weekend {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.govtech-badge--holiday {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.govtech-badge-pill .badge-icon {
    font-size: 12px;
    font-weight: 800;
}

/* Clear button */
.govtech-clear-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-right: 4px;
    flex-shrink: 0;
}

.govtech-clear-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Dropdown Chevron */
.govtech-chevron-icon {
    color: #2563eb;
    font-size: 20px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    pointer-events: none;
    line-height: 1;
}

.govtech-datepicker-wrapper.is-open .govtech-chevron-icon {
    transform: rotate(180deg);
}

/* Helper text below input */
.govtech-datepicker-guide {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.4;
}

.govtech-datepicker-guide span.material-symbols-outlined {
    font-size: 14px;
    color: #2563eb;
}

.govtech-datepicker-guide strong {
    color: #1e293b;
    font-weight: 700;
}

/* 2. Floating Popover Card */
.flatpickr-calendar.govtech-datepicker,
.flatpickr-calendar {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
    background: #ffffff !important;
    padding: 16px 18px 14px 18px !important;
    width: 460px !important;
    min-width: 460px !important;
    max-width: calc(100vw - 20px) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(4px);
}

.flatpickr-calendar.govtech-datepicker.open,
.flatpickr-calendar.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none !important;
}

/* Hide Flatpickr Default Month Container */
.flatpickr-calendar.govtech-datepicker .flatpickr-months {
    display: none !important;
}

/* Custom Header Bar - Spacious 460px GovTech Layout */
.govtech-dp-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 2px !important;
    position: relative !important;
}

.govtech-dp-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

/* Ultra-Smooth GovTech Custom Dropdowns for Month & Year */
.govtech-custom-select {
    position: relative !important;
    display: inline-block !important;
}

.govtech-custom-select-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    border-radius: 9px !important;
    padding: 0 28px 0 11px !important;
    height: 30px !important;
    line-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.govtech-month-btn {
    min-width: 116px !important;
}

.govtech-year-btn {
    min-width: 76px !important;
}

.govtech-custom-select-btn:hover {
    border-color: #94a3b8 !important;
    background-color: #f8fafc !important;
}

.govtech-custom-select.is-open .govtech-custom-select-btn,
.govtech-custom-select-btn:focus {
    border-color: #00288e !important;
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.govtech-select-label {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #0f172a !important;
}

.govtech-select-arrow {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300288e' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px !important;
    pointer-events: none !important;
    transition: transform 0.2s ease !important;
}

.govtech-custom-select.is-open .govtech-select-arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}

/* Floating Menu Panel - Matching GovTech Select2 Standard */
.govtech-custom-select-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
    padding: 4px !important;
    z-index: 1000005 !important;
    display: none;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    max-height: 230px !important;
    animation: govtechDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes govtechDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.govtech-custom-select.is-open .govtech-custom-select-menu {
    display: block !important;
}

.govtech-month-menu {
    width: 140px !important;
}

.govtech-year-menu {
    width: 86px !important;
}

/* Custom Sleek Scrollbar matching Select2 */
.govtech-custom-select-menu::-webkit-scrollbar {
    width: 5px !important;
}
.govtech-custom-select-menu::-webkit-scrollbar-track {
    background: transparent !important;
}
.govtech-custom-select-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 9999px !important;
}
.govtech-custom-select-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* Option Items */
.govtech-select-option {
    padding: 7px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    cursor: pointer !important;
    transition: all 0.12s ease !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.govtech-year-menu .govtech-select-option {
    justify-content: center !important;
}

.govtech-select-option:hover {
    background-color: #eff6ff !important;
    color: #00288e !important;
}

.govtech-select-option.is-selected {
    background-color: #00288e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Native Fallback Selects (if ever used) */
.govtech-month-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    border-radius: 9px !important;
    padding: 3px 26px 3px 10px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300288e' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 11px !important;
    cursor: pointer !important;
    height: 30px !important;
    min-width: 116px !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.govtech-year-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    border-radius: 9px !important;
    padding: 3px 24px 3px 10px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300288e' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 11px !important;
    cursor: pointer !important;
    height: 30px !important;
    min-width: 76px !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.govtech-month-select:hover,
.govtech-year-select:hover {
    border-color: #94a3b8 !important;
    background-color: #f8fafc !important;
}

.govtech-ta-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: #eff6ff !important;
    color: #00288e !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 2px 7px !important;
    border: 1px solid #dbeafe !important;
    white-space: nowrap !important;
    height: 26px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.govtech-dp-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.govtech-nav-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.govtech-nav-btn:hover {
    background: #f1f5f9 !important;
    color: #00288e !important;
    border-color: #cbd5e1 !important;
}

.govtech-nav-today-btn {
    height: 28px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.govtech-nav-today-btn:hover {
    background: #f1f5f9 !important;
    color: #00288e !important;
    border-color: #cbd5e1 !important;
}

/* Preset Cepat Bar - Spacious GovTech Layout */
.govtech-presets-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 0 9px 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.govtech-presets-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-right: 2px !important;
    flex-shrink: 0 !important;
}

.govtech-preset-chip {
    border-radius: 8px !important;
    padding: 4px 11px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

.govtech-preset-chip:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.govtech-preset-chip--today {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #00288e !important;
    font-weight: 700 !important;
}

/* Weekdays: exactly 7 columns */
.flatpickr-calendar.govtech-datepicker .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-innerContainer {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.flatpickr-calendar.govtech-datepicker .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-rContainer {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.flatpickr-calendar.govtech-datepicker .flatpickr-weekdays,
.flatpickr-weekdays {
    display: flex !important;
    width: 100% !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 6px 0 !important;
    margin-top: 3px !important;
    margin-bottom: 5px !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.flatpickr-calendar.govtech-datepicker span.flatpickr-weekday,
span.flatpickr-weekday {
    flex: 0 0 calc(100% / 7) !important;
    width: calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    text-align: center !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    padding: 3px 0 !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

/* Saturday & Sunday in Red */
.flatpickr-calendar.govtech-datepicker span.flatpickr-weekday:nth-child(6),
.flatpickr-calendar.govtech-datepicker span.flatpickr-weekday:nth-child(7),
span.flatpickr-weekday:nth-child(6),
span.flatpickr-weekday:nth-child(7) {
    color: #ef4444 !important;
}

/* Days Grid: exactly 7 columns per row */
.flatpickr-calendar.govtech-datepicker .flatpickr-days,
.flatpickr-days {
    width: 100% !important;
    box-sizing: border-box !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.flatpickr-calendar.govtech-datepicker .flatpickr-day,
.flatpickr-day {
    flex: 0 0 calc(100% / 7) !important;
    width: calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    height: 40px !important;
    line-height: 40px !important;
    margin: 1.5px 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    position: relative !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.12s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Weekend dates red */
.flatpickr-calendar.govtech-datepicker .flatpickr-day.is-weekend:not(.selected),
.flatpickr-day.is-weekend:not(.selected) {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

.flatpickr-calendar.govtech-datepicker .flatpickr-day:hover:not(.selected),
.flatpickr-day:hover:not(.selected) {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-radius: 11px !important;
    transform: none !important;
}

.flatpickr-calendar.govtech-datepicker .flatpickr-day.prevMonthDay,
.flatpickr-calendar.govtech-datepicker .flatpickr-day.nextMonthDay,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
    font-weight: 400 !important;
}

/* Target Pengundangan (Soft Green Pill & Green Dot) */
.flatpickr-calendar.govtech-datepicker .flatpickr-day.has-target:not(.selected),
.flatpickr-day.has-target:not(.selected) {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.govtech-dot {
    position: absolute;
    bottom: 3.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4.5px;
    height: 4.5px;
    border-radius: 9999px;
    pointer-events: none;
}

.govtech-dot--holiday {
    background-color: #ef4444;
}

.govtech-dot--target {
    background-color: #10b981;
}

/* Selected Date: Bold Blue Pill with Halo Ring */
.flatpickr-calendar.govtech-datepicker .flatpickr-day.selected,
.flatpickr-calendar.govtech-datepicker .flatpickr-day.selected:hover,
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 0 4px #dbeafe !important;
    transform: none !important;
}

.flatpickr-calendar.govtech-datepicker .flatpickr-day.selected .govtech-dot,
.flatpickr-day.selected .govtech-dot {
    background-color: #ffffff !important;
}

/* Today (when not selected): clean outlined accent */
.flatpickr-calendar.govtech-datepicker .flatpickr-day.today:not(.selected),
.flatpickr-day.today:not(.selected) {
    background-color: transparent !important;
    border: 1.5px solid #3b82f6 !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    border-radius: 11px !important;
}

/* Legend Bar */
.govtech-legend-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 2px 6px 2px !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 8px !important;
    font-size: 11px !important;
    color: #64748b !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.govtech-legend-items {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.govtech-legend-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

.legend-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 9999px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.legend-dot--holiday {
    background-color: #ef4444;
}

.legend-dot--target {
    background-color: #10b981;
}

.govtech-legend-tz {
    color: #94a3b8 !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    margin-left: auto !important;
    padding-left: 10px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Footer Actions Bar */
.govtech-footer-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.govtech-btn-footer-reset {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 6px 4px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: color 0.15s ease !important;
}

.govtech-btn-footer-reset:hover {
    color: #0f172a !important;
}

.govtech-footer-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.govtech-btn-footer-today {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    padding: 6.5px 14px !important;
    cursor: pointer !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: all 0.15s ease !important;
}

.govtech-btn-footer-today:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.govtech-btn-footer-apply {
    background: #2563eb !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    padding: 6.5px 16px !important;
    cursor: pointer !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.15s ease !important;
}

.govtech-btn-footer-apply:hover {
    background: #1d4ed8 !important;
}



/* =========================================================
   Ultra-Smooth Modern Agraria GovTech - Global Select2 Theme
   ========================================================= */
.select2-container:not(.select2-container--dt-length):not(.select2-container--open) {
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 38px 0 14px !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.03) !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
    background-color: #fafbfc !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1e40af !important;
    border-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(30, 64, 175, 0.12) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    padding: 0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #131b2e !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 12px !important;
    width: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: '' !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: rotate(180deg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Floating Card Dropdown */
.select2-dropdown,
.select2-container--open .select2-dropdown,
.select2-container--open .select2-dropdown--below,
.select2-container--open .select2-dropdown--above {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
    background-color: #ffffff !important;
    z-index: 99999999 !important;
    padding: 6px !important;
    overflow: hidden !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    animation: smoothDropdownEnter 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.select2-container--open .select2-dropdown--below {
    margin-top: 6px !important;
}
.select2-container--open .select2-dropdown--above {
    margin-top: -6px !important;
}

@keyframes smoothDropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.select2-search--dropdown,
.select2-container--default .select2-search--dropdown {
    padding: 2px 2px 6px 2px !important;
    background-color: transparent !important;
    border: none !important;
}

.select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown .select2-search__field {
    width: 100% !important;
    height: 38px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    padding: 0 12px 0 36px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 11px center !important;
    background-size: 15px !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.select2-search--dropdown .select2-search__field:focus,
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #1e40af !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2.5px rgba(30, 64, 175, 0.12) !important;
    outline: none !important;
}

.select2-results__options {
    max-height: 250px !important;
    padding: 2px 0 !important;
}
.select2-results__options::-webkit-scrollbar {
    width: 5px;
}
.select2-results__options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 9999px;
}
.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.select2-results__option,
.select2-container--default .select2-results__option {
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: background-color 0.12s ease, color 0.12s ease !important;
    cursor: pointer !important;
}

.select2-results__option--highlighted,
.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-results__option[aria-selected="true"] {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    font-weight: 700 !important;
}

/* Also style native selects so un-initialized or fallback selects never look harsh */
select:not(.select2-hidden-accessible),
select.select-modern,
select.form-control:not(.select2-hidden-accessible),
select.modern-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 38px !important;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #131b2e !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}
select:not(.select2-hidden-accessible):hover,
select.select-modern:hover,
select.form-control:not(.select2-hidden-accessible):hover,
select.modern-select:hover {
    border-color: #94a3b8 !important;
    background-color: #f8fafc !important;
}
select:not(.select2-hidden-accessible):focus,
select.select-modern:focus,
select.form-control:not(.select2-hidden-accessible):focus,
select.modern-select:focus {
    border-color: #00288e !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(0, 40, 142, 0.12) !important;
    outline: none !important;
}

/* =========================================================
   Modern Agraria GovTech - Global DataTables Styling
   ========================================================= */
.dataTables_wrapper {
    position: relative;
    clear: both;
    width: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.dataTables_wrapper::after {
    visibility: hidden;
    display: block;
    content: "";
    clear: both;
    height: 0;
}

/* Flex Header Controls (Length & Filter) */
.dataTables_wrapper .dataTables_header,
.dataTables_wrapper .datatable-header,
.dataTables_wrapper > div:first-child:not(table):not(.overflow-x-auto) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    float: none !important;
    margin-bottom: 0 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_length {
    order: 1 !important;
}

.dataTables_wrapper .dataTables_filter {
    order: 2 !important;
    margin-left: auto !important;
    text-align: right !important;
}

.dataTables_wrapper .dataTables_length label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    cursor: pointer !important;
}

/* Native fallback select for DataTables length menu */
.dataTables_wrapper .dataTables_length select {
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 0.35rem 2rem 0.35rem 0.75rem !important;
    height: 38px !important;
    min-width: 72px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.65rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.2em 1.2em !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    outline: none !important;
    text-align: center !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #00288e !important;
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12) !important;
}

/* Select2 Specific Overrides for DataTables Length Select */
.dataTables_wrapper .dataTables_length .select2-container,
.select2-container.select2-container--dt-length,
.select2-container--open.select2-container--dt-length {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
}

.dataTables_wrapper .dataTables_length .select2-container--default .select2-selection--single,
.select2-container--dt-length .select2-selection--single {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 38px !important;
    min-height: 38px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0 26px 0 8px !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04) !important;
}

.dataTables_wrapper .dataTables_length .select2-container--default .select2-selection--single:hover,
.select2-container--dt-length .select2-selection--single:hover {
    border-color: #94a3b8 !important;
    background-color: #f8fafc !important;
}

.dataTables_wrapper .dataTables_length .select2-container--default.select2-container--open .select2-selection--single,
.dataTables_wrapper .dataTables_length .select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--dt-length.select2-container--open .select2-selection--single {
    border-color: #00288e !important;
    border-radius: 10px !important;
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12) !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_length .select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--dt-length .select2-selection__rendered {
    line-height: 36px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
    padding: 0 !important;
    width: 100% !important;
}

.dataTables_wrapper .dataTables_length .select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--dt-length .select2-selection__arrow {
    right: 6px !important;
    width: 16px !important;
    height: 100% !important;
    top: 0 !important;
}

.dataTables_wrapper .dataTables_length .select2-container--default .select2-selection--single .select2-selection__arrow::after,
.select2-container--dt-length .select2-selection__arrow::after {
    width: 13px !important;
    height: 13px !important;
    background-size: 13px !important;
}

/* Compact Floating Dropdown Popover for DataTables */
.select2-dropdown.select2-dropdown-dt-length,
.select2-container--dt-length .select2-dropdown {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    border-radius: 12px !important;
    padding: 4px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.select2-dropdown.select2-dropdown-dt-length .select2-results__option,
.select2-container--dt-length .select2-results__option {
    padding: 6px 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Search Filter Controls */
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 0.45rem 1rem !important;
    height: 38px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
    outline: none !important;
    min-width: 250px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #00288e !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12) !important;
}

/* Core DataTable Structure */
table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

table.dataTable th,
table.dataTable td {
    box-sizing: border-box;
}

table.dataTable thead th {
    border-bottom: 1px solid rgba(148, 163, 184, 0.3) !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
}

/* Flex Bottom Controls (Info & Paginate) */
.dataTables_wrapper .dataTables_footer,
.dataTables_wrapper .datatable-footer,
.dataTables_wrapper > div:last-child:not(table):not(.overflow-x-auto) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-top: 1.25rem !important;
    width: 100% !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    float: none !important;
    padding-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dataTables_wrapper .dataTables_info {
    order: 1 !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    clear: both;
}

.dataTables_wrapper .dataTables_paginate {
    order: 2 !important;
    margin-left: auto !important;
    text-align: right !important;
    gap: 0.35rem !important;
    user-select: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border-radius: 0.625rem !important;
    border: 1.5px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #f1f5f9 !important;
    color: #00288e !important;
    border-color: #cbd5e1 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #00288e !important;
    color: #ffffff !important;
    border-color: #00288e !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 40, 142, 0.25) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background-color: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}

/* Processing indicator */
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #00288e;
    z-index: 10;
}

@media (max-width: 640px) {
    .dataTables_wrapper .dataTables_header,
    .dataTables_wrapper .datatable-header,
    .dataTables_wrapper .dataTables_footer,
    .dataTables_wrapper .datatable-footer,
    .dataTables_wrapper > div:first-child:not(table):not(.overflow-x-auto),
    .dataTables_wrapper > div:last-child:not(table):not(.overflow-x-auto) {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100% !important;
        text-align: left !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        min-width: 0 !important;
    }
}
