/* ------------------------------------------------------------
   FitControl UI (2026) — Material Design 3 inspired baseline
   ------------------------------------------------------------ */

:root {
    /* Spacing scale (dense SaaS) */
    --fc-space-1: 4px;
    --fc-space-2: 8px;
    --fc-space-3: 12px;
    --fc-space-4: 16px;
    --fc-space-5: 20px;
    --fc-space-6: 24px;
    --fc-space-7: 28px;
    --fc-space-8: 32px;
    --fc-radius-lg: 14px;
    --fc-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fc-duration-fast: 150ms;
    --fc-duration: 220ms;
    --fc-duration-slow: 350ms;

    /* Dialog elevation — light defaults */
    --fc-dialog-surface: var(--mud-palette-surface);
    --fc-dialog-border: var(--mud-palette-lines-default);
    --fc-dialog-shadow: 0 12px 40px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);

    /* Boot splash — alineado con FitControlTheme (no MudBlazor default #1A1A27) */
    --fc-boot-bg-light: #EEF2F7;
    --fc-boot-bg-dark: #141314;
    --fc-boot-title-light: #0B3251;
    --fc-boot-title-dark: rgba(255, 255, 255, 0.70);
    --fc-boot-bar-light: #0B3251;
    --fc-boot-bar-dark: rgba(255, 255, 255, 0.70);

    /* Typography */
    --fc-font-family: Ubuntu, "Segoe UI", system-ui, -apple-system, sans-serif;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--fc-font-family);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
}

.mud-typography,
.mud-button-root,
.mud-input-root,
.mud-input-label,
.mud-select,
.mud-table-cell,
.mud-nav-link,
.mud-list-item {
    font-family: var(--fc-font-family);
}

@media (prefers-reduced-motion: no-preference) {
    body,
    .fc-layout,
    .mud-drawer,
    .mud-appbar,
    .mud-main-content,
    .mud-paper,
    .fc-surface,
    .fc-kpi-card,
    .fc-metric-card {
        transition:
            background-color var(--fc-duration-slow) var(--fc-ease),
            color var(--fc-duration) var(--fc-ease),
            border-color var(--fc-duration) var(--fc-ease),
            box-shadow var(--fc-duration) var(--fc-ease);
    }
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.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: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.PrimaryColor .mud-dialog-title {
    background-color: #6200EE;
}

/* ---------- App chrome ---------- */
.fc-layout {
    min-height: 100dvh;
}

/* Sidebar full height; app bar only spans the content column (ClipMode.Never) */
.fc-layout .fc-drawer.mud-drawer-fixed {
    height: 100dvh !important;
    max-height: 100dvh !important;
    top: 0 !important;
}

.fc-layout .fc-drawer.mud-drawer-fixed.mud-drawer-open {
    z-index: calc(var(--mud-zindex-appbar) + 1);
}

@media (min-width: 960px) {
  .fc-layout.mud-drawer-open-responsive-md-left .fc-appbar.mud-appbar-fixed {
    margin-inline-start: 280px;
    width: calc(100% - 280px);
  }
}

.fc-appbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.mud-theme-light .fc-appbar {
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

.fc-main {
    /* Single page gutter — tighter on phones so content uses full width */
    padding: var(--fc-space-2) var(--fc-space-2);
}

@media (min-width: 600px) {
    .fc-main {
        padding: var(--fc-space-4);
    }
}

@media (min-width: 960px) {
    .fc-main {
        padding: var(--fc-space-6);
    }
}

/* Avoid triple horizontal padding (layout + MudContainer + inline styles) */
.fc-main .mud-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.fc-drawer {
    border-right: 0 solid var(--mud-palette-lines-default);
}

.mud-theme-light .fc-drawer.mud-drawer {
    border-right: 1px solid #CBD5E1;
    box-shadow: 2px 0 16px rgba(15, 23, 42, 0.06);
}

.mud-theme-light .fc-drawer .mud-divider {
    border-color: #CBD5E1;
    opacity: 1;
}

/* Early paint — evita flash claro del chrome antes de MudThemeProvider (boot WASM) */
html.fc-theme-dark .fc-drawer.mud-drawer {
    background-color: #1C1B1D !important;
}

html.fc-theme-dark .fc-appbar.mud-appbar {
    background-color: #141314 !important;
    color: rgba(255, 255, 255, 0.70);
}

html.fc-theme-dark .fc-main.mud-main-content {
    background-color: #141314;
}

.fc-drawer .mud-nav-menu {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Dark mode — surfaces use theme tokens; buttons stay native MudBlazor MD3 */
.mud-theme-dark .fc-main {
    background: var(--mud-palette-background);
}

/* Help / helper copy: strong brand blue in light; amber in dark (readable on both). */
:root,
.mud-theme-light {
    --fc-help-text: #0B3251;
}

.mud-theme-dark {
    --fc-help-text: #CE7C00;
}

.mud-theme-dark .home-stat-card,
.mud-theme-dark .fc-kpi-card,
.mud-theme-dark .fc-metric-card,
.mud-theme-dark .fc-surface {
    background: var(--mud-palette-surface);
    border-color: var(--mud-palette-lines-default);
}

.mud-theme-dark .fc-metric-icon-badge--primary {
    background: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
    color: var(--mud-palette-primary);
}

.mud-theme-dark .fc-metric-icon-badge--warning {
    background: rgba(255, 213, 79, 0.16);
    color: var(--mud-palette-warning);
}

.mud-theme-dark .fc-metric-icon-badge--error {
    background: rgba(229, 115, 115, 0.16);
    color: var(--mud-palette-error);
}

.mud-theme-dark .fc-metric-icon-badge--info {
    background: rgba(100, 181, 246, 0.16);
    color: var(--mud-palette-info);
}

.mud-theme-dark .fc-metric-icon-badge--success {
    background: rgba(129, 199, 132, 0.16);
    color: var(--mud-palette-success);
}

.mud-theme-dark .fc-kpi-card__icon-wrap {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.mud-theme-dark .fc-metric-trend--up,
.mud-theme-dark .home-stat-trend--up {
    background: rgba(129, 199, 132, 0.16);
    color: var(--mud-palette-success);
}

.mud-theme-dark .fc-metric-trend--down,
.mud-theme-dark .home-stat-trend--down {
    background: rgba(229, 115, 115, 0.16);
    color: var(--mud-palette-error);
}

.mud-theme-dark .fc-metric-trend--neutral,
.mud-theme-dark .home-stat-trend--neutral {
    background: rgba(255, 255, 255, 0.06);
    color: var(--mud-palette-text-secondary);
}

/* Metric card icon badges (dashboard) */
.fc-metric-icon-badge {
    align-items: center;
    border-radius: 12px;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
}

.fc-metric-icon-badge--primary {
    background: rgba(11, 50, 81, 0.12);
    color: #0B3251;
}

.fc-metric-icon-badge--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.fc-metric-icon-badge--error {
    background: rgba(220, 38, 38, 0.12);
    color: #DC2626;
}

.fc-metric-icon-badge--info {
    background: rgba(37, 99, 235, 0.12);
    color: #2563EB;
}

.fc-metric-icon-badge--success {
    background: rgba(22, 163, 74, 0.12);
    color: #16A34A;
}

.fc-auth-container {
    padding: var(--fc-space-6) var(--fc-space-4);
}

.fc-auth-card {
    border-radius: var(--fc-radius-lg);
    border: 1px solid rgba(2, 6, 23, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    background: var(--mud-palette-surface);
}

/* ------------------------------------------------------------
   Login — SaaS split layout (FitControl brand + gym form)
   Siempre modo claro: el tema oscuro aplica solo dentro del sistema.
   ------------------------------------------------------------ */

.fc-login-layout {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #ffffff;
    color: #0f172a;
}

.fc-login-light .mud-typography,
.fc-login-light .mud-input,
.fc-login-light .mud-input-label,
.fc-login-light .mud-input-control,
.fc-login-light .mud-input-control input,
.fc-login-light .mud-input-adornment .mud-icon-root {
    color: #0f172a;
}

.fc-login-light .mud-input-label {
    color: #64748b !important;
}

.fc-login-light .mud-input-outlined-border {
    border-color: #cbd5e1 !important;
}

.fc-login-light .mud-input:focus-within ~ label,
.fc-login-light .mud-input:focus-within .mud-input-label {
    color: #0b3251 !important;
}

.fc-login {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.fc-login-brand {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.fc-login-brand__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.35s var(--fc-ease);
    z-index: 0;
}

.fc-login-brand__bg.is-fading {
    opacity: 0.5;
}

.fc-login-brand__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(11, 50, 81, 0.62) 0%,
            rgba(11, 50, 81, 0.38) 28%,
            rgba(11, 50, 81, 0.14) 58%,
            transparent 78%
        ),
        linear-gradient(
            105deg,
            rgba(11, 50, 81, 0.72) 0%,
            rgba(11, 50, 81, 0.38) 40%,
            transparent 72%
        ),
        linear-gradient(
            0deg,
            rgba(15, 23, 42, 0.42) 0%,
            transparent 38%
        );
}

.fc-login-brand__overlay {
    display: none;
}

.fc-login-brand__glow {
    display: none;
}

.fc-login-brand__content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    animation: fc-login-fade-in 0.55s var(--fc-ease) both;
}

.fc-login-brand__hero {
    flex-shrink: 0;
    padding: clamp(1.75rem, 4vh, 2.75rem) clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(1.25rem, 2.5vh, 1.75rem);
    background: transparent;
}

.fc-login-brand__header {
    display: flex;
    align-items: center;
    gap: var(--fc-space-4);
}

.fc-login-brand__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #0b3251;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.fc-login-brand__title {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-size: clamp(1.85rem, 3.2vw, 2.5rem) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.fc-login-brand__tagline {
    color: #f8fafc !important;
    max-width: 42ch;
    margin-top: 8px;
    font-size: clamp(1rem, 1.4vw, 1.125rem) !important;
    line-height: 1.5;
    font-weight: 500 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.fc-login-feature-list {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: clamp(1.25rem, 2.5vh, 2rem) clamp(2rem, 4vw, 3rem);
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vh, 1.35rem) clamp(1.5rem, 3vw, 2.5rem);
    align-content: start;
    overflow: hidden;
}

.fc-login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--fc-space-3);
    padding: 0;
    margin: 0;
}

