/*------------------------------
            ALPINE
------------------------------*/
[x-cloak] {
    display: none !important;
}

/*------------------------------
        FORM CONTROL
------------------------------*/
.form-control.form-control-solid.is-invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
}

.form-select.form-select-solid.is-invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
}

/*------------------------------
        LEGEND INDICATOR
------------------------------*/
.legend-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/*------------------------------
     BRAND COLORS — TBT LOGO
     Primary: #f5df23 (logo yellow)
     Primary inverse (text on primary): #1d1e1c
------------------------------*/

/* ── Bootstrap layer (lines 7-127 of style.bundle.css) ── */
:root,
[data-bs-theme=light] {
    --bs-primary: #f5df23;
    --bs-primary-rgb: 245, 223, 35;
    --bs-primary-text-emphasis: #564e0d;
    --bs-primary-bg-subtle: #fff9cf;
    --bs-primary-border-subtle: #f3e88a;
    --bs-link-color: #716710;
    --bs-link-color-rgb: 113, 103, 16;
    --bs-link-hover-color: #3d380a;
    --bs-link-hover-color-rgb: 61, 56, 10;
    --bs-focus-ring-color: rgba(245, 223, 35, 0.35);
}

[data-bs-theme=dark] {
    --bs-primary-text-emphasis: #f7eb82;
    --bs-primary-bg-subtle: #2a270f;
    --bs-primary-border-subtle: #8f8217;
    --bs-link-color: #f5df23;
    --bs-link-color-rgb: 245, 223, 35;
    --bs-link-hover-color: #f9ea65;
    --bs-link-hover-color-rgb: 249, 234, 101;
}

/* ── Metronic layer — light (lines 28507+ of style.bundle.css) ── */
[data-bs-theme=light] {
    --bs-primary: #f5df23;
    --bs-primary-active: #d7c41f;
    --bs-primary-light: #fff9cf;
    --bs-primary-inverse: #1d1e1c;
    --bs-primary-clarity: rgba(245, 223, 35, 0.28);
    /* menu links use primary color */
    --bs-menu-link-color-hover: #716710;
    --bs-menu-link-color-show: #716710;
    --bs-menu-link-color-here: #716710;
    --bs-menu-link-color-active: #716710;
    /* ribbon */
    --bs-ribbon-label-bg: #f5df23;
    --bs-ribbon-label-border-color: #d7c41f;
}

/* ── Metronic layer — dark (lines 28667+ of style.bundle.css) ── */
[data-bs-theme=dark] {
    --bs-primary: #f5df23;
    --bs-primary-rgb: 245, 223, 35;
    --bs-primary-active: #f9ea65;
    --bs-primary-light: #2a270f;
    --bs-primary-inverse: #1d1e1c;
    --bs-primary-clarity: rgba(245, 223, 35, 0.28);
    --bs-menu-link-color-hover: #f5df23;
    --bs-menu-link-color-show: #f5df23;
    --bs-menu-link-color-here: #f5df23;
    --bs-menu-link-color-active: #f5df23;
    --bs-ribbon-label-bg: #f5df23;
    --bs-ribbon-label-border-color: #e7d223;
}

/*------------------------------
   TIPOGRAFÍA UNIFICADA BACKOFFICE
   Escala alineada a design/bo-*/hifi (base 14px)
------------------------------*/
html:has(#kt_app_body) {
    font-size: 14px !important;
}

:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
    --bo-font-sans: Inter, system-ui, sans-serif;
    --bo-font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --bo-text-micro: 0.714rem;
    --bo-text-caption: 0.857rem;
    --bo-text-body: 1rem;
    --bo-text-body-lg: 1.143rem;
    --bo-text-title: 1.286rem;
    --bo-text-display: 1.714rem;
    --bo-text-display-lg: 2.286rem;
    --bo-leading-tight: 1.25;
    --bo-leading-normal: 1.5;
}

#kt_app_body,
#kt_app_body .modal,
#kt_app_body .menu-sub-dropdown {
    font-family: var(--bo-font-sans);
    font-size: var(--bo-text-body);
    line-height: var(--bo-leading-normal);
}

.bo-typo-page-title {
    font-family: var(--bo-font-sans);
    font-size: var(--bo-text-title);
    font-weight: 700;
    line-height: var(--bo-leading-tight);
}

.bo-typo-page-subtitle {
    font-family: var(--bo-font-sans);
    font-size: var(--bo-text-body);
    font-weight: 400;
    line-height: var(--bo-leading-normal);
}

.bo-typo-body {
    font-family: var(--bo-font-sans);
    font-size: var(--bo-text-body);
    font-weight: 400;
    line-height: var(--bo-leading-normal);
}

.bo-typo-body-lg {
    font-family: var(--bo-font-sans);
    font-size: var(--bo-text-body-lg);
    font-weight: 400;
    line-height: var(--bo-leading-normal);
}

