body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1f1f24;
}

h1:focus {
    outline: none;
}

.page-message {
    max-width: 32rem;
    margin: 4rem auto;
    padding: 0 1rem;
}

/* Página pública para registrar un salón. */
.signup-page {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Vitrina pública (Home) =====
   Columna central del ancho del feed de Instagram, negocios como "historias" y una tarjeta por trabajo. */
.public {
    min-height: 100vh;
    background: var(--mud-palette-background);
}

.public-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 3.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid #e6e1e4;
    background: var(--mud-palette-surface);
}

.public-topbar .shell-brand {
    padding: 0;
    font-size: 1.5rem;
}

.public-tagline {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
}

.public-main {
    padding: 1rem 0 3rem;
}

.showcase {
    max-width: 30rem;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.showcase-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.showcase-stories {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.125rem 0.75rem;
    margin-bottom: 0.5rem;
    scrollbar-width: none;
}

.story {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 4.5rem;
    color: var(--mud-palette-text-primary);
    font-size: 0.75rem;
    text-decoration: none;
}

.story-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story.active .story-name {
    font-weight: 700;
}

/* Anillo con degradado de la marca, como el de las historias. */
.story-ring {
    display: inline-flex;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f59e0b, #e8488a 55%, #b83280);
}

.story:not(.active) .story-ring {
    opacity: 0.85;
}

.story-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 3px solid var(--mud-palette-surface);
    border-radius: 50%;
    background: #f6dcea;
    color: var(--mud-palette-primary);
    font-size: 1rem;
    font-weight: 700;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.story-ring-small .story-avatar {
    width: 2rem;
    height: 2rem;
    border-width: 2px;
    font-size: 0.6875rem;
}

.story-ring-large .story-avatar {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.25rem;
}

.showcase-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e6e1e4;
    border-radius: 0.75rem;
    background: var(--mud-palette-surface);
}

.post {
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid #e6e1e4;
    border-radius: 0.75rem;
    background: var(--mud-palette-surface);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
}