.fc-login-feature-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #0b3251;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.fc-login-feature-item__title {
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.3;
    font-size: clamp(0.95rem, 1.3vw, 1.0625rem) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.fc-login-feature-item__desc {
    color: #f1f5f9 !important;
    line-height: 1.4;
    margin-top: 4px;
    font-size: clamp(0.85rem, 1.1vw, 0.9375rem) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.fc-login-brand__features,
.fc-login-feature {
    display: none;
}

.fc-login-brand__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: clamp(0.75rem, 2vh, 1.25rem) clamp(2rem, 4vw, 3rem);
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.55) 0%, transparent 100%);
}

.fc-login-brand__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition:
        transform var(--fc-duration) var(--fc-ease),
        background var(--fc-duration) var(--fc-ease),
        width var(--fc-duration) var(--fc-ease);
}

.fc-login-brand__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #ffffff;
}

.fc-login-brand__dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.75);
}

.fc-login-preview {
    display: none;
}

.fc-login-preview__toolbar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.fc-login-preview__toolbar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.25);
}

.fc-login-preview__body {
    padding: clamp(0.5rem, 1vh, 0.75rem);
}

.fc-login-preview__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fc-space-2);
    margin-bottom: var(--fc-space-2);
}

.fc-login-preview__stat {
    height: clamp(28px, 4vh, 36px);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(11, 50, 81, 0.08), rgba(11, 50, 81, 0.03));
}

.fc-login-preview__chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: clamp(48px, 8vh, 72px);
    padding: 0 4px;
}

.fc-login-preview__chart span {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, rgba(11, 50, 81, 0.28), rgba(11, 50, 81, 0.10));
    animation: fc-login-bar-pulse 4s ease-in-out infinite;
}

.fc-login-preview__chart span:nth-child(2) { animation-delay: 0.4s; }
.fc-login-preview__chart span:nth-child(3) { animation-delay: 0.8s; }
.fc-login-preview__chart span:nth-child(4) { animation-delay: 1.2s; }
.fc-login-preview__chart span:nth-child(5) { animation-delay: 1.6s; }
.fc-login-preview__chart span:nth-child(6) { animation-delay: 2s; }

.fc-login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(1rem, 2.5vh, 2rem) clamp(1.5rem, 4vw, 3rem);
    background: #ffffff;
}

.fc-login-form-wrap {
    width: min(100%, 440px);
    animation: fc-login-slide-in 0.55s var(--fc-ease) 0.08s both;
}