.bo-typo-caption {
    font-family: var(--bo-font-sans);
    font-size: var(--bo-text-caption);
    font-weight: 600;
    line-height: var(--bo-leading-normal);
}

.bo-typo-micro {
    font-family: var(--bo-font-sans);
    font-size: var(--bo-text-micro);
    font-weight: 600;
    line-height: var(--bo-leading-tight);
}

.bo-typo-mono {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-body);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: var(--bo-leading-normal);
}

.bo-typo-mono-sm {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-caption);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: var(--bo-leading-normal);
}

.bo-typo-kpi {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-display);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: var(--bo-leading-tight);
}

.bo-typo-kpi-lg {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-display-lg);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: var(--bo-leading-tight);
}

/* Shell — sidebar, header, Metronic fs-* en scope backoffice */
#kt_app_body .menu-title {
    font-size: var(--bo-text-body);
    font-weight: 500;
}

#kt_app_body .menu-section {
    font-size: var(--bo-text-caption);
    letter-spacing: 0.06em;
}

#kt_app_body .page-heading,
#kt_app_body h1.page-heading,
#kt_app_body .fs-2.fw-bold,
#kt_app_body .fs-3.fw-bold {
    font-size: var(--bo-text-title) !important;
    line-height: var(--bo-leading-tight);
}

#kt_app_body .modal-title {
    font-size: var(--bo-text-title);
    font-weight: 600;
    line-height: var(--bo-leading-tight);
}

#kt_app_body .modal-body {
    font-size: var(--bo-text-body);
}

#kt_app_body .fs-7,
#kt_app_body .fs-8,
#kt_app_body .fs-9 {
    font-size: var(--bo-text-caption) !important;
}

#kt_app_body .fs-6 {
    font-size: var(--bo-text-body) !important;
}

#kt_app_body .fs-5 {
    font-size: var(--bo-text-body-lg) !important;
}

#kt_app_body .fs-4 {
    font-size: var(--bo-text-title) !important;
}

#kt_app_body .fs-3 {
    font-size: var(--bo-text-title) !important;
}

#kt_app_body .fs-2 {
    font-size: var(--bo-text-display) !important;
}

/* Filter chips compartidos */
.bo-filter-chips-panel {
    border-top: 1px dashed var(--bs-border-dashed-color, #dbdfe9);
    border-bottom: 1px dashed var(--bs-border-dashed-color, #dbdfe9);
}

.bo-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding: 0.75rem 0 1rem;
    font-size: var(--bo-text-caption);
}

.bo-chips-row .badge,
.bo-chips-row .btn {
    font-size: var(--bo-text-caption);
}

.bo-dashboard-map-loading {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    font-size: var(--bo-text-body);
    font-weight: 500;
    color: var(--bs-gray-700);
    gap: 0.5rem;
}

.bo-perfil-pencil-icon {
    font-size: var(--bo-text-micro);
}

/*------------------------------
       CUSTOM FRAMEWORK
------------------------------*/
[data-bs-theme=light] {
    --bs-app-bg-color: #ffffff;
    --bs-app-blank-bg-color: #ffffff;
    --bs-app-header-base-bg-color: #ffffff;
    --bs-app-header-base-box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
    --bs-app-toolbar-base-bg-color: #ffffff;
    --bs-app-toolbar-base-box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
    --bs-app-toolbar-base-border-top: 1px solid #F1F1F4;
    --bs-app-footer-bg-color: #ffffff;
    /* Sidebar tinted with subtle primary */
    --bs-app-header-base-menu-link-bg-color-active: #fff9cf;
    --bs-app-header-light-separator-color: #E4E6EF;
    --bs-app-sidebar-light-bg-color: #fffdf2;
    --bs-app-sidebar-light-box-shadow: 0 0 28px 0 rgba(82, 63, 105, 0.05);
    --bs-app-sidebar-light-scrollbar-color: #F1F1F4;
    --bs-app-sidebar-light-menu-heading-color: #99A1B7;
    --bs-app-sidebar-light-menu-link-bg-color-active: #fff4ad;
    --bs-app-sidebar-light-header-menu-link-bg-color-active: #f8e85e;
    --bs-app-sidebar-dark-bg-color: #1A1A1A;
    --bs-app-sidebar-dark-separator-color: #333333;
    --bs-app-sidebar-dark-menu-heading-color: #888888;
    --bs-app-sidebar-dark-toggle-btn-bg-color: #2A2A2A;
    --bs-app-layout-builder-toggle-bg-color: #2A2A2A;
}

[data-bs-theme=dark] {
    --bs-app-sidebar-light-bg-color: #1A1A1A;
    --bs-app-sidebar-light-menu-link-bg-color-active: #2a270f;
    --bs-app-header-base-menu-link-bg-color-active: #2a270f;
}

.form-control.form-control-solid {
    background-color: #FAFAF5;
}

.form-select.form-select-solid {
    background-color: #FAFAF5;
}

.select2-container--bootstrap5.select2-container--focus:not(.select2-container--disabled) .form-select-solid,
.select2-container--bootstrap5.select2-container--open:not(.select2-container--disabled) .form-select-solid {
    background-color: #FAFAF5;
}

[data-bs-theme=dark] .form-control.form-control-solid,
[data-bs-theme=dark] .form-select.form-select-solid,
[data-bs-theme=dark] .select2-container--bootstrap5.select2-container--focus:not(.select2-container--disabled) .form-select-solid,
[data-bs-theme=dark] .select2-container--bootstrap5.select2-container--open:not(.select2-container--disabled) .form-select-solid {
    background-color: #1E1E18;
}

.card {
    box-shadow: none;
}

.app-sidebar-logo {
    justify-content: center;
}

/* Active sidebar menu item — primary accent */
[data-kt-app-layout=light-sidebar] .app-sidebar .menu .menu-item .menu-link.active {
    transition: color 0.2s ease;
    background-color: #fff4ad;
    color: #3d380a;
}

[data-bs-theme=dark][data-kt-app-layout=light-sidebar] .app-sidebar .menu .menu-item .menu-link.active,
[data-bs-theme=dark] [data-kt-app-layout=light-sidebar] .app-sidebar .menu .menu-item .menu-link.active {
    background-color: #2a270f;
    color: #f7eb82;
}

.bg-light-transparent {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* -----------------------------------------------
   Backoffice Dashboard SBR — Alta Fidelidad
   ----------------------------------------------- */
.bo-dashboard-page {
    --bo-brand: #062362;
    --bo-danger: #F8285A;
    --bo-warning: #F59E0B;
    --bo-success: #17C653;
}

@keyframes bo-dashboard-pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(248, 40, 90, 0.15);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(248, 40, 90, 0);
    }
}

