/* -------------------------------------------------------------------------- */
/* Shell + overlay Filament (fi-*) — no cambia markup ni Livewire             */
/* -------------------------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) {
    --bc-display: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
    --bc-ui: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
    --bc-ink: #111827;
    --bc-ink-muted: rgba(17, 24, 39, 0.62);
    --bc-ink-soft: rgba(17, 24, 39, 0.46);
    --bc-surface: #f6f6f7;
    --bc-surface-soft: rgba(17, 24, 39, 0.04);
    --bc-border: rgba(17, 24, 39, 0.1);
    --bc-border-strong: rgba(17, 24, 39, 0.16);
    --bc-canvas: #ececee;
    --bc-sidebar: #e6e6e8;
    --bc-radius: 0.875rem;
    --bc-radius-sm: 0.65rem;
    --bc-radius-lg: 1.05rem;
    --bc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bc-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
    color-scheme: light;
    font-family: var(--bc-ui);
    background-color: var(--bc-canvas);
    color: var(--bc-ink);
    accent-color: var(--bc-primary, #E83010);
    caret-color: var(--bc-primary, #E83010);
}

.dark .fi-body:not(:has(.bh-hero)),
.fi-body:not(:has(.bh-hero)).dark,
html.dark .fi-body:not(:has(.bh-hero)) {
    --bc-ink: #fafafa;
    --bc-ink-muted: rgba(250, 250, 250, 0.68);
    --bc-ink-soft: rgba(250, 250, 250, 0.48);
    --bc-surface: #18181b;
    --bc-surface-soft: rgba(255, 255, 255, 0.06);
    --bc-border: rgba(255, 255, 255, 0.1);
    --bc-border-strong: rgba(255, 255, 255, 0.16);
    --bc-canvas: #09090b;
    --bc-sidebar: #111113;
    --bc-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
    color-scheme: dark;
    background-color: var(--bc-canvas);
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) ::selection {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.22);
    color: var(--bc-ink);
}

/* Topbar ----------------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-topbar {
    position: relative;
    min-height: var(--topbar-height);
    padding-inline: 1.15rem;
    background: var(--bc-surface);
    box-shadow: none;
    --tw-ring-shadow: 0 0 #0000;
    border-bottom: 1px solid var(--bc-border);
    font-family: var(--bc-ui);
}

.fi-body:not(:has(.bh-hero)) .fi-topbar::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: var(--bc-primary, #E83010);
    pointer-events: none;
}

.fi-body:not(:has(.bh-hero)) .fi-topbar-start {
    gap: 0.35rem;
}

.fi-body:not(:has(.bh-hero)) .fi-topbar-start .fi-logo,
.fi-body:not(:has(.bh-hero)) .fi-logo {
    height: auto !important;
    display: flex;
    align-items: center;
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-topbar-end {
    gap: 0.55rem;
}

/* Marca ------------------------------------------------------------------ */

.bc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--bc-ink);
    text-decoration: none;
}

.bc-brand__mark,
.bc-brand__fallback {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.6rem;
    object-fit: contain;
    background: #fff;
    box-shadow:
        0 0 0 1px var(--bc-border),
        0 6px 14px rgba(7, 17, 31, 0.06);
    flex-shrink: 0;
}

.dark .bc-brand__mark,
.dark .bc-brand__fallback,
html.dark .bc-brand__mark,
html.dark .bc-brand__fallback {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 6px 14px rgba(0, 0, 0, 0.35);
}

.bc-brand__fallback {
    display: grid;
    place-items: center;
    font-family: var(--bc-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bc-primary, #E83010);
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.12);
}

.bc-brand__name {
    font-family: var(--bc-display);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--bc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 18rem;
}

/* Campaña (tenant) ------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-sidebar .fi-tenant-menu {
    margin: 0.75rem 0.9rem 0.15rem;
}

.fi-body:not(:has(.bh-hero)) .fi-tenant-menu-trigger {
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.85rem;
    background: var(--bc-surface);
    box-shadow: 0 0 0 1px var(--bc-border);
    transition:
        background 160ms var(--bc-ease),
        box-shadow 160ms var(--bc-ease);
}

.fi-body:not(:has(.bh-hero)) .fi-tenant-menu-trigger:hover,
.fi-body:not(:has(.bh-hero)) .fi-tenant-menu-trigger:focus-visible {
    background: var(--bc-surface);
    box-shadow:
        0 0 0 1px rgba(var(--bc-primary-rgb, 232, 48, 16), 0.45),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

.fi-body:not(:has(.bh-hero)) .fi-tenant-avatar {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.55rem !important;
    object-fit: contain !important;
    background: #fff;
    box-shadow: 0 0 0 1px var(--bc-border);
}

.fi-body:not(:has(.bh-hero)) .fi-tenant-menu-trigger-tenant-name {
    font-family: var(--bc-ui);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-tenant-menu-trigger-current-tenant-label {
    font-size: 0.6875rem;
    letter-spacing: 0.01em;
    color: var(--bc-ink-soft);
}

/* Búsqueda --------------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-global-search-ctn {
    min-width: 13.5rem;
}

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-input-wrp,
.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-global-search .fi-input-wrp {
    border-radius: 999px !important;
    background: var(--bc-surface-soft) !important;
    box-shadow: 0 0 0 1px var(--bc-border) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-input-wrp:focus-within {
    background: var(--bc-surface) !important;
    box-shadow: 0 0 0 2px rgba(var(--bc-primary-rgb, 232, 48, 16), 0.28) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-input,
.fi-body:not(:has(.bh-hero)) .fi-topbar input {
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-input::placeholder,
.fi-body:not(:has(.bh-hero)) .fi-topbar input::placeholder {
    color: var(--bc-ink-soft);
}

/* Notificaciones y usuario ----------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-icon-btn,
.fi-body:not(:has(.bh-hero)) .fi-topbar-database-notifications-btn {
    border-radius: 999px;
    color: var(--bc-ink-muted);
}

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-icon-btn:hover,
.fi-body:not(:has(.bh-hero)) .fi-topbar-database-notifications-btn:hover {
    background: var(--bc-surface-soft);
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-user-menu-trigger {
    border-radius: 999px;
}

.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-avatar,
.fi-body:not(:has(.bh-hero)) .fi-topbar .fi-user-avatar {
    width: 2rem;
    height: 2rem;
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.18);
    color: var(--bc-primary, #E83010);
    font-family: var(--bc-display);
    font-weight: 750;
    box-shadow: 0 0 0 1px rgba(var(--bc-primary-rgb, 232, 48, 16), 0.28);
}

.dark .fi-body:not(:has(.bh-hero)) .fi-topbar .fi-avatar,
.dark .fi-body:not(:has(.bh-hero)) .fi-topbar .fi-user-avatar,
html.dark .fi-body:not(:has(.bh-hero)) .fi-topbar .fi-avatar,
html.dark .fi-body:not(:has(.bh-hero)) .fi-topbar .fi-user-avatar {
    color: #ffc9bf;
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.28);
}

/* Sidebar header alineado con la topbar ---------------------------------- */

