/* Div Tables CSS - Definition der Div-Table beinhalten */

/* Div Table Container */
.widget-div-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Div Table Header */
.widget-div-table-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-div-table-header-cell {
    padding: 1rem;
    border-right: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-div-table-header-cell:last-child {
    border-right: none;
}

/* Div Table Body */
.widget-div-table-body {
    display: flex;
    flex-direction: column;
}

.widget-div-table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.widget-div-table-row:hover {
    background-color: var(--color-hover);
}

.widget-div-table-row:last-child {
    border-bottom: none;
}

.widget-div-table-cell {
    padding: 1rem;
    border-right: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.widget-div-table-cell:last-child {
    border-right: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .widget-div-table-container {
        font-size: 0.875rem;
    }
    
    .widget-div-table-header-cell,
    .widget-div-table-cell {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .widget-div-table-container {
        font-size: 0.75rem;
    }
    
    .widget-div-table-header-cell,
    .widget-div-table-cell {
        padding: 0.5rem;
    }
}