@keyframes bo-dashboard-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.bo-dashboard-skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: bo-dashboard-skeleton-shimmer 1.4s infinite;
    border-radius: 0.375rem;
}

.bo-dashboard-kpi {
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
    border: 1px solid #e4e6ef;
    background-color: #fff;
}

.bo-dashboard-kpi-label {
    font-size: var(--bo-text-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bo-dashboard-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.bo-dashboard-kpi-value {
    font-size: var(--bo-text-display-lg);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: var(--bo-font-mono);
}

.bo-dashboard-kpi-sub {
    font-size: var(--bo-text-caption);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.bo-dashboard-kpi--alert {
    border-color: #fecdd3;
    background-color: #fff1f2;
    border-left: 4px solid var(--bo-danger);
    animation: bo-dashboard-pulse-ring 3s ease-in-out infinite;
}

.bo-dashboard-kpi--alert .bo-dashboard-kpi-label {
    color: #e11d48;
}

.bo-dashboard-kpi--alert .bo-dashboard-kpi-icon {
    background-color: #ffe4e6;
    color: var(--bo-danger);
}

.bo-dashboard-kpi--alert .bo-dashboard-kpi-value {
    color: var(--bo-danger);
}

.bo-dashboard-kpi--alert .bo-dashboard-kpi-sub {
    color: #f43f5e;
}

.bo-dashboard-kpi--waiting {
    border-color: #fde68a;
    background-color: #fffbeb;
    border-left: 4px solid var(--bo-warning);
}

.bo-dashboard-kpi--waiting .bo-dashboard-kpi-label {
    color: #b45309;
}

.bo-dashboard-kpi--waiting .bo-dashboard-kpi-icon {
    background-color: #fef3c7;
    color: #d97706;
}

.bo-dashboard-kpi--waiting .bo-dashboard-kpi-value {
    color: #b45309;
}

.bo-dashboard-kpi--waiting .bo-dashboard-kpi-sub {
    color: #d97706;
}

.bo-dashboard-kpi--ok .bo-dashboard-kpi-label {
    color: #047857;
}

.bo-dashboard-kpi--ok .bo-dashboard-kpi-icon {
    background-color: #ecfdf5;
    color: var(--bo-success);
}

.bo-dashboard-kpi--ok .bo-dashboard-kpi-value {
    color: var(--bo-success);
}

.bo-dashboard-kpi--ok .bo-dashboard-kpi-sub {
    color: #9ca3af;
}

.bo-dashboard-kpi--neutral .bo-dashboard-kpi-label {
    color: #6b7280;
}

.bo-dashboard-kpi--neutral .bo-dashboard-kpi-icon {
    background-color: #f3f4f6;
    color: #6b7280;
}

.bo-dashboard-kpi--neutral .bo-dashboard-kpi-value {
    color: var(--bo-brand);
}

.bo-dashboard-kpi--neutral .bo-dashboard-kpi-sub {
    color: #9ca3af;
}

.bo-dashboard-kpi--muted {
    opacity: 0.6;
    border-left: none;
    animation: none;
}

.bo-dashboard-kpi--muted .bo-dashboard-kpi-value,
.bo-dashboard-kpi--muted .bo-dashboard-kpi-sub {
    color: #d1d5db !important;
}

@media (prefers-reduced-motion: reduce) {
    .bo-dashboard-kpi--alert {
        animation: none;
    }

    .bo-dashboard-skeleton {
        animation: none;
    }
}

.bo-dashboard-table-row--alert {
    background-color: rgba(255, 241, 243, 0.6);
}

.bo-dashboard-table-row--alert:hover {
    background-color: #fff0f3;
}

.bo-dashboard-table-row--waiting {
    background-color: rgba(255, 251, 235, 0.35);
}

.bo-dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: var(--bo-text-caption);
    font-weight: 600;
}

.bo-dashboard-status-badge::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.bo-dashboard-status-badge--alert {
    background-color: #ffe4e6;
    color: #be123c;
}

.bo-dashboard-status-badge--alert::before {
    background-color: var(--bo-danger);
}

.bo-dashboard-status-badge--waiting {
    background-color: #fef3c7;
    color: #b45309;
}

.bo-dashboard-status-badge--waiting::before {
    background-color: var(--bo-warning);
}

.bo-dashboard-status-badge--ok {
    background-color: #d1fae5;
    color: #047857;
}

.bo-dashboard-status-badge--ok::before {
    background-color: var(--bo-success);
}

.bo-dashboard-alert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    border-radius: 9999px;
    background-color: var(--bo-danger);
    color: #fff;
    font-size: var(--bo-text-caption);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: var(--bo-font-mono);
}

.bo-dashboard-code {
    font-family: var(--bo-font-mono);
    font-weight: 500;
}

.bo-dashboard-map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f1f1f4;
    padding: 0.75rem 1.25rem;
}

