﻿/* Professional DataGrid Styling */
.custom-datagrid {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
}

     /*Keep Existing Header Styling, Ensure Semi-Bold */
    .custom-datagrid th,
    .custom-datagrid .HeaderStyle {
        background-color: inherit; /* Keeps the previous background */
        /*color: inherit;  Keeps the previous text color */
        text-align: left;
        padding: 2px;
        padding-left: 5px;
        padding-right: 5px;
        font-weight: 600 !important; /*Semi-Bold Headers */
        font-size: 14px;
        text-decoration: none;
        color: #000000;
    }
        .custom-datagrid th a {
            color: #D33593 !important; /* Dark gray by default */
            text-decoration: none !important;
            font-weight: 600 !important;
            cursor: pointer;
        }

            .custom-datagrid th a:hover {
                color: #D33593 !important; /* #007bff Same color on hover */
                text-decoration: none !important; /* No underline on hover */
            }

    /* Table Row Styling */
    .custom-datagrid td {
        padding: 5px;
        padding-left: 5px;
        padding-right: 5px;
        
        border-bottom: 1px solid #ddd;
    }

    /* Alternating Row Coloring */
    .custom-datagrid tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    /* Hover Effect */
    .custom-datagrid tr:hover {
        background-color: #f1f1f1;
    }

/* Make Table Responsive */
@media (max-width: 768px) {
    .custom-datagrid {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
.custom-datagrid th {
    white-space: nowrap;
}

.sort-asc::after {
    content: " ▲";
    font-size: 12px;
}

.sort-desc::after {
    content: " ▼";
    font-size: 12px;
}

.custom-datagrid .grid-pager {
    text-align: center;
    padding: 5px;
}

    .custom-datagrid .grid-pager a,
    .custom-datagrid .grid-pager span { /* span is the current page number */
        display: inline-block;
        background-color: #007bff;
        color: #fff;
        padding: 4px 10px;
        margin: 0px;
        border-radius: 3px;
        text-decoration: none;
        font-size: 12px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .custom-datagrid .grid-pager a:hover {
            background-color: #0056b3;
            color: #fff;
        }

    .custom-datagrid .grid-pager span { /* current page indicator */
        background-color: #6c757d;
        cursor: default;
    }
    .custom-datagrid .grid-pager td,
    .custom-datagrid .grid-pager {
        border-bottom: none !important;
    }