.fc-login-form-card {
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    border-radius: 20px;
    background: #ffffff;
}

.fc-login-gym {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--fc-space-4);
    margin-bottom: var(--fc-space-6);
}

.fc-login-gym__logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    padding: var(--fc-space-4);
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.fc-login-gym__logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fc-login-gym__name {
    color: #0f172a !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

.fc-login-welcome {
    color: #0f172a !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    font-size: 1.5rem !important;
}

.fc-login-subtitle {
    color: #64748b !important;
    margin-top: 6px;
    margin-bottom: var(--fc-space-6);
    line-height: 1.5;
}

.fc-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fc-login-field {
    margin-bottom: 0.25rem;
}

.fc-login-field--password {
    margin-top: 0.25rem;
}

/* Login inputs — Outlined suave, tamaño normal */
.fc-login-light .fc-login-field .mud-input-outlined {
    border-radius: 10px !important;
    background: #f8fafc !important;
    transition:
        background-color var(--fc-duration) var(--fc-ease),
        box-shadow var(--fc-duration) var(--fc-ease);
}

.fc-login-light .fc-login-field .mud-input-outlined .mud-input-outlined-border {
    border-color: #e2e8f0 !important;
    border-width: 1px !important;
    border-radius: 10px !important;
}

.fc-login-light .fc-login-field .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #cbd5e1 !important;
}

.fc-login-light .fc-login-field .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #0b3251 !important;
    border-width: 1.5px !important;
}

.fc-login-light .fc-login-field .mud-input-outlined.mud-input-focused {
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(11, 50, 81, 0.08);
}

.fc-login-light .fc-login-field .mud-input-underline,
.fc-login-light .fc-login-field .mud-input-underline::before,
.fc-login-light .fc-login-field .mud-input-underline::after {
    display: none !important;
}

.fc-login-light .fc-login-field .mud-input-control-input-container {
    border-bottom: none !important;
}

.fc-login-light .fc-login-field .mud-input-label {
    color: #64748b !important;
    font-weight: 500 !important;
}

.fc-login-light .fc-login-field .mud-input-label.mud-input-label-inputcontrol {
    color: #475569 !important;
}

.fc-login-light .fc-login-field .fc-login-input,
.fc-login-light .fc-login-field input {
    color: #0f172a !important;
    font-size: 0.875rem;
}

.fc-login-light .fc-login-field input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.fc-login-light .fc-login-field .mud-input-helper-text {
    color: #64748b !important;
    font-size: 0.8125rem;
    margin-top: 4px;
}

.fc-login-light .fc-login-field .mud-input-helper-text.mud-input-error {
    color: #b45309 !important;
    font-weight: 500;
}

.fc-login-light .fc-login-field.mud-input-error .mud-input-outlined {
    background: #fffbeb !important;
}

.fc-login-light .fc-login-field.mud-input-error .mud-input-outlined .mud-input-outlined-border {
    border-color: #f59e0b !important;
}

.fc-login-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--fc-space-1);
    margin-bottom: var(--fc-space-2);
}

.fc-login-link {
    text-transform: none !important;
    font-weight: 500 !important;
    padding-inline: 0 !important;
    color: #64748b !important;
    font-size: 0.875rem !important;
}

.fc-login-link:hover {
    color: #0b3251 !important;
    background: transparent !important;
}

.fc-login-error {
    display: flex;
    align-items: flex-start;
    gap: var(--fc-space-2);
    padding: var(--fc-space-3) var(--fc-space-4);
    margin-bottom: var(--fc-space-4);
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.fc-login-error__icon {
    color: #d97706 !important;
    margin-top: 2px;
    flex-shrink: 0;
}

.fc-login-error .mud-typography {
    color: #92400e !important;
    line-height: 1.45;
}

.fc-login-submit {
    min-height: 42px;
    margin-top: var(--fc-space-2);
    border-radius: 10px !important;
    font-size: 0.9375rem !important;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(11, 50, 81, 0.12);
    transition:
        transform var(--fc-duration) var(--fc-ease),
        box-shadow var(--fc-duration) var(--fc-ease);
}

.fc-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(11, 50, 81, 0.22);
}

.fc-login-powered {
    display: block;
    text-align: center;
    color: #94a3b8 !important;
    margin-top: var(--fc-space-5);
    letter-spacing: 0.02em;
}

