﻿/* Stile generale per la tabella */
.serp-grid-container{
    overflow-x: auto;
}

table.serp-grid {
    border-collapse: collapse;
    display: table;
    margin: 0;
    max-width: 100%;
    overflow: auto;
    padding: 0;
    table-layout: fixed;
    text-align: left;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.26);
}

/* Stile per l'intestazione della tabella */
.serp-grid th {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-top: none;
    color: #6b7280;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
    text-align: left;
}

    .serp-grid th .col-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .serp-grid th .col-header-content .col-title {
            padding: 14px 24px;
        }

    .serp-grid th .col-title-text {
        flex-grow: 1;
        text-overflow: ellipsis;
        white-space: break-spaces;
        word-break: break-word;
        text-align: left;
    }

    .serp-grid th:focus, .serp-grid th:hover {
        background-color: #e5e7eb;
    }

/* Stile per il corpo della tabella */
.serp-grid td {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 12px 24px !important;
    text-align: left;
}

/* Stile per il footer della tabella */
.serp-grid .gridjs-footer {
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.26);
    padding: 12px 24px;
    display: block;
    width: 100%;
}

/* Stile per i pulsanti di paginazione */
.serp-grid .paginator button {
    background-color: #fff;
    border: 1px solid #d2d6dc;
    padding: 5px 14px;
    cursor: pointer;
    user-select: none;
}

    .serp-grid .paginator button:disabled {
        background-color: #f7f7f7;
        color: #6b7280;
        cursor: default;
    }

.serp-grid .paginator .pagination-text {
    display: inline-block;
    margin: 0 10px;
}

/* Stile per gli elementi interattivi come il dropdown */
.serp-grid .paginator button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}


.serp-grid.serp-grid-small {
}

    .serp-grid.serp-grid-small th .col-header-content .col-title {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    .serp-grid.serp-grid-small td {
        padding: 8px 12px !important;        
    }


.drag-handle {
    cursor: grab;
    /* aggiungi eventuale icona/font */
}