
#toast.show {
    display: block;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
/* Color classes for different alert types */
    .text-warning {
        color: #f59e0b !important;
    }

    .text-error {
        color: #ef4444 !important;
    }

    .text-success {
        color: #10b981 !important;
    }

    .text-info {
        color: #0370C4 !important;
    }

    /* Enhanced modal styling */
    #globalAlertModal {
        z-index: 9999;
    }

    #globalAlertModal .btn-primary {
        background: linear-gradient(135deg, #0370C4 0%, #0370C4 100%);
        border: none;
        border-radius: 0.5rem;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        transition: all 0.2s ease;
        color: white;
    }

    #globalAlertModal .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px #0370C4;
    }

    #globalAlertModal .btn-primary:focus {
        outline: 2px solid #0370C4;
        outline-offset: 2px;
    }

    /* Ensure proper spacing and typography */
    #globalAlertTitle {
        color: #1f2937;
        font-weight: 600;
    }

    #globalAlertMessage {
        color: #6b7280;
        line-height: 1.5;
    }

    /* Dark mode support */
    .dark #globalAlertTitle {
        color: #f9fafb;
    }

    .dark #globalAlertMessage {
        color: #d1d5db;
    }

/* Enhanced Progress Tracker Component Styles */
.progress-tracker-container {
    position: relative;
}

/* Progress Flow Wrapper */
.progress-flow-wrapper {
    position: relative;
    padding: 1rem 0;
}

/* Individual step connectors - subtle with gaps */
.progress-step-connector {
    height: 1px;
    background: #e2e8f0;
    border-radius: 0.5px;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0.6;
}

.progress-step-connector > div {
    background: #cbd5e1;
    border-radius: inherit;
    transition: width 0.5s ease;
    opacity: 0.8;
}

/* Ensure step wrappers have proper overflow for connecting lines */
.progress-step-wrapper {
    overflow: visible;
}

/* Step circles with subtle styling like nav tabs */
.progress-step-circle {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible !important;
    will-change: transform;
    transform: translateZ(0);
}

/* Hover effect for subtle circles */
.progress-step-circle:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Ensure flex content is properly centered */
.progress-step-circle {
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure SVG icons are visible and properly styled for subtle design */
.progress-step-circle svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

/* Step number styling */
.progress-step-circle .step-number {
    font-weight: 600 !important;
}

/* Progress step mini circles with subtle styling */
.progress-step-mini {
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    will-change: transform;
    transform: translateZ(0);
}

.progress-step-mini svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    width: 12px !important;
    height: 12px !important;
    display: block !important;
    opacity: 1 !important;
}

/* Subtle hover and state effects */
.progress-indicator-item:hover .progress-step-mini {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.progress-step-circle.step-pending {
    opacity: 0.8;
}

/* Step wrapper equal spacing */
.progress-step-wrapper {
    min-width: 0; /* Allows flex items to shrink */
    position: relative;
}

.progress-step-wrapper:not(:last-child) {
    margin-right: 0; /* Remove any margin, let flex handle spacing */
}

/* Enhanced progress indicators section */
.progress-indicators-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.progress-indicator-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(200, 200, 200, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
}

.progress-indicator-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced progress bars */
.progress-bar-fill {
    position: relative;
    overflow: hidden;
    animation: progressSlideIn 1.5s ease-out forwards;
}

/* Progress step mini circles */
.progress-step-mini {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-indicator-item:hover .progress-step-mini {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Summary badge */
.progress-summary-badge {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.progress-summary-badge:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: scale(1.02);
}

/* Animations */
@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
}

@keyframes progressSlideIn {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        transform: translate3d(100%, 0, 0);
    }
}

.animate-shimmer {
    animation: shimmer 2s ease-in-out infinite;
    animation-play-state: paused;
    will-change: transform;
}

.animate-shimmer.visible {
    animation-play-state: running;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-flow-wrapper {
        padding: 0.5rem 0;
    }
    
    .progress-step-connector {
        display: none;
    }
    
    .progress-step-wrapper {
        margin-bottom: 1rem;
    }
    
    .progress-step-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.75rem;
    }
    
    .progress-indicators-section {
        padding: 1rem;
    }
    
    .progress-indicator-item {
        padding: 0.75rem;
    }
}