.post-business {
    color: var(--mud-palette-text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.post-business:hover {
    text-decoration: underline;
}

.post-place {
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
}

.post-media-wrap {
    position: relative;
}

.post-media {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #f1ecef;
}

.post-media:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

.post-media img {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    scroll-snap-align: start;
}

.post-multi {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: rgba(31, 31, 36, 0.6);
    color: #ffffff;
    font-size: 0.75rem;
    pointer-events: none;
}

/* Flechas del carrusel: solo donde hay mouse; en el celular se desliza con el dedo. */
.post-nav {
    position: absolute;
    top: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1f1f24;
    transform: translateY(-50%);
    cursor: pointer;
}

.post-nav-prev {
    left: 0.5rem;
}

.post-nav-next {
    right: 0.5rem;
}

@media (hover: hover) {
    .post-media-wrap:hover .post-nav,
    .post-nav:focus-visible {
        display: inline-flex;
    }
}

.post-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding-top: 0.5rem;
}

.post-dots span {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #d6cfd3;
    transition: background-color 0.15s;
}

.post-dots span.is-active {
    background: var(--mud-palette-primary);
}

.post-body {
    padding: 0.625rem 0.75rem 0.875rem;
}

.post-caption {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.post-date {
    display: block;
    margin-top: 0.25rem;
    color: var(--mud-palette-text-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (max-width: 599.98px) {
    .public-tagline {
        display: none;
    }

    /* En el celular el feed ocupa todo el ancho, sin bordes laterales, como en la app. */
    .showcase {
        padding: 0;
    }

    .showcase-filters,
    .showcase-stories,
    .showcase-profile {
        margin-inline: 0.75rem;
    }

    .post {
        border-inline: 0;
        border-radius: 0;
    }
}

/* ===== Menú al estilo de Instagram (AreaShell) =====
   Computadora (≥ 1280 px): barra lateral con íconos y nombres.
   Pantallas medianas (960–1279 px): la misma barra, solo con íconos.
   Celular (< 960 px): barra superior con el nombre y barra inferior con íconos. */
.shell {
    --shell-sidebar: 244px;
    --shell-rail: 72px;
    --shell-tabbar: 52px;
    --shell-line: #e6e1e4;
    --shell-hover: rgba(31, 31, 36, 0.05);
    --shell-avatar-bg: #f6dcea;
    --shell-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.shell-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    width: var(--shell-sidebar);
    padding: 1.5rem 0.75rem 1.25rem;
    border-right: 1px solid var(--shell-line);
    background: var(--mud-palette-surface);
}

.shell-brand {
    display: inline-block;
    padding: 0 0.75rem;
    color: var(--mud-palette-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-decoration: none;
}

.shell-brand-short {
    display: none;
}

.shell-area {
    display: block;
    padding: 0 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.shell-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 1.5rem;
}

.shell-nav-bottom {
    margin-top: auto;
}

/* También se usa en <button> ("Más", "Cerrar sesión"): se anulan el centrado y el fondo propios del navegador. */
.shell-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 1rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.shell-link:hover {
    background: var(--shell-hover);
}

.shell-link:focus-visible,
.shell-tab:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

.shell-link.active {
    font-weight: 700;
}

.shell-link .mud-icon-root {
    flex: 0 0 auto;
    font-size: 1.625rem;
}

.shell-link-button {
    font-weight: inherit;
}

/* Contador de pendientes sobre el ícono (y en número al lado del nombre, en la barra lateral ancha). */
.shell-icon-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.shell-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--mud-palette-error);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

.shell-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: var(--shell-avatar-bg);
    color: var(--mud-palette-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

/* Como la foto de perfil de Instagram: un anillo cuando la cuenta está activa. */
.shell-avatar.active {
    box-shadow: 0 0 0 2px var(--mud-palette-surface), 0 0 0 4px var(--mud-palette-text-primary);
}

.shell-main {
    min-height: 100vh;
    margin-left: var(--shell-sidebar);
}

.shell-topbar,
.shell-bottombar {
    display: none;
}

/* Panel "Más": en computadora flota sobre el botón; en el celular sube desde abajo. */
.shell-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.shell-more {
    position: fixed;
    left: 0.75rem;
    bottom: 4.5rem;
    z-index: 1301;
    width: 16.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding: 0.5rem;
    border-radius: 1rem;
    background: var(--mud-palette-surface);
    box-shadow: 0 4px 24px rgba(31, 31, 36, 0.18);
}

.shell-more:focus {
    outline: none;
}

.shell-more-handle {
    display: none;
}

.shell-more-divider {
    height: 1px;
    margin: 0.5rem 0.75rem;
    background: var(--shell-line);
}

.shell-mobile-only {
    display: none;
}

/* Pantallas medianas: solo íconos. Los nombres quedan como title de cada opción. */
@media (min-width: 960px) and (max-width: 1279.98px) {
    .shell-sidebar {
        width: var(--shell-rail);
        align-items: center;
        padding-inline: 0.5rem;
    }

    .shell-brand-full,
    .shell-area,
    .shell-sidebar .shell-label {
        display: none;
    }

    .shell-brand-short {
        display: inline;
    }

    .shell-sidebar .shell-brand {
        padding: 0;
    }

    .shell-sidebar .shell-link {
        justify-content: center;
    }

    .shell-main {
        margin-left: var(--shell-rail);
    }
}

/* Celular */
@media (max-width: 959.98px) {
    .shell-sidebar {
        display: none;
    }

    .shell-main {
        margin-left: 0;
        padding-bottom: calc(var(--shell-tabbar) + var(--shell-safe-bottom));
    }

    .shell-topbar {
        position: sticky;
        top: 0;
        z-index: 1100;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        height: 3.25rem;
        padding: 0.625rem 1rem 0;
        border-bottom: 1px solid var(--shell-line);
        background: var(--mud-palette-surface);
    }

    .shell-topbar .shell-brand {
        padding: 0;
        font-size: 1.5rem;
    }

    .shell-topbar .shell-area {
        padding: 0;
    }

    .shell-bottombar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1200;
        display: flex;
        height: calc(var(--shell-tabbar) + var(--shell-safe-bottom));
        padding-bottom: var(--shell-safe-bottom);
        border-top: 1px solid var(--shell-line);
        background: var(--mud-palette-surface);
    }

    .shell-tab {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: none;
        color: var(--mud-palette-text-primary);
        cursor: pointer;
    }

    .shell-tab .mud-icon-root {
        font-size: 1.75rem;
    }

    /* La acción de crear, en el color de la marca. */
    .shell-tab-create {
        color: var(--mud-palette-primary);
    }

    .shell-backdrop {
        background: rgba(31, 31, 36, 0.4);
    }

    .shell-more {
        inset: auto 0 0 0;
        width: auto;
        max-height: 80vh;
        padding: 0.5rem 0.5rem calc(0.75rem + var(--shell-safe-bottom));
        border-radius: 1rem 1rem 0 0;
        animation: shell-sheet-up 0.18s ease-out;
    }

    .shell-more-handle {
        display: block;
        width: 2.5rem;
        height: 0.25rem;
        margin: 0.25rem auto 0.5rem;
        border-radius: 999px;
        background: var(--shell-line);
    }

    .shell-mobile-only {
        display: block;
    }

    /* Los avisos no tapan la barra inferior. */
    .mud-snackbar-location-bottom-right {
        bottom: calc(var(--shell-tabbar) + var(--shell-safe-bottom) + 0.5rem) !important;
    }
}

@keyframes shell-sheet-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shell-more {
        animation: none;
    }
}

.clickable-row {
    cursor: pointer;
}

.stock-input {
    flex: 1 1 12rem;
    max-width: 18rem;
}

/* Líneas de una venta nueva: una fila por línea; en celular, dos (ítem y quitar; precio, cantidad e importe). */
.sale-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6rem 7rem 6.5rem 2.5rem;
    grid-template-areas: "item price quantity total remove";
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.sale-line-header {
    padding-top: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.sale-line-item {
    grid-area: item;
}

.sale-line-price {
    grid-area: price;
    text-align: right;
}

.sale-line-quantity {
    grid-area: quantity;
}

.sale-line-total {
    grid-area: total;
    text-align: right;
}

.sale-line-remove {
    grid-area: remove;
    justify-self: end;
}

@media (max-width: 599.98px) {
    .sale-line {
        grid-template-columns: auto 7rem minmax(0, 1fr);
        grid-template-areas:
            "item item remove"
            "price quantity total";
    }

    .sale-line-header {
        display: none;
    }

    .sale-line-price {
        text-align: left;
    }
}

/* Opciones de un MudRadioGroup una debajo de otra. MudBlazor las pone en fila con un selector de tres clases,
   así que este necesita una más para ganarle. */
.mud-input-control.mud-input-control-boolean-input.stacked-options .mud-radio-group {
    flex-direction: column;
    align-items: flex-start;
}

/* Vista previa del mensaje de una campaña, como una burbuja de WhatsApp. */
.campaign-message-bubble {
    display: inline-block;
    max-width: 32rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem 0.5rem 0.5rem 0;
    background: #dcf8c6;
    color: #1f1f24;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.recipient-filter {
    max-width: 14rem;
}

/* Fotos de trabajos: cuadrícula de miniaturas cuadradas. */
.work-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
}

.work-photo {
    position: relative;
}

.work-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #f1ecef;
}

.work-photo-caption {
    display: block;
    margin-top: 0.25rem;
}

.work-photo-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Estado de la foto en la vitrina, sobre la miniatura: "En la vitrina" resaltado, "Privada" discreto. */
.work-photo-public {
    position: absolute;
    left: 0.25rem;
    bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem 0.125rem 0.375rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #4a454e;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.work-photo-public.is-public {
    background: var(--mud-palette-primary);
    color: #ffffff;
}

.work-photo-public:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.work-photo-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    aspect-ratio: 1;
    border: 2px dashed #d6cfd3;
    border-radius: 0.5rem;
    color: #6b6570;
    font-size: 0.875rem;
    cursor: pointer;
}

.work-photo-add:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

/* Botón para elegir la foto de perfil: es una etiqueta que abre el selector de archivos. */
.logo-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.25rem;
    color: var(--mud-palette-text-primary);
    font-size: 0.8125rem;
    cursor: pointer;
}