@keyframes fc-login-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fc-login-slide-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fc-login-bar-pulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@media (max-width: 1100px) {
    .fc-login {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
}

@media (max-height: 820px) {
    .fc-login-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 680px) {
    .fc-login-feature-list {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

@media (max-width: 900px) {
    .fc-login-layout {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: auto;
    }

    .fc-login {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .fc-login-brand {
        display: none;
    }

    .fc-login-form-section {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-login-brand__content,
    .fc-login-form-wrap,
    .fc-login-feature,
    .fc-login-submit,
    .fc-login-preview__chart span {
        animation: none !important;
        transition: none !important;
    }
}

/* Boot splash — WASM preload (index.html) + auth bootstrap (FcAuthSplash) */
.fc-boot-splash {
    height: 100%;
    inset: 0;
    margin: 0;
    position: fixed;
    width: 100%;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.fc-boot-splash--hiding {
    opacity: 0;
    pointer-events: none;
}

html.fc-theme-light .fc-boot-splash {
    background-color: var(--fc-boot-bg-light);
}

html.fc-theme-dark .fc-boot-splash {
    background-color: var(--fc-boot-bg-dark);
}

/* Antes de que corra el script de tema (fallback = sistema) */
@media (prefers-color-scheme: light) {
    html:not(.fc-theme-dark):not(.fc-theme-light) .fc-boot-splash {
        background-color: var(--fc-boot-bg-light);
    }
}

@media (prefers-color-scheme: dark) {
    html:not(.fc-theme-dark):not(.fc-theme-light) .fc-boot-splash {
        background-color: var(--fc-boot-bg-dark);
    }
}

.fc-boot-splash__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.fc-boot-splash__title {
    font-family: var(--fc-font-family);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

html.fc-theme-light .fc-boot-splash__title {
    color: var(--fc-boot-title-light);
}

html.fc-theme-dark .fc-boot-splash__title {
    color: var(--fc-boot-title-dark);
}

@media (prefers-color-scheme: light) {
    html:not(.fc-theme-dark):not(.fc-theme-light) .fc-boot-splash__title {
        color: var(--fc-boot-title-light);
    }
}

@media (prefers-color-scheme: dark) {
    html:not(.fc-theme-dark):not(.fc-theme-light) .fc-boot-splash__title {
        color: var(--fc-boot-title-dark);
    }
}

html.fc-theme-light .fc-boot-splash .progress-bar {
    background-color: var(--fc-boot-bar-light);
}

html.fc-theme-dark .fc-boot-splash .progress-bar {
    background-color: var(--fc-boot-bar-dark);
}

.fc-boot-splash .progress-container {
    margin-top: 0.5rem;
}

@media (prefers-color-scheme: light) {
    html:not(.fc-theme-dark):not(.fc-theme-light) .fc-boot-splash .progress-bar {
        background-color: var(--fc-boot-bar-light);
    }
}

@media (prefers-color-scheme: dark) {
    html:not(.fc-theme-dark):not(.fc-theme-light) .fc-boot-splash .progress-bar {
        background-color: var(--fc-boot-bar-dark);
    }
}

/* ---------- Cards / surfaces baseline ---------- */
.fc-surface {
    background: var(--mud-palette-surface);
    border-radius: var(--fc-radius-lg);
    border: 1px solid rgba(2, 6, 23, 0.06);
}

@media (prefers-reduced-motion: no-preference) {
    .fc-surface:hover,
    .fc-kpi-card:hover,
    .fc-metric-card:hover {
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
    }
}

.fc-surface,
.fc-kpi-card,
.fc-metric-card {
    transition:
        box-shadow var(--fc-duration) var(--fc-ease),
        transform var(--fc-duration-fast) var(--fc-ease),
        border-color var(--fc-duration) var(--fc-ease);
}

/* ---------- Page header (compact app chrome) ---------- */
.fc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fc-space-4);
    margin: var(--fc-space-2) 0;
    flex-wrap: wrap;
}

.fc-page-header__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--mud-palette-text-primary);
    flex-shrink: 0;
}

.fc-page-header__crumbs {
    margin: 0 0 0 auto;
    padding: 0;
    opacity: 0.85;
}

.fc-page-header__crumbs .mud-breadcrumbs {
    padding: 0;
    font-size: 1rem;
}

/* Section toolbar: title + actions (list page headers inside papers) */
.fc-section-toolbar {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-3);
}

.fc-section-toolbar__title {
    flex-shrink: 0;
    margin: 0;
}

.fc-section-toolbar__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-3);
    padding-inline-start: var(--fc-space-4);
    width: 100%;
}

.fc-section-toolbar__action {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
}

@media (min-width: 960px) {
    .fc-section-toolbar {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .fc-section-toolbar__actions {
        justify-content: flex-end;
        padding-inline-start: 0;
        width: auto;
    }
}

.fc-page-header__crumbs .mud-breadcrumb-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

/* ---------- MudBlazor: soften "outlined" surfaces ---------- */
.mud-paper-outlined {
    border-color: rgba(2, 6, 23, 0.08) !important;
    border-radius: var(--fc-radius-lg);
}

/* Tables: dense, no stripes, no column resize */
.mud-table-container,
.mud-data-grid {
    border-radius: var(--fc-radius-lg);
    overflow: hidden;
}

.mud-table .mud-table-head .mud-table-cell,
.mud-data-grid .mud-table-head .mud-table-cell {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.mud-table .mud-table-head,
.mud-data-grid .mud-table-head {
    background: linear-gradient(180deg, rgba(11, 50, 81, 0.07) 0%, rgba(11, 50, 81, 0.03) 100%);
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

.mud-table .mud-table-body .mud-table-row:nth-child(even) .mud-table-cell,
.mud-data-grid .mud-table-body .mud-table-row:nth-child(even) .mud-table-cell {
    background: transparent;
}

.mud-table .mud-table-row .mud-table-cell,
.mud-data-grid .mud-table-row .mud-table-cell {
    transition: background-color var(--fc-duration) var(--fc-ease);
}

.mud-table .mud-table-row:hover .mud-table-cell,
.mud-data-grid .mud-table-row:hover .mud-table-cell {
    background: var(--mud-palette-table-hover, rgba(11, 50, 81, 0.05)) !important;
}

/* Annulled records — full row highlight (MudTable + MudDataGrid) */
.mud-table-row.fc-row-annulled .mud-table-cell,
.mud-data-grid .mud-table-row.fc-row-annulled .mud-table-cell {
    background-color: rgba(244, 47, 70, 0.14) !important;
}

.mud-table-row.fc-row-annulled:hover .mud-table-cell,
.mud-data-grid .mud-table-row.fc-row-annulled:hover .mud-table-cell {
    background-color: rgba(244, 47, 70, 0.18) !important;
}

.mud-theme-dark .mud-table-row.fc-row-annulled .mud-table-cell,
.mud-theme-dark .mud-data-grid .mud-table-row.fc-row-annulled .mud-table-cell {
    background-color: rgba(244, 47, 70, 0.22) !important;
}

.mud-theme-dark .mud-table-row.fc-row-annulled:hover .mud-table-cell,
.mud-theme-dark .mud-data-grid .mud-table-row.fc-row-annulled:hover .mud-table-cell {
    background-color: rgba(244, 47, 70, 0.28) !important;
}

/* MudTable striped prop — keep flat rows */
.mud-table.mud-table-striped .mud-table-row:nth-child(even) .mud-table-cell {
    background: transparent;
}

/* Hide column resize handles in data grids */
.mud-data-grid .mud-table-head .mud-table-cell .column-resizer,
.mud-data-grid .mud-table-head .mud-table-cell .mud-data-grid-column-resizer {
    display: none !important;
    pointer-events: none !important;
}

/* Table row actions — filled buttons, semantic colors */
.fc-table-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--fc-space-1);
    justify-content: center;
}

.mud-data-grid .fc-table-actions .fc-table-btn,
.mud-table .fc-table-actions .fc-table-btn {
    margin: 0;
}

/* Legacy header classes used by DataGrids */
.header-light .mud-table-head,
.header-dark .mud-table-head {
    background: linear-gradient(180deg, rgba(11, 50, 81, 0.08) 0%, rgba(11, 50, 81, 0.03) 100%) !important;
}

/* ---------- Alerts & feedback ---------- */
.fc-help-text,
.home-section-subtitle,
.cash-summary-meta,
.mud-input-helper-text,
.mud-helper-text,
.mud-input-control-helper-text {
    color: var(--fc-help-text, var(--mud-palette-warning-lighten, var(--mud-palette-warning))) !important;
}

.mud-alert {
    border-radius: 12px;
    border-width: 1px;
    transition: box-shadow var(--fc-duration) var(--fc-ease), transform var(--fc-duration-fast) var(--fc-ease);
}

.mud-alert:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Warning */
.mud-alert-filled.mud-alert-filled-warning,
.mud-alert-text.mud-alert-text-warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
    color: #92400E !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
}