@media (max-width: 640px) {
    .progress-flow-wrapper .flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .progress-step-wrapper {
        flex: none !important;
        width: 100%;
        max-width: 200px;
    }
}
/* Table Editor Styles */
    .edit-controls {
        display: flex;
        gap: 5px;
        justify-content: center;
        align-items: center;
    }

    .edit-controls .btn {
        padding: 4px 8px;
        font-size: 12px;
        line-height: 1.2;
        border-radius: 3px;
    }

    .edit-field {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 4px;
        border: 1px solid #d1d5db;
        background-color: #ffffff;
        resize: vertical;
        min-height: 34px;
        margin: 0;
        display: block;
    }
    
    /* Ensure edit field containers don't add extra width */
    tr.editing-row td > * {
        max-width: 100%;
    }

    /* Specific styling for textarea edit fields */
    .edit-field[type="textarea"],
    textarea.edit-field {
        min-height: 60px;
        line-height: 1.4;
    }

    .edit-field:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

    /* Editing row highlight */
    tr.editing-row {
        background-color: #f8f9fa !important;
        border: 2px solid #007bff;
    }

    tr.editing-row td {
        background-color: #f8f9fa !important;
        padding: 8px !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* Edit Controls Styling */
    .edit-controls {
        display: flex;
        gap: 4px;
        justify-content: center;
    }

    .edit-controls .save-btn {
        background-color: #10b981 !important;
        border-color: #10b981 !important;
        color: white !important;
    }

    .edit-controls .save-btn:hover {
        background-color: #42d2a3 !important;
        border-color: #2d2a3a !important;
    }

    .edit-controls .cancel-btn {
        background-color: #ef4444 !important;
        border-color: #ef4444 !important;
        color: white !important;
    }

    .edit-controls .cancel-btn:hover {
        background-color: #dc2626 !important;
        border-color: #dc2626 !important;
    }

    .edit-controls .save-btn .fas,
    .edit-controls .cancel-btn .fas {
        color: white !important;
    }

    /* Edit button styling */
    .edit-btn {
        background-color: #ef4444;
        border-color: #ef4444;
        color: #ffff;
    }

    .edit-btn:hover {
        background-color: #f8a8a8;
        border-color: #f8a8a8;
        color: #fff;
    }

    /* Toast notifications */
    .alert.position-fixed {
        max-width: 400px;
        word-wrap: break-word;
    }

    /* Validation states */
    .edit-field.is-invalid {
        border-color: #dc3545;
        border-radius: 4px;
        background-color: #fff5f5;
    }

    .edit-field.is-valid {
        border-color: #10b981;
        border-radius: 4px;
        background-color: #f0fdf4;
    }
    
    /* Select dropdowns in edit mode */
    select.edit-field {
        cursor: pointer;
        padding-right: 30px;
        background-position: right 8px center;
        background-repeat: no-repeat;
        background-size: 12px;
    }
    
    /* Number inputs in edit mode */
    input[type="number"].edit-field {
        -moz-appearance: textfield;
        appearance: textfield;
    }
    
    input[type="number"].edit-field::-webkit-outer-spin-button,
    input[type="number"].edit-field::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    /* Date/datetime inputs in edit mode */
    input[type="date"].edit-field,
    input[type="datetime-local"].edit-field {
        cursor: pointer;
    }
    
    /* Better responsiveness for small screens */
    @media (max-width: 768px) {
        tr.editing-row td {
            padding: 6px !important;
        }
        
        .edit-field {
            font-size: 14px;
            padding: 8px;
            min-height: 38px;
        }
        
        .edit-controls .btn {
            padding: 6px 10px;
        }
    }

    .field-error {
        color: #dc3545;
        font-size: 11px;
        margin-top: 2px;
    }

    /* Loading states */
    .btn.loading {
        position: relative;
        color: transparent;
    }

    .btn.loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border-radius: 50%;
        border: 2px solid #ffffff;
        border-top-color: transparent;
        animation: spin 1s linear infinite;
        will-change: transform;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
        .edit-controls {
            flex-direction: column;
            gap: 3px;
        }

        .edit-field {
            min-width: 100px;
            font-size: 14px;
        }

        .alert.position-fixed {
            left: 10px;
            right: 10px;
            max-width: none;
            top: 10px;
        }
    }

    /* Custom Checkbox Styles for Table Selection */
    .row-select-checkbox,
    .select-all-checkbox {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #cbd5e1;
        border-radius: 4px;
        background-color: #ffffff;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
        flex-shrink: 0;
        margin: 0;
    }

    .row-select-checkbox:hover,
    .select-all-checkbox:hover {
        border-color: #0370C4;
        background-color: #f0f9ff;
        transform: scale(1.05);
    }

    .row-select-checkbox:checked,
    .select-all-checkbox:checked {
        background-color: #0370C4;
        border-color: #0370C4;
        animation: checkboxPop 0.2s ease;
    }

    .row-select-checkbox:checked::before,
    .select-all-checkbox:checked::before {
        content: '';
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .row-select-checkbox:focus,
    .select-all-checkbox:focus {
        outline: none;
        border-color: #0370C4;
        box-shadow: 0 0 0 3px rgba(3, 112, 196, 0.1);
    }

    .row-select-checkbox:disabled,
    .select-all-checkbox:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    @keyframes checkboxPop {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
        }
    }

    /* Indeterminate state for select-all checkbox (when some but not all selected) */
    .select-all-checkbox:indeterminate {
        background-color: #0370C4;
        border-color: #0370C4;
    }

    .select-all-checkbox:indeterminate::before {
        content: '';
        position: absolute;
        left: 3px;
        top: 7px;
        width: 10px;
        height: 2px;
        background-color: white;
    }

    /* Ensure dt-buttons container uses flexbox for proper alignment */
    .dt-buttons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    /* Prevent dt-buttons from taking full width */
    .dt-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Batch edit button specific styles (integrated with dt-buttons) */
    .dt-button.edit-selected-btn,
    .dt-button.clear-selection-btn {
        margin-left: 0;
    }

    .dt-button.edit-selected-btn .selected-count {
        font-weight: 600;
    }

    /* Responsive Scrollable Table */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .responsive-table {
        table-layout: fixed !important;
        min-width: 100% !important;
        width: auto !important;
    }

    .responsive-table th,
    .responsive-table td {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 8px 12px !important;
        vertical-align: middle !important;
    }

    /* Action columns (Zoom and Edit) stay fixed at 60px - ONLY when BOTH action buttons are enabled */
    .responsive-table[data-action-buttons="2"] th:first-child,
    .responsive-table[data-action-buttons="2"] td:first-child,
    .responsive-table[data-action-buttons="2"] th:nth-child(2),
    .responsive-table[data-action-buttons="2"] td:nth-child(2) {
        /* width: 60px !important; */
        /* min-width: 60px !important; */
        max-width: 60px !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }


    /* Data columns for standard tables - when BOTH action buttons are enabled (3rd column and beyond) */
    .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="2"] th:nth-child(n+3),
    .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="2"] td:nth-child(n+3) {
        min-width: 150px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Data columns for standard tables - when ONLY ONE action button is enabled (2nd column and beyond) */
    .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="1"] th:nth-child(n+2),
    .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="1"] td:nth-child(n+2) {
        min-width: 150px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Data columns for standard tables - when NO action buttons are enabled (all columns) */
    .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="0"] th,
    .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="0"] td {
        min-width: 150px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Stats tables - override fixed table layout to allow natural column width and horizontal scroll */
    .responsive-table[data-table-id="stats_table"] {
        table-layout: auto !important;
        width: max-content !important;
        min-width: 100% !important;
    }

    /* Data columns for stats tables - ALL columns get min-width (stats tables don't have action buttons) */
    .responsive-table[data-table-id="stats_table"] th,
    .responsive-table[data-table-id="stats_table"] td {
        min-width: 150px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile responsive adjustments - still scrollable */
    @media (max-width: 768px) {
        .table-responsive {
            -webkit-overflow-scrolling: touch;
        }

        .responsive-table th,
        .responsive-table td {
            padding: 6px 8px !important;
            font-size: 0.9em !important;
        }

        /* Standard tables: data columns from 3rd onwards when both action buttons enabled */
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="2"] th:nth-child(n+3),
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="2"] td:nth-child(n+3) {
            min-width: 200px !important;
        }

        /* Standard tables: data columns from 2nd onwards when one action button enabled */
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="1"] th:nth-child(n+2),
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="1"] td:nth-child(n+2) {
            min-width: 200px !important;
        }

        /* Standard tables: all columns when no action buttons enabled */
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="0"] th,
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="0"] td {
            min-width: 200px !important;
        }

        /* Stats tables: ALL columns get wider min-width on mobile */
        .responsive-table[data-table-id="stats_table"] th,
        .responsive-table[data-table-id="stats_table"] td {
            min-width: 200px !important;
        }
    }

    @media (max-width: 480px) {

        .responsive-table th,
        .responsive-table td {
            padding: 4px 6px !important;
            font-size: 0.85em !important;
        }

        /* Standard tables: data columns from 3rd onwards when both action buttons enabled */
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="2"] th:nth-child(n+3),
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="2"] td:nth-child(n+3) {
            min-width: 150px !important;
        }

        /* Standard tables: data columns from 2nd onwards when one action button enabled */
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="1"] th:nth-child(n+2),
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="1"] td:nth-child(n+2) {
            min-width: 150px !important;
        }

        /* Standard tables: all columns when no action buttons enabled */
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="0"] th,
        .responsive-table[data-table-id="mobile_dashboard"][data-action-buttons="0"] td {
            min-width: 150px !important;
        }

        /* Stats tables: ALL columns maintain min-width on smaller screens */
        .responsive-table[data-table-id="stats_table"] th,
        .responsive-table[data-table-id="stats_table"] td {
            min-width: 150px !important;
        }
    }

 .px-2 {
    padding-left: 0.5rem;
    padding-right: 2rem;
}

.dataTables_wrapper #featuresTable tbody tr,
.dataTables_wrapper .custom-table tbody tr,
.dataTables_wrapper table[id*="-table"] tbody tr {
    border-bottom: 0px solid #202328 !important;
}

.chart-container {
    margin: 20px auto;
    width: 100%;
    position: relative;
    /* height: 400px; */
}

/* Ensure chart containers are responsive */
.chart-container > div {
    width: 100% !important;
    /* height: auto !important; - Removed to allow configurable height */
    /* min-height: 300px; - Removed to allow configurable height */
    max-width: 100%;
    overflow: hidden;
}

/* Ensure chart canvas never exceeds container */
.chart-container canvas {
    max-width: 100% !important;
    height: auto !important;
}