.bo-dashboard-map-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--bo-text-caption);
    color: #6b7280;
}

.bo-dashboard-map-legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.bo-dashboard-map-legend-dot--alert {
    background-color: var(--bo-danger);
}

.bo-dashboard-map-legend-dot--waiting {
    background-color: var(--bo-warning);
}

.bo-dashboard-map-legend-dot--ok {
    background-color: var(--bo-success);
}

.bo-dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
    background-color: #fff;
}

.bo-dashboard-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: var(--bo-text-display);
}

.bo-dashboard-empty-title {
    font-size: var(--bo-text-body);
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.bo-dashboard-empty-body {
    font-size: var(--bo-text-caption);
    color: #9ca3af;
    max-width: 220px;
    margin-bottom: 1rem;
}

.bo-dashboard-btn-refresh {
    background-color: var(--bo-brand);
    border-color: var(--bo-brand);
    color: #fff;
}

.bo-dashboard-btn-refresh:hover:not(:disabled) {
    background-color: #0a3990;
    border-color: #0a3990;
    color: #fff;
}

.bo-dashboard-btn-primary {
    background-color: var(--bo-brand);
    border-color: var(--bo-brand);
    color: #fff;
}

.bo-dashboard-btn-primary:hover {
    background-color: #0a3990;
    border-color: #0a3990;
    color: #fff;
}

.bo-dashboard-link {
    color: var(--bo-brand);
    font-weight: 500;
    text-decoration: none;
}

.bo-dashboard-link:hover {
    color: #0a3990;
    text-decoration: underline;
}

.bo-dashboard-search {
    max-width: 9rem;
}

.bo-dashboard-map-panel #dashboard-map {
    height: 360px;
    border-radius: 0;
}

/* -----------------------------------------------
   Backoffice Tickets SBR — Alta Fidelidad
   ----------------------------------------------- */
.bo-ticket-page {
    --bo-brand: #062362;
    --bo-info: #3b82f6;
    --bo-warning: #F59E0B;
    --bo-success: #17C653;
    --bo-danger: #F8285A;
}

@keyframes bo-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.bo-skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: bo-shimmer 1.4s infinite;
    border-radius: 0.375rem;
}