/* Error */
.mud-alert-filled.mud-alert-filled-error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%) !important;
    color: #991B1B !important;
}

/* Info */
.mud-alert-filled.mud-alert-filled-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%) !important;
    color: #1E40AF !important;
}

/* Success */
.mud-alert-filled.mud-alert-filled-success {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%) !important;
    color: #166534 !important;
}

/* Outlined alerts */
.mud-alert-outlined.mud-alert-outlined-warning {
    border-color: rgba(217, 119, 6, 0.45) !important;
    background: rgba(254, 243, 199, 0.35) !important;
}

.mud-alert-outlined.mud-alert-outlined-error {
    border-color: rgba(220, 38, 38, 0.45) !important;
    background: rgba(254, 226, 226, 0.35) !important;
}

/* Progress & snackbars */
.mud-progress-linear .mud-progress-linear-bar {
    transition: width var(--fc-duration-slow) var(--fc-ease);
}

.mud-snackbar {
    border-radius: 12px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18) !important;
}

/* Buttons: subtle press feedback */
@media (prefers-reduced-motion: no-preference) {
    .mud-button-root:active:not(:disabled) {
        transform: scale(0.98);
    }

    .mud-button-root {
        transition: transform var(--fc-duration-fast) var(--fc-ease), box-shadow var(--fc-duration) var(--fc-ease);
    }
}

/* Expansion panels (filters) */
.mud-expand-panel {
    border-radius: var(--fc-radius-lg) !important;
    overflow: hidden;
    transition: box-shadow var(--fc-duration) var(--fc-ease);
}

.mud-expand-panel.mud-expand-panel-expanded {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* ---------- Dashboard metric cards ---------- */
.fc-metric-card,
.home-stat-card {
    background: var(--mud-palette-surface);
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: var(--fc-radius-lg);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    padding: 20px 22px;
    height: 100%;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fc-metric-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    line-height: 1.3;
}

.home-stat-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    line-height: 1.35;
}

.fc-metric-card__value,
.home-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--mud-palette-text-primary);
    letter-spacing: -0.02em;
}

.fc-metric-trend,
.home-stat-trend {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform var(--fc-duration-fast) var(--fc-ease);
}

.fc-metric-trend--up,
.home-stat-trend--up {
    background: #ecfdf5;
    color: #059669;
}

.fc-metric-trend--down,
.home-stat-trend--down {
    background: #fef2f2;
    color: #dc2626;
}

.fc-metric-trend--neutral,
.home-stat-trend--neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.fc-metric-card__header,
.home-stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-followup-card {
    min-height: 132px;
}

.home-stat-grid {
    margin-bottom: 0;
}

.home-welcome__greeting {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.home-welcome__tagline {
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 42rem;
}

/* Home page — section & card typography */
.fc-page--home .home-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.fc-page--home .home-section-subtitle {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-top: 2px;
}

.fc-page--home .home-section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.fc-page--home .home-stat-link {
    font-size: 0.95rem;
    font-weight: 600;
}

.fc-page--home .home-info-alert {
    font-size: 0.95rem;
    line-height: 1.5;
}

.fc-page--home .fc-metric-icon-badge {
    height: 48px;
    width: 48px;
}

/* ---------- KPI cards (StatBox) ---------- */
.fc-kpi-card {
    border-radius: var(--fc-radius-lg);
    border: 1px solid rgba(2, 6, 23, 0.06);
    padding: var(--fc-space-4);
    background: var(--mud-palette-surface);
}

.fc-kpi-card__header {
    display: flex;
    align-items: center;
    gap: var(--fc-space-2);
    margin-bottom: var(--fc-space-2);
    min-width: 0;
}

.fc-kpi-card__icon {
    font-size: 20px;
}

.fc-kpi-card__icon-wrap {
    align-items: center;
    background: rgba(11, 50, 81, 0.08);
    border-radius: 12px;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.fc-kpi-card__title {
    color: var(--mud-palette-text-secondary);
    font-weight: 700;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-kpi-card__value {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fc-inline-loading {
    margin-bottom: var(--fc-space-2);
}

.fc-page-skeleton__toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-3);
}

.fc-page-skeleton__search {
    flex: 1 1 220px;
    max-width: 100%;
}

.fc-page-skeleton__paper {
    border-radius: var(--fc-radius-lg);
}

.fc-page-skeleton__filter-head,
.fc-page-skeleton__section-title {
    align-items: center;
    display: flex;
    gap: var(--fc-space-2);
}

.fc-page-skeleton__icon {
    border-radius: 10px;
    flex-shrink: 0;
}

.fc-page-skeleton__kpi {
    border-radius: var(--fc-radius-lg);
    min-height: 120px;
}

.fc-page-skeleton__pos-panel {
    border-radius: var(--fc-radius-lg);
    min-height: 420px;
}

.fc-page-skeleton__table-head,
.fc-page-skeleton__table-row {
    align-items: center;
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: repeat(var(--fc-skel-cols, 6), minmax(0, 1fr));
}

.fc-page-skeleton__table-head {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    margin-bottom: var(--fc-space-2);
    padding-bottom: var(--fc-space-2);
}

.fc-page-skeleton__table-row {
    margin-bottom: var(--fc-space-1);
}

.fc-page-skeleton__table-row:has(.fc-page-skeleton__table-actions) {
    grid-template-columns: repeat(var(--fc-skel-cols, 6), minmax(0, 1fr)) auto;
}

.fc-page-skeleton__table-actions {
    align-items: center;
    display: inline-flex;
    gap: var(--fc-space-1);
}

.fc-skel.mud-skeleton-pulse,
.fc-page-skeleton .mud-skeleton-pulse {
    animation-duration: 1.35s;
}

/* ---------- POS terminal (ventas / compras) ---------- */
.fc-pos-terminal {
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-3);
    max-height: calc(100dvh - 6.5rem);
    min-height: calc(100dvh - 6.5rem);
}

.fc-pos-terminal__header {
    align-items: center;
    border-radius: var(--fc-radius-lg);
    border: 1px solid var(--mud-palette-lines-default);
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-3);
    padding: var(--fc-space-3) var(--fc-space-4);
}

