/* Color Swatch Styles for DataTables */

/* Container für Farbfeld in Tabellenzelle */
.color-swatch-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    vertical-align: middle;
}

.color-swatch-box {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    background-color: var(--swatch-color, #5470c6); /* Nutze CSS-Variable mit Fallback */
}

/* Stelle sicher, dass die Tabellenzelle den Inhalt vertikal zentriert */
.dt-column-color {
    vertical-align: middle !important;
}

/* Entfernt - kein Schachbrettmuster mehr */

/* Hover-Effekt */
.color-swatch-box:hover {
    border-color: #6c757d;
    transform: scale(1.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .color-swatch-box {
        border-color: #495057;
    }
    
    .color-swatch-box:hover {
        border-color: #adb5bd;
    }
}