.bo-ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: var(--bo-text-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.bo-ticket-badge::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.bo-ticket-badge--open {
    background-color: #eff6ff;
    color: #2563eb;
}

.bo-ticket-badge--open::before {
    background-color: var(--bo-info);
}

.bo-ticket-badge--pending {
    background-color: #fef7e8;
    color: #d48a09;
}

.bo-ticket-badge--pending::before {
    background-color: var(--bo-warning);
}

.bo-ticket-badge--closed {
    background-color: #f3f4f6;
    color: #6b7280;
}

.bo-ticket-badge--closed::before {
    background-color: #9ca3af;
}

.bo-ticket-badge--unassigned {
    background-color: #fef0f3;
    color: #d91e4a;
}

.bo-ticket-badge--unassigned::before {
    display: none;
}

.bo-ticket-badge--priority-secondary {
    background-color: #f3f4f6;
    color: #475569;
}

.bo-ticket-badge--priority-secondary::before {
    background-color: #94a3b8;
}

.bo-ticket-badge--priority-warning {
    background-color: #fef7e8;
    color: #d48a09;
}

.bo-ticket-badge--priority-warning::before {
    background-color: var(--bo-warning);
}

.bo-ticket-badge--priority-danger {
    background-color: #fef0f3;
    color: #d91e4a;
}

.bo-ticket-badge--priority-danger::before {
    background-color: var(--bo-danger);
}

.bo-ticket-badge--priority-primary {
    background-color: #eff6ff;
    color: #2563eb;
}

.bo-ticket-badge--priority-primary::before {
    background-color: var(--bo-info);
}

.bo-row-unassigned {
    background-color: rgba(254, 240, 243, 0.35);
}

.bo-row-unassigned:hover {
    background-color: rgba(254, 240, 243, 0.55);
}

.bo-row-closed {
    opacity: 0.5;
}

.bo-ticket-kpi--unassigned {
    border: 2px solid rgba(248, 40, 90, 0.25);
    background-color: rgba(254, 240, 243, 0.3);
    cursor: pointer;
}

.bo-ticket-kpi--unassigned-active {
    border-color: var(--bo-danger);
    background-color: rgba(254, 240, 243, 0.5);
}

.bo-ticket-ref {
    font-family: var(--bo-font-mono);
    font-weight: 600;
    font-size: var(--bo-text-body);
    color: #111827;
}

.bo-timeline {
    position: relative;
    padding-left: 1.75rem;
    border-left: 2px solid #e5e7eb;
}

.bo-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.bo-timeline-item:last-child {
    padding-bottom: 0;
}

.bo-tl-dot {
    position: absolute;
    left: -1.94rem;
    top: 0.15rem;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.bo-tl-dot--creation {
    background-color: var(--bo-info);
}

.bo-tl-dot--assignment {
    background-color: var(--bo-brand);
}

.bo-tl-dot--status {
    background-color: var(--bo-warning);
}

.bo-tl-dot--comment {
    background-color: #9ca3af;
}

.bo-tl-dot--closed {
    background-color: var(--bo-success);
}

.bo-tl-comment-bubble {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: var(--bo-text-body);
    color: #374151;
}

.bo-tl-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background-color: #e5e7eb;
    color: #4b5563;
    font-size: var(--bo-text-micro);
    font-weight: 700;
    flex-shrink: 0;
}

.bo-ticket-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bo-ticket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
    background-color: #fff;
}

.bo-ticket-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.125rem;
}

.bo-ticket-toolbar-search {
    width: 15rem;
    min-width: 15rem;
}

.bo-ticket-toolbar-select {
    width: 10.5rem;
    min-width: 10.5rem;
}

.bo-ticket-toolbar .select2-container {
    width: 10.5rem !important;
    min-width: 10.5rem;
    flex-shrink: 0;
}

.bo-ticket-priority-group {
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.475rem;
    overflow: hidden;
    background: #fff;
}

.bo-ticket-list-table {
    table-layout: fixed;
    width: 100%;
}

.bo-ticket-list-table .bo-ticket-col-ref {
    width: 12%;
}

.bo-ticket-list-table .bo-ticket-col-plant {
    width: 10%;
}

.bo-ticket-list-table .bo-ticket-col-subject {
    width: 22%;
}

.bo-ticket-list-table .bo-ticket-col-status {
    width: 9%;
}

.bo-ticket-list-table .bo-ticket-col-priority {
    width: 9%;
}

.bo-ticket-list-table .bo-ticket-col-operator {
    width: 14%;
}

.bo-ticket-list-table .bo-ticket-col-source {
    width: 8%;
}

.bo-ticket-list-table .bo-ticket-col-actions {
    width: 16%;
}

.bo-ticket-list-table .bo-ticket-cell-subject,
.bo-ticket-list-table .bo-ticket-cell-plant-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo-ticket-priority-group-header {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-left: 4px solid var(--bs-gray-400);
    background: var(--bs-gray-100);
}

.bo-ticket-priority-group-header--danger {
    border-left-color: #F8285A;
    background: #fef0f3;
}

.bo-ticket-priority-group-header--warning {
    border-left-color: #F59E0B;
    background: #fef7e8;
}

.bo-ticket-priority-group-header--primary {
    border-left-color: #0a3a9c;
    background: #e8ecf5;
}

.bo-ticket-priority-group-header--secondary {
    border-left-color: var(--bs-gray-500);
    background: var(--bs-gray-100);
}

/* -----------------------------------------------
   Backoffice Usuarios — Alta Fidelidad
   ----------------------------------------------- */
.bo-user-page {
    --bo-user-brand: #062362;
    --bo-user-success: #17C653;
    --bo-user-danger: #F8285A;
    --bo-user-warning: #F59E0B;
}

.bo-user-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
}

.bo-user-kpi-icon--total {
    background-color: #e8ecf5;
    color: var(--bo-user-brand);
}

.bo-user-kpi-icon--active {
    background-color: #e8faf0;
    color: var(--bo-user-success);
}