.logo-upload:hover {
    background: var(--mud-palette-action-default-hover);
}

.logo-upload.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.loyalty-reward-select {
    flex: 1 1 16rem;
}

.loyalty-movement + .loyalty-movement {
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* Indicadores de los dashboards. Cifra con dígitos proporcionales (no tabulares): se ve mejor a tamaño grande. */
.stat-tile {
    height: 100%;
}

.stat-tile-value {
    margin: 0.25rem 0 0.125rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* Gráfico de ventas por día: columnas de una sola serie sobre líneas de guía finas.
   El alto del área incluye el eje X, para que las etiquetas nunca queden recortadas. */
.sales-chart {
    --chart-gutter: 4.25rem;
    --chart-grid: #ece7ea;
    --chart-ink-muted: #6b6570;
}

.sales-chart-plot {
    position: relative;
    height: 11rem;
    margin-top: 0.75rem;
}

.sales-chart-gridline {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px solid var(--chart-grid);
}

.sales-chart-gridline span {
    position: absolute;
    left: 0;
    width: calc(var(--chart-gutter) - 0.5rem);
    transform: translateY(-50%);
    padding-right: 0.5rem;
    background: var(--mud-palette-surface);
    color: var(--chart-ink-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.sales-chart-columns {
    position: absolute;
    inset: 0 0 0 var(--chart-gutter);
    display: flex;
    align-items: stretch;
    gap: 2px;
}

/* La columna entera (no solo la barra) recibe el mouse y el foco: es más fácil de apuntar que la barra. */
.sales-chart-column {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    outline: none;
    cursor: default;
}

.sales-chart-bar {
    width: 100%;
    max-width: 24px;
    height: var(--bar-height);
    border-radius: 4px 4px 0 0;
    background: var(--mud-palette-primary);
    transition: opacity 0.12s;
}

.sales-chart-column:hover .sales-chart-bar,
.sales-chart-column:focus-visible .sales-chart-bar {
    opacity: 0.72;
}

.sales-chart-column:focus-visible {
    box-shadow: inset 0 -2px 0 var(--mud-palette-primary);
}

.sales-chart-tip {
    position: absolute;
    bottom: calc(var(--bar-height) + 0.5rem);
    left: 50%;
    z-index: 2;
    display: none;
    flex-direction: column;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    background: #1f1f24;
    color: #ffffff;
    font-size: 0.75rem;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.sales-chart-tip strong {
    font-size: 0.875rem;
}

.sales-chart-tip span {
    color: #d9d4d7;
}

.sales-chart-column.tip-start .sales-chart-tip {
    left: 0;
    transform: none;
}

.sales-chart-column.tip-end .sales-chart-tip {
    left: auto;
    right: 0;
    transform: none;
}

.sales-chart-column:hover .sales-chart-tip,
.sales-chart-column:focus-visible .sales-chart-tip {
    display: flex;
}

.sales-chart-axis {
    display: flex;
    gap: 2px;
    margin-left: var(--chart-gutter);
    padding-top: 0.375rem;
    color: var(--chart-ink-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

/* Cada etiqueta ocupa el ancho de su columna y puede desbordarlo hacia los lados (hay una cada 7). */
.sales-chart-axis span {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.sales-chart-axis span:last-child {
    justify-content: flex-end;
}

.sales-chart-axis span.is-today {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.sales-chart-table {
    max-height: 18rem;
    overflow-y: auto;
}

/* Barras de magnitud en listas (servicios más vendidos): una sola serie, gruesor fino y punta redondeada. */
.rank-bar-track {
    height: 8px;
    margin-top: 0.25rem;
}

.rank-bar {
    height: 100%;
    min-width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--mud-palette-primary);
}

.dashboard-list {
    max-height: 20rem;
    overflow-y: auto;
}

.dashboard-list-item + .dashboard-list-item {
    border-top: 1px solid var(--mud-palette-lines-default);
}

.dashboard-link {
    color: inherit;
    text-decoration: none;
}

.dashboard-link:hover,
.dashboard-link:focus-visible {
    background: var(--mud-palette-action-default-hover);
}

.birthday-day {
    flex: 0 0 3rem;
    text-align: center;
    line-height: 1.1;
}

/* Comprobantes de pago: la captura completa (suele ser alta), sin recortarla al cuadrado como las fotos del trabajo. */
.payment-proofs .work-photo img {
    object-fit: contain;
}

/* Medio de pago: botones que pasan a la línea siguiente cuando no caben. */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Historial: lista compacta de campos cambiados dentro de la celda. */
.audit-changes {
    margin: 0;
    padding-left: 1rem;
    overflow-wrap: anywhere;
}

.audit-details summary {
    color: var(--mud-palette-primary);
    cursor: pointer;
}

/* Importes: que "S/" y el número no se separen en pantallas angostas. */
.money {
    white-space: nowrap;
}

/* En el listado de ventas, el detalle se corta a dos líneas. */
.sale-items {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Ocurrió un error."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}