/* Ensure the inner chart div respects container bounds */
.chart-container > div > div {
    max-width: 100% !important;
    width: 100% !important;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    .chart-container {
        margin: 10px auto;
    }
    
    .chart-container > div {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .chart-container > div {
        min-height: 200px;
    }
}

/* Ensure the parent box container properly contains charts */
.intro-y.box {
    overflow: hidden;
    box-sizing: border-box;
}

.intro-y.box .chart-container {
    max-width: 100%;
    box-sizing: border-box;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#updateIndicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    display: none;
}

#globalFilterContainer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Shift Report Table - Using same responsive design as aggregate tables */
table[data-table-id="shift_report_table"] {
    table-layout: auto !important;
    width: 100% !important;
}

table[data-table-id="shift_report_table"] th,
table[data-table-id="shift_report_table"] td {
    min-width: 150px !important;
    max-width: none !important;
    width: auto !important;
    text-align: center !important;
    padding: 8px;
    box-sizing: border-box !important;
}

/* Ensure shift report table columns are evenly distributed */
.dataTables_wrapper table[data-table-id="shift_report_table"] th,
.dataTables_wrapper table[data-table-id="shift_report_table"] td {
    min-width: 150px !important;
    max-width: none !important;
    width: auto !important;
    text-align: center !important;
}

/* Ensure shift report table wrapper uses full width */
div[id^="shiftTableContainer-"] {
    width: 100% !important;
}

/* Ensure table-responsive wrapper for shift reports uses full width */
div[id^="shiftTableContainer-"] .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure DataTables wrapper for shift reports uses full width */
div[id^="shiftTableContainer-"] .dataTables_wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* Override DataTables inline styles for shift report table */
div[id^="shiftTableContainer-"] .dataTables_scrollHeadInner {
    width: 100% !important;
    max-width: 100% !important;
}

div[id^="shiftTableContainer-"] .dataTables_scrollHeadInner table {
    width: 100% !important;
    margin-left: 0 !important;
}

div[id^="shiftTableContainer-"] .dataTables_scrollBody {
    width: 100% !important;
}

div[id^="shiftTableContainer-"] .dataTables_scrollBody table {
    width: 100% !important;
}

/* Fix DataTables scroll alignment for stats tables with FixedColumns */
.dataTables_wrapper .dataTables_scroll .dataTables_scrollHead {
    overflow: hidden !important;
}

.dataTables_wrapper .dataTables_scroll .dataTables_scrollHeadInner {
    box-sizing: content-box !important;
}

.dataTables_wrapper .dataTables_scroll .dataTables_scrollBody {
    overflow: auto !important;
}

/* Ensure header and body tables have matching widths */
.dataTables_wrapper .dataTables_scrollHeadInner table.stats-table,
.dataTables_wrapper .dataTables_scrollBody table.stats-table {
    width: 100% !important;
}

/* Force shift report table columns to distribute evenly, overriding DataTables inline styles */
table[data-table-id="shift_report_table"] th,
table[data-table-id="shift_report_table"] td {
    width: auto !important;
    min-width: 150px !important;
    max-width: none !important;
}

/* Legacy support for old shiftReportTable ID if still used */
#shiftReportTable td {
    text-align: center;
    width: auto !important;
    min-width: 150px;
}

#shiftReportTable tr {
    height: 40px;
}

#shiftReportTable td,
#shiftReportTable th {
    text-align: center !important;
    padding: 8px;
}

/* Drag and Drop Styles for Groups and Layers */
.sortable-groups {
    min-height: 20px;
}

.wfs-group {
    position: relative;
    transition: all 0.2s ease;
}

.wfs-group.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
}

.wfs-group.drag-over {
    border: 2px dashed #3b82f6;
    background-color: #eff6ff;
    margin: 8px 0;
}

.wfs-layer {
    position: relative;
    transition: all 0.2s ease;
}

.wfs-layer.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
}

.wfs-layer.drag-over {
    border: 2px dashed #10b981;
    background-color: #ecfdf5;
    margin: 4px 0;
}

.drag-handle {
    cursor: grab;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.drag-handle:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    transform: scale(1.05);
}

.drag-handle:active {
    cursor: grabbing;
    background-color: #cbd5e1;
    border-color: #94a3b8;
    transform: scale(0.95);
}

.group-drag-handle {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 10;
}

.layer-drag-handle {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 10;
}

.accordion-header {
    position: relative;
    padding-left: 40px;
}

.sortable-layers {
    min-height: 10px;
}

#shiftReportTable td {
    border-bottom: 1px solid #ddd;
}

#shiftReportTable .header-info {
    font-size: 0.9em;
    color: #555;
}

#featuresTable,
.custom-table,
table[id*="-table"] {
    table-layout: auto;
    width: 100%;
}

#featuresTable th,
#featuresTable td,
.custom-table th,
.custom-table td,
table[id*="-table"] th,
table[id*="-table"] td {
    width: auto !important;
    text-align: center !important;
    min-width: 150px;
    border-bottom: 1px solid #ddd;
    /* Word breaking for long content */
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    /* Handle overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Optional: prevent columns from collapsing too narrow */
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.hidden {
    display: none;
}

/* Builder UI Styles */
.component-item {
    cursor: grab;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: block;
}

.modal-dialog {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 15px;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content {
    position: relative;
}

.modal-header,
.modal-footer {
    padding: 10px;
}

.modal-body {
    padding: 10px;
}

.loading {
    color: gray;
}

.stat-config-input {
    margin: 15px;
}

/* Enhanced Table Column Management Styles */
.table-fields-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: #f8fafc;
}

.table-field {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 4px;
}

.table-field:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.table-field.opacity-50 {
    opacity: 0.5;
}

.table-field.border-blue-300 {
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.drag-handle {
    cursor: grab;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.field-display-name {
    font-size: 0.875rem;
}

.field-path {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    color: #64748b;
    background-color: #f1f5f9;
}

.remove-field-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-field-btn:hover {
    opacity: 1;
}

.stat-config-input input,
.stat-config-input textarea,
.stat-config-input select {
    width: 100%;
}

#auto-detect-columns {
    display: none;
}

.canvas-item {
    cursor: pointer;
    width: 100%;
}

.canvas-item>div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Preview Canvas Styles */
#preview-canvas {
    /* min-height: 1200px; */
    overflow: visible;
    height: auto;
}

/* #preview-canvas .col-span-12 {
    min-height: auto;
    height: auto;
    overflow: visible;
} */

/* Map Preview Container Styles */
#preview-canvas iframe {
    border: none;
    overflow: hidden;
    display: block;
    width: 100%;
    /* height: 1020px; */
}

/* Ensure map containers don't get cut off */
#preview-canvas .intro-y.box {
    overflow: visible;
    height: auto;
    /* min-height: 1020px; */
}

/* Preview Area Container Styles */
#preview-area {
    overflow: visible;
    height: auto;
}

/* Ensure the parent containers don't restrict height */
.content {
    overflow: visible;
    height: auto;
}

.wrapper {
    overflow: visible;
    height: auto;
}

.custom-table td {
    text-align: center;
    width: auto !important;
    min-width: 100px;
    /* Optional: prevent columns from collapsing too narrow */
}

.custom-table tr {
    height: 40px;
}

.custom-table td,
.custom-table th {
    padding: 8px;
    /* Optional: Adjust padding for better appearance */
}

.custom-table td {
    border-bottom: 1px solid #ddd;
}