.fi-body:not(:has(.bh-hero)).fi-body-has-topbar .fi-sidebar-header {
    background: var(--bc-surface);
    box-shadow: none;
    --tw-ring-shadow: 0 0 #0000;
    border-bottom: 1px solid var(--bc-border);
}

/* Breadcrumbs y título de página ----------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-breadcrumbs {
    margin-bottom: 0.35rem;
}

.fi-body:not(:has(.bh-hero)) .fi-breadcrumbs-item-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bc-ink-soft) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-breadcrumbs-item:last-child .fi-breadcrumbs-item-label {
    color: var(--bc-ink-muted) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-header-heading {
    font-family: var(--bc-display);
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--bc-ink) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-header-subheading {
    color: var(--bc-ink-muted) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-header.fi-header-has-breadcrumbs .fi-header-actions-ctn {
    margin-top: 0;
}

.fi-body:not(:has(.bh-hero)) .fi-page-header-main-ctn {
    gap: 1.5rem;
    padding-block: 1.5rem 1.75rem;
}

.fi-body:not(:has(.bh-hero)) .fi-page-content {
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

.fi-body:not(:has(.bh-hero)) .fi-main {
    padding-inline: 1.25rem;
}

@media (min-width: 768px) {
    .fi-body:not(:has(.bh-hero)) .fi-main {
        padding-inline: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .fi-body:not(:has(.bh-hero)) .fi-main {
        padding-inline: 2rem;
    }

    .fi-body:not(:has(.bh-hero)) .fi-header-heading {
        font-size: 1.65rem;
    }
}

@media (max-width: 1024px) {
    .bc-brand__name {
        max-width: 9.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                    */
/* -------------------------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-sidebar {
    background: var(--bc-sidebar);
}

@media (min-width: 1024px) {
    .fi-body:not(:has(.bh-hero)) .fi-sidebar.fi-sidebar-open,
    .fi-body:not(:has(.bh-hero)) .fi-sidebar:not(.fi-sidebar-open) {
        background: transparent;
    }

    .fi-body:not(:has(.bh-hero)) .fi-sidebar-nav {
        margin: 0.65rem 0.55rem 0.9rem;
        padding: 0.55rem 0.45rem 1.25rem;
        border-radius: var(--bc-radius-lg);
        background: color-mix(in srgb, var(--bc-sidebar) 88%, var(--bc-surface));
        box-shadow: 0 0 0 1px var(--bc-border);
    }
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-nav {
    gap: 1.35rem;
    padding-inline: 0.85rem;
    padding-block: 1.15rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.35) transparent;
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-nav-groups {
    gap: 1.35rem;
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-group-label {
    padding-inline: 0.65rem;
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bc-ink-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-item-btn {
    border-radius: var(--bc-radius-sm);
    padding: 0.45rem 0.6rem;
    transition:
        background 160ms var(--bc-ease),
        color 160ms var(--bc-ease);
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-item-label {
    font-size: 0.875rem;
    font-weight: 550;
    color: var(--bc-ink-muted);
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-item-btn > .fi-icon {
    color: var(--bc-ink-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover,
.fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:focus-visible {
    background: var(--bc-surface-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover > .fi-sidebar-item-label,
.fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover > .fi-icon {
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.12);
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label,
.fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: var(--bc-primary, #E83010);
    font-weight: 650;
}

.dark .fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
html.dark .fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.2);
}

.dark .fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label,
.dark .fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon,
html.dark .fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label,
html.dark .fi-body:not(:has(.bh-hero)) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: #ffc9bf;
}

/* -------------------------------------------------------------------------- */
/* Superficies: secciones, tablas, vacíos, widgets                            */
/* -------------------------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-section:not(.fi-section-not-contained):not(.fi-aside),
.fi-body:not(:has(.bh-hero)) .fi-ta-ctn,
.fi-body:not(:has(.bh-hero)) .fi-empty-state:not(.fi-empty-state-not-contained),
.fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat,
.fi-body:not(:has(.bh-hero)) .fi-tabs:not(.fi-contained),
.fi-body:not(:has(.bh-hero)) .fi-wi-pickup-stock {
    background: var(--bc-surface);
    border-radius: var(--bc-radius);
    box-shadow: 0 0 0 1px var(--bc-border);
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
}

.fi-body:not(:has(.bh-hero)) .fi-wi-pickup-stock article,
.fi-body:not(:has(.bh-hero)) .fi-wi-pickup-stock .bc-pickup-stock-summary {
    background: color-mix(in srgb, var(--bc-surface) 72%, var(--bc-canvas));
    border: 1px solid var(--bc-border);
}

.fi-body:not(:has(.bh-hero)) .fi-wi-pickup-stock .bc-pickup-stock-slot {
    background: var(--bc-surface-soft);
    border: 1px solid var(--bc-border);
}

.fi-body:not(:has(.bh-hero)) .fi-section:not(.fi-aside) > .fi-section-header {
    padding: 1rem 1.25rem;
}

.fi-body:not(:has(.bh-hero)) .fi-section-header-heading,
.fi-body:not(:has(.bh-hero)) .fi-ta-header-heading,
.fi-body:not(:has(.bh-hero)) .fi-empty-state-heading,
.fi-body:not(:has(.bh-hero)) .fi-account-widget-heading {
    font-family: var(--bc-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bc-ink) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-section-header-description,
.fi-body:not(:has(.bh-hero)) .fi-ta-header-description,
.fi-body:not(:has(.bh-hero)) .fi-empty-state-description {
    color: var(--bc-ink-muted) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-section:not(.fi-aside).fi-section-has-header:not(.fi-collapsed) > .fi-section-content-ctn,
.fi-body:not(:has(.bh-hero)) .fi-ta-header,
.fi-body:not(:has(.bh-hero)) .fi-ta-header-toolbar,
.fi-body:not(:has(.bh-hero)) .fi-ta-ctn .fi-pagination,
.fi-body:not(:has(.bh-hero)) .fi-section-content-ctn > .fi-section-footer {
    border-color: var(--bc-border);
}

/* Stats ------------------------------------------------------------------ */

.fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat {
    padding: 1.15rem 1.25rem;
}

.fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-label {
    font-size: 0.8125rem;
    font-weight: 550;
    color: var(--bc-ink-muted);
}

.fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-value {
    font-family: var(--bc-display);
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-description:not(.fi-color) {
    color: var(--bc-ink-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-description.fi-color {
    color: var(--text);
}

.dark .fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-description.fi-color,
html.dark .fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-description.fi-color {
    color: var(--dark-text);
}

.fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-description.fi-color .fi-icon {
    color: inherit;
}

/* Tablas ----------------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-ta-header-cell {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--bc-ink-muted) !important;
    padding-block: 0.7rem;
}

.fi-body:not(:has(.bh-hero)) .fi-ta-header-cell .fi-ta-header-cell-sort-btn {
    color: inherit;
}

.fi-body:not(:has(.bh-hero)) .fi-ta-cell {
    color: var(--bc-ink);
    font-variant-numeric: tabular-nums;
}

.fi-body:not(:has(.bh-hero)) .fi-ta-table tbody > tr {
    transition: background 140ms var(--bc-ease);
}

.fi-body:not(:has(.bh-hero)) .fi-ta-table tbody > tr:hover > td {
    background: var(--bc-surface-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-ta-table tbody > tr.fi-selected > td,
.fi-body:not(:has(.bh-hero)) .fi-ta-table tbody > tr.fi-ta-record-selected > td {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.08);
}

.fi-body:not(:has(.bh-hero)) .fi-ta-table {
    --tw-divide-opacity: 1;
    border-color: var(--bc-border);
}

.fi-body:not(:has(.bh-hero)) .fi-ta-table > :not(caption) > * {
    border-color: var(--bc-border);
}

.fi-body:not(:has(.bh-hero)) .fi-ta-selection-indicator,
.fi-body:not(:has(.bh-hero)) .fi-ta-filter-indicators,
.fi-body:not(:has(.bh-hero)) .fi-ta-reorder-indicator {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.06);
    border-color: var(--bc-border);
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-pagination-overview,
.fi-body:not(:has(.bh-hero)) .fi-pagination-item-label {
    color: var(--bc-ink-muted);
}

.fi-body:not(:has(.bh-hero)) .fi-pagination-item.fi-active .fi-pagination-item-label {
    color: var(--bc-primary, #E83010);
    font-weight: 650;
}

/* Formularios ------------------------------------------------------------ */

.fi-body:not(:has(.bh-hero)) .fi-fo-field-label-content {
    font-weight: 600;
    color: var(--bc-ink) !important;
}

.fi-body:not(:has(.bh-hero)) .fi-input-wrp:not(.fi-disabled) {
    background: var(--bc-surface);
    border-radius: var(--bc-radius-sm);
    box-shadow: 0 0 0 1px var(--bc-border-strong);
    --tw-ring-shadow: 0 0 #0000;
}

.fi-body:not(:has(.bh-hero)) .fi-input-wrp:not(.fi-disabled):focus-within {
    box-shadow: 0 0 0 2px rgba(var(--bc-primary-rgb, 232, 48, 16), 0.35);
}

.fi-body:not(:has(.bh-hero)) .fi-input,
.fi-body:not(:has(.bh-hero)) .fi-select-input,
.fi-body:not(:has(.bh-hero)) .fi-textarea {
    color: var(--bc-ink);
    font-family: var(--bc-ui);
}

.fi-body:not(:has(.bh-hero)) .fi-input::placeholder,
.fi-body:not(:has(.bh-hero)) textarea::placeholder {
    color: var(--bc-ink-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-input-wrp.fi-disabled {
    background: var(--bc-surface-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-fieldset:not(.fi-fieldset-not-contained) {
    border-radius: var(--bc-radius);
    border-color: var(--bc-border);
}

/* Botones ---------------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-btn {
    border-radius: var(--bc-radius-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition:
        background 160ms var(--bc-ease),
        box-shadow 160ms var(--bc-ease),
        color 160ms var(--bc-ease),
        filter 160ms var(--bc-ease);
}

.fi-body:not(:has(.bh-hero)) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-btn-color-gray):not(label) {
    background-color: var(--bc-primary, #E83010) !important;
    color: #fff !important;
}

.fi-body:not(:has(.bh-hero)) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-disabled):not([disabled]):hover {
    filter: brightness(0.94);
}

.fi-body:not(:has(.bh-hero)) .fi-btn.fi-outlined {
    background: transparent;
    box-shadow: 0 0 0 1px var(--bc-border-strong);
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-btn.fi-outlined:not(.fi-disabled):hover {
    background: var(--bc-surface-soft);
}

.fi-body:not(:has(.bh-hero)) .fi-icon-btn {
    border-radius: var(--bc-radius-sm);
    color: var(--bc-ink-muted);
}

.fi-body:not(:has(.bh-hero)) .fi-icon-btn:hover {
    background: var(--bc-surface-soft);
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-link {
    color: var(--bc-primary, #E83010);
}

/* Badges y tabs ---------------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-badge {
    border-radius: 0.5rem;
    font-weight: 600;
}

.fi-body:not(:has(.bh-hero)) .fi-tabs-item {
    border-radius: 0.6rem;
    font-weight: 550;
}

.fi-body:not(:has(.bh-hero)) .fi-tabs-item.fi-active {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.1);
}

.fi-body:not(:has(.bh-hero)) .fi-tabs-item.fi-active .fi-tabs-item-label,
.fi-body:not(:has(.bh-hero)) .fi-tabs-item.fi-active > .fi-icon {
    color: var(--bc-primary, #E83010);
}

.dark .fi-body:not(:has(.bh-hero)) .fi-tabs-item.fi-active .fi-tabs-item-label,
.dark .fi-body:not(:has(.bh-hero)) .fi-tabs-item.fi-active > .fi-icon,
html.dark .fi-body:not(:has(.bh-hero)) .fi-tabs-item.fi-active .fi-tabs-item-label,
html.dark .fi-body:not(:has(.bh-hero)) .fi-tabs-item.fi-active > .fi-icon {
    color: #ffc9bf;
}

/* Dropdowns, modales, notificaciones ------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-dropdown-panel,
.fi-body:not(:has(.bh-hero)) .fi-modal-window,
.fi-body:not(:has(.bh-hero)) .fi-notification {
    background: var(--bc-surface);
    border-radius: var(--bc-radius);
    box-shadow:
        0 0 0 1px var(--bc-border),
        var(--bc-shadow);
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-dropdown-list-item-label,
.fi-body:not(:has(.bh-hero)) .fi-modal-heading {
    color: var(--bc-ink);
}

.fi-body:not(:has(.bh-hero)) .fi-modal-heading {
    font-family: var(--bc-display);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.fi-body:not(:has(.bh-hero)) .fi-dropdown-list-item:hover,
.fi-body:not(:has(.bh-hero)) .fi-dropdown-list-item:focus {
    background: var(--bc-surface-soft);
}

/* Vacío ------------------------------------------------------------------ */

.fi-body:not(:has(.bh-hero)) .fi-empty-state-icon-bg {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.1);
}

.fi-body:not(:has(.bh-hero)) .fi-empty-state-icon-bg .fi-icon {
    color: var(--bc-primary, #E83010);
}

/* Toggle / checkbox acento de campaña ------------------------------------ */

.fi-body:not(:has(.bh-hero)) .fi-toggle.fi-toggle-on,
.fi-body:not(:has(.bh-hero)) input.fi-checkbox-input:checked {
    background-color: var(--bc-primary, #E83010);
    border-color: var(--bc-primary, #E83010);
}

/* Scrollbars (webkit) ---------------------------------------------------- */

.fi-body:not(:has(.bh-hero)) .fi-sidebar-nav::-webkit-scrollbar,
.fi-body:not(:has(.bh-hero)) .fi-ta-content::-webkit-scrollbar,
.fi-body:not(:has(.bh-hero)) .fi-modal-window::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-nav::-webkit-scrollbar-thumb,
.fi-body:not(:has(.bh-hero)) .fi-ta-content::-webkit-scrollbar-thumb,
.fi-body:not(:has(.bh-hero)) .fi-modal-window::-webkit-scrollbar-thumb {
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.32);
    border-radius: 999px;
}

.fi-body:not(:has(.bh-hero)) .fi-sidebar-nav::-webkit-scrollbar-track,
.fi-body:not(:has(.bh-hero)) .fi-ta-content::-webkit-scrollbar-track,
.fi-body:not(:has(.bh-hero)) .fi-modal-window::-webkit-scrollbar-track {
    background: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .fi-body:not(:has(.bh-hero)) .fi-btn,
    .fi-body:not(:has(.bh-hero)) .fi-sidebar-item-btn,
    .fi-body:not(:has(.bh-hero)) .fi-ta-table tbody > tr,
    .fi-body:not(:has(.bh-hero)) .fi-tenant-menu-trigger {
        transition: none;
    }
}

/* Paletas: modo claro (data-bc-palette-light) ------------------------------ */

html[data-bc-palette-light="mist"]:not(.dark) .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #e1e7ec;
    --bc-sidebar: #d5dde4;
    --bc-ink: #0f1720;
    --bc-ink-muted: rgba(15, 23, 32, 0.62);
    --bc-ink-soft: rgba(15, 23, 32, 0.48);
    --bc-surface: #eef2f5;
    --bc-surface-soft: rgba(15, 23, 32, 0.045);
    --bc-border: rgba(15, 23, 32, 0.1);
    --bc-border-strong: rgba(15, 23, 32, 0.16);
}

html[data-bc-palette-light="paper"]:not(.dark) .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #e6d7bc;
    --bc-sidebar: #dccbb0;
    --bc-ink: #07111f;
    --bc-ink-muted: rgba(7, 17, 31, 0.62);
    --bc-ink-soft: rgba(7, 17, 31, 0.48);
    --bc-surface: #f3e9d6;
    --bc-surface-soft: rgba(7, 17, 31, 0.05);
    --bc-border: rgba(7, 17, 31, 0.1);
    --bc-border-strong: rgba(7, 17, 31, 0.16);
}

html[data-bc-palette-light="snow"]:not(.dark) .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #ececee;
    --bc-sidebar: #e6e6e8;
    --bc-ink: #111827;
    --bc-ink-muted: rgba(17, 24, 39, 0.62);
    --bc-ink-soft: rgba(17, 24, 39, 0.46);
    --bc-surface: #f6f6f7;
    --bc-surface-soft: rgba(17, 24, 39, 0.04);
    --bc-border: rgba(17, 24, 39, 0.1);
    --bc-border-strong: rgba(17, 24, 39, 0.16);
}

html[data-bc-palette-light="slate"]:not(.dark) .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #d4e4f4;
    --bc-sidebar: #c5d8ec;
    --bc-ink: #0b1220;
    --bc-ink-muted: rgba(11, 18, 32, 0.64);
    --bc-ink-soft: rgba(11, 18, 32, 0.48);
    --bc-surface: #e8f1f8;
    --bc-surface-soft: rgba(11, 18, 32, 0.045);
    --bc-border: rgba(11, 18, 32, 0.1);
    --bc-border-strong: rgba(11, 18, 32, 0.16);
}

/* Paletas: modo oscuro (data-bc-palette-dark) ------------------------------ */

html.dark[data-bc-palette-dark="mist"] .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #12161c;
    --bc-sidebar: #161b22;
    --bc-ink: #eef2f5;
    --bc-ink-muted: rgba(238, 242, 245, 0.68);
    --bc-ink-soft: rgba(238, 242, 245, 0.48);
    --bc-surface: #1c232c;
    --bc-surface-soft: rgba(255, 255, 255, 0.05);
    --bc-border: rgba(255, 255, 255, 0.1);
    --bc-border-strong: rgba(255, 255, 255, 0.16);
}

html.dark[data-bc-palette-dark="paper"] .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #14110e;
    --bc-sidebar: #1a1612;
    --bc-ink: #f4efe6;
    --bc-ink-muted: rgba(244, 239, 230, 0.68);
    --bc-ink-soft: rgba(244, 239, 230, 0.48);
    --bc-surface: #1e1914;
    --bc-surface-soft: rgba(255, 244, 228, 0.06);
    --bc-border: rgba(255, 236, 214, 0.1);
    --bc-border-strong: rgba(255, 236, 214, 0.16);
}

html.dark[data-bc-palette-dark="snow"] .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #09090b;
    --bc-sidebar: #111113;
    --bc-ink: #fafafa;
    --bc-ink-muted: rgba(250, 250, 250, 0.68);
    --bc-ink-soft: rgba(250, 250, 250, 0.48);
    --bc-surface: #18181b;
    --bc-surface-soft: rgba(255, 255, 255, 0.06);
    --bc-border: rgba(255, 255, 255, 0.1);
    --bc-border-strong: rgba(255, 255, 255, 0.16);
}

html.dark[data-bc-palette-dark="slate"] .fi-body:not(:has(.bh-hero)) {
    --bc-canvas: #17324a;
    --bc-sidebar: #1c3a55;
    --bc-ink: #eef5fc;
    --bc-ink-muted: rgba(238, 245, 252, 0.72);
    --bc-ink-soft: rgba(238, 245, 252, 0.52);
    --bc-surface: #234666;
    --bc-surface-soft: rgba(210, 228, 255, 0.1);
    --bc-border: rgba(210, 228, 255, 0.16);
    --bc-border-strong: rgba(210, 228, 255, 0.24);
}

/* Selector de ambiente en el menú de usuario ------------------------------ */

.bc-ui-palette {
    display: grid;
    gap: 0.4rem;
    padding: 0.2rem 0.45rem 0.55rem;
}

.fi-dropdown-panel:has(.bc-ui-palette) {
    min-width: 16.25rem;
}

.bc-ui-palette__label {
    font-size: 0.625rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bc-ink-soft, rgba(7, 17, 31, 0.48));
    padding-inline: 0.2rem;
}

