/* ============ Flete Express · estilos base ============ */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    min-width: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1:focus { outline: none; }

/* Pantalla de carga / centrada */
.fx-splash {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: var(--mud-palette-background, #F6F7FB);
}

/* ---------- Login (hero logístico full-bleed) ---------- */
.fx-login {
    --fx-login-ink: #0a1520;
    --fx-login-navy: #12263a;
    --fx-login-brand: #814a4c;
    --fx-login-brand-bright: #a66b6d;
    --fx-login-amber: #c47a2c;
    --fx-login-asphalt: #1a1f26;
    --fx-login-panel: rgba(250, 249, 247, .92);
    --fx-login-panel-border: rgba(255, 255, 255, .28);
    --fx-login-text: #14181f;
    --fx-login-muted: #5c6573;
    --fx-login-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --fx-login-font-ui: "Figtree", "Segoe UI", sans-serif;
    --fx-login-cycle: 55s;

    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(20px, 4vw, 48px);
    font-family: var(--fx-login-font-ui);
    color: #fff;
    background: var(--fx-login-ink);
}

/* Escenario edge-to-edge */
.fx-login-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.fx-login-slides {
    position: absolute;
    inset: 0;
}

.fx-login-slide {
    position: absolute;
    inset: -6%;
    background-color: var(--fx-login-navy);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    will-change: opacity, transform;
    animation:
        fxLoginCrossfade var(--fx-login-cycle) infinite,
        fxLoginKenBurns var(--fx-login-cycle) infinite;
}

/*
 * Unsplash — logística / transporte (w=1920), ~5.5s/slide · ciclo 55s:
 * 1. Camión Scania carretera     photo-1601584115197-04ecc0da31d7
 * 2. Bodega racks / bins         photo-1586528116311-ad8dd3c8310d
 * 3. Pasillo bodega pallets      photo-1553413077-190dd305871c
 * 4. Entrega de caja courier     photo-1566576721346-d4a3b4eaeb55
 * 5. Buque contenedores puerto   photo-1578575437130-527eed3abbec
 * 6. Flota camiones (aérea)      photo-1565793298595-6a879b1d9492
 * 7. Contenedores + grúas puerto photo-1606964212858-c215029db704
 * 8. Montacargas / carga         photo-1532635042-a6f6ad4745f9
 * 9. Semi en carretera           photo-1695222833131-54ee679ae8e5
 * 10. Canal de Panamá Miraflores photo-1753526372250-7ae4d622bb18
 */
.fx-login-slide--1 {
    background-image: url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1920&q=80");
    animation-delay: 0s, 0s;
}
.fx-login-slide--2 {
    background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.1), calc(var(--fx-login-cycle) * -.1);
    animation-name: fxLoginCrossfade, fxLoginKenBurnsAlt;
}
.fx-login-slide--3 {
    background-image: url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.2), calc(var(--fx-login-cycle) * -.2);
}
.fx-login-slide--4 {
    background-image: url("https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.3), calc(var(--fx-login-cycle) * -.3);
    animation-name: fxLoginCrossfade, fxLoginKenBurnsAlt;
}
.fx-login-slide--5 {
    background-image: url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.4), calc(var(--fx-login-cycle) * -.4);
}
.fx-login-slide--6 {
    background-image: url("https://images.unsplash.com/photo-1565793298595-6a879b1d9492?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.5), calc(var(--fx-login-cycle) * -.5);
    animation-name: fxLoginCrossfade, fxLoginKenBurnsAlt;
}
.fx-login-slide--7 {
    background-image: url("https://images.unsplash.com/photo-1606964212858-c215029db704?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.6), calc(var(--fx-login-cycle) * -.6);
}
.fx-login-slide--8 {
    background-image: url("https://images.unsplash.com/photo-1532635042-a6f6ad4745f9?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.7), calc(var(--fx-login-cycle) * -.7);
    animation-name: fxLoginCrossfade, fxLoginKenBurnsAlt;
}
.fx-login-slide--9 {
    background-image: url("https://images.unsplash.com/photo-1695222833131-54ee679ae8e5?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.8), calc(var(--fx-login-cycle) * -.8);
}
.fx-login-slide--10 {
    background-image: url("https://images.unsplash.com/photo-1753526372250-7ae4d622bb18?auto=format&fit=crop&w=1920&q=80");
    animation-delay: calc(var(--fx-login-cycle) * -.9), calc(var(--fx-login-cycle) * -.9);
    animation-name: fxLoginCrossfade, fxLoginKenBurnsAlt;
}

/* 10 slides · slot 10% · crossfade ~1s en bordes */
@keyframes fxLoginCrossfade {
    0%   { opacity: 0; }
    1.8% { opacity: 1; }
    8.2% { opacity: 1; }
    10%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fxLoginKenBurns {
    0%   { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.16) translate3d(-2.2%, 1.4%, 0); }
}

@keyframes fxLoginKenBurnsAlt {
    0%   { transform: scale(1.08) translate3d(1.5%, -1%, 0); }
    100% { transform: scale(1.18) translate3d(-1.8%, 2%, 0); }
}

.fx-login-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(10, 21, 32, .78) 0%, rgba(18, 38, 58, .55) 42%, rgba(129, 74, 76, .42) 100%),
        linear-gradient(180deg, rgba(10, 21, 32, .35) 0%, rgba(10, 21, 32, .72) 100%);
}

.fx-login-routes {
    position: absolute;
    inset: -20%;
    opacity: .28;
    background:
        linear-gradient(105deg, transparent 48%, rgba(196, 122, 44, .55) 49.5%, transparent 51%),
        linear-gradient(125deg, transparent 42%, rgba(255, 255, 255, .18) 49%, transparent 56%),
        linear-gradient(85deg, transparent 55%, rgba(166, 107, 109, .35) 58%, transparent 62%);
    background-size: 140% 140%;
    animation: fxLoginRouteDrift 22s ease-in-out infinite alternate;
    mix-blend-mode: soft-light;
}

@keyframes fxLoginRouteDrift {
    0%   { transform: translate3d(-2%, 1%, 0) rotate(-1deg); }
    100% { transform: translate3d(3%, -2%, 0) rotate(1.5deg); }
}

.fx-login-particles {
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .55) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 78% 18%, rgba(196, 122, 44, .7) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 64% 68%, rgba(255, 255, 255, .4) 0 1.2px, transparent 2.2px),
        radial-gradient(circle at 28% 74%, rgba(166, 107, 109, .65) 0 1.4px, transparent 2.4px),
        radial-gradient(circle at 88% 52%, rgba(255, 255, 255, .35) 0 1px, transparent 2px),
        radial-gradient(circle at 46% 36%, rgba(255, 255, 255, .5) 0 1.2px, transparent 2.2px);
    animation: fxLoginParticles 18s linear infinite;
}

@keyframes fxLoginParticles {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-18px, -28px, 0); }
}

.fx-login-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 120px 40px rgba(8, 12, 18, .55);
}

/* Contenido sobre el hero */
.fx-login-frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 400px);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    width: min(1080px, 100%);
}

.fx-login-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 520px;
    animation: fxLoginBrandIn .9s cubic-bezier(.22, 1, .36, 1) both;
}

.fx-login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 88px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow:
        0 18px 40px -18px rgba(0, 0, 0, .75),
        0 2px 0 rgba(255, 255, 255, .35) inset;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
}

.fx-login-logo {
    width: 94px;
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .4));
}

.fx-login-brand-name {
    margin: 0;
    font-family: var(--fx-login-font-display);
    font-size: clamp(2.6rem, 6vw, 4.1rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, .55),
        0 2px 4px rgba(0, 0, 0, .55),
        0 10px 28px rgba(0, 0, 0, .5),
        0 0 1px rgba(0, 0, 0, .9);
}

.fx-login-tagline {
    margin: 4px 0 0;
    max-width: 28ch;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .92);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, .65),
        0 6px 18px rgba(0, 0, 0, .4);
}

.fx-login-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    animation: fxLoginPanelIn 1s cubic-bezier(.22, 1, .36, 1) .18s both;
}

.fx-login-panel {
    width: 100%;
    padding: clamp(22px, 3vw, 30px);
    color: var(--fx-login-text);
    background: var(--fx-login-panel);
    border: 1px solid var(--fx-login-panel-border);
    border-radius: 16px;
    border-left: 3px solid var(--fx-login-brand);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: 0 22px 48px -28px rgba(0, 0, 0, .65);
}

@keyframes fxLoginBrandIn {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes fxLoginPanelIn {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.fx-login-title {
    margin: 0;
    font-family: var(--fx-login-font-display);
    font-size: clamp(1.55rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--fx-login-text);
}

.fx-login-lead {
    margin: 6px 0 22px;
    color: var(--fx-login-muted);
    font-size: .92rem;
}

.fx-login-foot {
    margin-top: 28px;
    text-align: center;
    font-size: .72rem;
    color: var(--fx-login-muted);
}

.fx-form { display: flex; flex-direction: column; gap: 18px; }
.fx-field { display: flex; flex-direction: column; gap: 7px; }
.fx-field-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--fx-login-muted);
}
.fx-login .fx-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: .95rem;
    font-family: var(--fx-login-font-ui);
    color: var(--fx-login-text);
    background: #fff;
    border: 1.5px solid #d9dde5;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.fx-login .fx-input:focus {
    border-color: var(--fx-login-brand);
    box-shadow: 0 0 0 3px rgba(129, 74, 76, .16);
}
.fx-login .fx-btn-primary {
    margin-top: 8px;
    width: 100%;
    padding: 13px 16px;
    font-size: .98rem;
    font-weight: 700;
    font-family: var(--fx-login-font-ui);
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-login-brand-bright), var(--fx-login-brand));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 12px 26px -14px rgba(129, 74, 76, .9);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.fx-login .fx-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 16px 30px -14px rgba(129, 74, 76, .95);
}
.fx-login .fx-btn-primary:active { transform: translateY(0); }
.fx-login .fx-alert-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, .10);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, .25);
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .88rem;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .fx-login {
        place-items: stretch;
        align-content: center;
        padding: 28px 18px 32px;
    }

    .fx-login-frame {
        grid-template-columns: 1fr;
        gap: 22px;
        width: min(440px, 100%);
        margin-inline: auto;
    }

    .fx-login-hero {
        align-items: center;
        text-align: center;
        max-width: none;
    }

    .fx-login-tagline {
        max-width: 34ch;
    }

    .fx-login-logo-wrap {
        width: 100px;
        height: 74px;
    }

    .fx-login-logo {
        width: 80px;
    }

    .fx-login-brand-name {
        font-size: clamp(2.15rem, 9vw, 2.85rem);
    }
}

