/* Pastilles couleur dossier — grille 2×8, cercles fixes */
.folder-edit-color-grid,
.folder-color-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 32px);
    gap: 10px;
    justify-content: start;
    align-items: center;
}

button.folder-color-swatch {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    border-radius: 50% !important;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    flex: 0 0 32px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button.folder-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

button.folder-color-swatch.is-selected::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

[data-pc-theme="dark"] button.folder-color-swatch.is-selected::after {
    filter: invert(1);
}

button.folder-color-swatch:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.skindb-folder-badge {
    font-weight: 500;
    font-size: 0.72rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(112, 136, 192, 0.12);
    color: var(--bs-body-color);
    border: 1px solid rgba(112, 136, 192, 0.25);
}

[data-pc-theme="dark"] .skindb-folder-badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.skindb-folder-badge-none {
    font-size: 0.72rem;
    font-weight: 500;
    background: transparent;
    border: 1px dashed rgba(128, 128, 128, 0.35);
}
