﻿/* ===============================================
   🔹 Global DataTables Button Styling (ASP Studio)
   =============================================== */
.dt-buttons .btn-light {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

    .dt-buttons .btn-light:hover {
        background-color: #f1f1f1 !important;
    }

div.dt-button-collection {
    left: auto !important;
    right: 0 !important;
    transform: translateX(-10px);
    z-index: 1055 !important;
}

.dt-button-collection .dropdown-item i {
    width: 18px;
    text-align: center;
}

.dt-buttons .btn {
    margin-left: 0.25rem;
}

/* Dark Mode */
[data-bs-theme="dark"] .dt-buttons .btn-light,
[data-bs-theme="dark"] .table .dropdown .btn {
    color: #e9ecef !important;
}

    [data-bs-theme="dark"] .dt-buttons .btn-light:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

[data-bs-theme="dark"] div.dt-button-collection {
    background-color: #1e1f22 !important;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

    [data-bs-theme="dark"] div.dt-button-collection .dropdown-item:hover {
        background-color: rgba(13, 110, 253, 0.15);
        color: #fff !important;
    }

/* ===============================================
   🔹 Row Action Dropdowns (⋮)
   =============================================== */
.table .dropdown .btn {
    background-color: transparent !important;
    border: 1px solid var(--bs-border-color, #dee2e6) !important;
    color: var(--bs-body-color, #212529) !important;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 0.8rem;
    transition: all 0.15s ease-in-out;
}

    .table .dropdown .btn i {
        font-size: 0.8rem;
        color: var(--bs-secondary-color, #6c757d);
    }

    .table .dropdown .btn:hover,
    .table .dropdown .btn:focus {
        background-color: var(--bs-primary-bg-subtle, rgba(13, 110, 253, 0.08)) !important;
        border-color: var(--bs-primary, #0d6efd) !important;
        color: var(--bs-primary) !important;
    }

        .table .dropdown .btn:hover i {
            color: var(--bs-primary) !important;
        }

.table .dropdown-menu {
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0;
    min-width: 140px;
    z-index: 1055;
}

    .table .dropdown-menu .dropdown-item {
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0.9rem;
        transition: background-color 0.15s ease-in-out;
    }

        .table .dropdown-menu .dropdown-item i {
            width: 16px;
            text-align: center;
            font-size: 0.85rem;
        }

    .table .dropdown-menu .dropdown-item:hover {
        background-color: var(--bs-primary-bg-subtle, rgba(13, 110, 253, 0.08));
        color: var(--bs-primary, #0d6efd);
        font-weight: 500;
    }

/* Dark Mode */
[data-bs-theme="dark"] .table .dropdown .btn:hover {
    background-color: rgba(13, 110, 253, 0.2) !important;
    border-color: #0d6efd !important;
}

[data-bs-theme="dark"] .table .dropdown-menu {
    background-color: #1e1f22 !important;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

    [data-bs-theme="dark"] .table .dropdown-menu .dropdown-item {
        color: #dee2e6;
    }

        [data-bs-theme="dark"] .table .dropdown-menu .dropdown-item:hover {
            background-color: rgba(13, 110, 253, 0.2);
            color: #fff;
        }
