/*
 * DataTables customizations — buttons, search, sticky toolbar, editor lightbox
 * (Views/Shared/_LayoutPartialForDataTables.cshtml)
 * Extracted verbatim from the partial's inline <style> block.
 */
.standout {
    background-color: #f9a9fa; /* light gray */
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
}

/* Center the Racer column header in result tables */
#RaceResultsTable thead th:nth-child(2) .dt-column-header,
#kt_table_users thead th:nth-child(2) .dt-column-header {
    padding-left: 0 !important;
    text-align: center !important;
}

#kt_table_users thead th#corrector {
    padding-left: 0 !important;
    text-align: center !important;
}

/* Custom styles for DataTables buttons and search */

tr.non-draggable .reorder-handle {
    pointer-events: none;
    opacity: 0.5; /* Optional — visually indicate non-draggable */
}

div.DTED_Lightbox_Wrapper {
    z-index: 10060 !important;
    max-height: 90vh
}

.dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dt-button-collection.dtb-b2 {
    display: flex;
    flex-direction: column;
    width: 100px;
}

.reorder-handle {
    cursor: move; /* Show drag cursor */
    user-select: none; /* Prevent text selection on drag */
    white-space: nowrap; /* Keep icon + number on same line */
    color: #009EF7;
}

.no-drag {
    cursor: default !important; /* force override */
    color: #ccc;
    opacity: 0.5;
    pointer-events: none !important; /* optional: disables hover/drag */
}

.export-button {
    border-radius: 0.475rem !important;
    margin-top: 5px ;
}

.dt-buttons .export-collection-button::before,
.dt-buttons .export-collection-button::after,
.dt-buttons .export-collection-button .dt-button-down-arrow,
.dt-buttons .export-collection-button .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

@media (min-width: 768px) {
    .dt-buttons {
        gap: 0;
    }
}

.dt-buttons .btn {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

div.DTE_Field select
{
    width: 100% !important;
}

.dt-search input {
    padding: 0.5rem 1rem;
    border-radius: 0.475rem;
    border: 1px solid #E4E6EF;
    min-width: 250px;
    background-color: var(--surface-tint);
    height: 42px;
    font-size: 1.1rem;
}

.dt-search input:focus {
    border-color: #009EF7;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.25);
}


@media (max-width: 767.98px) {
    .admin-menu-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    .DTE_Action_Create {
        margin-top: 55px;
    }
}


/* Sticky DataTables buttons */
.dt-buttons {
    transition: all 0.3s ease;
    gap:0.25rem;
}

    .dt-buttons.sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1040 !important;
        background: white !important;
        padding: 10px 20px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 1px solid #e4e6ef !important;
        margin: 0 !important;
    }

        .dt-buttons.sticky + .dt-search {
            margin-top: 70px !important;
        }

        .dt-buttons.sticky .btn {
            margin-right: 0.5rem !important;
        }

            .dt-buttons.sticky .btn i {
                transition: transform 0.3s ease;
            }

            .dt-buttons.sticky .btn.active i {
                transform: rotate(45deg);
            }

/* Ensure modals appear above sticky buttons */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.DTED_Lightbox_Background {
    z-index: 1059 !important;
}

.dt-paging {
    margin-bottom: 5rem;
}