.custom-table .header-info {
    font-size: 0.9em;
    color: #555;
}

.accordion {
    margin-bottom: 20px;
}

.accordion-item {
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #334155;
}

.accordion-content {
    padding: 16px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #64748b;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #0370C4;
}

/* Level-specific styling */
.accordion-item.level-1 {
    border-left: 6px solid #0370C4;
    background: #ffffff;
}

.accordion-item.level-1 .accordion-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.accordion-item.level-1 .accordion-header:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.accordion-item.level-2 {
    border-left: 4px solid #10b981;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 6px;
}

.accordion-item.level-2 .accordion-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 6px 6px 0 0;
}

.accordion-item.level-2 .accordion-header:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.accordion-item.level-3 {
    border-left: 4px solid #f59e0b;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 4px;
}

.accordion-item.level-3 .accordion-header {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 4px 4px 0 0;
}

.accordion-item.level-3 .accordion-header:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.accordion-item.level-4 {
    border-left: 4px solid #8b5cf6;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 4px;
}

.accordion-item.level-4 .accordion-header {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 4px 4px 0 0;
}

.accordion-item.level-4 .accordion-header:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.accordion-item.level-5 {
    border-left: 4px solid #ec4899;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 4px;
}

.accordion-item.level-5 .accordion-header {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 4px 4px 0 0;
}

.accordion-item.level-5 .accordion-header:hover {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

/* Badge styling for counts */
.accordion-badge {
    background: #0370C4;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.level-2 .accordion-badge {
    background: #10b981;
}

.level-3 .accordion-badge {
    background: #f59e0b;
}

.level-4 .accordion-badge {
    background: #8b5cf6;
}

.level-5 .accordion-badge {
    background: #ec4899;
}

/* Status indicators */
.accordion-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background: #10b981;
}

.accordion-status.inactive {
    background: #94a3b8;
}

.accordion-status.warning {
    background: #f59e0b;
}

.accordion-status.error {
    background: #ef4444;
}

/* Gradient Palette Interface Styles */
.gradient-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: all 0.2s ease;
}

.gradient-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-preview {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.gradient-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-input-group label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker {
    width: 40px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}


.dataTables_wrapper .custom-table tbody tr,
.dataTables_wrapper table[id*="-table"] tbody tr {
    border-bottom: 0px solid #202328 !important;
}



#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#updateIndicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    display: none;
}

#globalFilterContainer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#featuresTable,
.custom-table,
table[id*="-table"] {
    table-layout: auto;
    width: 100%;
}

#featuresTable th,
#featuresTable td,
.custom-table th,
.custom-table td,
table[id*="-table"] th,
table[id*="-table"] td {
    width: auto !important;
    min-width: 100px;
    border-bottom: 1px solid #ddd;
    /* Word breaking for long content */
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    /* Handle overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Optional: prevent columns from collapsing too narrow */
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.hidden {
    display: none;
}

/* Builder UI Styles */
.component-item {
    cursor: grab;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: block;
}

.modal-dialog {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 15px;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content {
    position: relative;
}

.modal-header,
.modal-footer {
    padding: 10px;
}

.modal-body {
    padding: 10px;
}

.loading {
    color: gray;
}

.stat-config-input {
    margin: 15px;
}

.stat-config-input input,
.stat-config-input textarea,
.stat-config-input select {
    width: 100%;
}

#auto-detect-columns {
    display: none;
}

.canvas-item {
    cursor: pointer;
    width: 100%;
}

.canvas-item>div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.custom-table td {
    text-align: center;
    width: auto !important;
    min-width: 100px;
    /* Optional: prevent columns from collapsing too narrow */
}

.custom-table tr {
    height: 40px;
}

.custom-table td,
.custom-table th {
    padding: 8px;
    /* Optional: Adjust padding for better appearance */
}

.custom-table td {
    border-bottom: 1px solid #ddd;
}

.custom-table .header-info {
    font-size: 0.9em;
    color: #555;
}

.accordion {
    margin-bottom: 20px;
}

.accordion-item {
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #334155;
}

.accordion-content {
    padding: 16px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #64748b;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #0370C4;
}

/* Level-specific styling */
.accordion-item.level-1 {
    border-left: 6px solid #0370C4;
    background: #ffffff;
}

.accordion-item.level-1 .accordion-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.accordion-item.level-1 .accordion-header:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.accordion-item.level-2 {
    border-left: 4px solid #10b981;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 6px;
}

.accordion-item.level-2 .accordion-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 6px 6px 0 0;
}

.accordion-item.level-2 .accordion-header:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.accordion-item.level-3 {
    border-left: 4px solid #f59e0b;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 4px;
}

.accordion-item.level-3 .accordion-header {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 4px 4px 0 0;
}

.accordion-item.level-3 .accordion-header:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.accordion-item.level-4 {
    border-left: 4px solid #8b5cf6;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 4px;
}

.accordion-item.level-4 .accordion-header {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 4px 4px 0 0;
}

.accordion-item.level-4 .accordion-header:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.accordion-item.level-5 {
    border-left: 4px solid #ec4899;
    background: #ffffff;
    margin-left: 16px;
    border-radius: 4px;
}

.accordion-item.level-5 .accordion-header {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 4px 4px 0 0;
}

.accordion-item.level-5 .accordion-header:hover {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

/* Badge styling for counts */
.accordion-badge {
    background: #0370C4;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.level-2 .accordion-badge {
    background: #10b981;
}

.level-3 .accordion-badge {
    background: #f59e0b;
}

.level-4 .accordion-badge {
    background: #8b5cf6;
}

.level-5 .accordion-badge {
    background: #ec4899;
}

/* Status indicators */
.accordion-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background: #10b981;
}

.accordion-status.inactive {
    background: #94a3b8;
}

.accordion-status.warning {
    background: #f59e0b;
}

.accordion-status.error {
    background: #ef4444;
}

/* Gradient Palette Interface Styles */
.gradient-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: all 0.2s ease;
}

.gradient-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-preview {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.gradient-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-input-group label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker {
    width: 40px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.remove-gradient {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.remove-gradient:hover {
    background: #dc2626;
}

.bg-emerald-100 {
    background-color: #035391
}

.text-emerald-700 {
    color: #ffff
}

/* .container1 {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
} */

.leftPanel {
    width: 100%;
    height: 100%;
    position: relative;
}

.rightPanel {
    width: 0%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: #f8fafc;
    z-index: 1000;
    overflow-y: auto;
    display: none;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #e2e8f0;
}

/* Fullscreen mode styles */
.container1:fullscreen,
.container1:-webkit-full-screen,
.container1:-moz-full-screen,
.container1:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
}

.container1:fullscreen .leftPanel,
.container1:-webkit-full-screen .leftPanel,
.container1:-moz-full-screen .leftPanel,
.container1:-ms-fullscreen .leftPanel {
    height: 100vh !important;
}

.container1:fullscreen #map,
.container1:-webkit-full-screen #map,
.container1:-moz-full-screen #map,
.container1:-ms-fullscreen #map {
    height: 100vh !important;
    min-height: 100vh !important;
}

.sidebar-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background: #f8fafc;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
    contain: layout style paint;
}

.sidebar-container::-webkit-scrollbar {
    width: 8px;
}

.sidebar-container::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.sidebar-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sidebar-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (min-width: 600px) {
    .sidebar-container {
        padding: 24px;
    }
}