.fc-pos-terminal__header-main {
    flex: 1 1 200px;
    min-width: 0;
}

.fc-pos-terminal__title {
    font-weight: 700;
    line-height: 1.2;
}

.fc-pos-terminal__subtitle {
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
}

.fc-pos-terminal__header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-2);
}

.fc-pos-terminal__body {
    display: grid;
    flex: 1;
    gap: var(--fc-space-3);
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    min-height: 0;
}

.fc-pos-terminal__panel-body--cards {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.fc-pos-terminal__ticket {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--fc-radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.fc-pos-terminal__ticket-head {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-shrink: 0;
    padding: var(--fc-space-3);
}

.fc-pos-terminal__ticket-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: var(--fc-space-2);
}

.fc-pos-terminal__ticket-footer {
    border-top: 1px solid var(--mud-palette-lines-default);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: var(--fc-space-2);
    padding: var(--fc-space-3);
}

.fc-pos-customer-row {
    align-items: center;
    display: flex;
    gap: var(--fc-space-2);
}

.fc-pos-customer-row__field {
    flex: 1;
    min-width: 0;
}

.fc-pos-customer-row__clear {
    flex-shrink: 0;
    margin-bottom: 4px;
}

.fc-pos-product-catalog {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
}

.fc-pos-product-catalog__loading {
    flex-shrink: 0;
}

.fc-pos-product-grid {
    display: grid;
    gap: var(--fc-space-3);
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    padding: var(--fc-space-3);
}

.fc-pos-product-card {
    background: color-mix(in srgb, var(--mud-palette-background-gray) 40%, var(--mud-palette-surface));
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--fc-radius-lg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fc-pos-product-card:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 45%, var(--mud-palette-lines-default));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    transform: translateY(-2px);
}

.fc-pos-product-card:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.fc-pos-product-card__media {
    aspect-ratio: 4 / 3;
    background: var(--mud-palette-background-gray);
    flex-shrink: 0;
    line-height: 0;
    overflow: hidden;
    width: 100%;
}

.fc-pos-product-card__media--placeholder {
    background: var(--mud-palette-background-gray);
}

.mud-theme-light .fc-pos-product-card__media--placeholder {
    background: #F1F5F9;
}

.mud-theme-dark .fc-pos-product-card__media--placeholder {
    background: #2A282C;
}

.fc-pos-product-card__media .mud-image,
.fc-pos-product-card__media img.fc-pos-product-card__img {
    border-radius: 0 !important;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fc-pos-product-card__img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fc-pos-product-card__img--placeholder {
    object-fit: contain !important;
    padding: 12%;
}

.fc-pos-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: var(--fc-space-2) var(--fc-space-2) var(--fc-space-3);
}

.fc-pos-product-card__name {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    min-height: 3.1em;
    overflow: hidden;
}

.fc-pos-product-card__sku {
    color: var(--mud-palette-text-secondary);
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-pos-product-card__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: space-between;
    margin-top: auto;
}

.fc-pos-product-card__badge {
    background: color-mix(in srgb, var(--mud-palette-info) 12%, transparent);
    border-radius: 999px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
}

.fc-pos-product-card__price {
    color: var(--mud-palette-warning);
    font-size: 0.78rem;
    font-weight: 700;
}

.fc-pos-product-catalog__pager {
    border-top: 1px solid var(--mud-palette-lines-default);
    display: flex;
    justify-content: center;
    padding: var(--fc-space-2) var(--fc-space-3) var(--fc-space-3);
}

.fc-pos-ticket-item {
    background: color-mix(in srgb, var(--mud-palette-background-gray) 55%, transparent);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--fc-radius-lg);
    margin-bottom: var(--fc-space-2);
    padding: var(--fc-space-2);
}

.fc-pos-ticket-item__head {
    align-items: flex-start;
    display: flex;
    gap: var(--fc-space-2);
    margin-bottom: var(--fc-space-2);
}

.fc-pos-ticket-item__info {
    flex: 1;
    min-width: 0;
}

.fc-pos-ticket-item__name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.fc-pos-ticket-item__meta {
    color: var(--mud-palette-text-secondary);
    font-size: 0.7rem;
}

.fc-pos-ticket-item__fields {
    align-items: end;
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: minmax(56px, 0.85fr) minmax(64px, 1fr) minmax(72px, 1fr);
}

.fc-pos-ticket-item__subtotal {
    align-self: end;
    color: var(--mud-palette-warning);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    padding-bottom: 0.45rem;
    text-align: right;
}

.fc-pos-ticket-item__expiry {
    margin-top: var(--fc-space-2);
}

.fc-pos-terminal__checkout-total--compact {
    margin-top: var(--fc-space-2);
    padding: var(--fc-space-3);
}

.fc-pos-terminal__checkout-total--compact .fc-pos-terminal__checkout-total-value {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.fc-pos-terminal__empty--compact {
    min-height: 120px;
    padding: var(--fc-space-4);
}

.fc-pos-terminal__panel {
    border-radius: var(--fc-radius-lg);
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.fc-pos-terminal__panel-head {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-shrink: 0;
    padding: var(--fc-space-3);
}

.fc-pos-terminal__panel-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: var(--fc-space-2) var(--fc-space-3);
}

.fc-pos-terminal__panel-body--grid {
    padding: 0;
}

.fc-pos-terminal__panel-body--grid .mud-table-root {
    border-radius: 0;
}

.fc-pos-terminal__catalog--focused {
    box-shadow: 0 0 0 2px var(--mud-palette-warning);
}

.fc-pos-terminal__checkout {
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-3);
    padding: var(--fc-space-3);
}

.fc-pos-terminal__checkout-total {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
    border-radius: var(--fc-radius-lg);
    border: 1px solid var(--mud-palette-lines-default);
    padding: var(--fc-space-4);
    text-align: center;
}

.fc-pos-terminal__checkout-total-label {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fc-pos-terminal__checkout-total-value {
    color: var(--mud-palette-warning);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    margin-top: var(--fc-space-1);
}

.fc-pos-terminal__checkout-actions {
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-2);
    margin-top: auto;
}

.fc-pos-terminal__empty {
    align-items: center;
    color: var(--mud-palette-text-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-3);
    justify-content: center;
    min-height: 220px;
    padding: var(--fc-space-6);
    text-align: center;
}

.fc-pos-cart-lines {
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-2);
    padding: var(--fc-space-2) var(--fc-space-3) var(--fc-space-3);
}