.bc-ui-palette__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.bc-ui-palette__swatch {
    display: grid;
    gap: 0.3rem;
    padding: 0.2rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    cursor: pointer;
    text-align: start;
    color: inherit;
}

.bc-ui-palette__swatch:hover .bc-ui-palette__preview {
    box-shadow: 0 0 0 1px rgba(7, 17, 31, 0.18);
}

.bc-ui-palette__preview {
    display: grid;
    place-items: end stretch;
    height: 2.35rem;
    padding: 0.35rem 0.35rem 0;
    border-radius: 0.5rem;
    background: var(--bc-swatch, #dbe3ea);
    box-shadow: inset 0 0 0 1px rgba(7, 17, 31, 0.14);
}

.bc-ui-palette__card {
    height: 1.15rem;
    border-radius: 0.35rem 0.35rem 0 0;
    background: var(--bc-swatch-surface, #fff);
    box-shadow: 0 -1px 0 rgba(7, 17, 31, 0.06);
}

.bc-ui-palette__name {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--bc-ink, #07111f);
    padding-inline: 0.1rem;
}

.bc-ui-palette__swatch.is-active .bc-ui-palette__preview {
    box-shadow:
        inset 0 0 0 1px rgba(7, 17, 31, 0.08),
        0 0 0 2px var(--bc-primary, #E83010);
}

.bc-ui-palette__swatch.is-active .bc-ui-palette__name {
    color: var(--bc-primary, #E83010);
}

.dark .bc-ui-palette__label,
html.dark .bc-ui-palette__label {
    color: rgba(244, 241, 235, 0.48);
}

.dark .bc-ui-palette__name,
html.dark .bc-ui-palette__name {
    color: #f4f1eb;
}

.dark .bc-ui-palette__preview,
html.dark .bc-ui-palette__preview {
    background: var(--bc-swatch-dark, #0c111b);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.dark .bc-ui-palette__card,
html.dark .bc-ui-palette__card {
    background: var(--bc-swatch-surface-dark, #151c28);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.dark .bc-ui-palette__swatch:hover .bc-ui-palette__preview,
html.dark .bc-ui-palette__swatch:hover .bc-ui-palette__preview {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.dark .bc-ui-palette__swatch.is-active .bc-ui-palette__preview,
html.dark .bc-ui-palette__swatch.is-active .bc-ui-palette__preview {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 2px var(--bc-primary, #E83010);
}

.dark .bc-ui-palette__swatch.is-active .bc-ui-palette__name,
html.dark .bc-ui-palette__swatch.is-active .bc-ui-palette__name {
    color: #ffc9bf;
}

.bc-ui-font__preview {
    display: grid;
    place-items: center;
    height: 2.35rem;
    border-radius: 0.5rem;
    font-family: var(--bc-font-preview, inherit);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--bc-ink, #07111f);
    background: var(--bc-surface-soft, rgba(7, 17, 31, 0.045));
    box-shadow: inset 0 0 0 1px var(--bc-border, rgba(7, 17, 31, 0.08));
}

.bc-ui-palette__swatch.is-active .bc-ui-font__preview {
    box-shadow:
        inset 0 0 0 1px rgba(7, 17, 31, 0.08),
        0 0 0 2px var(--bc-primary, #E83010);
}

.dark .bc-ui-font__preview,
html.dark .bc-ui-font__preview {
    color: #f4f1eb;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dark .bc-ui-palette__swatch.is-active .bc-ui-font__preview,
html.dark .bc-ui-palette__swatch.is-active .bc-ui-font__preview {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 2px var(--bc-primary, #E83010);
}

.bc-ui-palette__row--split {
    grid-template-columns: 1fr 1fr;
}

.bc-ui-chip {
    border: 0;
    border-radius: 999px;
    padding: 0.4rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--bc-ink, #07111f);
    background: var(--bc-surface-soft, rgba(7, 17, 31, 0.045));
    box-shadow: inset 0 0 0 1px var(--bc-border, rgba(7, 17, 31, 0.08));
    cursor: pointer;
}

.bc-ui-chip.is-active {
    color: var(--bc-primary, #E83010);
    box-shadow: 0 0 0 2px var(--bc-primary, #E83010);
}

.dark .bc-ui-chip,
html.dark .bc-ui-chip {
    color: #f4f1eb;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dark .bc-ui-chip.is-active,
html.dark .bc-ui-chip.is-active {
    color: #ffc9bf;
}

/* Tipografía por usuario -------------------------------------------------- */

html[data-bc-font="brand"] .fi-body:not(:has(.bh-hero)) {
    --bc-display: 'Barlow Condensed', ui-sans-serif, system-ui, sans-serif;
    --bc-ui: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
}

html[data-bc-font="clean"] .fi-body:not(:has(.bh-hero)) {
    --bc-display: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
    --bc-ui: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
}

html[data-bc-font="editorial"] .fi-body:not(:has(.bh-hero)) {
    --bc-display: 'Fraunces', ui-serif, Georgia, serif;
    --bc-ui: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
}

html[data-bc-font="system"] .fi-body:not(:has(.bh-hero)) {
    --bc-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bc-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Densidad compacta ------------------------------------------------------- */

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) {
    --topbar-height: 3.15rem;
}

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) .fi-header-heading {
    font-size: 1.22rem;
}

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat {
    padding: 0.85rem 1rem;
}

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) .fi-wi-stats-overview-stat-value {
    font-size: 1.5rem;
}

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) .fi-section:not(.fi-aside) > .fi-section-header {
    padding: 0.75rem 1rem;
}

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) .fi-ta-header-cell {
    padding-block: 0.45rem;
}

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) .fi-wi-pickup-stock {
    padding: 0.85rem 1rem;
}

html[data-bc-density="compact"] .fi-body:not(:has(.bh-hero)) .fi-sidebar-item-btn {
    min-height: 2.1rem;
}

/* Avisos antifraude ------------------------------------------------------ */

.bc-fraud-alerts {
    display: grid;
    gap: 1.15rem;
    padding: 1.15rem 1.2rem 1.2rem;
    border-radius: var(--bc-radius-lg);
    background:
        linear-gradient(135deg, rgba(var(--bc-primary-rgb, 232, 48, 16), 0.08), transparent 42%),
        var(--bc-surface);
    border: 1px solid var(--bc-border);
    box-shadow: var(--bc-shadow);
}

.bc-fraud-alerts--on {
    background:
        linear-gradient(135deg, rgba(var(--bc-primary-rgb, 232, 48, 16), 0.14), transparent 48%),
        var(--bc-surface);
}

.bc-fraud-alerts__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    min-width: 0;
}

.bc-fraud-alerts__mark {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    flex-shrink: 0;
    border-radius: 0.9rem;
    color: var(--bc-primary, #E83010);
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.12);
    box-shadow: 0 0 0 1px rgba(var(--bc-primary-rgb, 232, 48, 16), 0.12);
}

.bc-fraud-alerts__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.bc-fraud-alerts__copy {
    min-width: 0;
}

.bc-fraud-alerts__kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bc-ink-soft);
}

.bc-fraud-alerts__title {
    margin: 0;
    font-family: var(--bc-display);
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--bc-ink);
}

.bc-fraud-alerts__lede {
    margin: 0.35rem 0 0;
    max-width: 46rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--bc-ink-muted);
}

.bc-fraud-alerts__lede strong {
    color: var(--bc-ink);
    font-weight: 650;
}

.bc-fraud-alerts__channels {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .bc-fraud-alerts__channels {
        grid-template-columns: 1fr 1fr;
    }
}

.bc-fraud-alerts__chip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 5.1rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--bc-radius);
    border: 1px solid var(--bc-border);
    background: var(--bc-canvas);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 160ms var(--bc-ease),
        background 160ms var(--bc-ease),
        box-shadow 160ms var(--bc-ease);
}

.bc-fraud-alerts__chip:hover {
    border-color: var(--bc-border-strong);
}

.bc-fraud-alerts__chip.is-on {
    border-color: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.38);
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.08);
    box-shadow: 0 0 0 1px rgba(var(--bc-primary-rgb, 232, 48, 16), 0.08);
}

.bc-fraud-alerts__chip-icon {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    color: var(--bc-ink-muted);
    background: var(--bc-surface);
}

.bc-fraud-alerts__chip-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.bc-fraud-alerts__chip.is-on .bc-fraud-alerts__chip-icon {
    color: var(--bc-primary, #E83010);
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.12);
}

.bc-fraud-alerts__chip-body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.bc-fraud-alerts__chip-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bc-ink);
}