.dl-container {
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.dl-container:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.dl-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.dl-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.dl-header:hover .header-content svg,
.dl-header:hover .collapse-icon {
    color: #0370c4;
}

.dl-header .header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-header .collapse-icon {
    transition: all 0.3s ease;
    color: #64748b;
    width: 18px;
    height: 18px;
}

.dl-header .header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-header .header-content svg,
.dl-header .header-content i[data-lucide],
.dl-header .header-content .lucide-icon {
    width: 20px;
    height: 20px;
    color: #0370c4;
    transition: all 0.2s ease;
    flex-shrink: 0;
    stroke-width: 2;
}

/* Ensure Lucide icons render properly */
.dl-header .header-content i[data-lucide] svg,
.dl-header .header-content .lucide-icon svg {
    width: 20px;
    height: 20px;
}

.dl-header:hover .collapse-icon {
    color: #0370c4;
}

.dl-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

/* Section loading states */
.dl-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.dl-container.error {
    border-color: #ef4444;
}

.dl-container.error .dl-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
}

.dl-content {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
    padding: 16px;
    background: #ffffff;
}

.dl-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

/* Ensure dl-content maintains responsive grid */
.dl-content .dl-item {
    margin-bottom: 0;
}

.dl-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 16px;
    margin: 0;
}

/* Ensure dl-content uses responsive grid */
.dl-content .dl-flex {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.dl-item {
    padding: 12px 14px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 0; /* Prevents grid blowout */
    box-sizing: border-box;
}

.dl-item dt {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dl-item dd {
    font-size: 14px;
    color: #1f2937;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word; /* Prevents overflow */
}

/* Narrow sidebar optimization (when sidebar is less than 400px) */
@media (max-width: 400px) {
    .rightPanel .dl-flex,
    .rightPanel .dl-content .dl-flex {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .rightPanel .dl-item {
        padding: 10px 12px;
    }
    
    .rightPanel .dl-item dt {
        font-size: 11px;
    }
    
    .rightPanel .dl-item dd {
        font-size: 13px;
    }
}

/* Additional styles (unchanged) */
.dataTables_wrapper #featuresTable tbody tr {
    border-bottom: 0px solid #202328 !important;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#updateIndicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    display: none;
}

.hidden {
    display: none;
}

/* Map Controls Styling */
#controls button {
    transition: all 0.2s ease;
}

#controls button[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

/* Add toggle button for sidebar in top-right corner */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
    transform: translateZ(0) scale(1.02);
}

/* Sidebar Close Button */
#sidebar-close-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#sidebar-close-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0370c4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

#sidebar-close-btn:active {
    transform: scale(0.95);
}

.fa,
.fas {
    font-weight: 900;
    color: #035391 !important;
}

.zoom-btn .fa-crosshairs,
.zoom-btn .fas.fa-crosshairs {
    color: white !important;
}

.edit-btn .fa-edit,
.edit-btn .fas.fa-edit {
    color: white !important;
}

.fa,
.fas:hover {
    color: white;
    /* White on hover */
}

/* Enhanced Sidebar UI Styles */
.jobs-controls,
.defects-controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    contain: layout style;
}

.jobs-controls:hover,
.defects-controls:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.job-class-section,
.defect-class-section {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    contain: layout style;
}

.job-class-section:hover,
.defect-class-section:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.job-class-header,
.defect-class-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.job-class-header i[data-lucide],
.defect-class-header i[data-lucide] {
    color: #0370c4;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.job-class-header:hover,
.defect-class-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.job-class-content,
.defect-class-content {
    /* max-height: 500px; */
    overflow-y: auto;
    padding: 16px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #ffffff;
}

.job-class-content::-webkit-scrollbar,
.defect-class-content::-webkit-scrollbar {
    width: 6px;
}

.job-class-content::-webkit-scrollbar-track,
.defect-class-content::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.job-class-content::-webkit-scrollbar-thumb,
.defect-class-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.job-class-content::-webkit-scrollbar-thumb:hover,
.defect-class-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.job-record,
.defect-record {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    margin-bottom: 12px;
    will-change: transform;
    transform: translateZ(0);
}

.job-record:hover,
.defect-record:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.job-summary,
.defect-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.875rem;
}

@media (min-width: 500px) {
    .job-summary,
    .defect-summary {
        grid-template-columns: 1fr 1fr;
    }
}

/* Make dl-flex responsive for jobs and defects - container-aware */
.job-record .dl-flex,
.defect-record .dl-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.job-record .dl-item,
.defect-record .dl-item {
    margin-bottom: 0;
    min-width: 0;
    overflow: hidden;
}