.bo-user-kpi-icon--inactive {
    background-color: #f3f4f6;
    color: #9ca3af;
}

.bo-user-kpi-value {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.bo-user-toolbar {
    padding-bottom: 0.75rem;
}

.bo-user-search-wrap {
    position: relative;
    flex: 1;
    max-width: 18rem;
    min-width: 12rem;
}

.bo-user-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a5b7;
    font-size: var(--bo-text-body);
    pointer-events: none;
    z-index: 1;
}

.bo-user-search-input {
    padding-left: 2.35rem !important;
}

.bo-user-segment {
    display: inline-flex;
    border: 1px solid #e4e6ef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.bo-user-segment-btn {
    border: 0;
    background: #fff;
    color: #5e6278;
    font-size: var(--bo-text-caption);
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bo-user-segment-btn + .bo-user-segment-btn {
    border-left: 1px solid #e4e6ef;
}

.bo-user-segment-btn--active {
    background-color: var(--bo-user-brand);
    color: #fff;
}

.bo-user-result-count {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-caption);
    color: #a1a5b7;
}

.bo-user-table tbody tr {
    transition: background-color 0.1s ease;
}

.bo-user-table tbody tr:hover {
    background-color: #fafbff;
}

.bo-user-row--inactive {
    opacity: 0.6;
}

.bo-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--bo-text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bo-user-avatar--brand { background-color: var(--bo-user-brand); }
.bo-user-avatar--success { background-color: var(--bo-user-success); }
.bo-user-avatar--warning { background-color: var(--bo-user-warning); }
.bo-user-avatar--info { background-color: #3b82f6; }
.bo-user-avatar--muted { background-color: #9ca3af; }

.bo-user-role-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    font-size: var(--bo-text-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.bo-user-role-badge--admin {
    background-color: #e8ecf5;
    color: var(--bo-user-brand);
}

.bo-user-role-badge--default {
    background-color: #f3f4f6;
    color: #6b7280;
}

.bo-user-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    font-size: var(--bo-text-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bo-user-status-badge::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.bo-user-status-badge--active {
    background-color: #e8faf0;
    color: #12a344;
}

.bo-user-status-badge--active::before {
    background-color: var(--bo-user-success);
}

.bo-user-status-badge--inactive {
    background-color: #fef0f3;
    color: #d91e4a;
}

.bo-user-status-badge--inactive::before {
    background-color: var(--bo-user-danger);
}

.bo-user-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bo-user-pag-info {
    font-size: var(--bo-text-caption);
    color: #a1a5b7;
}

.bo-user-pag-info strong {
    color: #3f4254;
    font-weight: 600;
}

.bo-user-empty-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #fff9cf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bo-user-form-wrap {
    max-width: 42rem;
}

.bo-user-password-block {
    max-width: 24rem;
}

.bo-user-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
}

.bo-user-strength-bars {
    display: flex;
    gap: 0.25rem;
}

.bo-user-strength-seg {
    flex: 1;
    height: 0.25rem;
    border-radius: 9999px;
    background-color: #e5e7eb;
    transition: background-color 0.2s ease;
}

.bo-user-strength-seg--weak { background-color: var(--bo-user-danger); }
.bo-user-strength-seg--fair { background-color: var(--bo-user-warning); }
.bo-user-strength-seg--good { background-color: #3b82f6; }
.bo-user-strength-seg--strong { background-color: var(--bo-user-success); }

.bo-user-req-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--bo-text-caption);
    color: #a1a5b7;
    margin-bottom: 0.25rem;
}

.bo-user-req-list li.bo-user-req--met {
    color: #12a344;
}

.bo-user-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e4e6ef;
    border-radius: 9999px;
    background: #fff;
    color: #5e6278;
    font-size: var(--bo-text-caption);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.bo-user-role-chip--selected {
    border: 2px solid var(--bo-user-brand);
    background-color: #e8ecf5;
    color: var(--bo-user-brand);
    font-weight: 600;
}

.bo-user-success-toast {
    animation: bo-user-toast-in 0.3s ease-out;
}

@keyframes bo-user-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------
   Backoffice — Alert feed SBR
------------------------------ */
.bo-alert-feed {
    width: 100%;
    max-width: 100%;
}

.bo-alert-card {
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.bo-alert-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--bs-gray-300);
}

.bo-alert-card:focus-within {
    border-color: #062362;
    box-shadow: 0 0 0 2px rgba(6, 35, 98, 0.15);
}

.bo-alert-sev-bar {
    width: 6px;
    flex-shrink: 0;
}