.bc-fraud-alerts__chip-hint {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--bc-ink-muted);
}

.bc-fraud-alerts__switch {
    position: relative;
    width: 2.35rem;
    height: 1.3rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.16);
    transition: background 160ms var(--bc-ease);
}

html.dark .bc-fraud-alerts__switch {
    background: rgba(255, 255, 255, 0.18);
}

.bc-fraud-alerts__chip.is-on .bc-fraud-alerts__switch {
    background: var(--bc-primary, #E83010);
}

.bc-fraud-alerts__switch-knob {
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(7, 17, 31, 0.2);
    transition: transform 160ms var(--bc-ease);
}

.bc-fraud-alerts__chip.is-on .bc-fraud-alerts__switch-knob {
    transform: translateX(1.05rem);
}

.bc-fraud-alerts__actions {
    display: flex;
    justify-content: flex-end;
}

.bc-fraud-alerts__cta,
.bc-fraud-alerts__ghost {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
}

.bc-fraud-alerts__cta {
    color: #fff;
    background: var(--bc-primary, #E83010);
}

.bc-fraud-alerts__ghost {
    color: var(--bc-ink-muted);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--bc-border);
}

.bc-fraud-alerts__ghost:hover {
    color: var(--bc-ink);
    box-shadow: inset 0 0 0 1px var(--bc-border-strong);
}

/* -------------------------------------------------------------------------- */
/* Intercambio TCV — hub de tarjetas (sin depender de utilidades Tailwind)    */
/* -------------------------------------------------------------------------- */

.bh-tcv {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.bh-tcv__lead {
    margin: 0;
    max-width: 40rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--bc-ink-muted);
}

.bh-tcv__group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bh-tcv__group-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bc-ink-soft);
}