/* Narrow sidebar adjustments for job/defect records */
@media (max-width: 400px) {
    .job-record .dl-flex,
    .defect-record .dl-flex {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.job-details,
.defect-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.job-details dl,
.defect-details dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.job-details .flex,
.defect-details .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

/* Enhanced spacing for job/defect headers */
.job-record .flex,
.defect-record .flex {
    display: flex;   
    justify-content: center;
    align-items: right;
    padding: 8px 0;
    gap: 16px;
}

.job-record h5,
.defect-record h5 {
    margin: 0;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-record h5 i[data-lucide],
.defect-record h5 i[data-lucide] {
    color: #0370c4;
    width: 18px;
    height: 18px;
}

.job-record .flex>div:last-child,
.defect-record .flex>div:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Enhanced spacing for control panels */
.jobs-controls .flex,
.defects-controls .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.jobs-controls .flex>div:first-child,
.defects-controls .flex>div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jobs-controls .flex>div:last-child,
.defects-controls .flex>div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-details-toggle,
.defect-details-toggle,
.asset-details-toggle {
    padding: 0.5rem 1rem; /* py-2 px-4 - more substantial */
    font-size: 0.75rem; /* text-xs */
    background: rgb(241, 245, 249);
    border: 1px solid rgb(203, 213, 225);
    color: rgb(71, 85, 105) !important;
    border-radius: 0.25rem; /* rounded */
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px; /* Ensures button has a minimum width */
    justify-content: center;
    text-align: center;
    width: auto;
}

.job-details-toggle:hover,
.defect-details-toggle:hover,
.asset-details-toggle:hover {
    background-color: #e5e7eb; /* hover:bg-gray-200 */
    border-color: #d1d5db;
}

.job-details-toggle i[data-lucide],
.defect-details-toggle i[data-lucide],
.asset-details-toggle i[data-lucide] {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Edit button styles - same as details toggle */
.job-edit-btn,
.defect-edit-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: rgb(241, 245, 249);
    border: 1px solid rgb(203, 213, 225);
    color: rgb(71, 85, 105) !important;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
    text-align: center;
    width: auto;
}

.job-edit-btn:hover,
.defect-edit-btn:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.job-edit-btn i[data-lucide],
.defect-edit-btn i[data-lucide],
.job-edit-btn svg,
.defect-edit-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Highlight button styles */
.job-highlight-btn,
.defect-highlight-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: rgb(241, 245, 249);
    border: 1px solid rgb(203, 213, 225);
    color: rgb(71, 85, 105) !important;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
    text-align: center;
    width: auto;
}

.job-highlight-btn:hover,
.defect-highlight-btn:hover {
    background-color: #e5e7eb; /* hover:bg-gray-200 */
    border-color: #d1d5db;
}

.job-highlight-btn:active,
.defect-highlight-btn:active {
    transform: translateY(0);
}

.job-highlight-btn i[data-lucide],
.defect-highlight-btn i[data-lucide] {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 768px) {

    .jobs-controls .flex,
    .defects-controls .flex {
        flex-direction: column;
        gap: 10px;
    }

    .job-summary,
    .defect-summary {
        grid-template-columns: 1fr;
    }

    .job-details .flex,
    .defect-details .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Animation for collapsible sections */
.job-class-content,
.defect-class-content {
    transition: max-height 0.3s ease-in-out;
}

/* Status indicators */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.status-pending {
    background-color: #fef3c7;
    color: #78350f;
    border-color: #f59e0b;
}

.status-resolved {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Hover effects for status badges */
.status-badge:hover {
    transform: scale(1.02);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Builder Modal Styles */
#builder-modal {
    background: rgba(0, 0, 0, 0.6);
}

#builder-modal .fixed:first-child {
    background: rgba(0, 0, 0, 0.6);
}

/* Modal content styling */
#builder-modal .relative {
    background: white;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); */
    border: 1px solid rgba(0, 0, 0, 0.1);
    contain: layout style;
}

/* Smooth modal animations */
#builder-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#builder-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

#builder-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Floating Button Styles */
#builder-toggle-btn button {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #035391, #0a7bc4);
    box-shadow: 0 10px 25px rgba(3, 83, 145, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#builder-toggle-btn button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, #024573, #035391);
    box-shadow: 0 15px 35px rgba(3, 83, 145, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#builder-toggle-btn button:active {
    transform: translateY(-1px) scale(1.02);
    background: linear-gradient(135deg, #013654, #024573);
}

/* localStorage Button Styles */
#builder-toggle-btn.localstorage-mode button {
    background: linear-gradient(135deg, #EA8400, #FF9500);
    box-shadow: 0 10px 25px rgba(234, 132, 0, 0.3);
}

#builder-toggle-btn.localstorage-mode button:hover {
    background: linear-gradient(135deg, #D67600, #EA8400);
    box-shadow: 0 15px 35px rgba(234, 132, 0, 0.4);
}

#builder-toggle-btn.localstorage-mode button:active {
    background: linear-gradient(135deg, #C26800, #D67600);
}

/* Mode Indicator Styles */
#mode-indicator {
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#builder-toggle-btn.localstorage-mode #mode-indicator {
    background: linear-gradient(135deg, #EA8400, #FF9500);
    box-shadow: 0 2px 8px rgba(234, 132, 0, 0.4);
}

#builder-toggle-btn:not(.localstorage-mode) #mode-indicator {
    background: linear-gradient(135deg, #035391, #0a7bc4);
    box-shadow: 0 2px 8px rgba(3, 83, 145, 0.4);
}

/* Ensure button is always positioned correctly */
#builder-toggle-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Simple scrollable modal - works on all screen sizes */
#builder-modal .relative {
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Loading indicator styles */
#dashboard-loading {
    background: rgba(255, 255, 255, 0.95);
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

/* Spinning animation for loader */
.animate-spin {
    animation: spin 1s linear infinite;
    will-change: transform;
}

@keyframes spin {
    from {
        transform: rotate(0deg) translateZ(0);
    }

    to {
        transform: rotate(360deg) translateZ(0);
    }
}

/* Preview Canvas Full Height */
/* #preview-canvas {
    min-height: calc(100vh - 120px);
} */

/* Ensure modal content is scrollable */
#builder-modal .overflow-auto {
    border-radius: 15px;
}

/* Hide scrollbar for cleaner look but keep functionality */
#builder-modal .overflow-auto::-webkit-scrollbar {
    width: 8px;
}

#builder-modal .overflow-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#builder-modal .overflow-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#builder-modal .overflow-auto::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Filter Condition Styles */
@media (max-width: 640px) {
    .filter-condition {
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .filter-condition select,
    .filter-condition input {
        font-size: 0.875rem !important;
        padding: 0.5rem !important;
    }
    
    .filter-condition .value-container {
        margin-bottom: 0;
    }
    
    .filter-condition label {
        font-weight: 500;
    }
}

/* Ensure select elements don't overflow */
.filter-condition select {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Better button spacing on mobile */
@media (max-width: 640px) {
    .filter-condition button {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}
.enter-tab {
    position: static;
    background: #0370C4;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 12px;
    align-self: center;
    cursor: pointer;
    border: none;
}

.enter-tab:hover {
    background: #025a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(2, 90, 138, 0.3);
}

/* Nav Tab Parent Container - Override the main flex layout (only for nav tabs, not config modal) */
.accordion-item.level-1:not(#config-modal .accordion-item) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    gap: 12px !important;
}

/* More specific selector to avoid affecting config modal */
a.accordion-item.level-1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    gap: 12px !important;
}

/* Nav Tab Content Restructure - Only for nav tabs */
a.accordion-item.level-1 .flex.items-center.space-x-8.flex-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
    margin: 0; /* Remove any margins */
}

/* 1. Icon (no chip styling) - Only for nav tabs */
a.accordion-item.level-1 .flex.items-center.space-x-8.flex-1 svg {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important; /* Override mr-8 */
    order: 1;
}

/* Content container gets order 1 - Only for nav tabs */
a.accordion-item.level-1 .flex.items-center.space-x-8.flex-1 {
    order: 1;
}

/* 2. Text container restructure - Only for nav tabs */
a.accordion-item.level-1 .flex.items-center.space-x-8.flex-1 .flex.flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    order: 2;
    width: 100%;
}

/* Ensure enter-tab appears in the flow after description - Only for nav tabs */
a.accordion-item.level-1 .enter-tab {
    order: 2;
    position: static !important;
    margin-top: 12px;
    align-self: center;
    width: auto;
}

/* 3. Title (make it prominent) - Only for nav tabs */
a.accordion-item.level-1 .flex.items-center.space-x-8.flex-1 .text-base {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-align: center;
    word-wrap: break-word;
    order: 1;
}

/* 4. Add divider after title (longer) - Only for nav tabs */
a.accordion-item.level-1 .flex.items-center.space-x-8.flex-1 .text-base::after {
    content: '';
    display: block;
    width: 85%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 8px auto;
}

/* 5. Description - Only for nav tabs */
a.accordion-item.level-1 .flex.items-center.space-x-8.flex-1 .text-slate-500 {
    font-size: 0.875rem !important;
    color: #64748b !important;
    text-align: center;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    order: 2;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .accordion-item.level-1 {
        padding: 16px !important;
        gap: 10px !important;
    }
    
    .accordion-item.level-1 .flex.items-center.space-x-8.flex-1 {
        gap: 10px;
    }
    
    .accordion-item.level-1 .flex.items-center.space-x-8.flex-1 .text-base {
        font-size: 1rem !important;
    }
    
    .accordion-item.level-1 .flex.items-center.space-x-8.flex-1 .text-slate-500 {
        font-size: 0.8rem !important;
    }
    
    .accordion-item.level-1 .flex.items-center.space-x-8.flex-1 .text-base::after {
        width: 90%;
    }
    
    .accordion-item.level-1 .enter-tab,
    .nav-tab-enter {
        margin-top: 8px;
        padding: 6px 12px;
        font-size: 0.7rem;
        order: 2;
        position: static !important;
    }
}

/* Nav Tab Enter Button Styles */
.nav-tab-enter {
    position: static;
    background: #0370C4;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    margin-top: 12px;
    align-self: center;
}

.nav-tab-enter:hover {
    background: #025a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(2, 90, 138, 0.3);
}

.nav-tab-enter svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   COLOR CUSTOMIZATION SYSTEM
   ============================================ */

/* Color Picker Panel Styles */
.color-customization-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.color-panel-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.color-section {
    margin-bottom: 20px;
}

.color-section-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.color-picker-input {
    width: 40px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-hex-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: monospace;
}

.color-presets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.color-preset {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: #6b7280;
}

.color-preset.active {
    border-color: #3b82f6;
    transform: scale(1.1);
}

.reset-colors-btn {
    width: 100%;
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-colors-btn:hover {
    background: #e5e7eb;
}

/* Dynamic Color Variables */
:root {
    --nav-button-color: #0370C4;
    --nav-button-hover: #025a8a;
    --nav-accordion-bg: #ffffff;
    --nav-accordion-border: #e2e8f0;
    --nav-accordion-hover-bg: #f8fafc;
    --nav-accordion-hover-border: #0370C4;
}

/* Apply Dynamic Colors to Nav Components */
.enter-tab,
.nav-tab-enter {
    background: var(--nav-button-color) !important;
}

.enter-tab:hover,
.nav-tab-enter:hover {
    background: var(--nav-button-hover) !important;
}

.accordion-item.level-1 {
    background: var(--nav-accordion-bg) !important;
    border-color: var(--nav-accordion-border) !important;
}

.accordion-item.level-1:hover {
    background: var(--nav-accordion-hover-bg) !important;
    border-color: var(--nav-accordion-hover-border) !important;
}

.nav-tab-component {
    background: var(--nav-accordion-bg) !important;
    border-color: var(--nav-accordion-border) !important;
}

.nav-tab-component:hover {
    background: var(--nav-accordion-hover-bg) !important;
    border-color: var(--nav-accordion-hover-border) !important;
}

/* Toggle Button for Color Panel */
.color-panel-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #0370C4;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(3, 112, 196, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.2s ease;
}

.color-panel-toggle:hover {
    background: #025a8a;
    transform: scale(1.05);
}

/* Enhanced Table Word Breaking - Additional Rules for Long Content */
/* Force break for numeric content and long single words */
#featuresTable td[data-type="numeric"],
.custom-table td[data-type="numeric"],
table[id*="-table"] td[data-type="numeric"] {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
}

/* For cells with class break-all to handle very long single words or IDs */
#featuresTable td.break-all,
.custom-table td.break-all,
table[id*="-table"] td.break-all {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
}

/* Additional fallback for extremely long content */
#featuresTable td,
.custom-table td,
table[id*="-table"] td {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.color-panel-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hide panel by default */
.color-customization-panel.hidden {
    display: none;
}

/* Image rendering styles for data tables */
.table-image {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Image modal styles */
#image-modal {
    z-index: 9999;
}

#image-modal .fixed {
    background: rgba(0, 0, 0, 0.75);
}

#image-modal img {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Image placeholder styles */
.image-placeholder {
    width: 50px;
    height: 50px;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
}

/* Multiple images in one cell */
.table-image-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.table-image-group .table-image {
    max-width: 40px;
    max-height: 40px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .table-image {
        max-width: 35px;
        max-height: 35px;
    }
    
    .table-image-group .table-image {
        max-width: 30px;
        max-height: 30px;
    }
    
    #image-modal .relative {
        margin: 1rem;
    }
}

