.color-swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    box-sizing: border-box;
    vertical-align: middle;
    border: 1px solid #94a3b8;
    border-radius: .25rem;
    background: linear-gradient(135deg,
        var(--swatch-primary, transparent) 0 50%,
        var(--swatch-secondary, var(--swatch-primary, transparent)) 50% 100%);
}
.color-swatch--small { width: 1rem; height: 1rem; }
.color-swatch--team { width: 1.75rem; height: 1.75rem; }
.color-swatch--palette { width: 2.25rem; height: 2.25rem; }
.color-swatch--missing { border-color: #ef4444; background: white; }
.color-option { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; }
.color-option-label { overflow: hidden; text-overflow: ellipsis; }
.color-select-container { max-width: 100%; min-width: 10rem; }
.color-select-container .select2-selection--single {
    min-height: 2.625rem;
    height: auto;
    padding: .3rem .25rem;
    border-radius: .5rem;
}
.color-select-container .select2-selection__rendered .color-option { vertical-align: middle; }
.color-select-container .select2-selection--single .select2-selection__arrow { top: .4rem; }
.color-select-container.select2-container--focus .select2-selection {
    outline: 2px solid #64748b;
    outline-offset: 1px;
}
@media print {
    .color-swatch { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