@media (max-width: 520px) {
    .fx-login {
        padding: 22px 14px 26px;
    }

    .fx-login-panel {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .fx-login-lead {
        margin-bottom: 18px;
    }

    .fx-login .fx-input {
        min-height: 48px;
        font-size: 1rem;
    }

    .fx-login .fx-btn-primary {
        min-height: 48px;
        padding: 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-login-slide,
    .fx-login-routes,
    .fx-login-particles,
    .fx-login-hero,
    .fx-login-main {
        animation: none !important;
    }

    .fx-login-slide {
        opacity: 0;
        transform: none;
    }

    .fx-login-slide--1 {
        opacity: 1;
    }
}

/* Logo */
.fx-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(17,17,17,.08);
    box-shadow: 0 8px 18px -12px rgba(17,17,17,.45);
    overflow: hidden;
}
.fx-brand-logo img {
    width: 40px;
    height: auto;
    display: block;
}
.fx-brand-logo--lg {
    width: 112px; height: 82px;
    border-radius: 14px;
    background: #fff;
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 18px 42px -26px rgba(0,0,0,.65);
}
.fx-brand-logo--lg img {
    width: 92px;
}

/* ---------- Shell ---------- */
.fx-appbar {
    border-bottom: 1px solid var(--mud-palette-divider);
    backdrop-filter: saturate(180%) blur(6px);
}
.fx-appbar--admin { border-bottom-color: rgba(129, 74, 76, .45); }
.fx-appbar--region { border-bottom-color: rgba(71, 85, 105, .45); }
.fx-appbar--corporativo { border-bottom-color: rgba(196, 122, 44, .5); }
.fx-appbar--sucursal { border-bottom-color: rgba(34, 197, 94, .45); }

.fx-drawer {
    border-right: 1px solid var(--mud-palette-divider);
}
.fx-drawer--admin { border-right: 3px solid #814a4c; }
.fx-drawer--region { border-right: 3px solid #475569; }
.fx-drawer--corporativo { border-right: 3px solid #c47a2c; }
.fx-drawer--sucursal { border-right: 3px solid #16a34a; }

.fx-perfil-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(42vw, 280px);
    margin-left: 4px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    min-height: 34px;
    line-height: 1.1;
    flex-shrink: 1;
    overflow: hidden;
}
.fx-perfil-badge-icon {
    flex-shrink: 0;
}
.fx-perfil-badge-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fx-perfil-badge-role {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}
.fx-perfil-badge-detail {
    font-size: .68rem;
    font-weight: 500;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.fx-perfil-badge--admin {
    color: #5f3537;
    background: rgba(129, 74, 76, .12);
    border-color: rgba(129, 74, 76, .28);
}
.fx-perfil-badge--region {
    color: #334155;
    background: rgba(71, 85, 105, .12);
    border-color: rgba(71, 85, 105, .28);
}
.fx-perfil-badge--corporativo {
    color: #8a5318;
    background: rgba(196, 122, 44, .14);
    border-color: rgba(196, 122, 44, .32);
}
.fx-perfil-badge--sucursal {
    color: #166534;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .28);
}
.fx-perfil-tone--admin { color: #814a4c !important; font-weight: 700; }
.fx-perfil-tone--region { color: #475569 !important; font-weight: 700; }
.fx-perfil-tone--corporativo { color: #c47a2c !important; font-weight: 700; }
.fx-perfil-tone--sucursal { color: #16a34a !important; font-weight: 700; }

.mud-theme-dark .fx-perfil-badge--admin {
    color: #e8b4b6;
    background: rgba(179, 111, 114, .22);
    border-color: rgba(179, 111, 114, .4);
}
.mud-theme-dark .fx-perfil-badge--region {
    color: #cbd5e1;
    background: rgba(148, 163, 184, .18);
    border-color: rgba(148, 163, 184, .35);
}
.mud-theme-dark .fx-perfil-badge--corporativo {
    color: #f0c48a;
    background: rgba(196, 122, 44, .22);
    border-color: rgba(196, 122, 44, .4);
}
.mud-theme-dark .fx-perfil-badge--sucursal {
    color: #86efac;
    background: rgba(34, 197, 94, .18);
    border-color: rgba(34, 197, 94, .35);
}
.mud-theme-dark .fx-user-menu-trigger {
    background: #1b1b1e;
    border-color: rgba(255, 255, 255, .12);
    color: #f7f7f8;
}
.mud-theme-dark .fx-user-menu-trigger:hover {
    background: #242428;
    border-color: rgba(179, 111, 114, .45);
}
.mud-theme-dark .fx-user-menu-name { color: #f7f7f8; }

.fx-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.fx-drawer .mud-navmenu {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.fx-drawer .mud-divider {
    flex: 0 0 auto;
}

.fx-app-version {
    margin-top: auto;
    padding: 12px 18px 16px;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    letter-spacing: 0.02em;
}

.fx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 6px;
    flex: 0 0 auto;
}
.fx-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.fx-brand-title { font-weight: 700; font-size: 1.02rem; }
.fx-brand-sub { font-size: .72rem; color: var(--mud-palette-text-secondary); }

.fx-nav { padding: 4px 8px; }
.fx-nav .mud-nav-link {
    position: relative;
    margin: 2px 0;
    border-radius: 6px;
    transition: background-color .16s ease, color .16s ease;
}
.fx-nav .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #814a4c;
    font-weight: 700;
    background: #f2dfe0;
    border: 1px solid #e6c4c6;
    box-shadow: 0 1px 2px rgba(129, 74, 76, .08);
}
.fx-nav .mud-nav-link.active:not(.mud-nav-link-disabled)::before {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: #814a4c;
    content: "";
}
.fx-nav .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon { color: #814a4c; opacity: 1; }
.fx-menu-groups .mud-expand-panel:has(.mud-nav-link.active) > .mud-expand-panel-header {
    color: #814a4c;
    font-weight: 700;
    background: #f8eeee;
    box-shadow: inset 3px 0 0 #814a4c;
}
.fx-nav-group {
    display: block;
    padding: 14px 16px 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .68rem !important;
    color: var(--mud-palette-text-secondary);
}
.fx-nav-credit {
    display: block;
    line-height: 1.35;
    color: var(--mud-palette-text-secondary);
    opacity: .85;
}

.fx-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--mud-palette-divider);
}
.fx-user-chip:hover { background: var(--mud-palette-action-default-hover); }
.fx-user-meta { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.fx-user-name { font-weight: 600; font-size: .86rem; }
.fx-user-role { font-size: .72rem; color: var(--mud-palette-text-secondary); }
.fx-user-chip-arrow { color: var(--mud-palette-text-secondary); }
@media (max-width: 600px) { .fx-user-meta { display: none; } }

.fx-main { background: var(--mud-palette-background); min-height: 100vh; }
.fx-content { padding: 24px 28px; max-width: 1400px; margin: 0 auto; }

/* ---------- Página ---------- */
.fx-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 20px;
}

.fx-page-head > div:first-child {
    flex: 1 1 220px;
    min-width: 0;
}

.fx-page-head .mud-button-root {
    flex: 0 0 auto;
}
.fx-page-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.fx-page-sub { margin: 4px 0 0; color: var(--mud-palette-text-secondary); font-size: .9rem; }

.fx-panel {
    padding: 24px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    background: var(--mud-palette-surface);
}

.fx-client-edit {
    max-width: 1180px;
    margin: 0 auto;
}

.fx-client-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.fx-client-kicker {
    color: var(--mud-palette-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fx-client-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.fx-client-edit .fx-panel {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.fx-client-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mud-palette-divider);
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, var(--mud-palette-surface));
}

.fx-client-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    color: #fff;
    background: var(--mud-palette-primary);
    font-size: .95rem;
    font-weight: 800;
}

.fx-client-summary-name {
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.fx-client-tabs {
    padding: 0 18px 16px;
}

.fx-form-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.fx-form-section-last {
    border-bottom: 0;
    padding-bottom: 10px;
}

.fx-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.fx-ruc-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fx-ruc-input {
    flex: 1 1 auto;
}

.fx-ruc-button {
    height: 40px;
    margin-top: 4px;
    white-space: nowrap;
}

.fx-toggle-box {
    min-height: 58px;
    padding: 8px 12px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 10px;
    background: var(--mud-palette-background);
}

.fx-commercial-grid {
    align-items: stretch;
}

.fx-directions-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 12px;
}

.fx-required-note {
    display: block;
    padding: 0 18px 16px;
}

@media (max-width: 720px) {
    .fx-client-hero,
    .fx-client-summary,
    .fx-directions-head {
        align-items: stretch;
        flex-direction: column;
    }

    .fx-client-actions {
        justify-content: flex-start;
    }

    .fx-ruc-row {
        flex-direction: column;
    }

    .fx-ruc-button {
        width: 100%;
        margin-top: 0;
    }
}

.fx-page-date { color: var(--mud-palette-text-secondary); font-size: .85rem; white-space: nowrap; }

.fx-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.fx-toolbar-search { flex: 1 1 320px; min-width: 220px; }
.fx-toolbar-date { flex: 0 0 170px; min-width: 150px; }
.fx-toolbar-caja .fx-toolbar-search { flex: 1 1 280px; }
@media (max-width: 720px) {
    .fx-toolbar-search,
    .fx-toolbar-date { flex: 1 1 100%; }
}

.fx-table .mud-table-toolbar { display: none; }
.fx-table .mud-table-container { overflow-x: auto; }
.fx-table .mud-table-root,
.fx-table table {
    width: 100%;
    min-width: 0;
}
.fx-table .mud-table-head .mud-table-cell,
.fx-table thead th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mud-palette-divider);
}
.fx-table .mud-table-cell,
.fx-table td {
    vertical-align: top;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 12px 14px;
}
.fx-table-nopager .mud-table-pagination {
    display: none;
}

/* Recepción / inventario bodega */
.fx-section-head-text {
    min-width: 0;
    flex: 1 1 auto;
}

.fx-label-wrap {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.25;
}

/* Modo tabla (pantalla ancha): no aplastar sílabas; si no cabe, scroll — no break-all */
.fx-recepcion-table .mud-table-root {
    width: 100%;
}

.fx-recepcion-inventario .mud-table-root {
    min-width: 1080px;
}

.fx-recepcion-table .mud-table-cell,
.fx-recepcion-table .mud-table-head .mud-table-cell {
    vertical-align: top;
    word-break: normal;
    overflow-wrap: normal;
}

.fx-recepcion-table .fx-recepcion-nowrap {
    white-space: nowrap;
}

.fx-recepcion-table .fx-wrap-chip,
.fx-recepcion-table .mud-chip.fx-wrap-chip {
    height: auto;
    min-height: 22px;
    max-width: 14rem;
    white-space: normal;
    line-height: 1.25;
    padding-top: 4px;
    padding-bottom: 4px;
}

.fx-recepcion-table .fx-wrap-chip .mud-chip-content {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: left;
}

.fx-recepcion-table .fx-wrap-action {
    height: auto;
    min-height: 28px;
    max-width: 12rem;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    padding-top: 4px;
    padding-bottom: 4px;
    overflow-wrap: break-word;
    word-break: normal;
}

/*
 * Modo tarjeta MudBlazor: la clase mud-*-table está SIEMPRE en el DOM;
 * el apilado real solo aplica dentro del @media de Mud. Nuestros estilos
 * de tarjeta deben respetar el mismo corte (Lg = 1920px).
 */
@media (max-width: 1920px) {
    .fx-recepcion-table.mud-lg-table .mud-table-container,
    .fx-recepcion-table.mud-xl-table .mud-table-container,
    .fx-recepcion-table.mud-md-table .mud-table-container,
    .fx-recepcion-table.mud-sm-table .mud-table-container,
    .fx-recepcion-table.mud-xs-table .mud-table-container {
        overflow-x: hidden;
    }

    .fx-recepcion-inventario.mud-lg-table .mud-table-root,
    .fx-recepcion-inventario.mud-xl-table .mud-table-root,
    .fx-recepcion-inventario.mud-md-table .mud-table-root {
        min-width: 0;
    }

    .fx-recepcion-table.mud-lg-table .mud-table-row,
    .fx-recepcion-table.mud-xl-table .mud-table-row,
    .fx-recepcion-table.mud-md-table .mud-table-row,
    .fx-recepcion-table.mud-sm-table .mud-table-row,
    .fx-recepcion-table.mud-xs-table .mud-table-row {
        margin-bottom: 10px;
        border: 1px solid #e4e8ee;
        border-radius: 10px;
        background: #fff;
        overflow: hidden;
    }

    .fx-recepcion-table.mud-lg-table .mud-table-cell,
    .fx-recepcion-table.mud-xl-table .mud-table-cell,
    .fx-recepcion-table.mud-md-table .mud-table-cell,
    .fx-recepcion-table.mud-sm-table .mud-table-cell,
    .fx-recepcion-table.mud-xs-table .mud-table-cell {
        align-items: flex-start;
        gap: 12px;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        min-width: 0;
    }

    .fx-recepcion-table.mud-lg-table .fx-recepcion-nowrap,
    .fx-recepcion-table.mud-xl-table .fx-recepcion-nowrap,
    .fx-recepcion-table.mud-md-table .fx-recepcion-nowrap {
        white-space: nowrap;
    }

    .fx-recepcion-table.mud-lg-table .fx-recepcion-guia-cell,
    .fx-recepcion-table.mud-xl-table .fx-recepcion-guia-cell,
    .fx-recepcion-table.mud-md-table .fx-recepcion-guia-cell {
        background: #f8fafc;
        font-size: 1.02rem;
        border-bottom: 1px solid #eef2f6 !important;
    }

    .fx-recepcion-table.mud-lg-table .fx-wrap-chip,
    .fx-recepcion-table.mud-xl-table .fx-wrap-chip,
    .fx-recepcion-table.mud-md-table .fx-wrap-chip,
    .fx-recepcion-table.mud-sm-table .fx-wrap-chip,
    .fx-recepcion-table.mud-xs-table .fx-wrap-chip,
    .fx-recepcion-table.mud-lg-table .fx-wrap-action,
    .fx-recepcion-table.mud-xl-table .fx-wrap-action,
    .fx-recepcion-table.mud-md-table .fx-wrap-action,
    .fx-recepcion-table.mud-sm-table .fx-wrap-action,
    .fx-recepcion-table.mud-xs-table .fx-wrap-action {
        max-width: 100%;
    }

    .fx-recepcion-table.mud-lg-table .fx-wrap-action .mud-button-label,
    .fx-recepcion-table.mud-xl-table .fx-wrap-action .mud-button-label,
    .fx-recepcion-table.mud-md-table .fx-wrap-action .mud-button-label {
        white-space: normal;
        text-align: left;
        overflow-wrap: break-word;
        word-break: normal;
    }
}

.fx-empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

.fx-route-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.fx-route-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto auto;
    align-items: start;
    gap: 12px;
}

.fx-route-filter-arrow {
    color: var(--mud-palette-text-secondary);
    margin-top: 12px;
}

.fx-native-select {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fx-native-select span {
    color: var(--mud-palette-text-secondary);
    font-size: .78rem;
    font-weight: 600;
}

.fx-native-select select {
    width: 100%;
    min-height: 40px;
    padding: 0 38px 0 12px;
    color: var(--mud-palette-text-primary);
    font: inherit;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 4px;
    outline: none;
}

.fx-native-select select:focus {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

.fx-native-select select:disabled {
    color: var(--mud-palette-text-disabled);
    background: var(--mud-palette-action-disabled-background);
}

.fx-route-card {
    padding: 18px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    background: var(--mud-palette-surface);
}

.fx-route-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.fx-route-path {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.fx-route-point {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fx-route-point .mud-typography {
    overflow-wrap: anywhere;
}

.fx-route-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--mud-palette-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
    flex: 0 0 auto;
}

.fx-route-dot-end {
    background: var(--mud-palette-success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-success) 16%, transparent);
}

.fx-route-arrow {
    color: var(--mud-palette-text-secondary);
    flex: 0 0 auto;
}

.fx-route-meta,
.fx-route-config-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fx-route-configs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.fx-route-config {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 10px;
    overflow: hidden;
    background: var(--mud-palette-background);
}

.fx-route-config-head {
    padding: 10px 12px;
    border-bottom: 1px solid var(--mud-palette-divider);
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, var(--mud-palette-surface));
}

.fx-route-steps .mud-table-container {
    max-height: 420px;
    overflow: auto;
}

.fx-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-surface));
}

.fx-group-state-list {
    display: grid;
    gap: 14px;
}

.fx-group-state-card {
    padding: 0;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    overflow: hidden;
}

.fx-group-state-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mud-palette-divider);
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-surface));
}

.fx-group-state-table {
    display: grid;
}

.fx-group-state-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.fx-group-state-row:last-child {
    border-bottom: 0;
}

.fx-group-empty {
    padding: 16px;
    color: var(--mud-palette-text-secondary);
    font-size: .9rem;
}

.fx-user-groups {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.fx-user-section {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 10px;
    overflow: hidden;
    background: var(--mud-palette-surface);
}

.fx-user-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--mud-palette-divider);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
}

.fx-user-group-title {
    margin: 0;
    color: var(--mud-palette-primary);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.fx-user-classify-select {
    min-width: 180px;
    max-width: 220px;
}

.fx-user-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px 2px;
    margin-top: 4px;
    border-bottom: 1px dashed color-mix(in srgb, var(--mud-palette-primary) 18%, var(--mud-palette-divider));
}

.fx-user-subhead:first-child {
    margin-top: 0;
}

.fx-user-group-kicker {
    color: #ff4081;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.fx-user-lines {
    display: grid;
    padding: 12px 14px 14px;
    gap: 8px;
}

.fx-user-line {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(120px, .6fr) minmax(200px, 1fr) 110px 40px;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    background: var(--mud-palette-surface);
}

.fx-user-line-corp {
    /* identity | sucursal | empresa | precio | crédito | status | edit */
    grid-template-columns: minmax(180px, 1.2fr) minmax(90px, .5fr) minmax(120px, .75fr) minmax(90px, .45fr) minmax(100px, .5fr) 100px 40px;
}

.fx-user-identity {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.fx-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    color: #fff;
    background: var(--mud-palette-primary);
    font-weight: 800;
    flex: 0 0 auto;
}

.fx-user-line-name,
.fx-user-line-cell {
    color: var(--mud-palette-text-primary);
    font-size: .9rem;
}

.fx-user-line-name {
    overflow-wrap: anywhere;
}

.fx-user-line-mail {
    color: #ff4081;
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.fx-user-line-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.fx-user-line-cell > span:not(.fx-user-line-label) {
    overflow-wrap: anywhere;
}

.fx-user-credit-cell {
    min-width: 0;
}

.fx-user-line-label {
    color: var(--mud-palette-text-secondary);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fx-credit-ok {
    color: var(--mud-palette-success);
    font-weight: 800;
}

.fx-credit-missing {
    color: var(--mud-palette-error);
    font-weight: 800;
}

.fx-corporate-credit-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 10px;
}

.fx-corporate-credit-ok {
    background: color-mix(in srgb, var(--mud-palette-success) 8%, var(--mud-palette-surface));
    border-color: color-mix(in srgb, var(--mud-palette-success) 32%, var(--mud-palette-divider));
}

.fx-corporate-credit-warning {
    background: color-mix(in srgb, var(--mud-palette-warning) 10%, var(--mud-palette-surface));
    border-color: color-mix(in srgb, var(--mud-palette-warning) 36%, var(--mud-palette-divider));
}

.fx-user-status {
    align-self: center;
    justify-content: center;
    min-width: 92px;
}

.fx-perm-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.fx-perm-group-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.fx-perm-group-card:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 40%, var(--mud-palette-divider));
}

.fx-perm-group-card.is-active {
    border-color: var(--mud-palette-primary);
    box-shadow: inset 0 0 0 1px var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
}

.fx-perm-group-card.is-dirty {
    border-color: var(--mud-palette-warning);
    box-shadow: inset 0 0 0 1px var(--mud-palette-warning);
}

.fx-perm-group-name {
    font-weight: 600;
    font-size: .95rem;
}

.fx-perm-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .78rem;
    color: var(--mud-palette-text-secondary);
}

.fx-perm-group-dirty {
    font-size: .72rem;
    font-weight: 600;
    color: var(--mud-palette-warning);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fx-perm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.fx-perm-search {
    flex: 1 1 240px;
    max-width: 360px;
}

.fx-perm-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.fx-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.fx-permission-card {
    padding: 16px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
}

.fx-permission-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.fx-permission-card-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.fx-permission-list {
    display: grid;
    gap: 0;
    margin-top: 8px;
}

.fx-permission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--mud-palette-divider);
    cursor: pointer;
}

.fx-permission-row:last-child {
    border-bottom: 0;
}

.fx-permission-row.is-off {
    opacity: .62;
}

.fx-corp-addresses .fx-panel {
    border: 1px solid rgba(15, 23, 42, .08);
}

.fx-corp-form {
    position: static;
}

.fx-corp-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.fx-ai-suggestion {
    border-radius: 8px;
}