.bh-tcv__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .bh-tcv__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .bh-tcv__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bh-tcv__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 10.5rem;
    padding: 1.1rem 1.15rem;
    text-align: left;
    cursor: pointer;
    color: inherit;
    background: var(--bc-surface);
    border: 0;
    border-radius: var(--bc-radius);
    box-shadow: 0 0 0 1px var(--bc-border);
    font: inherit;
    transition:
        box-shadow 160ms var(--bc-ease),
        transform 160ms var(--bc-ease),
        background 160ms var(--bc-ease);
}

.bh-tcv__card:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px var(--bc-border-strong),
        var(--bc-shadow);
}

.bh-tcv__card:focus-visible {
    outline: 2px solid var(--bc-primary, #E83010);
    outline-offset: 2px;
}

.bh-tcv__card.is-export:hover {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--bc-primary, #E83010) 45%, var(--bc-border)),
        var(--bc-shadow);
}

.bh-tcv__card.is-adjudication:hover {
    box-shadow:
        0 0 0 1px color-mix(in srgb, #b45309 45%, var(--bc-border)),
        var(--bc-shadow);
}

.bh-tcv__card.is-import:hover {
    box-shadow:
        0 0 0 1px color-mix(in srgb, #008840 45%, var(--bc-border)),
        var(--bc-shadow);
}

.bh-tcv__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: var(--bc-radius-sm);
    background: var(--bc-surface-soft);
    color: var(--bc-ink-muted);
}

.bh-tcv__icon svg,
.bh-tcv__icon .fi-icon,
.bh-tcv__icon .fi-icon svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
}

.bh-tcv__card.is-export .bh-tcv__icon {
    color: var(--bc-primary, #E83010);
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.1);
}

.bh-tcv__card.is-adjudication .bh-tcv__icon {
    color: #b45309;
    background: rgba(180, 83, 9, 0.12);
}

.bh-tcv__card.is-import .bh-tcv__icon {
    color: #008840;
    background: rgba(0, 136, 64, 0.1);
}

.bh-tcv__card.is-history .bh-tcv__icon {
    color: var(--bc-ink-muted);
    background: var(--bc-surface-soft);
}

.bh-tcv__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}

