.k-grid-content.k-auto-scrollable {
    height: auto !important;
    overflow-x: scroll;
}

#grid .k-grid-toolbar {
    padding: .6em 1.3em .6em .4em;
}

.category-label {
    vertical-align: middle;
    padding-right: .5em;
}

#category {
    vertical-align: middle;
}

.refreshBtnContainer {
    display: inline-block;
}

.k-grid .ai-grid-tools {
    margin-left: auto;
    margin-right: 0;
}

.k-grid .k-header .header-title-container {
    line-height: 40px;
    max-height: 40px;
    max-width: 50%;
    display: inline-flex;
    overflow-y: hidden;
    margin-left: 5px;
}

.ai-grid-title {
    vertical-align: middle;
    font-size: 17px;
    font-weight: 500;
}

.ai-grid-tool {
    padding: 0 2px 0 2px;
}

.ai-grid-title-container {
    line-height: 40px;
    max-height: 40px;
    max-width: 50%;
    display: inline-flex;
    overflow-y: hidden;
    margin-left: 5px;
}

.ai-grid-title-container span {
    vertical-align: middle;
    font-size: 16px;
    font-weight: 500;
}


.k-grid-content.k-auto-scrollable {
    overflow-y: auto;
}

.k-command-cell > .k-button > .k-button-icon {
    min-width: calc(1rem*1) !important;
    min-height: calc(1rem*1) !important;
}

.k-command-cell {
    text-align: center !important;
}

.custom-download-button {
    background-color: #3B7DDD;
    color: white;
    border-color: #3B7DDD;
}

.custom-download-button:hover {
    background-color: #326abc;
    border-color: #2f64b1;
}

.custom-download-button-success {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.custom-download-button-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.custom-download-button-danger {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.custom-download-button-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}


/* En-tête de la grille */
.k-grid-header th.k-header {
    background-color: #f1f5f9;
    color: #212529;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
}

/* Ligne alternée */
.k-grid tbody tr:nth-child(even) {
    background-color: #f9fbfd;
}

/* Cellules avec texte coupé proprement */
.k-grid td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Titre de section avec effet moderne */
.ai-grid-title {
    color: #0d6efd;
    font-size: 18px;
    font-weight: 600;
}

/* Style de recherche */
.k-grid-toolbar .k-textbox {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
}

/* Pagination moderne */
.k-pager-wrap {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
}

/* Bouton de filtre ou actions */
.k-button-icontext {
    border-radius: 0.375rem;
}