.fc-pos-line {
    align-items: center;
    background: color-mix(in srgb, var(--mud-palette-background-gray) 55%, transparent);
    border-radius: var(--fc-radius-lg);
    border: 1px solid var(--mud-palette-lines-default);
    display: grid;
    gap: var(--fc-space-2) var(--fc-space-3);
    grid-template-columns: minmax(0, 1fr) 88px 100px 96px 40px;
    padding: var(--fc-space-2) var(--fc-space-3);
}

.fc-pos-line--with-thumb {
    grid-template-columns: 40px minmax(0, 1fr) 88px 100px 96px 40px;
}

.fc-pos-line--purchase {
    grid-template-columns: minmax(0, 1fr) 88px 100px 140px 96px 40px;
}

.fc-pos-line--purchase.fc-pos-line--with-thumb {
    grid-template-columns: 40px minmax(0, 1fr) 88px 100px 140px 96px 40px;
}

.fc-pos-product-thumb {
    background: var(--mud-palette-background-gray);
    flex-shrink: 0;
    overflow: hidden;
}

.mud-theme-light .fc-pos-product-thumb:has(.fc-pos-product-thumb__img[src*="product-placeholder"]) {
    background: #F1F5F9;
}

.mud-theme-dark .fc-pos-product-thumb:has(.fc-pos-product-thumb__img[src*="product-placeholder"]) {
    background: #2A282C;
}

.fc-pos-product-thumb--large {
    height: 96px;
    width: 96px;
}

.fc-pos-product-thumb__img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fc-pos-grid-thumb-cell {
    padding-left: 8px !important;
    padding-right: 4px !important;
    width: 48px;
}

.fc-pos-catalog-row {
    align-items: center;
    display: flex;
    gap: var(--fc-space-2);
    min-width: 0;
}

.fc-product-image-field {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-4);
}

.fc-product-image-field__preview {
    aspect-ratio: 4 / 3;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--fc-radius-lg);
    flex-shrink: 0;
    overflow: hidden;
    width: min(100%, 320px);
}

.mud-theme-light .fc-product-image-field__preview:has(.fc-product-image-field__preview-img[src*="product-placeholder"]) {
    background: #F1F5F9;
}

.mud-theme-dark .fc-product-image-field__preview:has(.fc-product-image-field__preview-img[src*="product-placeholder"]) {
    background: #2A282C;
}

.fc-product-image-field__preview-img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fc-product-image-field__preview-img[src*="product-placeholder"] {
    object-fit: contain;
    padding: 10%;
}

.fc-product-image-field__actions {
    min-width: 180px;
}

.fc-product-capture-frame {
    aspect-ratio: 4 / 3;
    background: #000;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--fc-radius-lg);
    margin: 0 auto;
    max-width: 640px;
    overflow: hidden;
    width: 100%;
}

