﻿/* ==========================================================
   QUICKGRID - THEME CORPORATE
   ========================================================== */

.quickgrid[theme="corporate"] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    border: 1px solid #c9d0d6;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}


    /* ==========================================================
   EN-TÊTES
   ========================================================== */

    .quickgrid[theme="corporate"] thead th {
        background-color: #465560;
        color: #ffffff;
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        padding: 8px 10px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid #34414b;
        border-right: 1px solid #62717d;
    }


    /* Titres QuickGrid : colonnes triables ou non */
    .quickgrid[theme="corporate"] thead .col-title,
    .quickgrid[theme="corporate"] thead button.col-title,
    .quickgrid[theme="corporate"] thead a.col-title,
    .quickgrid[theme="corporate"] thead .col-title-text {
        color: #ffffff !important;
    }


    /* Bouton de tri */
    .quickgrid[theme="corporate"] thead button.col-title {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        font: inherit;
        text-transform: inherit;
        letter-spacing: inherit;
        cursor: pointer;
    }


        /* Petit effet au survol des colonnes triables */
        .quickgrid[theme="corporate"] thead button.col-title:hover,
        .quickgrid[theme="corporate"] thead a.col-title:hover {
            color: #ffffff !important;
            opacity: 0.85;
        }


    /* Pas de séparation après la dernière colonne */
    .quickgrid[theme="corporate"] thead th:last-child {
        border-right: none;
    }


    /* ==========================================================
   CELLULES
   ========================================================== */

    .quickgrid[theme="corporate"] td {
        padding: 6px 8px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid #dfe3e6;
        border-right: 1px solid #e1e5e8;
    }


        /* Pas de bordure sur la dernière colonne */
        .quickgrid[theme="corporate"] td:last-child {
            border-right: none;
        }


    /* ==========================================================
   QUICKGRID .NET 9 / 10
   Cache les lignes artificielles de pagination
   ========================================================== */

    .quickgrid[theme="corporate"] tbody > tr:has(> td):not(:has(> td:not(:empty))) {
        display: none;
    }


    /* ==========================================================
   ALTERNANCE
   ========================================================== */

    .quickgrid[theme="corporate"] tbody tr:nth-child(odd) {
        background-color: #ffffff;
    }

    .quickgrid[theme="corporate"] tbody tr:nth-child(even) {
        background-color: #f3f5f7;
    }


    /* ==========================================================
   SURVOL
   ========================================================== */

    .quickgrid[theme="corporate"] tbody tr:hover {
        background-color: #e7f1fb;
    }


    /* Dernière ligne */
    .quickgrid[theme="corporate"] tbody tr:last-child td {
        border-bottom: none;
    }
