/* Segmented control usado por los filtros "Todos/Activos/Inactivos" del
 * admin (Usuarios, Clientes). Estilos propios en vez de clases de Tailwind
 * sueltas porque el CSS de Unfold viene precompilado y no incluye clases
 * que no usen sus propios templates. Usa las custom properties de color
 * que Unfold ya expone, así sigue la paleta de marca sin duplicarla.
 */

.epricing-segmented {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 9999px;
    background-color: var(--color-base-100);
}

html.dark .epricing-segmented {
    background-color: var(--color-base-800);
}

.epricing-segmented__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: var(--color-font-default-light);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.1s ease;
}

html.dark .epricing-segmented__option {
    color: var(--color-font-default-dark);
}

.epricing-segmented__option:hover {
    color: var(--color-primary-600);
}

.epricing-segmented__option:active {
    transform: scale(0.96);
}

.epricing-segmented__option--selected,
.epricing-segmented__option--selected:hover {
    background-color: #fff;
    color: var(--color-primary-700);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.06);
}

html.dark .epricing-segmented__option--selected,
html.dark .epricing-segmented__option--selected:hover {
    background-color: var(--color-base-600);
    color: #fff;
}

/* Botón "Añadir <modelo>" del changelist -- reemplaza el círculo "+" de
 * Unfold (unfold/helpers/add_link.html, overrideado en
 * templates/unfold/helpers/add_link.html) por uno con texto, menos
 * llamativo y más claro sobre qué hace.
 */
.epricing-add-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px 0 12px;
    border-radius: 9999px;
    background-color: var(--color-primary-600);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease;
}

.epricing-add-button:hover {
    background-color: var(--color-primary-700);
    color: #fff;
}

.epricing-add-button .material-symbols-outlined {
    font-size: 18px;
}