.fc-product-image-field__preview--cutout,
.fc-product-capture-frame--cutout {
    background:
        linear-gradient(45deg, #ececec 25%, transparent 25%),
        linear-gradient(-45deg, #ececec 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ececec 75%),
        linear-gradient(-45deg, transparent 75%, #ececec 75%);
    background-color: #ffffff;
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

html.fc-theme-dark .fc-product-image-field__preview--cutout,
html.fc-theme-dark .fc-product-capture-frame--cutout {
    background:
        linear-gradient(45deg, #333 25%, transparent 25%),
        linear-gradient(-45deg, #333 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #333 75%),
        linear-gradient(-45deg, transparent 75%, #333 75%);
    background-color: #ffffff;
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.fc-product-capture-media {
    background: #000;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fc-pos-line__name {
    font-weight: 600;
    line-height: 1.25;
    min-width: 0;
    word-break: break-word;
}

.fc-pos-line__meta {
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
    margin-top: 2px;
}

.fc-pos-line__subtotal {
    color: var(--mud-palette-warning);
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.fc-pos-line__field-label {
    color: var(--mud-palette-text-secondary);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.fc-pos-line__remove {
    display: flex;
    justify-content: center;
}

.fc-pos-terminal__catalog .fc-pos-terminal__panel-body--cards {
    min-height: 0;
}

@media (max-width: 900px) {
    .fc-pos-terminal {
        max-height: none;
        min-height: auto;
    }

    .fc-pos-terminal__body {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(420px, 55vh) auto;
    }

    .fc-pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .fc-pos-terminal__ticket {
        max-height: none;
        min-height: 360px;
    }
}

/* ---------- Dialog actions (MudBlazor 7.3: no Class on DialogActions) ---------- */
.mud-dialog {
    background-color: var(--fc-dialog-surface) !important;
    border: 1px solid var(--fc-dialog-border);
    box-shadow: var(--fc-dialog-shadow);
}

.mud-dialog .mud-dialog-title {
    border-bottom: 1px solid var(--fc-dialog-border);
}

.mud-theme-dark {
    --fc-dialog-surface: #1C1B1D;
    --fc-dialog-border: rgba(255, 255, 255, 0.14);
    --fc-dialog-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 16px 48px rgba(0, 0, 0, 0.58),
        0 4px 16px rgba(0, 0, 0, 0.38);
}

.mud-theme-dark .mud-dialog,
.mud-theme-dark .mud-dialog .mud-dialog-title,
.mud-theme-dark .mud-dialog .mud-dialog-content,
.mud-theme-dark .mud-dialog .mud-dialog-actions {
    background-color: var(--fc-dialog-surface) !important;
}

/* Popover dismiss (autocomplete/select/menu): sin dim/blur — el input queda legible */
.mud-theme-dark .mud-overlay:not(.mud-overlay-dialog) .mud-overlay-scrim {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Solo diálogos modales: scrim oscuro + blur suave */
.mud-theme-dark .mud-overlay.mud-overlay-dialog .mud-overlay-scrim {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mud-dialog .mud-dialog-actions {
    gap: var(--fc-space-2);
    padding: var(--fc-space-3) var(--fc-space-4) var(--fc-space-4);
}

.fc-page {
    /* Horizontal spacing comes from .fc-main — keep containers edge-to-edge inside */
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Busy states (3 levels) ---------- */
.fc-busy-overlay__panel {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-4);
    padding: var(--fc-space-6);
    text-align: center;
}

.fc-busy-overlay__message {
    color: #fff;
    font-weight: 600;
    max-width: 320px;
}

.mud-dialog .mud-dialog-content {
    position: relative;
}

.fc-dialog-busy {
    align-items: center;
    background: rgba(9, 9, 14, 0.55);
    border-radius: var(--fc-radius-lg);
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 20;
    gap: var(--fc-space-3);
}

.mud-theme-light .fc-dialog-busy {
    background: rgba(255, 255, 255, 0.82);
}

.fc-dialog-busy__message {
    font-weight: 600;
    padding: 0 var(--fc-space-4);
    text-align: center;
}

.fc-inline-loading {
    margin-bottom: var(--fc-space-2);
}

@-webkit-keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

@keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

.tracking-in-contract {
    -webkit-animation: tracking-in-contract 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: tracking-in-contract 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.actions-dialog {
    display: block !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.apexcharts-tooltip {
    background: #32333D !important;
    color: #CDCCC2 !important;
}

@-webkit-keyframes focus-in-expand-fwd {
    0% {
        letter-spacing: -0.5em;
        -webkit-transform: translateZ(-800px);
        transform: translateZ(-800px);
        -webkit-filter: blur(12px);
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes focus-in-expand-fwd {
    0% {
        letter-spacing: -0.5em;
        -webkit-transform: translateZ(-800px);
        transform: translateZ(-800px);
        -webkit-filter: blur(12px);
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1;
    }
}

.focus-in-expand-fwd {
    -webkit-animation: focus-in-expand-fwd 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: focus-in-expand-fwd 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.progress-container {
    height: 6px;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-top: 0;
    /* Que tome el ancho del contenido m�s ancho arriba */
    display: inline-block;
    min-width: 310px; /* opcional, para que no sea demasiado angosta */
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: 1.5s;
}

.fc-topbar__branch {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.fc-user-menu__activator {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    margin-left: 0.75rem;
    padding: 0.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fc-user-menu__activator:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.fc-user-menu__avatar,
.fc-user-menu__summary-avatar {
    box-shadow: 0 8px 18px rgba(4, 23, 41, 0.22);
    font-weight: 800;
}

.fc-user-avatar__img {
    display: block;
    height: 100%;
    width: 100%;
}

.fc-user-menu__email {
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-user-menu__profile-item {
    cursor: default;
    max-width: 320px;
    min-width: 280px;
    opacity: 1 !important;
    pointer-events: none;
}

/* Disabled menu item must still read with theme text colors */
.fc-user-menu__profile-item.mud-menu-item.mud-disabled {
    opacity: 1 !important;
}

.fc-user-menu__profile-item.mud-menu-item.mud-disabled .mud-typography-subtitle2 {
    color: var(--mud-palette-text-primary) !important;
    opacity: 1 !important;
}

.fc-user-menu__profile-item.mud-menu-item.mud-disabled .fc-user-menu__email,
.fc-user-menu__profile-item.mud-menu-item.mud-disabled .fc-user-menu__branch {
    color: var(--mud-palette-text-secondary) !important;
    opacity: 1 !important;
}

.fc-user-menu__profile-item .mud-list-item-text {
    width: 100%;
}

.fc-user-menu__summary {
    align-items: center;
    display: flex;
    gap: 0.9rem;
    padding: 0.35rem 0;
}

.fc-user-menu__summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fc-user-menu__summary-text .mud-typography-subtitle2 {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.fc-user-menu__branch {
    color: var(--mud-palette-text-secondary);
}

.fc-user-menu__logout {
    color: #d32f2f !important;
}

.fc-user-menu__logout .mud-menu-item-icon,
.fc-user-menu__logout .mud-list-item-text {
    color: #d32f2f !important;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.progress-bar {
    height: 100%;
    width: 30%;
    background-color: #C3C3C5;
    animation: move 1s linear infinite;
    border-radius: 5px;
}

@keyframes move {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

.theme-default-step-wrapper .theme-default-step-content {
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.theme-default-step-wrapper .theme-default-step-footer {
    padding: 0 !important;
}

.theme-default-wrapper {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0px !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite ease-in-out;
}

.element-highlight {
    border: solid 2px #008aff;
    z-index: 9;
    position: relative;
    background-color: transparent !important;
    border-radius: 0.2rem !important;
}

.mud-expand-panel .mud-expand-panel-header {
    padding: 8px 8px !important;
}

.mud-expand-panel .mud-expand-panel-content.mud-expand-panel-gutters {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.mud-data-grid .mud-table-cell .column-header {
    text-align: center;
    justify-content: center !important;
}

.mud-dialog-width-full {
    width: calc(100% - 30px) !important;
}

.theme-default-overlay {
    background-color: rgba(26,26,39,0.8) !important;
}
.row-deleted td {
    text-decoration-line: line-through;
    text-decoration-color: red;
    text-decoration-thickness: 2px; /* grosor de la l�nea */
    color: #c62828;
    opacity: 0.8;
}

.row-expired-promo td {
    color: #8d6e00;
    opacity: 0.85;
}

.input-centrado .mud-input-slot {
    text-align: center;
    font-size: 35px;
}

.capture-preview-frame {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-preview-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #111;
}

.person-photo-preview {
    min-height: 140px;
    max-height: 220px;
    background: #111;
}

.fc-profile-image-field {
    width: 100%;
}

.fc-profile-image-field__preview {
    position: relative;
    overflow: hidden;
    border-radius: var(--fc-radius-lg);
    border: 1px solid var(--mud-palette-lines-default);
}

.fc-profile-image-field__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 140px;
    max-height: 220px;
    object-fit: cover;
}

.fc-profile-image-field__toolbar {
    position: absolute;
    right: var(--fc-space-2);
    bottom: var(--fc-space-2);
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-1);
    z-index: 1;
}

.fc-profile-image-field__btn {
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.fc-profile-image-field__btn .mud-icon-root {
    color: #fff;
}

.fc-profile-image-field__btn.mud-error {
    background: rgba(183, 28, 28, 0.88) !important;
}

.fc-profile-image-field__btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

.fc-audit-description-col {
    width: 22rem;
    max-width: 22rem;
    min-width: 14rem;
}

.fc-audit-description-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.25rem;
    max-width: 22rem;
}

.fc-audit-description-cell__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.fc-audit-description-cell:not(.fc-audit-description-cell--expanded) .fc-audit-description-cell__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fc-audit-description-cell--expanded .fc-audit-description-cell__text {
    flex: 1 1 100%;
}

.fc-audit-description-cell__toggle {
    flex: 0 0 auto;
    min-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: none;
    vertical-align: baseline;
}