/* Collapsible Filters Styles */
.filter-content {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.filter-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden;
}

/* Fix for container expansion when filters are expanded */
/* Allow container to expand when filters are not collapsed */
.intro-y.box:has([id^="filterContent-"]:not(.collapsed)) {
    height: auto !important;
    overflow-y: visible !important;
    max-height: none !important;
}

/* Alternative: target by checking if any child has max-height none (expanded state) */
.intro-y.box:has([id^="filterContent-"][style*="max-height: none"]) {
    height: auto !important;
    overflow-y: visible !important;
    max-height: none !important;
}

/* Filter summary when collapsed */
#filterSummary-* {
    transition: opacity 0.2s ease-in-out;
}

/* Collapse button hover effects */
button[id*="toggleFiltersCollapse"] {
    transition: all 0.2s ease-in-out;
}

button[id*="toggleFiltersCollapse"]:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

/* Icon rotation animation */
i[id*="collapseIcon"] {
    transition: transform 0.3s ease-in-out;
}

/* Active filter count styling */
span[id*="activeFilterCount"] {
    font-weight: 600;
    color: #3b82f6;
}

/* Responsive adjustments for filter collapse */
@media (max-width: 768px) {
    button[id*="toggleFiltersCollapse"] {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    button[id*="toggleFiltersCollapse"] i {
        width: 0.75rem;
        height: 0.75rem;
    }
}

/* Component Height Classes */
.component-height-200 { height: 200px !important; }
.component-height-250 { height: 250px !important; }
.component-height-300 { height: 300px !important; }
.component-height-350 { height: 350px !important; }
.component-height-400 { height: 400px !important; }
.component-height-450 { height: 450px !important; }
.component-height-500 { height: 500px !important; }
.component-height-550 { height: 550px !important; }
.component-height-600 { height: 600px !important; }
.component-height-700 { height: 700px !important; }
.component-height-800 { height: 800px !important; }
.component-height-900 { height: 900px !important; }
.component-height-1000 { height: 1000px !important; }
.component-height-1200 { height: 1200px !important; }

/* Responsive height adjustments */
@media (max-width: 768px) {
    .component-height-1200 { height: 800px !important; }
    .component-height-1000 { height: 600px !important; }
    .component-height-900 { height: 500px !important; }
    .component-height-800 { height: 450px !important; }
}

@media (max-width: 480px) {
    .component-height-1200 { height: 600px !important; }
    .component-height-1000 { height: 500px !important; }
    .component-height-900 { height: 400px !important; }
    .component-height-800 { height: 350px !important; }
    .component-height-700 { height: 300px !important; }
    .component-height-600 { height: 250px !important; }
}

/* ===== TABBED INTERFACE STYLES ===== */
.table-tabs-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    contain: layout style;
}

.table-tabs-header {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-tabs-header::-webkit-scrollbar {
    height: 4px;
}

.table-tabs-header::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-tabs-header::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.table-tabs-header::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.table-tab-button {
    flex: 0 0 auto;
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.table-tab-button:hover {
    color: #0369a1;
    background: rgba(3, 105, 161, 0.05);
}

.table-tab-button.active {
    color: #0369a1;
    border-bottom-color: #0369a1;
    background: white;
}

.table-tab-button:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(3, 105, 161, 0.2);
}

.table-tabs-content {
    padding: 0;
    background: white;
}

.table-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

.table-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, -5px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
    .table-tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Tab badge/count indicator (optional) */
.table-tab-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: #94a3b8;
    border-radius: 10px;
    line-height: 1;
}

.table-tab-button.active .table-tab-badge {
    background: #0369a1;
}

/* Hide canvas-item styling when inside a tab */
.canvas-item.in-tab {
    margin: 0 !important;
    padding: 0 !important;
}

.canvas-item.in-tab > div {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide the title header when tables are in tabs (the tab itself shows the title) */
.table-tab-panel .intro-y.block.h-10 {
    display: none !important;
}

/* Alternative selector for different header structures */
.table-tab-panel .intro-y h2 {
    display: none !important;
}

/* Remove border from .box elements when inside tabs */
.table-tab-panel .box {
    border: none !important;
}

/* Tabbed tables wrapper - minimal styling as Tailwind handles most */
.tabbed-tables-wrapper {
    margin-bottom: 1rem;
}

/* Ensure tab content is properly hidden/shown */
.table-tab-panel.hidden {
    display: none !important;
}

.table-tab-panel.active {
    display: block !important;
}

/* Make tbody scrollable at 500px with horizontal scroll support */
.dataTables_wrapper .dataTables_scrollBody {
    max-height: 500px !important;
}

/* ===== CHART TABBED INTERFACE STYLES ===== */
/* Chart tabs use same container and content structure as table tabs */
.chart-tabs-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    contain: layout style;
}