.bo-alert-tabs {
    display: inline-flex;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.bo-alert-tabs .btn:hover:not(.bo-alert-tab--active) {
    background-color: var(--bs-gray-100);
}

.bo-alert-tab--active {
    background: #062362 !important;
    color: #fff !important;
}

.bo-alert-tab--active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.bo-alert-skeleton {
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.bo-alert-skeleton-line {
    border-radius: 0.375rem;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: bo-alert-skeleton-shimmer 1.4s infinite;
}

@keyframes bo-alert-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.bo-alert-empty {
    border: 1px dashed var(--bs-gray-300);
    border-radius: 0.75rem;
    background: #fff;
}

@media (max-width: 575.98px) {
    .bo-alert-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .bo-alert-tabs .btn {
        flex: 1;
        justify-content: center;
    }
}

/* -----------------------------------------------
   Backoffice SBR Mapa — Alta Fidelidad
   ----------------------------------------------- */
.bo-sbr-map {
    min-height: calc(100vh - 120px);
}

.bo-sbr-map__search {
    min-width: 220px;
}

.bo-sbr-map__filter-select {
    min-width: 160px;
    max-width: 220px;
}

.bo-sbr-map__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bo-sbr-map__dot--geo {
    background-color: #17c653;
}

.bo-sbr-map__dot--no-geo {
    background-color: #d1d5db;
}

.bo-sbr-map__counter-sep {
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: var(--bs-gray-300);
}

.bo-sbr-map__split {
    display: flex;
    flex: 1;
    min-height: 0;
}

.bo-sbr-map__list {
    width: 320px;
    flex-shrink: 0;
    border-right: 1px solid var(--bs-gray-200);
}

.bo-sbr-map__list-header {
    flex-shrink: 0;
}

.bo-sbr-map__list-body {
    min-height: 0;
}

.bo-sbr-map__map {
    min-height: 480px;
}

.bo-sbr-map__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bo-sbr-map__plant-item {
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bo-sbr-map__plant-item:hover {
    background-color: var(--bs-gray-100);
}

.bo-sbr-map__plant-item--active {
    background-color: #e8ecf5;
    border-left-color: #062362;
}

.bo-sbr-map__plant-item--no-geo {
    opacity: 0.5;
}

.bo-sbr-map__skeleton {
    border-radius: 0.375rem;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: bo-shimmer 1.4s infinite;
}

.bo-sbr-map__badge-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    position: relative;
}

.bo-sbr-map__badge-pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    animation: bo-sbr-map-pulse-ring 2s ease-out infinite;
    opacity: 0.4;
}

@keyframes bo-sbr-map-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.bo-sbr-map__empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bs-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bo-sbr-map__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(249, 250, 251, 0.92);
}

.bo-sbr-map__overlay--loading {
    background-color: rgba(243, 244, 246, 0.95);
}

.bo-sbr-map__overlay--no-coords {
    background-color: rgba(229, 231, 235, 0.55);
}

.bo-sbr-map__overlay-card {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    max-width: 24rem;
}

.bo-sbr-map__overlay-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bo-sbr-map__overlay-icon--warning {
    background-color: #fef7e8;
}

.bo-sbr-map__overlay-icon--brand {
    background-color: #e8ecf5;
}

.bo-sbr-map__legend {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
    min-width: 160px;
}

.bo-sbr-map__legend-title {
    font-size: var(--bo-text-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-gray-500);
    margin-bottom: 0.5rem;
}

.bo-sbr-map__marker-wrap {
    background: transparent;
    border: none;
}

.bo-sbr-map__marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    position: relative;
}

.bo-sbr-map__marker--pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    animation: bo-sbr-map-pulse-ring 2s ease-out infinite;
    opacity: 0.4;
    z-index: -1;
}

.bo-sbr-map__popup .badge {
    font-size: var(--bo-text-micro);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.leaflet-popup-content-wrapper {
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 220px !important;
}

.leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    font-size: var(--bo-text-title) !important;
    color: #6b7280 !important;
}

@media (prefers-reduced-motion: reduce) {
    .bo-sbr-map__marker--pulse::after,
    .bo-sbr-map__badge-pulse::after,
    .bo-sbr-map__skeleton {
        animation: none !important;
    }
}

@media (max-width: 991.98px) {
    .bo-sbr-map__split {
        flex-direction: column;
    }

    .bo-sbr-map__list {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--bs-gray-200);
    }

    .bo-sbr-map__map {
        min-height: 400px;
        flex: 1;
    }

    .bo-sbr-map__counters {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }
}

/* -----------------------------------------------
   Backoffice Plantas SBR — Alta Fidelidad
   ----------------------------------------------- */
.bo-plant-page {
    --bo-plant-brand: #062362;
    --bo-plant-success: #17C653;
    --bo-plant-danger: #F8285A;
    --bo-plant-warning: #F59E0B;
}

.bo-plant-toolbar {
    padding-bottom: 0;
}

.bo-plant-search-wrap {
    position: relative;
    flex: 0 1 auto;
    width: 15rem;
    min-width: 12rem;
}

.bo-plant-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a5b7;
    font-size: var(--bo-text-body);
    pointer-events: none;
    z-index: 1;
}

.bo-plant-search-input {
    padding-left: 2.35rem !important;
    height: 2rem;
    font-size: var(--bo-text-body);
    border-radius: 0.5rem !important;
    background-color: #f9f9f9 !important;
}