.bh-tcv__title {
    margin: 0;
    font-family: var(--bc-display);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bc-ink);
}

.bh-tcv__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--bc-ink-muted);
}

.bh-tcv__cta {
    margin-top: auto;
    padding-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--bc-primary, #E83010);
}

.bh-tcv__card:hover .bh-tcv__cta {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bh-tcv__detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.bh-tcv__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bc-ink-muted);
}

.bh-tcv__back:hover {
    color: var(--bc-ink);
}

.bh-tcv__detail-title {
    margin: 0;
    font-family: var(--bc-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bc-ink);
}

.bh-tcv__detail-desc {
    margin: 0.4rem 0 0;
    max-width: 36rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--bc-ink-muted);
}

.bh-tcv__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--bc-ink-muted);
    background: var(--bc-surface-soft);
    box-shadow: inset 0 0 0 1px var(--bc-border);
}

.bh-tcv__panel {
    padding: 1.15rem 1.25rem;
    background: var(--bc-surface);
    border-radius: var(--bc-radius);
    box-shadow: 0 0 0 1px var(--bc-border);
}

.bh-tcv__panel + .bh-tcv__panel {
    margin-top: 1rem;
}

.bh-tcv__panel-title {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bc-ink);
}

.bh-tcv__table-wrap {
    overflow-x: auto;
}