.chart-tabs-content {
    padding: 0;
    background: white;
}

.chart-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

.chart-tab-panel.active {
    display: block;
}

/* Hide canvas-item styling when chart is inside a tab */
.tabbed-charts-wrapper .canvas-item.in-tab {
    margin: 0 !important;
    padding: 0 !important;
}

.tabbed-charts-wrapper .canvas-item.in-tab > div {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide the title header when charts are in tabs (the tab itself shows the title) */
.chart-tab-panel .intro-y.block.h-10 {
    display: none !important;
}

.chart-tab-panel .intro-y h2 {
    display: none !important;
}

/* Remove border from .box elements when inside chart tabs */
.chart-tab-panel .box {
    border: none !important;
}

/* Chart tabbed wrapper - minimal styling */
.tabbed-charts-wrapper {
    margin-bottom: 1rem;
}

/* Ensure chart tab content is properly hidden/shown */
.chart-tab-panel.hidden {
    display: none !important;
}

.chart-tab-panel.active {
    display: block !important;
}

/* ===== STATS TABBED INTERFACE STYLES ===== */
/* Stats tabs use same container and content structure as table/chart tabs */
.stats-tabs-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    contain: layout style;
}

.stats-tabs-content {
    padding: 0;
    background: white;
}

.stats-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

.stats-tab-panel.active {
    display: block;
}

/* Hide canvas-item styling when stats is inside a tab */
.tabbed-stats-wrapper .canvas-item.in-tab {
    margin: 0 !important;
    padding: 0 !important;
}

.tabbed-stats-wrapper .canvas-item.in-tab > div {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide the title header when stats are in tabs (the tab itself shows the title) */
.stats-tab-panel .intro-y.block.h-10 {
    display: none !important;
}

.stats-tab-panel .intro-y h2 {
    display: none !important;
}

/* Remove border from .box elements when inside stats tabs */
.stats-tab-panel .box {
    border: none !important;
}

/* Stats tabbed wrapper - minimal styling */
.tabbed-stats-wrapper {
    margin-bottom: 1rem;
}

/* Ensure stats tab content is properly hidden/shown */
.stats-tab-panel.hidden {
    display: none !important;
}

.stats-tab-panel.active {
    display: block !important;
}

/* ===== EXPORT TAB GROUP DROPDOWN STYLES ===== */
.export-group-dropdown-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.export-group-dropdown-item:last-child {
    border-bottom: none;
}

.export-group-dropdown-item:hover {
    background-color: #f8fafc;
}

.export-group-dropdown-item.selected {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.export-group-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.export-group-count {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#export-tab-group-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

#export-tab-group-dropdown::-webkit-scrollbar {
    width: 6px;
}

#export-tab-group-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#export-tab-group-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#export-tab-group-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== EXPORT TABBED INTERFACE STYLES ===== */
/* Export tabs use same container and content structure as table/chart/stats tabs */
.export-tabs-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.export-tabs-content {
    padding: 0;
    background: white;
}

.export-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

.export-tab-panel.active {
    display: block;
}

/* Hide canvas-item styling when export is inside a tab */
.tabbed-exports-wrapper .canvas-item.in-tab {
    margin: 0 !important;
    padding: 0 !important;
}

.tabbed-exports-wrapper .canvas-item.in-tab > div {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide the title header when exports are in tabs (the tab itself shows the title) */
.export-tab-panel .intro-y.block.h-10 {
    display: none !important;
}

.export-tab-panel .intro-y h2 {
    display: none !important;
}

/* Remove border from .box elements when inside export tabs */
.export-tab-panel .box {
    border: none !important;
}

/* Export tabbed wrapper - minimal styling */
.tabbed-exports-wrapper {
    margin-bottom: 1rem;
}

/* Ensure export tab content is properly hidden/shown */
.export-tab-panel.hidden {
    display: none !important;
}

.export-tab-panel.active {
    display: block !important;
}

/* ===== BULK UPDATE TABBED INTERFACE STYLES ===== */
/* Bulk Update tabs use same container and content structure as other tabs */
.bulk-update-tabs-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.bulk-update-tabs-content {
    padding: 0;
    background: white;
}

.bulk-update-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

.bulk-update-tab-panel.active {
    display: block;
}

/* Hide canvas-item styling when bulk update is inside a tab */
.tabbed-bulk-updates-wrapper .canvas-item.in-tab {
    margin: 0 !important;
    padding: 0 !important;
}

.tabbed-bulk-updates-wrapper .canvas-item.in-tab > div {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide the title header when bulk updates are in tabs (the tab itself shows the title) */
.bulk-update-tab-panel .intro-y.block.h-10 {
    display: none !important;
}

.bulk-update-tab-panel .intro-y h2 {
    display: none !important;
}

/* Remove border from .box elements when inside bulk update tabs */
.bulk-update-tab-panel .box {
    border: none !important;
}

/* Bulk Update tabbed wrapper - minimal styling */
.tabbed-bulk-updates-wrapper {
    margin-bottom: 1rem;
}

/* Ensure bulk update tab content is properly hidden/shown */
.bulk-update-tab-panel.hidden {
    display: none !important;
}

.bulk-update-tab-panel.active {
    display: block !important;
}

/* ===== ENHANCED BULK UPDATE FIELD SELECTORS ===== */
/* Enhanced dropdown containers */
.field-usage-selector,
.field-type-selector {
    transition: all 0.2s ease;
    font-weight: 600;
}

/* Usage selector - colors change dynamically via JavaScript based on selection */
.field-usage-selector {
    min-width: 140px;
}

.field-usage-selector:hover {
    font-weight: 700 !important;
}

.field-usage-selector:focus {
    outline: none;
    font-weight: 700 !important;
}

/* Type selector (blue theme) */
.field-type-selector {
    min-width: 120px;
}

.field-type-selector:hover {
    color: #0369a1 !important;
}

.field-type-selector:focus {
    outline: none;
    color: #0369a1 !important;
}

/* Field row hover effect */
.bulk-update-component [class*="bg-green-50"]:hover {
    background-color: #dcfce7 !important;
}

/* Dropdown parent containers */
.bulk-update-component .flex.items-center.gap-2.bg-white {
    transition: all 0.2s ease;
}

.bulk-update-component .flex.items-center.gap-2.bg-white:hover {
    transform: translateY(-1px);
}

/* Checkbox enhancement */
.field-checkbox:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.field-checkbox:hover {
    transform: scale(1.1);
}

/* Smooth animations */
.bulk-update-component .group:hover .field-checkbox {
    border-color: #035391;
}

/* ===== BULK UPDATE QUERY PROGRESS STYLES ===== */
/* Match export component progress bar styling */
.bulk-update-component [id$="-query-progress-bar"] {
    position: relative;
    overflow: hidden;
    transition: width 0.5s ease-out;
}

.bulk-update-component [id$="-query-progress-bar"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmerProgress 2s infinite;
    will-change: transform;
}

@keyframes shimmerProgress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Query stats cards hover effect */
.bulk-update-component .grid .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Pulse animation for search icon during query */
.bulk-update-component .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