.bo-plant-filter-wrap {
    flex-shrink: 0;
}

.bo-plant-filter-select {
    width: auto;
    min-width: 10.5rem;
    height: 2rem;
    font-size: var(--bo-text-body);
    border-radius: 0.5rem !important;
    background-color: #f9f9f9 !important;
    color: #5e6278;
    padding-right: 2rem;
}

.bo-plant-count-label {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-caption);
    color: #a1a5b7;
    white-space: nowrap;
}

.bo-plant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: var(--bo-text-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.bo-plant-badge::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.bo-plant-badge--danger {
    background-color: #fef0f3;
    color: #d91e4a;
}

.bo-plant-badge--danger::before {
    background-color: var(--bo-plant-danger);
}

.bo-plant-badge--success {
    background-color: #e8faf0;
    color: #12a344;
}

.bo-plant-badge--success::before {
    background-color: var(--bo-plant-success);
}

.bo-plant-badge--warning {
    background-color: #fef7e8;
    color: #d48a09;
}

.bo-plant-badge--warning::before {
    background-color: var(--bo-plant-warning);
}

.bo-plant-badge--secondary {
    background-color: #f3f4f6;
    color: #6b7280;
}

.bo-plant-badge--secondary::before {
    background-color: #9ca3af;
}

.bo-plant-alert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    padding: 0 0.375rem;
    font-size: var(--bo-text-micro);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.bo-plant-alert-count--active {
    background-color: var(--bo-plant-danger);
    color: #fff;
}

.bo-plant-alert-count--zero {
    background-color: #f3f4f6;
    color: #9ca3af;
}

.bo-plant-draft-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: var(--bo-text-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: #f3f4f6;
    color: #6b7280;
}

.bo-plant-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    text-align: center;
}

.bo-plant-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: #e8ecf5;
    color: var(--bo-plant-brand);
    margin-bottom: 1rem;
}

.bo-plant-pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bo-plant-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e4e6ef;
    border-radius: 0.5rem;
    background: #fff;
    color: #5e6278;
    font-size: var(--bo-text-caption);
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bo-plant-pagination__btn:hover:not(:disabled) {
    background-color: #f9f9f9;
}

.bo-plant-pagination__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bo-plant-pagination__btn--active {
    background-color: var(--bo-plant-brand);
    border-color: var(--bo-plant-brand);
    color: #fff;
}

.bo-plant-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e4e6ef;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.35rem 0.65rem;
    font-size: var(--bo-text-caption);
    font-weight: 500;
    color: #5e6278;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.bo-plant-action-btn:hover {
    background-color: #f9f9f9;
    color: #5e6278;
}

.bo-plant-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e6ef;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.35rem 0.5rem;
    color: #a1a5b7;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bo-plant-delete-btn:hover {
    color: var(--bo-plant-danger);
    border-color: #fdd5dc;
    background-color: #fef0f3;
}

.bo-plant-table tbody tr {
    transition: background-color 0.1s ease;
}

.bo-plant-table tbody tr:hover {
    background-color: #fafbff;
}

.bo-plant-code {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-body);
    font-weight: 600;
    color: #181c32;
}

.bo-plant-map-panel {
    display: flex;
    flex-direction: column;
    min-height: 460px;
    border: 1px solid #e4e6ef;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.bo-plant-map-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f1f1f4;
}

.bo-plant-map-panel__body {
    position: relative;
    flex: 1;
    min-height: 400px;
}

.bo-plant-map-panel__map {
    position: absolute;
    inset: 0;
}

.bo-plant-map-panel__footer {
    padding: 0.625rem 1.25rem;
    border-top: 1px solid #f1f1f4;
    font-size: var(--bo-text-caption);
    color: #a1a5b7;
}

.bo-plant-coord-label {
    font-family: var(--bo-font-mono);
    font-size: var(--bo-text-caption);
    color: #a1a5b7;
}

.bo-plant-coord-value {
    font-family: var(--bo-font-mono);
    font-weight: 500;
    color: #5e6278;
}

.bo-plant-readonly-field {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px dashed #e4e6ef;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    font-size: var(--bo-text-body);
    color: #5e6278;
}

.bo-plant-readonly-field--mono {
    font-family: var(--bo-font-mono);
    font-weight: 500;
}

@keyframes bo-toast-in {
    0% {
        transform: translateY(-12px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.bo-toast-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 56rem;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #c1f2d8;
    border-radius: 0.75rem;
    background-color: #e8faf0;
    color: #12a344;
    font-size: var(--bo-text-body);
    font-weight: 500;
    animation: bo-toast-in 0.3s ease-out;
}

.bo-toast-coord {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--bo-plant-brand);
    color: #fff;
    font-size: var(--bo-text-caption);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: bo-toast-in 0.3s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .bo-toast-success,
    .bo-toast-coord {
        animation: none !important;
    }
}