.fx-address-ai-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.fx-ai-suggestion-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.fx-ai-suggestion-content strong,
.fx-ai-suggestion-content span,
.fx-ai-suggestion-content small {
    display: block;
}

.fx-ai-suggestion-content span {
    margin-top: 3px;
    color: #1f2937;
}

.fx-ai-suggestion-content small {
    margin-top: 3px;
    color: #64748b;
}

.fx-corp-similar-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.fx-corp-similar {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, .35);
    background: rgba(245, 158, 11, .08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: #334155;
    cursor: pointer;
}

.fx-corp-similar strong,
.fx-corp-similar small {
    display: block;
}

.fx-corp-similar small {
    margin-top: 2px;
    color: #64748b;
}

.fx-corp-address-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.fx-corp-address-head .mud-input-control {
    max-width: 280px;
}

.fx-corp-filterbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(160px, .7fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.fx-province-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fx-province-chip {
    border: 1px solid rgba(129, 74, 76, .24);
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.fx-province-chip strong {
    font-size: .78rem;
}

.fx-province-chip span {
    color: #64748b;
    font-size: .76rem;
}

.fx-province-chip.active {
    background: rgba(129, 74, 76, .10);
    border-color: #814a4c;
    color: #814a4c;
}

.fx-guide-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fx-guide-origin {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.fx-guide-origin-hidden {
    display: none;
}

.fx-guide-item {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.fx-guide-item + .fx-guide-item {
    margin-top: 14px;
}

.fx-guide-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fx-guide-fragil {
    min-height: 40px;
    align-items: center;
}

.fx-guide-summary {
    position: sticky;
    top: 88px;
}

.fx-guide-progress-cell {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.fx-guide-progress-cell span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    text-align: right;
}

.fx-guides-table .mud-table-container {
    overflow-x: auto;
}

.fx-guides-table .mud-table-cell {
    white-space: normal;
    overflow-wrap: break-word;
}

.fx-guides-table .mud-table-root {
    width: 100%;
    min-width: 0;
}

.fx-guide-main-cell {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    min-width: 0;
}

.fx-guide-destinatario {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1f2937;
}

.fx-guide-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .45rem;
    font-size: .78rem;
    color: #667085;
    line-height: 1.3;
}

.fx-guide-meta-secondary {
    margin-top: .1rem;
}

.fx-guide-meta-ok {
    color: #15803d;
    font-weight: 600;
}

.fx-guide-meta-warn {
    color: #b45309;
    font-weight: 600;
}

.fx-guide-pack {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    white-space: nowrap;
}

.fx-guide-progress-inline {
    font-weight: 600;
    color: #475467;
    white-space: nowrap;
}

/* Modo tarjeta nativo de MudBlazor (Breakpoint.Md): limpio como el resto del sistema */
.fx-guides-table.mud-xs-table .mud-table-row:not(.fx-guide-child-row),
.fx-guides-table.mud-sm-table .mud-table-row:not(.fx-guide-child-row),
.fx-guides-table.mud-md-table .mud-table-row:not(.fx-guide-child-row),
.fx-guides-table.mud-lg-table .mud-table-row:not(.fx-guide-child-row) {
    margin-bottom: 10px;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.fx-guides-table.mud-xs-table .mud-table-cell,
.fx-guides-table.mud-sm-table .mud-table-cell,
.fx-guides-table.mud-md-table .mud-table-cell,
.fx-guides-table.mud-lg-table .mud-table-cell {
    align-items: flex-start;
    gap: 12px;
}

.fx-guides-table.mud-xs-table .mud-table-cell[data-label=""],
.fx-guides-table.mud-sm-table .mud-table-cell[data-label=""],
.fx-guides-table.mud-md-table .mud-table-cell[data-label=""],
.fx-guides-table.mud-lg-table .mud-table-cell[data-label=""] {
    justify-content: flex-start;
}

.fx-guides-table.mud-xs-table .mud-table-cell[data-label=""]::before,
.fx-guides-table.mud-sm-table .mud-table-cell[data-label=""]::before,
.fx-guides-table.mud-md-table .mud-table-cell[data-label=""]::before,
.fx-guides-table.mud-lg-table .mud-table-cell[data-label=""]::before {
    display: none;
    content: none;
}

.fx-guides-table.mud-xs-table .fx-guide-main-cell,
.fx-guides-table.mud-sm-table .fx-guide-main-cell,
.fx-guides-table.mud-md-table .fx-guide-main-cell,
.fx-guides-table.mud-lg-table .fx-guide-main-cell {
    width: 100%;
    text-align: left;
}

.fx-guides-table.mud-xs-table .mud-chip,
.fx-guides-table.mud-sm-table .mud-chip,
.fx-guides-table.mud-md-table .mud-chip,
.fx-guides-table.mud-lg-table .mud-chip {
    height: auto;
    min-height: 22px;
    white-space: normal;
}

.fx-guides-table.mud-xs-table .fx-guide-child-row > td,
.fx-guides-table.mud-sm-table .fx-guide-child-row > td,
.fx-guides-table.mud-md-table .fx-guide-child-row > td,
.fx-guides-table.mud-lg-table .fx-guide-child-row > td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
}

.fx-guides-table.mud-xs-table .fx-guide-child-row > td::before,
.fx-guides-table.mud-sm-table .fx-guide-child-row > td::before,
.fx-guides-table.mud-md-table .fx-guide-child-row > td::before,
.fx-guides-table.mud-lg-table .fx-guide-child-row > td::before {
    display: none;
    content: none;
}

.fx-tracking-panel {
    margin-top: 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.fx-tracking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #fbf9f9;
}

.fx-tracking-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0;
    padding: 14px;
}

.fx-tracking-step {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
}

.fx-tracking-step::before {
    content: "";
    position: absolute;
    left: 26px;
    right: -8px;
    top: 24px;
    height: 2px;
    background: #dbe2ef;
}

.fx-tracking-step.done::before {
    background: #22c55e;
}

.fx-tracking-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    color: #64748b;
    background: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.fx-tracking-step.done .fx-tracking-marker {
    color: #fff;
    border-color: #22c55e;
    background: #22c55e;
}

.fx-tracking-step.current .fx-tracking-marker {
    box-shadow: 0 0 0 4px rgba(129, 74, 76, .14);
    border-color: #814a4c;
}

.fx-tracking-step.current:not(.done) .fx-tracking-marker {
    color: #fff;
    background: #814a4c;
}

.fx-tracking-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.fx-tracking-copy strong {
    color: #111827;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.fx-tracking-copy span {
    color: #64748b;
    font-size: .76rem;
}

/* Variante inline del tracking (dentro de la fila expandida) */
.fx-tracking-inline {
    margin: 6px 8px 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    background: #fbf9f9;
    overflow: hidden;
}
.fx-tracking-inline .fx-tracking-head {
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
}

/* Detalle expandido de Mis guías: ancho completo de la tabla, dos secciones apiladas */
.fx-guides-table .fx-guide-child-row > td.fx-guide-expand-cell,
.fx-guides-table .fx-guide-child-row > td {
    padding: 0 !important;
    border-top: 0 !important;
    vertical-align: top;
    width: 100%;
}

.fx-guide-expand {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #f1f5f9;
    overflow: hidden;
}

.fx-guide-section {
    width: 100%;
    background: #fff;
    border-top: 1px solid #dbe3ee;
}

.fx-guide-section-packages { background: #fffaf8; }
.fx-guide-section-progress { background: #f8fafc; }

.fx-guide-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 20px 12px;
    box-sizing: border-box;
}

.fx-guide-section-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #12213a;
}

.fx-guide-section-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: .84rem;
}

.fx-guide-section-head-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.fx-guide-section-head-side strong {
    font-size: 1.05rem;
    color: #814a4c;
}

.fx-guide-section-empty {
    margin: 0;
    padding: 8px 20px 18px;
    color: #64748b;
    font-size: .86rem;
}

.fx-guide-section-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 0 12px 16px;
    box-sizing: border-box;
}

.fx-guide-section-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
}

.fx-guide-section-table th,
.fx-guide-section-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e8edf4;
    font-size: .86rem;
    vertical-align: middle;
}

.fx-guide-section-table th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    background: #fff;
}

.fx-guide-section-table tbody tr:last-child td { border-bottom: 0; }

.fx-guide-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff1e8;
    color: #9a3412;
    font-size: .72rem;
    font-weight: 700;
}

.fx-guide-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    padding: 0 20px 16px;
    box-sizing: border-box;
}

.fx-guide-facts > div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.fx-guide-facts span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fx-guide-facts strong {
    display: block;
    color: #12213a;
    font-size: .9rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.fx-guide-progress-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
    padding: 0 20px 20px;
    box-sizing: border-box;
}

.fx-guide-progress-step {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.fx-guide-progress-step.is-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.fx-guide-progress-step.is-current {
    border-color: #d6a5a7;
    background: #faf5f5;
    box-shadow: inset 0 0 0 1px rgba(129, 74, 76, .18);
}

.fx-guide-progress-step.is-pending { opacity: .78; }

.fx-guide-progress-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
}

.fx-guide-progress-step.is-done .fx-guide-progress-marker {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}

.fx-guide-progress-step.is-current .fx-guide-progress-marker {
    border-color: #814a4c;
    background: #814a4c;
    color: #fff;
}

.fx-guide-progress-step strong {
    color: #12213a;
    font-size: .82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.fx-guide-progress-step span {
    color: #64748b;
    font-size: .74rem;
    line-height: 1.3;
}

@media (max-width: 1100px) {
    .fx-guide-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .fx-guide-section-head,
    .fx-guide-section-head-side {
        flex-direction: column;
        align-items: stretch;
    }
    .fx-guide-section-head-side { justify-content: flex-start; }
    .fx-guide-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 12px;
        padding-right: 12px;
    }
    .fx-guide-progress-full {
        grid-template-columns: 1fr 1fr;
        padding-left: 12px;
        padding-right: 12px;
    }
    .fx-guide-section-table { min-width: 0; }
    .fx-guide-section-table thead { display: none; }
    .fx-guide-section-table,
    .fx-guide-section-table tbody,
    .fx-guide-section-table tr,
    .fx-guide-section-table td {
        display: block;
        width: 100%;
    }
    .fx-guide-section-table tr {
        padding: 10px 0;
        border-bottom: 1px solid #e8edf4;
    }
    .fx-guide-section-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 4px;
        border: 0;
    }
    .fx-guide-section-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
    }
}

/* MudTable envuelve ChildRowContent en su propio <tr>. Como necesitamos
   ocultar visualmente los hijos no expandidos, anulamos su tamaño. */
.fx-table tr.fx-row-collapsed > td {
    padding: 0 !important;
    border: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    height: 0 !important;
}
.fx-table tr.fx-row-collapsed > td > .fx-tracking-inline,
.fx-table tr.fx-row-collapsed > td > .fx-guide-expand {
    display: none;
}

.fx-guide-detail-section {
    margin: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    overflow: hidden;
}

.fx-guide-items-section {
    background: rgba(129, 74, 76, .045);
}

.fx-guide-progress-section {
    background: rgba(37, 99, 235, .045);
}

.fx-guide-detail-section + .fx-guide-detail-section {
    margin-top: 0;
}

.fx-guide-detail-section .fx-tracking-head {
    background: rgba(255, 255, 255, .82);
}

.fx-guide-detail-section .fx-package-table {
    margin: 10px 14px 14px;
    width: calc(100% - 28px);
    background: #fff;
    border-radius: 8px;
}

.fx-query-tabs {
    margin-top: 14px;
}

.fx-consulta-global-table .fx-query-subrow > td {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: rgba(248, 250, 252, .85);
}

.fx-query-subrow-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 20px;
    padding: 4px 8px 2px;
}

.fx-query-subrow-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.fx-query-subrow-block.fx-query-subrow-detalle {
    flex: 1 1 220px;
}

.fx-query-subrow-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.fx-main-full {
    margin-left: 0 !important;
    width: 100%;
}

.fx-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.fx-section-title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--fx-ink);
}

.fx-section-title p {
    margin: 4px 0 0;
    color: var(--fx-muted);
    font-size: .9rem;
}

.fx-row-fragil td {
    background: rgba(220, 38, 38, .06);
}

.fx-cell-muted {
  display: inline-block;
  max-width: 360px;
  color: var(--fx-muted);
  font-size: .82rem;
  line-height: 1.35;
}

.fx-pickup-alert {
  border-left: 6px solid #7f1d1d;
  box-shadow: 0 8px 24px rgba(127, 29, 29, .18);
}

.fx-corte-alert .fx-corte-alert-cta {
  background: #fff !important;
  color: #7f1d1d !important;
  font-weight: 700;
  white-space: nowrap;
}

.fx-cierre-checklist {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.fx-cierre-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e8ef;
  background: #fff;
}

.fx-cierre-item.is-pending {
  border-color: rgba(185, 28, 28, .35);
  background: #fef2f2;
}

.fx-cierre-item.is-ok {
  border-color: rgba(22, 101, 52, .25);
  background: #f0fdf4;
}

.fx-cierre-item.is-info {
  background: #fafbfc;
}

.fx-cierre-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.fx-cierre-copy strong {
  color: #1f2330;
}

.fx-cierre-copy span {
  color: #697186;
  font-size: .86rem;
}

.fx-pickup-alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fx-suc-cola-urgente {
  border: 1px solid rgba(220, 38, 38, .35);
  box-shadow: 0 4px 14px rgba(220, 38, 38, .08);
}

.fx-pickup-client-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.45;
}

.fx-pickup-client-list li + li {
  margin-top: 0.25rem;
}

/* Avisos internos para la operación de sucursales */
.fx-branch-notice-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.fx-branch-notice { margin: 0; border-left: 6px solid currentColor; box-shadow: 0 5px 16px rgba(15, 23, 42, .12); }
.fx-branch-notice-content { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.fx-branch-notice-content .mud-typography-subtitle2 { margin-bottom: 3px; font-weight: 800; }
.fx-branch-notice-content .mud-chip { flex: 0 0 auto; }
.fx-branch-notice-compose { padding: 16px; }
.fx-login-public-notices {
    display: grid;
    width: 100%;
    gap: 8px;
    margin: 0;
}
.fx-login-public-notices-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.fx-login-public-notices .mud-alert {
    margin: 0;
    font-size: .82rem;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
}

.fx-tv-monitor {
  min-height: 100vh;
  padding: 28px 34px;
  background: #111827;
  color: #f9fafb;
}

.fx-tv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
  padding-bottom: 20px;
}