.bh-tcv__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.bh-tcv__table th {
    padding: 0.35rem 0.75rem 0.35rem 0;
    text-align: left;
    font-weight: 600;
    color: var(--bc-ink-soft);
}

.bh-tcv__table td {
    padding: 0.55rem 0.75rem 0.55rem 0;
    border-top: 1px solid var(--bc-border);
    color: var(--bc-ink);
    vertical-align: top;
}

.bh-tcv__table .is-muted {
    color: var(--bc-ink-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
}

.bh-tcv__empty {
    padding: 0.75rem 0;
    color: var(--bc-ink-soft);
}

/* Escritorio operativo ------------------------------------------------ */
.bh-dash-empty {
    margin: 0;
    padding: 0.75rem 0;
    color: var(--bc-ink-soft);
    font-size: 0.9rem;
}

.bh-dash-queue {
    display: grid;
    gap: 0.55rem;
}

.bh-dash-queue__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--bc-radius-sm);
    border: 1px solid var(--bc-border);
    background: var(--bc-surface-soft);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms var(--bc-ease), transform 160ms var(--bc-ease), background 160ms var(--bc-ease);
}

.bh-dash-queue__item:hover {
    border-color: var(--bc-border-strong);
    background: var(--bc-surface);
    transform: translateY(-1px);
}

.bh-dash-queue__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.08);
    color: var(--bc-primary, #E83010);
}

.bh-dash-queue__item--warning .bh-dash-queue__icon {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.bh-dash-queue__item--danger .bh-dash-queue__icon {
    background: rgba(196, 40, 13, 0.12);
    color: #c4280d;
}

.bh-dash-queue__item--success .bh-dash-queue__icon {
    background: rgba(0, 136, 64, 0.12);
    color: #008840;
}

.bh-dash-queue__item--info .bh-dash-queue__icon {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.bh-dash-queue__item--muted .bh-dash-queue__icon {
    background: var(--bc-surface-soft);
    color: var(--bc-ink-soft);
}

.bh-dash-queue__body {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.bh-dash-queue__label {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--bc-ink);
}

.bh-dash-queue__hint {
    font-size: 0.78rem;
    color: var(--bc-ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bh-dash-queue__count {
    min-width: 2.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    color: var(--bc-ink);
}

.bh-dash-queue__item--warning .bh-dash-queue__count {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #92400e;
}

.bh-dash-queue__item--danger .bh-dash-queue__count {
    background: rgba(196, 40, 13, 0.1);
    border-color: rgba(196, 40, 13, 0.24);
    color: #c4280d;
}

.bh-dash-queue__item--success .bh-dash-queue__count {
    background: rgba(0, 136, 64, 0.1);
    border-color: rgba(0, 136, 64, 0.24);
    color: #008840;
}

.bh-dash-shortcuts {
    display: grid;
    gap: 0.55rem;
}

.bh-dash-shortcuts__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: var(--bc-radius-sm);
    border: 1px solid var(--bc-border);
    background: var(--bc-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms var(--bc-ease), box-shadow 160ms var(--bc-ease), transform 160ms var(--bc-ease);
}

.bh-dash-shortcuts__card:hover {
    border-color: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.35);
    box-shadow: var(--bc-shadow);
    transform: translateY(-1px);
}

.bh-dash-shortcuts__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    background: linear-gradient(145deg, rgba(var(--bc-primary-rgb, 232, 48, 16), 0.14), rgba(var(--bc-primary-rgb, 232, 48, 16), 0.04));
    color: var(--bc-primary, #E83010);
}

.bh-dash-shortcuts__body {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.bh-dash-shortcuts__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--bc-ink);
}

.bh-dash-shortcuts__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--bc-primary, #E83010);
    background: rgba(var(--bc-primary-rgb, 232, 48, 16), 0.1);
}

.bh-dash-shortcuts__desc {
    font-size: 0.8rem;
    color: var(--bc-ink-muted);
}

.bh-dash-shortcuts__chevron {
    color: var(--bc-ink-soft);
}

.dark .bh-dash-queue__item--warning .bh-dash-queue__count,
.dark .bh-dash-queue__item--warning .bh-dash-queue__icon {
    color: #fbbf24;
}

.dark .bh-dash-queue__item--danger .bh-dash-queue__count,
.dark .bh-dash-queue__item--danger .bh-dash-queue__icon {
    color: #f87171;
}

.dark .bh-dash-queue__item--success .bh-dash-queue__count,
.dark .bh-dash-queue__item--success .bh-dash-queue__icon {
    color: #34d399;
}