.fx-tv-kicker {
  color: #fca5a5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.fx-tv-head h1 {
  margin: 5px 0 4px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.fx-tv-head p { margin: 0; color: #cbd5e1; font-size: 1rem; }
.fx-tv-clock { text-align: right; color: #cbd5e1; }
.fx-tv-clock strong { display: block; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.fx-tv-clock span { font-size: 1rem; }

.fx-tv-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.fx-tv-kpi {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: #1f2937;
}

.fx-tv-kpi span { display: block; color: #cbd5e1; font-size: 1rem; }
.fx-tv-kpi strong { display: block; margin-top: 4px; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.fx-tv-kpi .is-warning, .fx-tv-guide .is-warning { color: #fbbf24; }
.fx-tv-kpi .is-success, .fx-tv-guide .is-success { color: #4ade80; }

.fx-tv-progress-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.fx-tv-progress-summary > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; border: 1px solid #374151; border-radius: 8px; background: #17202e; }
.fx-tv-progress-summary span { color: #cbd5e1; font-size: .95rem; }
.fx-tv-progress-summary strong { color: #fff; font-size: 1.65rem; }
.fx-tv-list-wrap { overflow: hidden; border: 1px solid #374151; border-radius: 10px; background: #1f2937; }
.fx-tv-list { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fx-tv-list th { padding: 10px 8px; background: #374151; color: #e5e7eb; font-size: .78rem; text-align: left; text-transform: uppercase; }
.fx-tv-list td { padding: 9px 8px; border-top: 1px solid #374151; color: #f9fafb; font-size: .92rem; vertical-align: middle; }
.fx-tv-list tbody tr.is-red { border-left: 5px solid #ef4444; }
.fx-tv-list tbody tr.is-yellow { border-left: 5px solid #fbbf24; }
.fx-tv-list tbody tr.is-green { border-left: 5px solid #22c55e; opacity: .8; }
.fx-tv-list th:nth-child(1) { width: 12%; }
.fx-tv-list th:nth-child(2) { width: 12%; }
.fx-tv-list th:nth-child(3) { width: 14%; }
.fx-tv-list th:nth-child(4) { width: 19%; }
.fx-tv-list th:nth-child(5), .fx-tv-list th:nth-child(6), .fx-tv-list th:nth-child(7) { width: 6%; }
.fx-tv-list th:nth-child(8) { width: 13%; }
.fx-tv-list th:nth-child(9) { width: 12%; }
.fx-tv-light { display: inline-block; width: 15px; height: 15px; margin-right: 6px; border-radius: 50%; vertical-align: -2px; box-shadow: 0 0 8px currentColor; }
.fx-tv-light.is-red { color: #ef4444; background: #ef4444; }
.fx-tv-light.is-yellow { color: #fbbf24; background: #fbbf24; }
.fx-tv-light.is-green { color: #22c55e; background: #22c55e; }
.fx-tv-list td.is-success, .fx-tv-kpi .is-success, .fx-tv-progress-summary .is-success { color: #4ade80; }
.fx-tv-list td.is-warning, .fx-tv-kpi .is-warning, .fx-tv-progress-summary .is-warning { color: #fbbf24; }
.fx-tv-guide-number { display: block; font-size: 1.1rem; }
.fx-tv-subline { display: block; overflow: hidden; color: #9ca3af; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.fx-tv-number { font-size: 1.3rem !important; font-weight: 800; text-align: center; }
.fx-tv-progress-cell strong { display: block; margin-bottom: 4px; font-size: 1.15rem; }
.fx-tv-guide-foot { display: flex; justify-content: space-between; margin-top: 7px; color: #cbd5e1; font-size: .85rem; }
.fx-tv-footer { display: flex; justify-content: space-between; margin-top: 16px; color: #cbd5e1; font-size: .9rem; }
.fx-tv-empty { display: flex; min-height: 48vh; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #d1d5db; }
.fx-tv-empty .mud-icon-root { color: #4ade80; font-size: 5rem; }
.fx-tv-empty strong { color: #fff; font-size: 2.2rem; }
.fx-tv-empty span { font-size: 1.1rem; }

@media (max-width: 1100px) {
  .fx-tv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .fx-tv-monitor { padding: 18px; }
  .fx-tv-head { align-items: flex-start; flex-direction: column; }
  .fx-tv-clock { text-align: left; }
  .fx-tv-list-wrap { overflow-x: auto; }
  .fx-tv-list { min-width: 1050px; }
  .fx-tv-footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 680px) {
  .fx-pickup-alert-content {
    align-items: stretch;
    flex-direction: column;
  }
  .fx-cierre-item {
    align-items: stretch;
    flex-direction: column;
  }
  .fx-cierre-item .mud-button-root {
    width: 100%;
  }
  .fx-branch-notice-content { align-items: stretch; flex-direction: column; }
  .fx-branch-notice-content .mud-chip { align-self: flex-start; }
}

/* Resumen / desglose por provincia */
.fx-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 14px 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.fx-stat-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    color: #1f2937;
    font-size: .82rem;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease;
}
.fx-stat-pill strong {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}
.fx-stat-total {
    background: rgba(129, 74, 76, .08);
    border-color: rgba(129, 74, 76, .25);
    color: #814a4c;
}
.fx-stat-total strong {
    color: #814a4c;
}
.fx-stat-prov {
    cursor: pointer;
    user-select: none;
}
.fx-stat-prov:hover {
    background: #fbf9f9;
    border-color: rgba(129, 74, 76, .35);
}
.fx-stat-prov.active {
    background: rgba(129, 74, 76, .12);
    border-color: rgba(129, 74, 76, .55);
    color: #814a4c;
}
.fx-stat-prov.active strong {
    color: #814a4c;
}
.fx-stats-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: rgba(15, 23, 42, .12);
    margin: 0 4px;
}
.fx-stats-empty {
    color: #94a3b8;
    font-size: .82rem;
    font-style: italic;
}

/* Fila resaltada por deep-link o filtro de provincia */
.fx-table .mud-table-row.fx-row-selected td {
    background: rgba(129, 74, 76, .07);
}
.fx-table .mud-table-row.fx-row-prov-highlight td {
    background: rgba(129, 74, 76, .035);
}

.fx-billing-stat {
    display: grid;
    gap: 6px;
    min-height: 88px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    background: #fff;
}

.fx-billing-stat span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fx-billing-stat strong {
    color: #111827;
    font-size: 1.35rem;
}

.fx-billing-stat.due {
    background: rgba(129, 74, 76, .07);
    border-color: rgba(129, 74, 76, .24);
}

.fx-billing-stat.due strong {
    color: #814a4c;
}

.fx-amazon-track {
    display: grid;
    gap: 16px;
}

.fx-corp-guia-simple {
    display: grid;
    gap: 0;
    max-width: 880px;
}

.fx-amazon-track-hero {
    padding: 4px 2px 8px;
}

.fx-amazon-track-hero p {
    margin: 4px 0 0;
    color: var(--mud-palette-text-secondary);
    font-size: .95rem;
}

.fx-amazon-eta {
    margin: 8px 0 0 !important;
    color: var(--mud-palette-primary) !important;
    font-weight: 800;
    font-size: 1.05rem !important;
}

.fx-amazon-eta small {
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.fx-amazon-list {
    display: grid;
    gap: 12px;
    padding: 4px 0 8px;
}

.fx-amazon-card {
    display: grid;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.fx-amazon-card:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 35%, var(--mud-palette-divider));
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-surface));
}

.fx-amazon-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    flex-wrap: wrap;
}

.fx-amazon-card-top strong {
    font-size: 1.05rem;
}

.fx-amazon-card-top span {
    color: var(--mud-palette-primary);
    font-weight: 800;
}

.fx-amazon-card-sub {
    margin: 0;
    color: var(--mud-palette-text-secondary);
    font-size: .88rem;
}

.fx-amazon-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 6px;
}

.fx-amazon-mini-step {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.fx-amazon-mini-step span {
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
}

.fx-amazon-mini-step.is-done span { background: #22c55e; }
.fx-amazon-mini-step.is-now span { background: var(--mud-palette-primary); }
.fx-amazon-mini-step.is-pending span { background: #e2e8f0; }

.fx-amazon-mini-step small {
    color: #64748b;
    font-size: .68rem;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-amazon-mini-step.is-now small {
    color: var(--mud-palette-primary);
    font-weight: 700;
}

.fx-amazon-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: .86rem;
}

.fx-amazon-card-foot em {
    font-style: normal;
    font-weight: 800;
    color: #c2410c;
}

.fx-amazon-card-foot span {
    color: var(--mud-palette-primary);
    font-weight: 700;
}

/* === Dashboard corporativo === */
.fx-dash-alert {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fb923c;
    border-left: 6px solid #ea580c;
    border-radius: 10px;
    padding: 16px 20px;
}
.fx-dash-alert-body {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.fx-dash-alert-text { flex: 1 1 280px; display: grid; gap: 2px; }
.fx-dash-alert-text strong { color: #9a3412; font-size: 1rem; }
.fx-dash-alert-text span { color: #c2410c; font-size: .86rem; }
.fx-dash-alert-amount { color: #9a3412; font-size: 2rem; font-weight: 800; line-height: 1; white-space: nowrap; }

.fx-dash-notice {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-left: 6px solid #2563eb;
    border-radius: 10px;
    padding: 16px 20px;
}
.fx-dash-notice .fx-dash-alert-text strong { color: #1e3a8a; }
.fx-dash-notice .fx-dash-alert-text span { color: #1d4ed8; }

.fx-dash-kpi {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-left-width: 4px;
    border-radius: 10px;
    padding: 14px 16px 12px;
    display: grid;
    gap: 4px;
    min-height: 96px;
}
.fx-dash-kpi-blue   { border-left-color: #38bdf8; }
.fx-dash-kpi-green  { border-left-color: #22c55e; }
.fx-dash-kpi-amber  { border-left-color: #f59e0b; }
.fx-dash-kpi-purple { border-left-color: #814a4c; }
.fx-dash-kpi-red    { border-left-color: #ef4444; }
.fx-dash-kpi-label { color: var(--mud-palette-text-secondary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fx-dash-kpi-value { font-size: 1.7rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.fx-dash-kpi-foot  { color: var(--mud-palette-text-secondary); font-size: .82rem; }

.fx-dash-mini {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.fx-dash-mini-label { color: var(--mud-palette-text-secondary); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.fx-dash-mini-value { font-size: 1.2rem; font-weight: 800; color: #0f172a; }

.fx-page-sub-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0; }
.fx-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }

/* KPI cards estilo "relleno" usados en la página de detalle de guía */
.fx-dash-kpi-fill {
    background: linear-gradient(135deg, #814a4c 0%, #111111 100%);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 6px 16px rgba(129, 74, 76, .22);
}
.fx-dash-kpi-fill.fx-dash-fill-blue {
    background: linear-gradient(135deg, #814a4c 0%, #a66b6d 100%);
}
.fx-dash-fill-label { font-size: .72rem; font-weight: 700; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.fx-dash-fill-value { font-size: 1.65rem; font-weight: 800; line-height: 1.1; }

.fx-card-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 14px; }
.fx-card-label { display: block; color: #94a3b8; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.fx-card-value { display: block; color: #0f172a; font-size: .92rem; line-height: 1.35; word-break: break-word; }

.fx-summary-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.fx-detail-history { list-style: none; padding: 0; margin: 0; }
.fx-detail-history li { padding: 8px 0; border-bottom: 1px dashed rgba(15,23,42,.1); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fx-detail-history li:last-child { border-bottom: 0; }
.fx-detail-history-date { color: #475569; font-size: .82rem; min-width: 110px; }
.fx-detail-history-state { font-weight: 600; color: #0f172a; }
.fx-detail-history-user { color: #94a3b8; font-size: .8rem; }
.fx-detail-history-map { margin-left: auto; }

/* Ruta visual del envío (detalle de guía) */
.fx-guia-ruta-panel { overflow: hidden; }
.fx-guia-ruta-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.fx-guia-ruta-legend { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-guia-ruta-leg {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    background: #f8fafc;
}
.fx-guia-ruta-leg.is-done { color: #166534; background: #ecfdf5; border-color: #bbf7d0; }
.fx-guia-ruta-leg.is-now { color: #9a3412; background: #fff7ed; border-color: #fdba74; }
.fx-guia-ruta-leg.is-pending { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }

.fx-guia-ruta {
    --ruta-line: #dbe3ef;
    --ruta-done: #2f9e6a;
    --ruta-now: #c45c26;
    --ruta-pending: #94a3b8;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
    position: relative;
    padding: 8px 4px 4px;
}
.fx-guia-ruta::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 28px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f9e6a 0%, #c45c26 55%, #dbe3ef 100%);
    opacity: .55;
    z-index: 0;
}
.fx-guia-ruta.is-sucursal::before {
    background: linear-gradient(90deg, #2f9e6a 0%, #814a4c 50%, #dbe3ef 100%);
}
.fx-guia-ruta-paso {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    min-width: 0;
    padding: 0 4px;
}
.fx-guia-ruta-node {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 3px solid var(--ruta-pending);
    color: var(--ruta-pending);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.fx-guia-ruta-paso.is-done .fx-guia-ruta-node {
    border-color: var(--ruta-done);
    color: #fff;
    background: var(--ruta-done);
}
.fx-guia-ruta-paso.is-now .fx-guia-ruta-node {
    border-color: var(--ruta-now);
    color: #fff;
    background: var(--ruta-now);
    box-shadow: 0 0 0 6px rgba(196, 92, 38, .16);
    animation: fx-ruta-pulse 1.8s ease-in-out infinite;
}
.fx-guia-ruta-paso.is-branch.is-now .fx-guia-ruta-node,
.fx-guia-ruta.is-sucursal .fx-guia-ruta-paso.is-now .fx-guia-ruta-node {
    background: #814a4c;
    border-color: #814a4c;
    box-shadow: 0 0 0 6px rgba(129, 74, 76, .18);
}
.fx-guia-ruta-paso.is-branch .fx-guia-ruta-card {
    border-color: rgba(129, 74, 76, .22);
    background: linear-gradient(180deg, #fff 0%, #faf6f6 100%);
}
.fx-guia-ruta-card {
    width: 100%;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 10px 8px;
    background: #fff;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.fx-guia-ruta-card strong {
    font-size: .78rem;
    color: #12213a;
    line-height: 1.25;
}
.fx-guia-ruta-card small {
    font-size: .68rem;
    color: #64748b;
    line-height: 1.3;
}
.fx-guia-ruta-card em {
    font-style: normal;
    font-size: .72rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
}
.fx-guia-ruta-card em.is-muted { color: #94a3b8; font-weight: 600; }
.fx-guia-ruta-user { font-size: .66rem; color: #94a3b8; }
.fx-guia-ruta-map {
    margin-top: 4px;
    font-size: .68rem;
    font-weight: 700;
    color: #814a4c;
    text-decoration: none;
}
.fx-guia-ruta-map:hover { text-decoration: underline; }
.fx-guia-ruta-paso.is-pending .fx-guia-ruta-card { opacity: .72; }
.fx-guia-ruta-paso.is-now .fx-guia-ruta-card {
    border-color: rgba(196, 92, 38, .35);
    box-shadow: 0 8px 18px rgba(196, 92, 38, .08);
}

@keyframes fx-ruta-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media (max-width: 960px) {
    .fx-guia-ruta {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    .fx-guia-ruta::before {
        left: 20px;
        right: auto;
        top: 18px;
        bottom: 18px;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg, #2f9e6a 0%, #c45c26 55%, #dbe3ef 100%);
    }
    .fx-guia-ruta-paso {
        flex-direction: row;
        align-items: stretch;
        text-align: left;
        gap: 14px;
        padding: 8px 0;
    }
    .fx-guia-ruta-node { flex: 0 0 42px; }
    .fx-guia-ruta-card { min-height: 0; }
}

/* Evidencia de entrega (perfil admin / sucursal) */
.fx-entrega-evidencia-card {
    padding: 14px 16px 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.fx-entrega-evidencia-card > .fx-card-label:first-child {
    color: #64748b;
    margin-bottom: 6px;
}
.fx-entrega-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.fx-entrega-foto {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    width: min(160px, 42vw);
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 10px;
    background: #f8fafc;
    cursor: zoom-in;
    overflow: hidden;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.fx-entrega-foto:hover {
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.fx-entrega-foto img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e2e8f0;
}
.fx-entrega-foto span {
    padding: 0 10px 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}
.fx-entrega-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(2px);
}
.fx-entrega-lightbox-inner {
    width: min(960px, 100%);
    max-height: min(92vh, 100%);
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.fx-entrega-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 8px 4px 16px;
    color: #e2e8f0;
    font-size: .85rem;
    font-weight: 600;
}
.fx-entrega-lightbox img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 52px);
    object-fit: contain;
    background: #020617;
}

/* Comparativa dashboard */
.fx-dash-compare {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    padding: 14px 16px;
    min-height: 110px;
    display: grid;
    gap: 6px;
    align-content: space-between;
}
.fx-dash-compare-label { color: var(--mud-palette-text-secondary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fx-dash-compare-row { display: flex; align-items: center; gap: 10px; }
.fx-dash-compare-now { font-size: 1.7rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.fx-dash-compare-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}
.fx-dash-compare-delta.up { color: #16a34a; background: rgba(34, 197, 94, .12); }
.fx-dash-compare-delta.down { color: #dc2626; background: rgba(239, 68, 68, .12); }
.fx-dash-compare-prev { color: var(--mud-palette-text-secondary); font-size: .78rem; }

/* Barras de provincias (mini chart) */
.fx-prov-bars { display: grid; gap: 8px; }
.fx-prov-bar { display: grid; grid-template-columns: 130px 1fr 50px; align-items: center; gap: 12px; }
.fx-prov-bar-label { color: #0f172a; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-prov-bar-track { background: rgba(129, 74, 76, .10); border-radius: 999px; height: 14px; overflow: hidden; position: relative; }
.fx-prov-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #814a4c 0%, #111111 100%);
    border-radius: 999px;
    transition: width .25s ease-out;
}
.fx-prov-bar-value { color: #0f172a; font-size: .9rem; font-weight: 700; text-align: right; }
@media (max-width: 720px) {
    .fx-prov-bar { grid-template-columns: 100px 1fr 40px; gap: 8px; }
}

/* Manual del corporativo */
.fx-panel-body { padding: 18px 20px 22px; }
.fx-manual-steps,
.fx-manual-tips { padding-left: 22px; margin: 0; color: #1f2937; font-size: .92rem; line-height: 1.7; }
.fx-manual-steps li,
.fx-manual-tips li { padding: 2px 0; }
.fx-manual-link { color: #814a4c; font-weight: 600; }

.fx-manual-states,
.fx-manual-types { display: grid; gap: 10px; }
.fx-manual-state,
.fx-manual-type { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; }
.fx-manual-state span,
.fx-manual-type span { color: #1f2937; font-size: .9rem; line-height: 1.4; }
@media (max-width: 720px) {
    .fx-manual-state,
    .fx-manual-type { grid-template-columns: 1fr; }
}

/* Trigger del menú de perfil (esquina superior derecha) */
.fx-user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    cursor: pointer;
    color: #0f172a;
    transition: background-color .12s ease, border-color .12s ease;
    font-family: inherit;
    min-height: 40px;
}
.fx-user-menu-trigger:hover { background: #fafafa; border-color: rgba(129, 74, 76, .35); }
.fx-user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #814a4c 0%, #111111 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .04em;
}
.fx-user-menu-info { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.fx-user-menu-name { color: #0f172a; font-size: .88rem; font-weight: 700; }
.fx-user-menu-role { font-size: .72rem; font-weight: 700; }
@media (max-width: 720px) {
    .fx-user-menu-info { display: none; }
    .fx-user-menu-trigger { padding: 4px; }
    .fx-perfil-badge {
        max-width: min(46vw, 170px);
        padding: 3px 8px 3px 6px;
        gap: 6px;
        min-height: 30px;
    }
    .fx-perfil-badge-role { font-size: .72rem; }
    .fx-perfil-badge-detail {
        display: none;
    }
}

.fx-guide-summary-line,
.fx-guide-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.fx-guide-summary-line span {
    color: #64748b;
}

.fx-guide-total {
    margin-top: 6px;
    border-bottom: 0;
    font-size: 1.05rem;
}

.fx-guide-total strong {
    font-size: 1.25rem;
    color: #4f46e5;
}

.fx-guide-cambio {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid rgba(22, 163, 74, .22);
}

.fx-guide-cambio span {
    font-size: .95rem;
    font-weight: 600;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fx-guide-cambio strong {
    font-size: 1.85rem;
    line-height: 1;
    color: #15803d;
    font-variant-numeric: tabular-nums;
}

.fx-cash-denoms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fx-cash-denom {
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    min-width: 52px;
    padding: 8px 10px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.fx-cash-denom:hover:not(:disabled) {
    border-color: rgba(79, 70, 229, .45);
    background: #eef2ff;
    color: #3730a3;
}

.fx-cash-denom:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.fx-cash-denom.is-clear {
    border-style: dashed;
    color: #64748b;
    font-weight: 500;
}

.fx-corp-address-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.fx-corp-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.fx-corp-client-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.fx-corp-client-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: #fbf9f9;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.fx-corp-client-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.fx-corp-client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #814a4c;
    font-weight: 700;
    font-size: .86rem;
}

.fx-corp-client-addresses {
    display: grid;
}

.fx-corp-address-preview {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    background: #fff;
    color: #64748b;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.fx-corp-address-preview:hover {
    background: #fbf9f9;
}

.fx-corp-address-preview span {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fx-corp-address-preview strong {
    color: #814a4c;
    font-size: .78rem;
    font-weight: 700;
}

.fx-corp-address-row {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(320px, 1.25fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.fx-corp-address-row:last-child {
    border-bottom: 0;
}

.fx-corp-client-head strong,
.fx-corp-client-head span,
.fx-corp-address-row strong,
.fx-corp-address-row span,
.fx-corp-address-row small {
    display: block;
}

.fx-corp-client-head strong,
.fx-corp-address-row strong {
    color: #111827;
    font-size: .92rem;
}

.fx-corp-client-head span,
.fx-corp-address-row span {
    color: #64748b;
    font-size: .8rem;
    margin-top: 2px;
}

.fx-corp-address-row small {
    color: #8b93a7;
    font-size: .76rem;
    margin-top: 3px;
}

.fx-label-sheet {
    display: grid;
    grid-template-columns: repeat(2, 450px);
    gap: 8px 10px;
    align-items: start;
    justify-content: start;
}

.fx-package-label {
    width: 450px;
    height: 300px;
    border: 1.5px solid #111827;
    background: #fff;
    color: #111827;
    page-break-inside: avoid;
    break-inside: avoid;
    position: relative;
    font-family: "Consolas", "Courier New", monospace;
}

.fx-package-label-fragil {
    border-color: #dc2626;
    box-shadow: inset 0 0 0 2px #fecaca;
}

.fx-package-label-main {
    box-sizing: border-box;
    height: 100%;
    padding: 8px 10px 6px;
    font-size: 13px;
    line-height: 1.22;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fx-ticket-brand {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.fx-ticket-rule {
    height: 0;
    margin: 5px 0;
    border: 0;
    border-top: 2px solid #111;
}

.fx-ticket-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
    align-items: start;
}

.fx-ticket-top-text {
    min-width: 0;
    padding-top: 2px;
}

.fx-ticket-guia {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.fx-ticket-fecha {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
}

.fx-package-qr {
    width: 86px;
    height: 86px;
    justify-self: end;
    overflow: visible;
}

.fx-package-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fx-ticket-line {
    margin-top: 2px;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-ticket-line-strong {
    font-size: 14px;
    font-weight: 700;
}

.fx-ticket-route {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.fx-ticket-route > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-ticket-fragil {
    color: #b91c1c;
    font-size: 15px;
    letter-spacing: .04em;
}

.fx-ticket-pago {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.fx-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    font-size: 12.5px;
    font-weight: 600;
}

.fx-ticket-footer span:last-child {
    font-weight: 700;
}

@media (max-width: 1100px) {
    .fx-user-line-corp {
        grid-template-columns: minmax(160px, 1.1fr) minmax(80px, .45fr) minmax(110px, .7fr) minmax(80px, .4fr) minmax(90px, .45fr) 92px 36px;
        gap: 10px;
        padding: 12px 10px;
    }
}

@media (max-width: 720px) {
    .fx-user-group-title {
        font-size: 1.25rem;
    }

    .fx-user-group-head,
    .fx-user-subhead,
    .fx-user-line,
    .fx-user-line-corp {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .fx-corp-form {
        position: static;
    }

    .fx-corp-address-head,
    .fx-corp-address-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .fx-corp-address-head {
        flex-direction: column;
    }

    .fx-corp-filterbar {
        grid-template-columns: 1fr;
    }

    .fx-route-filter {
        grid-template-columns: 1fr;
    }

    .fx-route-filter-arrow {
        transform: rotate(90deg);
        margin-top: 0;
    }

    .fx-route-head,
    .fx-route-path {
        align-items: stretch;
        flex-direction: column;
    }

    .fx-route-arrow {
        transform: rotate(90deg);
        align-self: flex-start;
        margin-left: 2px;
    }

    .fx-guide-summary {
        position: static;
    }

    .fx-tracking-timeline {
        grid-template-columns: 1fr;
    }

    .fx-tracking-step::before {
        left: 23px;
        right: auto;
        top: 34px;
        bottom: -10px;
        width: 2px;
        height: auto;
    }
}

/* ---------- Responsive general ---------- */
@media (max-width: 960px) {
    .fx-content {
        padding: 18px;
        max-width: none;
    }

    .fx-panel {
        padding: 18px;
        border-radius: 12px;
    }

    .fx-page-head,
    .fx-client-hero,
    .fx-panel-head,
    .fx-corp-address-head,
    .fx-tracking-head,
    .fx-guide-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .fx-page-head > *,
    .fx-client-hero > *,
    .fx-panel-head > *,
    .fx-corp-address-head > * {
        min-width: 0;
    }

    .fx-page-title {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .fx-page-sub {
        font-size: .86rem;
    }

    .fx-client-actions,
    .fx-toolbar,
    .fx-corp-form-actions {
        justify-content: stretch;
    }

    .fx-client-actions .mud-button-root,
    .fx-toolbar .mud-button-root,
    .fx-corp-form-actions .mud-button-root {
        flex: 1 1 auto;
    }

    .fx-permission-grid {
        grid-template-columns: 1fr;
    }

    .fx-perm-groups {
        grid-template-columns: 1fr;
    }

    .fx-perm-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fx-perm-search {
        max-width: none;
    }

    .fx-perm-toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .fx-appbar .mud-toolbar {
        min-height: 56px;
        padding-left: 6px;
        padding-right: 8px;
    }

    .fx-appbar .mud-icon-button {
        padding: 8px;
    }

    .fx-user-menu .mud-button-label {
        max-width: 118px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fx-brand {
        padding: 14px 14px 6px;
    }

    .fx-brand-logo {
        width: 44px;
        height: 44px;
    }

    .fx-brand-logo img {
        width: 36px;
    }

    .fx-login-logo-wrap {
        width: 96px;
        height: 70px;
        border-radius: 12px;
    }

    .fx-login-logo {
        width: 78px;
    }

    .fx-content {
        padding: 14px;
    }

    .fx-panel {
        padding: 14px;
        border-radius: 10px;
    }

    .fx-client-tabs {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fx-form-section {
        padding: 16px 0;
    }

    .fx-section-head {
        align-items: flex-start;
    }

    .fx-toolbar-search,
    .fx-toolbar-date,
    .fx-corp-address-head .mud-input-control {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .fx-stats {
        padding: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .fx-stat-pill {
        flex: 0 0 auto;
    }

    .fx-corp-client-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fx-corp-client-head > :last-child {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .fx-guide-progress-cell {
        min-width: 130px;
    }

    .fx-prov-bar {
        grid-template-columns: 86px 1fr 36px;
    }

    .fx-dash-alert-body,
    .fx-dash-mini,
    .fx-dash-compare-row,
    .fx-guide-summary-line,
    .fx-guide-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .fx-dash-alert-amount {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .fx-content {
        padding: 12px 10px;
    }

    .fx-page-head {
        margin-bottom: 14px;
    }

    .fx-page-title {
        font-size: 1.22rem;
    }

    .fx-panel,
    .fx-route-card,
    .fx-user-section,
    .fx-corp-client-card,
    .fx-tracking-panel,
    .fx-tracking-inline {
        border-radius: 8px;
    }

    .fx-stat {
        padding: 16px;
        border-radius: 10px;
    }

    .fx-stat-value {
        font-size: 1.55rem;
    }

    .fx-route-configs {
        grid-template-columns: 1fr;
    }

    .fx-route-config {
        min-width: 0;
    }

    .fx-tracking-timeline {
        padding: 10px;
    }
}

@media print {
    @page {
        size: letter;
        margin: .25in;
    }

    html,
    body {
        background: #fff !important;
    }

    .mud-appbar,
    .mud-drawer,
    .fx-label-actions,
    .mud-popover-provider,
    .mud-snackbar-location-top-right,
    .mud-snackbar-location-bottom-right {
        display: none !important;
    }

    .mud-main-content,
    .fx-main,
    .fx-content,
    .fx-page,
    .fx-label-page {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        background: #fff !important;
    }

    .fx-label-sheet {
        width: 9.6in;
        display: grid;
        grid-template-columns: repeat(2, 4.5in);
        grid-auto-rows: 3in;
        gap: .06in .10in;
    }

    .fx-package-label {
        min-height: 0;
        width: 4.5in;
        height: 3in;
        overflow: hidden;
        border: 1px solid #111;
        box-shadow: none !important;
    }

    .fx-package-label-fragil {
        border: 2px solid #dc2626 !important;
    }

    .fx-package-label-main {
        padding: .07in .09in .05in;
        font-size: 11px;
        line-height: 1.18;
    }

    .fx-ticket-brand {
        font-size: 17px;
    }

    .fx-ticket-rule {
        margin: .04in 0;
        border-top-width: 1.5px;
    }

    .fx-ticket-top {
        grid-template-columns: minmax(0, 1fr) .78in;
        gap: .08in;
    }

    .fx-ticket-guia {
        font-size: 15px;
    }

    .fx-ticket-fecha,
    .fx-ticket-line,
    .fx-ticket-footer {
        font-size: 11px;
    }

    .fx-ticket-line-strong,
    .fx-ticket-route,
    .fx-ticket-pago {
        font-size: 12px;
    }

    .fx-package-qr {
        width: .78in;
        height: .78in;
    }

    .fx-ticket-fragil {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ---------- Stat card ---------- */
.fx-stat {
    padding: 20px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    background: var(--mud-palette-surface);
    transition: transform .15s ease, box-shadow .15s ease;
}
a.fx-stat-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.fx-stat-link:hover .fx-stat {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -18px rgba(31,35,51,.35);
}
.fx-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -18px rgba(31,35,51,.35);
}
.fx-stat-head { display: flex; align-items: center; justify-content: space-between; }
.fx-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
}
.fx-stat-delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}
.fx-stat-delta.up { color: #16a34a; background: rgba(34,197,94,.12); }
.fx-stat-delta.down { color: #dc2626; background: rgba(239,68,68,.12); }
.fx-stat-value { font-size: 1.8rem; font-weight: 700; margin-top: 14px; }
.fx-stat-label { color: var(--mud-palette-text-secondary); font-size: .85rem; margin-top: 2px; }

/* Dashboard global del administrador */
.fx-admin-filter-panel .fx-panel-body { padding-top: 10px; }
.fx-admin-filter-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.fx-admin-kpi {
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 17px 19px;
    color: #fff;
    background: #814a4c;
    border-radius: 8px;
}
.fx-admin-kpi .mud-typography { color: rgba(255,255,255,.82); font-weight: 600; }
.fx-admin-kpi strong { display: block; margin: 4px 0; font-size: 2rem; line-height: 1; }
.fx-admin-kpi span { color: rgba(255,255,255,.9); font-size: .82rem; }
.fx-admin-dashboard-loading { min-height: 280px; display: flex; flex-direction: column; gap: 12px; }

.fx-admin-guides-table .mud-table-container {
    overflow-x: hidden;
}

.fx-admin-guides-table .mud-table-cell {
    white-space: normal;
    overflow-wrap: break-word;
    vertical-align: top;
}

.fx-admin-guide-status {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.fx-admin-guides-table.mud-xs-table .mud-table-row,
.fx-admin-guides-table.mud-sm-table .mud-table-row,
.fx-admin-guides-table.mud-md-table .mud-table-row,
.fx-admin-guides-table.mud-lg-table .mud-table-row {
    margin-bottom: 10px;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.fx-admin-guides-table.mud-xs-table .mud-table-cell,
.fx-admin-guides-table.mud-sm-table .mud-table-cell,
.fx-admin-guides-table.mud-md-table .mud-table-cell,
.fx-admin-guides-table.mud-lg-table .mud-table-cell {
    align-items: flex-start;
}

/* Monitor global de manifiestos */
.fx-admin-manifest-filter { margin-top: 8px; }
.fx-admin-manifest-filter-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px 4px; }
.fx-admin-manifest-select { min-width: 300px; }
.fx-admin-manifest-filter > .mud-typography { display: block; padding: 0 16px 14px; }
.fx-admin-manifest-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 4px 10px; color: var(--mud-palette-text-secondary); font-size: .86rem; }
.fx-admin-manifest-summary strong { color: var(--mud-palette-text-primary); }
.fx-admin-manifest-list { display: grid; gap: 12px; }
.fx-admin-manifest-item { overflow: hidden; border: 1px solid rgba(15,23,42,.1); border-radius: 8px; }
.fx-admin-manifest-header { width: 100%; display: flex; justify-content: space-between; gap: 18px; border: 0; padding: 15px 17px; background: #f7f1f1; color: #3a2f30; text-align: left; cursor: pointer; font: inherit; border-bottom: 1px solid #eadfdf; }
.fx-admin-manifest-header:hover { background: #f0e6e6; }
.fx-admin-manifest-main { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.fx-admin-manifest-main strong { color: #814a4c; font-size: 1rem; }
.fx-admin-manifest-main small { color: #7a8799; }
.fx-admin-manifest-main span { color: #4b5563; font-size: .82rem; }
.fx-admin-manifest-totals { display: flex; min-width: 170px; flex-direction: column; align-items: flex-end; gap: 2px; }
.fx-admin-manifest-totals strong, .fx-admin-manifest-money { color: #16723b; }
.fx-admin-manifest-totals small { color: #6b7280; font-size: .78rem; }
.fx-admin-manifest-totals .mud-icon-root { margin-top: 2px; }
.fx-admin-manifest-details { padding: 16px; background: #fff; }
.fx-admin-manifest-detail-loading { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mud-palette-text-secondary); }
.fx-admin-manifest-empty { margin-top: 18px; min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; text-align: center; }

/* Dashboard financiero del administrador */
.fx-finance-filter-panel { padding: 13px 16px; }
.fx-finance-filterbar { display: flex; align-items: center; gap: 10px; }
.fx-finance-filterbar .mud-input-control { width: 190px; }
.fx-finance-filterbar .mud-input-control:nth-child(3) { width: 220px; }
.fx-finance-kpi { min-height: 112px; padding: 17px; border: 1px solid #e9edf4; border-bottom: 3px solid #814a4c; border-radius: 8px; }
.fx-finance-kpi span, .fx-finance-kpi small { display: block; color: #718096; font-size: .73rem; text-transform: uppercase; }
.fx-finance-kpi strong { display: block; margin: 7px 0; font-size: 1.42rem; color: #12213a; }
.fx-finance-kpi small { text-transform: none; }
.fx-finance-kpi.is-debt { border-bottom-color: #dc2626; }.fx-finance-kpi.is-debt strong, .fx-finance-debt { color: #b91c1c; }
.fx-finance-kpi.is-invoiced { border-bottom-color: #111111; }.fx-finance-kpi.is-pending { border-bottom-color: #814a4c; }
.fx-finance-chart-panel, .fx-finance-methods-panel { height: 100%; }
.fx-finance-bars { display: grid; gap: 11px; padding: 8px 18px 20px; }
.fx-finance-bar-row { display: grid; grid-template-columns: 48px minmax(110px, 1fr) 110px 76px; align-items: center; gap: 8px; font-size: .78rem; }
.fx-finance-bar-track { height: 9px; overflow: hidden; background: #edf2f7; border-radius: 99px; }.fx-finance-bar-track i { display: block; height: 100%; min-width: 2px; background: #814a4c; border-radius: inherit; }
.fx-finance-bar-row strong { text-align: right; color: #12213a; }.fx-finance-bar-row small { color: #718096; }
.fx-finance-methods { display: grid; gap: 7px; padding: 6px 18px 20px; }.fx-finance-methods div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid #edf0f5; }.fx-finance-methods span { font-size: .84rem; color: #334155; }.fx-finance-methods strong { color: #814a4c; }.fx-finance-methods small { color: #718096; grid-column: 1 / -1; font-size: .72rem; }
.fx-finance-no-chart { min-height: 170px; display: grid; place-items: center; padding: 18px; color: #718096; font-size: .87rem; text-align: center; }
.fx-finance-income { color: #16723b; }
.fx-finance-account-table .mud-table-container { overflow-x: hidden; }
.fx-finance-account-table .mud-table-cell { white-space: normal; }
.fx-finance-account-condition { display: grid; align-items: start; gap: 5px; }
.fx-finance-account-condition > span { color: #334155; font-size: .83rem; }
.fx-finance-account-condition .mud-chip { width: fit-content; max-width: 100%; }
.fx-finance-account-values { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }

/* Resumen ejecutivo del administrador */
.fx-exec-filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fx-exec-filterbar .mud-input-control { width: 180px; }
.fx-exec-filterbar .mud-input-control:nth-child(3) { width: 210px; }
.fx-exec-compare-note { display: block; margin: 14px 0 -4px; color: #718096; }
.fx-exec-section-title { margin: 22px 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #814a4c; }
.fx-exec-kpi { min-height: 138px; height: 100%; padding: 16px 17px; border: 1px solid #e9edf4; border-bottom: 3px solid #814a4c; border-radius: 8px; }
.fx-exec-kpi > span { display: block; color: #718096; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.fx-exec-kpi strong { display: block; margin: 7px 0 2px; font-size: 1.5rem; line-height: 1.1; color: #12213a; }
.fx-exec-kpi small { display: block; margin-top: 5px; color: #718096; font-size: .76rem; }
.fx-exec-kpi.is-invoiced { border-bottom-color: #111111; }
.fx-exec-kpi.is-revenue { border-bottom-color: #16723b; } .fx-exec-kpi.is-revenue strong { color: #16723b; }
.fx-exec-kpi.is-debt { border-bottom-color: #dc2626; } .fx-exec-kpi.is-debt strong { color: #b91c1c; }
.fx-exec-kpi.is-portfolio { border-bottom-color: #b45309; }
.fx-exec-kpi.is-warn { border-bottom-color: #b45309; }
.fx-exec-kpi-inline { margin-top: 4px; }
.fx-exec-delta { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; }
.fx-exec-delta .mud-icon-root { font-size: 1rem; }
.fx-exec-delta.is-good { color: #16723b; }
.fx-exec-delta.is-bad { color: #b91c1c; }
.fx-exec-delta.is-neutral { color: #718096; font-weight: 600; }
.fx-exec-debt { color: #b91c1c; }

.fx-exec-alert-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 4px 18px 14px; }
.fx-exec-alert-tile { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: #f7f9fc; border: 1px solid #e9edf4; border-radius: 8px; }
.fx-exec-alert-tile .mud-icon-root { color: #94a3b8; }
.fx-exec-alert-tile strong { display: block; font-size: 1.35rem; line-height: 1.1; color: #12213a; }
.fx-exec-alert-tile span { font-size: .74rem; color: #718096; }
.fx-exec-alert-tile.is-alert { background: #fef4f4; border-color: #f3c9c9; }
.fx-exec-alert-tile.is-alert .mud-icon-root, .fx-exec-alert-tile.is-alert strong { color: #b91c1c; }

.fx-exec-chart { padding: 6px 12px 12px; }
.fx-exec-no-chart { min-height: 200px; display: grid; place-items: center; padding: 18px; color: #718096; font-size: .87rem; text-align: center; }
.fx-exec-aging { display: grid; gap: 6px; padding: 4px 18px 18px; }
.fx-exec-aging > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #edf0f5; font-size: .82rem; }
.fx-exec-aging > div:last-child { border-bottom: 0; }
.fx-exec-aging span { color: #64748b; }
.fx-exec-aging strong { color: #12213a; white-space: nowrap; }
.fx-exec-aging > div.is-risk strong { color: #b91c1c; }

.fx-exec-rank-progress { display: grid; gap: 5px; }
.fx-exec-rank-progress > span { font-size: .76rem; color: #64748b; }

.fx-exec-espera-link { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 600; cursor: pointer; }
.fx-exec-espera-sucursales {
    margin: 0 12px 12px;
    border: 1px solid #e9edf4;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}
.fx-exec-espera-sucursales .fx-tracking-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #e9edf4;
}
.fx-exec-espera-sucursales .fx-tracking-head strong { font-size: .82rem; color: #12213a; }
.fx-exec-espera-sucursales .fx-tracking-head span { font-size: .72rem; color: #718096; }
.fx-exec-espera-sucursal-table { margin: 0 !important; background: #fff; }
.fx-exec-espera-sucursal-table th,
.fx-exec-espera-sucursal-table td { font-size: .78rem; }
.fx-table tr.fx-row-collapsed > td > .fx-exec-espera-sucursales { display: none; }

.fx-exec-task { display: flex; align-items: flex-start; gap: 12px; height: 100%; min-height: 108px; padding: 15px 16px; border: 1px solid #e9edf4; border-radius: 8px; }
.fx-exec-task .mud-icon-root { color: #94a3b8; }
.fx-exec-task strong { display: block; font-size: 1.5rem; line-height: 1.1; color: #12213a; }
.fx-exec-task span { display: block; margin-top: 2px; font-size: .78rem; color: #475569; }
.fx-exec-task small { display: block; margin-top: 5px; font-size: .72rem; color: #718096; }
.fx-exec-task.is-pending { background: #fffaf3; border-color: #f0d9b5; }
.fx-exec-task.is-pending .mud-icon-root, .fx-exec-task.is-pending strong { color: #b45309; }

@media (max-width: 960px) {
  .fx-exec-alert-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fx-exec-filterbar .mud-input-control, .fx-exec-filterbar .mud-input-control:nth-child(3) { width: calc(50% - 5px); }
  .fx-exec-filterbar .mud-button-root { width: 100%; }
  .fx-exec-filterbar .mud-button-group-root { width: 100%; }
  .fx-exec-filterbar .mud-button-group-root .mud-button-root { width: auto; flex: 1 1 0; }
  .fx-exec-kpi { min-height: 120px; }
}
.fx-finance-account-values small { color: #718096; font-size: .72rem; }
.fx-finance-account-values strong { font-size: .82rem; }

/* Centro de reportes administrativos */
.fx-admin-report-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px 16px; }
.fx-admin-report-filter .mud-input-control { width: 190px; }
.fx-admin-report-kpi { min-height: 108px; padding: 17px; border: 1px solid #e5eaf1; border-bottom: 3px solid #814a4c; border-radius: 8px; }
.fx-admin-report-kpi span, .fx-admin-report-kpi small { display: block; color: #718096; font-size: .74rem; }.fx-admin-report-kpi strong { display: block; margin: 7px 0; color: #172033; font-size: 1.55rem; }.fx-admin-report-kpi.is-danger { border-bottom-color: #dc2626; }.fx-admin-report-kpi.is-danger strong { color: #b91c1c; }.fx-admin-report-kpi.is-warning { border-bottom-color: #d97706; }.fx-admin-report-kpi.is-warning strong { color: #a16207; }.fx-admin-report-kpi.is-dark { border-bottom-color: #111; }.fx-admin-report-kpi.is-dark strong { color: #111; }
.fx-report-progress { display: inline-flex; width: 62px; margin-right: 5px; vertical-align: middle; }
.fx-trace-search { display: flex; align-items: center; gap: 10px; }.fx-trace-search .mud-input-control { width: 220px; }
.fx-trace-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 8px; padding: 13px 16px; background: #f8eeee; border: 1px solid #ead6d7; border-radius: 8px; }.fx-trace-head span, .fx-trace-head strong { display: block; }.fx-trace-head span { margin-bottom: 4px; color: #718096; font-size: .72rem; text-transform: uppercase; }.fx-trace-head strong { color: #172033; font-size: .88rem; }

/* Reporte de cuentas por cobrar */
.fx-cxc-filter { display: flex; align-items: center; gap: 10px; padding: 13px 16px; }.fx-cxc-filter .mud-input-control { min-width: 180px; }
.fx-cxc-aging-panel { margin-top: 16px; overflow: hidden; }.fx-cxc-aging-title { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #334155; font-size: .86rem; border-bottom: 1px solid #e8edf3; }.fx-cxc-aging-title strong { color: #12213a; }
.fx-cxc-aging { display: grid; grid-template-columns: repeat(5, 1fr); }.fx-cxc-aging > div { padding: 14px 16px; border-right: 1px solid #e8edf3; }.fx-cxc-aging > div:last-child { border: 0; }.fx-cxc-aging span, .fx-cxc-aging strong { display: block; }.fx-cxc-aging span { color: #718096; font-size: .76rem; }.fx-cxc-aging strong { margin-top: 4px; color: #12213a; font-size: 1rem; }.fx-cxc-aging .is-green { color: #16723b; }.fx-cxc-aging .is-orange { color: #a16207; }.fx-cxc-aging .is-red { color: #b91c1c; }.fx-cxc-aging .is-purple { color: #814a4c; }
.fx-cxc-client-list { display: grid; gap: 14px; margin-top: 16px; }.fx-cxc-client-card { overflow: hidden; border: 1px solid #e6ebf1; }.fx-cxc-client-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; color: #3a2f30; background: #f7f1f1; border-bottom: 1px solid #eadfdf; }.fx-cxc-client-head h2 { margin: 0; font-size: .98rem; color: #5c3537; }.fx-cxc-client-head span { color: #7a8799; font-size: .77rem; }.fx-cxc-client-head > strong { align-self: center; color: #814a4c; white-space: nowrap; }.fx-cxc-cufe { display: inline-block; max-width: 180px; overflow: hidden; color: #596b83; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }.fx-cxc-empty { display: grid; justify-items: center; gap: 8px; min-height: 230px; margin-top: 16px; align-content: center; text-align: center; }

/* Estado de cuenta crédito */
.fx-estado-cuenta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-estado-cuenta-filter { display: flex; align-items: center; gap: 10px; padding: 13px 16px; flex-wrap: wrap; }
.fx-estado-cuenta-filter .mud-input-control { min-width: 180px; }
.fx-estado-cuenta-search { min-width: 260px; flex: 1 1 260px; }
.fx-estado-cuenta-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 4px; border: 1px solid #e8edf3; border-radius: 8px; overflow: hidden; }
.fx-estado-cuenta-kpis > div { padding: 14px 16px; border-right: 1px solid #e8edf3; background: #fff; }
.fx-estado-cuenta-kpis > div:last-child { border-right: 0; }
.fx-estado-cuenta-kpis span { display: block; color: #718096; font-size: .72rem; text-transform: uppercase; }
.fx-estado-cuenta-kpis strong { display: block; margin-top: 4px; color: #12213a; font-size: 1.15rem; }
.fx-estado-cuenta-kpis .is-debt strong { color: #b91c1c; }
.fx-estado-cuenta-detail { margin-top: 16px; padding: 0; overflow: hidden; }
.fx-estado-cuenta-detail-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #3a2f30; background: #f7f1f1; border-bottom: 1px solid #eadfdf; }
.fx-estado-cuenta-detail-head h2 { margin: 0 0 4px; font-size: 1.05rem; color: #5c3537; }
.fx-estado-cuenta-detail-head span, .fx-estado-cuenta-doc { color: #7a8799; font-size: .78rem; }
.fx-estado-cuenta-doc { margin-top: 6px; }
.fx-estado-cuenta-detail-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.fx-estado-cuenta-detail .fx-estado-cuenta-kpis { margin: 0; border: 0; border-radius: 0; border-bottom: 1px solid #e8edf3; }
.fx-estado-cuenta-detail .fx-cxc-aging { border-bottom: 1px solid #e8edf3; }
.fx-estado-cuenta-detail .fx-table { margin: 0 !important; }
.fx-estado-cuenta-summary { margin-top: 16px; padding: 0; overflow: hidden; }
.fx-estado-cuenta-row { cursor: pointer; }

@media (max-width: 900px) {
    .fx-estado-cuenta-kpis { grid-template-columns: repeat(2, 1fr); }
    .fx-estado-cuenta-kpis > div:nth-child(2n) { border-right: 0; }
    .fx-estado-cuenta-kpis > div:nth-child(n+3) { border-top: 1px solid #e8edf3; }
    .fx-estado-cuenta-detail-head { flex-direction: column; }
}

/* Reporte global de entregas */
.fx-delivery-filter { display: flex; align-items: center; gap: 8px; }.fx-delivery-filter .mud-input-control { width: 150px; }.fx-delivery-filter .mud-input-control:nth-child(3) { width: 175px; }.fx-delivery-filter .mud-input-control:nth-child(4) { width: 155px; }
.fx-delivery-kpi { min-height: 112px; padding: 17px; border: 1px solid #e3eaf3; border-radius: 8px; }.fx-delivery-kpi span, .fx-delivery-kpi small { display: block; color: #8292aa; font-size: .74rem; text-transform: uppercase; }.fx-delivery-kpi strong { display: block; margin: 5px 0; font-size: 2rem; line-height: 1; }.fx-delivery-kpi small { text-transform: none; }
.fx-delivery-kpi.is-blue { color: #fff; background: #814a4c; border-color: #814a4c; }.fx-delivery-kpi.is-blue span, .fx-delivery-kpi.is-blue small { color: rgba(255,255,255,.8); }.fx-delivery-kpi.is-blue strong { color: #fff; }.fx-delivery-kpi.is-red strong { color: #b91c1c; }.fx-delivery-kpi.is-green strong { color: #16723b; }.fx-delivery-kpi.is-dark { color: #fff; background: #111111; border-color: #111111; }.fx-delivery-kpi.is-dark span, .fx-delivery-kpi.is-dark small { color: rgba(255,255,255,.72); }.fx-delivery-kpi.is-dark strong { color: #fff; }
.fx-delivery-provinces { display: grid; gap: 0; padding: 4px 16px 16px; }.fx-delivery-provinces div { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }.fx-delivery-provinces strong { color: #2b2b2b; font-size: .88rem; }.fx-delivery-provinces span { color: #814a4c; font-size: .8rem; }.fx-delivery-provinces small { grid-column: 1 / -1; color: #8292aa; font-size: .72rem; }

.fx-report-head + .fx-panel,
.fx-report-head + .mud-grid,
.fx-report-head + .mud-alert,
.fx-report-head + .fx-admin-manifest-summary,
.fx-report-head + .fx-splash {
    margin-top: 14px;
}
.fx-report-head,
.fx-cobranza-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    color: #3a2f30;
    background: #fff;
    border: 1px solid #eadfdf;
    border-top: 3px solid #814a4c;
    border-radius: 10px;
}
.fx-report-head.is-stack,
.fx-cobranza-head.is-stack {
    flex-direction: column;
    align-items: stretch;
}
.fx-report-head h1,
.fx-cobranza-head h1,
.fx-report-head .fx-page-title {
    margin: 0;
    font-size: 1.22rem;
    color: #5c3537;
    font-weight: 700;
}
.fx-report-head p,
.fx-cobranza-head p,
.fx-report-head .fx-page-sub {
    margin: 4px 0 0;
    color: #8a7a7b !important;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.fx-report-filter,
.fx-cobranza-filter {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.fx-report-filter .mud-input-control,
.fx-cobranza-filter .mud-input-control {
    width: 170px;
    min-width: 140px;
    flex: 0 0 auto;
}
.fx-report-filter .mud-input-control.fx-report-filter-wide,
.fx-cobranza-filter .mud-input-control.fx-report-filter-wide {
    width: 220px;
}
.fx-report-filter .mud-input-control.fx-report-filter-search,
.fx-cobranza-filter .mud-input-control.fx-report-filter-search {
    width: auto;
    min-width: 220px;
    flex: 1 1 240px;
}
.fx-report-filter-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.6fr) 150px 150px 150px auto;
    gap: 10px;
    align-items: end;
    width: 100%;
}
.fx-report-filter-row-audit {
    grid-template-columns: 140px 140px 150px 150px minmax(180px, 1.4fr) auto auto;
}
.fx-report-filter-row .mud-input-control {
    width: 100% !important;
    min-width: 0 !important;
    flex: none;
}
.fx-report-filter-row .mud-button-root {
    height: 40px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .fx-report-filter-row-audit {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .fx-report-filter-row {
        grid-template-columns: 1fr 1fr;
    }
    .fx-report-filter-row .mud-button-root {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.fx-cobranza-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }.fx-cobranza-tab { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 10px 14px; color: #6b7280; background: transparent; border-radius: 8px; font: inherit; font-size: .77rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }.fx-cobranza-tab:hover { color: #814a4c; background: #f8eeee; }.fx-cobranza-tab.is-active { color: #814a4c; background: #fff; box-shadow: 0 2px 7px rgba(15,23,42,.1); }
.fx-cobranza-overview { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 14px; margin: -3px 0 14px; color: #74839b; font-size: .84rem; }
.fx-cobranza-overview strong { color: #2b2b2b; }
.fx-cobranza-global {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
    margin: 0 0 16px; padding: 18px 20px; border: 1px solid #d8e7d4; border-radius: 10px; background: linear-gradient(135deg, #f3faf1, #fff);
}
.fx-cobranza-global span { display: block; color: #5f7a58; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fx-cobranza-global strong { display: block; margin-top: 4px; color: #1f6b2e; font-size: 2rem; line-height: 1.1; }
.fx-cobranza-global-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #6b7280; font-size: .86rem; }
.fx-cobranza-global-meta span { color: #6b7280; font-size: .86rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.fx-cobranza-branch-card { position: relative; min-height: 142px; padding: 17px; border: 1px solid #e0e7f0; border-radius: 8px; }.fx-cobranza-branch-icon { display: grid; width: 30px; height: 30px; place-items: center; background: #f8eeee; border-radius: 8px; }.fx-cobranza-branch-card > .mud-chip { position: absolute; top: 17px; right: 15px; font-size: .66rem; text-transform: uppercase; }.fx-cobranza-branch-card > span { display: block; margin-top: 12px; color: #7c8290; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.fx-cobranza-branch-card > strong { display: block; margin-top: 5px; color: #2b2b2b; font-size: 1.55rem; }.fx-cobranza-branch-card > small { color: #8a9ab5; font-size: .74rem; }.fx-cobranza-detail-panel { overflow: hidden; }

@media (max-width: 600px) {
    .fx-admin-filter-actions { flex-wrap: wrap; }
    .fx-admin-filter-actions .mud-button-root { flex: 1 1 auto; }
    .fx-admin-kpi { min-height: 108px; }
    .fx-admin-manifest-filter-row { align-items: stretch; flex-wrap: wrap; }
    .fx-admin-manifest-select { min-width: 100%; flex-basis: 100%; }
    .fx-admin-manifest-header { flex-direction: column; gap: 8px; }
    .fx-admin-manifest-totals { align-items: flex-start; }
    .fx-finance-head { align-items: stretch; flex-direction: column; }
    .fx-finance-head p { margin-left: 0; }
    .fx-finance-filterbar { flex-wrap: wrap; }
    .fx-finance-filterbar .mud-input-control, .fx-finance-filterbar .mud-input-control:nth-child(3) { width: calc(50% - 4px); }
    .fx-finance-filterbar .mud-button-root { width: 100%; }
    .fx-finance-bar-row { grid-template-columns: 42px minmax(70px, 1fr) 86px; }.fx-finance-bar-row small { display: none; }
    .fx-finance-account-table .mud-table-head { display: none; }
    .fx-finance-account-table .mud-table-row { display: grid; grid-template-columns: 54px 88px minmax(0, 1fr); gap: 5px 8px; padding: 10px 12px; }
    .fx-finance-account-table .mud-table-cell { display: block; padding: 0; border: 0; }
    .fx-finance-account-table .mud-table-cell:nth-child(4) { grid-column: 1 / -1; padding-top: 2px; border-top: 1px solid #edf0f5; }
    .fx-finance-account-table .mud-table-cell:nth-child(4) .fx-finance-account-values { grid-template-columns: 1fr auto; align-items: center; }
    .fx-admin-report-filter .mud-input-control { width: calc(50% - 5px); }
    .fx-admin-report-filter .mud-button-root { flex: 1 1 100%; }
    .fx-trace-search { align-items: stretch; flex-wrap: wrap; }.fx-trace-search .mud-input-control, .fx-trace-search .mud-button-root { width: 100%; }
    .fx-trace-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-cxc-filter { align-items: stretch; flex-wrap: wrap; }.fx-cxc-filter .mud-input-control, .fx-cxc-filter .mud-button-root { min-width: calc(50% - 5px); flex: 1 1 45%; }
    .fx-cxc-aging { grid-template-columns: repeat(2, 1fr); }.fx-cxc-aging > div:nth-child(2n) { border-right: 0; }.fx-cxc-aging > div:last-child { grid-column: 1 / -1; border-top: 1px solid #e8edf3; }.fx-cxc-client-head { flex-direction: column; gap: 4px; }.fx-cxc-client-head > strong { align-self: flex-start; }
    .fx-delivery-filter { align-items: stretch; flex-wrap: wrap; }.fx-delivery-filter .mud-input-control, .fx-delivery-filter .mud-input-control:nth-child(3), .fx-delivery-filter .mud-input-control:nth-child(4) { width: calc(50% - 4px); }.fx-delivery-filter .mud-button-root { width: 100%; }
    .fx-report-head,
    .fx-cobranza-head { align-items: stretch; flex-direction: column; border-radius: 12px; }
    .fx-report-filter,
    .fx-cobranza-filter { flex-wrap: wrap; align-items: stretch; }
    .fx-report-filter .mud-input-control,
    .fx-cobranza-filter .mud-input-control { flex: 1 1 100%; width: 100%; }
    .fx-report-filter .mud-button-root,
    .fx-cobranza-filter .mud-button-root { width: 100%; }
    .fx-cobranza-tab { flex: 1 1 45%; justify-content: center; padding: 10px 8px; font-size: .68rem; }
}

/* Error UI de Blazor */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Semáforo de despacho entre centros de distribución. */
.fx-manifest-mounted {
    background-color: #166534 !important;
    color: #fff !important;
}

.fx-manifest-missing {
    background-color: #dc2626 !important;
    color: #fff !important;
}

.fx-manifest-zero {
    background-color: #eef0f2 !important;
    color: #667085 !important;
}

.fx-print-toolbar {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    max-width: 1100px;
    margin: 1rem auto;
}

.fx-manifest-print {
    max-width: 1100px;
    margin: 0 auto 1.25rem;
    padding: .85rem 1rem 1.1rem;
    color: #1f2937;
    background: #fff;
    font-size: .72rem;
    line-height: 1.25;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.fx-manifest-print-head,
.fx-manifest-print-meta,
.fx-manifest-print-signatures,
.fx-manifest-print-summary,
.fx-manifest-print-page-footer {
    display: flex;
    justify-content: space-between;
    gap: .65rem;
}

.fx-manifest-print-head {
    border-bottom: 1.5px solid #1f2937;
    padding-bottom: .4rem;
    align-items: flex-end;
}

.fx-manifest-print-head h1 {
    margin: 0;
    font-size: .95rem;
    letter-spacing: .02em;
    font-weight: 700;
    color: #1f2937;
}

.fx-manifest-print-head > div:first-child > div {
    font-size: .72rem;
    font-weight: 700;
    color: #1f2937;
}

.fx-manifest-print-head small {
    font-size: .65rem;
    color: #1f2937;
}

.fx-manifest-print-number { text-align: right; }
.fx-manifest-print-number span,
.fx-manifest-print-number strong,
.fx-manifest-print-number small { display: block; color: #1f2937; }
.fx-manifest-print-number span { font-size: .62rem; letter-spacing: .04em; font-weight: 700; }
.fx-manifest-print-number strong { font-size: 1.05rem; color: #1f2937; line-height: 1.1; }
.fx-manifest-print-number small { font-size: .62rem; color: #1f2937; }

.fx-manifest-print-continued {
    margin: .35rem 0;
    font-size: .62rem;
    color: #6b7280;
    font-style: italic;
}

.fx-manifest-print-meta {
    background: transparent;
    padding: .3rem 0;
    margin: .35rem 0 .4rem;
    font-size: .68rem;
    border-bottom: 1px solid #1f2937;
}

.fx-manifest-print-meta div b {
    display: block;
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #1f2937;
    font-weight: 700;
}

.fx-manifest-print-meta div span {
    display: block;
    margin-top: .06rem;
    font-weight: 600;
    color: #1f2937;
}

.fx-manifest-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .68rem;
    color: #1f2937;
}

.fx-manifest-print-table th,
.fx-manifest-print-table td {
    border: 1px solid #1f2937;
    padding: .14rem .24rem;
    text-align: left;
    vertical-align: top;
    color: #1f2937;
}

.fx-manifest-print-table th {
    background: transparent;
    color: #1f2937;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 2px solid #1f2937;
}

.fx-manifest-print-table tfoot td {
    background: transparent;
    font-size: .68rem;
    font-weight: 700;
    border-top: 2px solid #1f2937;
}

.fx-manifest-print-table td:nth-child(1),
.fx-manifest-print-table td:nth-child(2),
.fx-manifest-print-table td:nth-child(6),
.fx-manifest-print-table th:nth-child(1),
.fx-manifest-print-table th:nth-child(2),
.fx-manifest-print-table th:nth-child(6) { text-align: center; }

.fx-manifest-print-client td {
    background: #f3f4f6;
    font-size: .72rem;
    font-weight: 600;
    border-top: 2px solid #1f2937;
    letter-spacing: .01em;
}

.fx-manifest-print-summary {
    margin-top: .5rem;
    padding: .35rem .5rem;
    border: 1.5px solid #1f2937;
    background: transparent;
    gap: .75rem;
}

.fx-manifest-print-summary div {
    flex: 1;
    text-align: center;
}

.fx-manifest-print-summary span {
    display: block;
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1f2937;
    font-weight: 700;
}

.fx-manifest-print-summary strong {
    display: block;
    margin-top: .08rem;
    font-size: .95rem;
    color: #1f2937;
    line-height: 1.1;
}

.fx-manifest-print-signatures {
    margin-top: 1.75rem;
    font-size: .68rem;
}

.fx-manifest-print-signatures div {
    width: 35%;
    border-top: 1px solid #374151;
    padding-top: .28rem;
    text-align: center;
}

.fx-manifest-print-page-footer {
    margin-top: .65rem;
    padding-top: .28rem;
    border-top: 1px solid #d1d5db;
    font-size: .6rem;
    color: #4b5563;
    align-items: center;
    gap: .5rem;
}

.fx-manifest-print-page-footer span:last-child {
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

@media print {
    .fx-print-toolbar { display: none !important; }

    .fx-manifest-print {
        margin: 0;
        max-width: none;
        padding: 0;
        border: none;
        font-size: 8pt;
    }

    .fx-manifest-print-page-break {
        break-after: page;
        page-break-after: always;
    }

    .fx-manifest-print-head h1 { font-size: 11pt; font-weight: 700; }
    .fx-manifest-print-number strong { font-size: 12pt; color: #1f2937; }
    .fx-manifest-print-table { font-size: 7.5pt; color: #1f2937; }
    .fx-manifest-print-table th,
    .fx-manifest-print-table td { padding: .1rem .18rem; color: #1f2937; }
    .fx-manifest-print-client td {
        background: #e5e7eb !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-weight: 700;
    }
    .fx-manifest-print-table th {
        font-weight: 700;
        background: transparent !important;
        color: #1f2937 !important;
        border-bottom-width: 2px;
    }
    .fx-manifest-print-summary {
        border-color: #1f2937;
        background: transparent;
    }
    .fx-manifest-print-summary strong { font-size: 11pt; color: #1f2937; }
    .fx-manifest-print-signatures { margin-top: 1.25rem; }
    .fx-manifest-print-page-footer {
        margin-top: .5rem;
        padding-top: .3rem;
        font-size: 7.5pt;
        color: #1f2937;
    }

    body { background: #fff !important; }

    @page {
        size: letter;
        margin: .35in .4in .4in .4in;
    }
}
.fx-field-error-panel {
    border: 1px solid var(--mud-palette-error) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mud-palette-error) 35%, transparent);
}

.fx-field-error-alert {
    outline: 2px solid var(--mud-palette-error);
    outline-offset: 1px;
}

.fx-corp-guides-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.fx-corp-guide-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.fx-corp-guide-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    text-align: left;
    border: 1px solid #d8dee6;
    background: #f8fafc;
    border-radius: 10px;
    padding: .85rem 1rem;
    cursor: pointer;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.fx-corp-guide-section strong {
    font-size: 1.35rem;
    line-height: 1.1;
}

.fx-corp-guide-section span {
    font-weight: 600;
}

.fx-corp-guide-section small {
    color: #667085;
}

.fx-corp-guide-section.active {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mud-palette-primary) 35%, transparent);
}

@media (max-width: 720px) {
    .fx-corp-guide-sections {
        grid-template-columns: 1fr;
    }
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Comunicación interna */
.fx-chat-page { overflow-x: hidden; }
.fx-chat-sidebar {
    min-height: min(78vh, 820px); height: min(78vh, 820px);
    display: flex; flex-direction: column; overflow: hidden;
}
.fx-chat-list {
    display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0;
    align-content: flex-start; justify-content: flex-start;
    overflow-x: hidden; overflow-y: auto; padding: 2px 2px 6px;
}
.fx-chat-list-item {
    width: 100%; max-width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 1px;
    flex: 0 0 auto; align-self: stretch;
    text-align: left; border: 1px solid #e4e8ee; background: #fff;
    border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit;
    overflow: hidden; min-height: 0; height: auto;
}
.fx-chat-list-item:hover { border-color: #c9d2de; background: #f8fafc; }
.fx-chat-list-item.active { border-color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 8%, #fff); }
.fx-chat-list-title-row {
    display: flex; justify-content: space-between; gap: 6px; align-items: center; min-width: 0;
}
.fx-chat-list-title-row strong {
    min-width: 0; font-size: .88rem; line-height: 1.2; font-weight: 700;
    color: #101828; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-chat-list-meta {
    display: flex; flex-wrap: nowrap; gap: 6px;
    color: #98a2b3; font-size: .7rem; line-height: 1.2;
    white-space: nowrap; overflow: hidden;
}
.fx-chat-badge {
    display: inline-flex; flex: 0 0 auto; min-width: 18px; height: 18px; align-items: center; justify-content: center;
    padding: 0 5px; border-radius: 99px; background: #b42318; color: #fff; font-size: .68rem; font-weight: 700;
}
.fx-chat-thread {
    min-height: min(78vh, 820px); height: min(78vh, 820px);
    display: flex; flex-direction: column; overflow: hidden;
}
.fx-chat-thread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; min-width: 0; }
.fx-chat-thread-head > div { min-width: 0; overflow: hidden; }
.fx-chat-messages {
    flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column;
    gap: 8px; padding: 8px; background: #f6f7f9; border-radius: 10px; border: 1px solid #e8edf3;
}
.fx-chat-bubble { max-width: min(85%, 100%); padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e8ee; overflow-wrap: anywhere; }
.fx-chat-bubble.mine { align-self: flex-end; background: color-mix(in srgb, var(--mud-palette-primary) 12%, #fff); border-color: color-mix(in srgb, var(--mud-palette-primary) 35%, #e4e8ee); }
.fx-chat-bubble.theirs { align-self: flex-start; }
.fx-chat-bubble-meta { font-size: .72rem; color: #667085; margin-bottom: 4px; overflow-wrap: anywhere; }
.fx-chat-bubble-body { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: .92rem; }
.fx-chat-composer {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end;
    margin-top: 8px; flex: 0 0 auto; min-width: 0; overflow: hidden;
}
.fx-chat-composer .mud-input-control,
.fx-chat-composer .mud-input,
.fx-chat-composer .mud-input-slot { max-width: 100%; min-width: 0; }
.fx-chat-composer textarea { resize: none; max-height: 3.2rem; overflow-x: hidden !important; overflow-y: auto !important; }
.fx-chat-empty { flex: 1; min-height: 360px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; color: #667085; padding: 24px; }
.fx-chat-inbox-alert .mud-alert-message { width: 100%; }
.fx-chat-inbox-content { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fx-chat-inbox-content .mud-typography-subtitle2 { margin-bottom: 2px; font-weight: 800; }
.fx-chat-inbox-content .mud-button-root { flex: 0 0 auto; }
@media (max-width: 640px) {
  .fx-chat-inbox-content { align-items: stretch; flex-direction: column; }
  .fx-chat-inbox-content .mud-button-root { align-self: flex-start; }
}
.fx-chat-modal {
    position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 16px; pointer-events: none;
}
.fx-chat-modal > .mud-paper { width: min(520px, 100%); pointer-events: auto; }

@media (max-width: 960px) {
    .fx-chat-sidebar, .fx-chat-thread { min-height: 0; height: auto; max-height: none; }
    .fx-chat-messages { min-height: 280px; max-height: 52vh; }
    .fx-chat-list { max-height: 42vh; }
    .fx-chat-list-item {
        padding: 5px 8px;
    }
}


/* ===== Calendario operativo (sucursal / admin) ===== */
.fx-cal-page { --fx-cal-ink: #12263a; --fx-cal-muted: #5c6573; --fx-cal-line: #dde3ea; --fx-cal-accent: #0b3a66; --fx-cal-amber: #c47a2c; }
.fx-cal-hero { align-items: flex-end; gap: 16px; }
.fx-cal-kicker {
    margin: 0 0 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--fx-cal-amber); font-weight: 700;
}
.fx-cal-nav { display: flex; align-items: center; gap: 6px; }
.fx-cal-nav-wide { flex-wrap: wrap; }
.fx-cal-month {
    min-width: 9.5rem; text-align: center; font-weight: 800; font-size: 1.05rem;
    color: var(--fx-cal-ink); text-transform: capitalize;
}
.fx-cal-summary {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
    margin: 0 0 14px; animation: fxCalFadeUp .45s ease both;
}
.fx-cal-sum-item {
    padding: 12px 10px; border-radius: 12px; background:
        linear-gradient(160deg, #f7f9fc 0%, #eef3f8 100%);
    border: 1px solid var(--fx-cal-line); text-align: center;
}
.fx-cal-sum-val { display: block; font-size: 1.35rem; font-weight: 800; color: var(--fx-cal-accent); line-height: 1.1; }
.fx-cal-sum-lbl { display: block; margin-top: 4px; font-size: .72rem; color: var(--fx-cal-muted); font-weight: 600; }
.fx-cal-legend {
    display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px;
    font-size: .78rem; color: var(--fx-cal-muted); animation: fxCalFadeUp .5s ease both;
}
.fx-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fx-cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.fx-cal-dot-c { background: #3b82f6; }
.fx-cal-dot-r { background: #22a06b; }
.fx-cal-dot-m { background: #d97706; }
.fx-cal-dot-t { background: #7c3aed; }
.fx-cal-dot-rx { background: #4f46e5; }
.fx-cal-dot-e { background: #0f766e; }
.fx-cal-board {
    padding: 12px; border-radius: 16px;
    background:
        radial-gradient(1200px 400px at 10% -20%, rgba(11, 58, 102, .08), transparent 55%),
        linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
    border: 1px solid var(--fx-cal-line);
    animation: fxCalFadeUp .55s ease both;
}
.fx-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fx-cal-head {
    text-align: center; font-weight: 700; font-size: .72rem; letter-spacing: .06em;
    text-transform: uppercase; padding: 6px 2px; color: var(--fx-cal-muted);
}
.fx-cal-cell {
    min-height: 96px; border: 1px solid var(--fx-cal-line); border-radius: 12px;
    padding: 8px; text-align: left; background: #fff; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    animation: fxCalCellIn .4s ease both; animation-delay: var(--fx-cal-delay, 0ms);
    display: flex; flex-direction: column; gap: 4px;
}
.fx-cal-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(18, 38, 58, .1);
    border-color: color-mix(in srgb, var(--fx-cal-accent) 35%, var(--fx-cal-line));
}
.fx-cal-cell:focus-visible { outline: 2px solid var(--fx-cal-accent); outline-offset: 2px; }
.fx-cal-empty { visibility: hidden; pointer-events: none; animation: none; }
.fx-cal-feriado { background: linear-gradient(160deg, #fff8ef, #ffefd6); }
.fx-cal-today { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fx-cal-accent) 55%, transparent); }
.fx-cal-selected { border-color: var(--fx-cal-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fx-cal-accent) 30%, transparent); }
.fx-cal-has { background: linear-gradient(180deg, #fff 0%, #f7fafc 100%); }
.fx-cal-daynum { font-weight: 800; font-size: .95rem; color: var(--fx-cal-ink); }
.fx-cal-feriado-label {
    font-size: .62rem; color: #a35f00; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
.fx-cal-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.fx-chip {
    font-size: .65rem; border-radius: 999px; padding: 2px 6px; font-weight: 700; line-height: 1.2;
}
.fx-chip-c { background: #dbeafe; color: #1d4ed8; }
.fx-chip-r { background: #dcfce7; color: #166534; }
.fx-chip-m { background: #ffedd5; color: #9a3412; }
.fx-chip-t { background: #ede9fe; color: #5b21b6; }
.fx-chip-rx { background: #e0e7ff; color: #3730a3; }
.fx-chip-e { background: #ccfbf1; color: #115e59; }
.fx-chip-caja { background: #d1fae5; color: #065f46; }
.fx-chip-rec { background: #fef3c7; color: #92400e; }
.fx-chip-debt { background: #fee2e2; color: #991b1b; }
.fx-cal-dot-caja { background: #059669; }
.fx-cal-dot-rec { background: #d97706; }
.fx-cal-dot-debt { background: #dc2626; }
.fx-cal-sum-debt .fx-cal-sum-val { color: #b91c1c; }

.fx-cal-modal-tabs {
    display: flex; gap: 4px; padding: 8px 16px 0; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    flex: 0 0 auto;
}
.fx-cal-modal-tabs button {
    border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: #64748b;
    cursor: pointer; border-bottom: 2px solid transparent; font-size: .9rem;
}
.fx-cal-modal-tabs button.active { color: #0b3a66; border-bottom-color: #0b3a66; }
.fx-cal-rec-form { display: grid; gap: 8px; }
.fx-cal-rec-item {
    display: flex; align-items: flex-start; gap: 8px; padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}
.fx-cal-rec-item.done .fx-cal-rec-copy strong { text-decoration: line-through; color: #94a3b8; }
.fx-cal-rec-copy { flex: 1; display: grid; gap: 2px; min-width: 0; }
.fx-cal-rec-copy small { color: #697186; font-size: .8rem; }

.fx-cal-modal-root {
    position: fixed; inset: 0; z-index: 1700; display: grid; place-items: center;
    padding: 16px; background: rgba(10, 21, 32, .48);
    backdrop-filter: blur(4px);
    animation: fxCalBackdrop .22s ease both;
}
.fx-cal-modal {
    width: min(720px, 100%);
    height: min(86vh, 900px);
    max-height: min(86vh, 900px);
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 28px 60px rgba(10, 21, 32, .28);
    display: flex; flex-direction: column;
    animation: fxCalModalIn .28s cubic-bezier(.2, .8, .2, 1) both;
    border: 1px solid rgba(255,255,255,.35);
}
.fx-cal-modal-loading { flex: 1; min-height: 220px; display: grid; place-items: center; }
.fx-cal-modal-head {
    flex: 0 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 18px 20px 12px;
    background: linear-gradient(135deg, #12263a 0%, #0b3a66 55%, #1a4f7a 100%);
    color: #fff;
}
.fx-cal-modal-head h2 {
    margin: 0; font-size: 1.25rem; font-weight: 800; text-transform: capitalize; line-height: 1.25;
}
.fx-cal-modal-head .fx-cal-kicker { color: #f0c48a; }
.fx-cal-modal-head .mud-icon-button { color: #fff !important; }
.fx-cal-badge-feriado {
    display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px;
    background: rgba(255, 186, 73, .2); color: #ffd89a; font-size: .75rem; font-weight: 700;
}
.fx-cal-modal-kpis {
    flex: 0 0 auto;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
    padding: 14px 16px 8px; background: #f6f8fb; border-bottom: 1px solid var(--fx-cal-line);
}
.fx-cal-kpi {
    border-radius: 10px; padding: 10px 6px; text-align: center; background: #fff;
    border: 1px solid var(--fx-cal-line);
}
.fx-cal-kpi strong { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1; }
.fx-cal-kpi span { display: block; margin-top: 4px; font-size: .68rem; color: var(--fx-cal-muted); font-weight: 600; }
.fx-cal-kpi-c strong { color: #1d4ed8; }
.fx-cal-kpi-r strong { color: #166534; }
.fx-cal-kpi-m strong { color: #9a3412; }
.fx-cal-kpi-t strong { color: #5b21b6; }
.fx-cal-kpi-rx strong { color: #3730a3; }
.fx-cal-kpi-e strong { color: #115e59; }
.fx-cal-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 16px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.fx-cal-section { margin-top: 12px; }
.fx-cal-section h3 {
    position: sticky; top: 0; z-index: 1;
    margin: 0 0 8px; padding: 8px 0 6px;
    font-size: .82rem; font-weight: 800; color: var(--fx-cal-ink);
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(180deg, #fff 70%, rgba(255,255,255,0));
}
.fx-cal-section h3 em {
    font-style: normal; font-size: .72rem; padding: 2px 8px; border-radius: 999px;
    background: #e8eef5; color: var(--fx-cal-accent); font-weight: 800;
}
.fx-cal-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-cal-section li a {
    display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
    border-radius: 10px; border: 1px solid var(--fx-cal-line); background: #fff;
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.fx-cal-section li a:hover { border-color: color-mix(in srgb, var(--fx-cal-accent) 40%, var(--fx-cal-line)); background: #f7fafc; }
.fx-cal-section li strong { color: var(--fx-cal-accent); font-size: .92rem; }
.fx-cal-section li span { color: var(--fx-cal-muted); font-size: .8rem; }
.fx-cal-section-meta {
    margin: 0 0 8px; font-size: .75rem; color: var(--fx-cal-muted); font-weight: 600;
}
.fx-cal-more {
    margin-top: 10px; width: 100%;
    border: 1px dashed color-mix(in srgb, var(--fx-cal-accent) 35%, var(--fx-cal-line));
    background: #f7fafc; color: var(--fx-cal-accent);
    border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.fx-cal-more:hover { background: #eef4fa; }
.fx-cal-empty-day {
    display: grid; place-items: center; gap: 8px; padding: 36px 16px; color: var(--fx-cal-muted); text-align: center;
}
.fx-cal-empty-day p { margin: 0; font-weight: 600; }

@keyframes fxCalFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fxCalCellIn {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fxCalBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fxCalModalIn {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
    .fx-cal-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fx-cal-modal-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fx-cal-cell { min-height: 76px; padding: 6px; }
    .fx-chip { font-size: .58rem; }
}
@media (max-width: 560px) {
    .fx-cal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-cal-board { padding: 8px; }
    .fx-cal-grid { gap: 4px; }
}
