/* BANHCAFE Custom Executive Theme Adjustments */
[x-cloak] {
    display: none !important;
}

html, body {
    font-size: 15px !important;
}

/* Strict logo size containment */
.fi-logo img,
.fi-sidebar-header img,
.fi-topbar img,
header img {
    height: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

.fi-logo,
.fi-sidebar-header,
.fi-topbar {
    max-height: 52px !important;
}

.fi-input, .fi-select-input {
    font-size: 14px !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

label, .fi-fo-field-wrp-label span {
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

.fi-ta-text, .fi-ta-cell {
    font-size: 13.5px !important;
}

.fi-sidebar-item-label {
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

/* Strict SVG Size Containment */
svg.w-3, svg.h-3 { width: 0.75rem !important; height: 0.75rem !important; max-width: 0.75rem !important; max-height: 0.75rem !important; }
svg.w-3\.5, svg.h-3\.5 { width: 0.875rem !important; height: 0.875rem !important; max-width: 0.875rem !important; max-height: 0.875rem !important; }
svg.w-4, svg.h-4 { width: 1rem !important; height: 1rem !important; max-width: 1rem !important; max-height: 1rem !important; }
svg.w-5, svg.h-5 { width: 1.25rem !important; height: 1.25rem !important; max-width: 1.25rem !important; max-height: 1.25rem !important; }
svg.w-6, svg.h-6 { width: 1.5rem !important; height: 1.5rem !important; max-width: 1.5rem !important; max-height: 1.5rem !important; }
svg.w-7, svg.h-7 { width: 1.75rem !important; height: 1.75rem !important; max-width: 1.75rem !important; max-height: 1.75rem !important; }
svg.w-8, svg.h-8 { width: 2rem !important; height: 2rem !important; max-width: 2rem !important; max-height: 2rem !important; }
svg.w-10, svg.h-10 { width: 2.5rem !important; height: 2.5rem !important; max-width: 2.5rem !important; max-height: 2.5rem !important; }
svg.w-12, svg.h-12 { width: 3rem !important; height: 3rem !important; max-width: 3rem !important; max-height: 3rem !important; }
svg:not([width]):not([height]) { max-width: 24px !important; max-height: 24px !important; }

/* Universal SVG Input & Icon Safety Net across ALL Admin Pages */
.fi-ta-search-field svg,
.fi-input-wrp svg,
.fi-fo-field-wrp svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
    max-width: 1.125rem !important;
    max-height: 1.125rem !important;
    flex-shrink: 0 !important;
}

/* ========================================================
   BANHCAFE SOLID EXECUTIVE BUTTON SYSTEM (AUDIT FIX)
   ======================================================== */

/* Base Button Properties */
.fi-btn,
a.fi-btn,
button.fi-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    padding: 0.5rem 1.15rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
}

/* 1. PRIMARY BUTTONS (BANHCAFE Burgundy #B31934) - Header Actions, Submit, Primary */
.fi-page-header-actions .fi-btn,
.fi-btn.fi-color-primary,
a.fi-btn.fi-color-primary,
button.fi-btn.fi-color-primary,
.fi-ac-action.fi-color-primary,
button[type="submit"],
.fi-btn[type="submit"],
form button[type="submit"],
form button.fi-dropdown-list-item,
.fi-dropdown-list-item[type="submit"] {
    background-color: #B31934 !important;
    color: #ffffff !important;
    border: 1.5px solid #8F1228 !important;
    box-shadow: 0 1px 3px 0 rgba(179, 25, 52, 0.25), 0 1px 2px -1px rgba(179, 25, 52, 0.2) !important;
}

/* Force all text, spans, labels and icons inside Primary / Burgundy buttons to pure white */
.fi-page-header-actions .fi-btn *,
.fi-page-header-actions .fi-btn .fi-btn-label,
.fi-page-header-actions .fi-btn span,
.fi-page-header-actions .fi-btn svg,
.fi-btn.fi-color-primary *,
.fi-btn.fi-color-primary .fi-btn-label,
.fi-btn.fi-color-primary span,
.fi-btn.fi-color-primary svg,
a.fi-btn.fi-color-primary *,
a.fi-btn.fi-color-primary span,
a.fi-btn.fi-color-primary svg,
button.fi-btn.fi-color-primary *,
button.fi-btn.fi-color-primary span,
button.fi-btn.fi-color-primary svg,
.fi-ac-action.fi-color-primary *,
.fi-ac-action.fi-color-primary span,
.fi-ac-action.fi-color-primary svg,
button[type="submit"] *,
button[type="submit"] span,
button[type="submit"] svg,
.fi-btn[type="submit"] *,
.fi-btn[type="submit"] span,
.fi-btn[type="submit"] svg,
form button[type="submit"] *,
form button[type="submit"] span,
form button[type="submit"] svg,
form button.fi-dropdown-list-item *,
form button.fi-dropdown-list-item .fi-dropdown-list-item-label,
form button.fi-dropdown-list-item .fi-dropdown-list-item-icon,
form button.fi-dropdown-list-item span,
form button.fi-dropdown-list-item svg,
.fi-dropdown-list-item[type="submit"] *,
.fi-dropdown-list-item[type="submit"] .fi-dropdown-list-item-label,
.fi-dropdown-list-item[type="submit"] .fi-dropdown-list-item-icon,
.fi-dropdown-list-item[type="submit"] span,
.fi-dropdown-list-item[type="submit"] svg {
    color: #ffffff !important;
}

.fi-page-header-actions .fi-btn:hover,
.fi-btn.fi-color-primary:hover,
a.fi-btn.fi-color-primary:hover,
button.fi-btn.fi-color-primary:hover,
button[type="submit"]:hover,
form button[type="submit"]:hover,
form button.fi-dropdown-list-item:hover,
.fi-dropdown-list-item[type="submit"]:hover {
    background-color: #8F1228 !important;
    border-color: #700E20 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(179, 25, 52, 0.35), 0 2px 4px -2px rgba(179, 25, 52, 0.25) !important;
    transform: translateY(-1px) !important;
}

.fi-page-header-actions .fi-btn:hover *,
.fi-btn.fi-color-primary:hover *,
button[type="submit"]:hover *,
form button[type="submit"]:hover *,
form button.fi-dropdown-list-item:hover *,
.fi-dropdown-list-item[type="submit"]:hover * {
    color: #ffffff !important;
}

.fi-page-header-actions .fi-btn svg,
.fi-btn.fi-color-primary svg,
a.fi-btn.fi-color-primary svg,
button.fi-btn.fi-color-primary svg,
button[type="submit"] svg,
form button[type="submit"] svg,
form button.fi-dropdown-list-item svg,
.fi-dropdown-list-item[type="submit"] svg {
    color: #ffffff !important;
    stroke: currentColor !important;
}

/* 2. SUCCESS BUTTONS (Emerald Green) */
.fi-btn.fi-color-success,
a.fi-btn.fi-color-success,
button.fi-btn.fi-color-success {
    background-color: #059669 !important;
    color: #ffffff !important;
    border: 1.5px solid #047857 !important;
    box-shadow: 0 1px 2px 0 rgba(5, 150, 105, 0.2) !important;
}
.fi-btn.fi-color-success:hover,
a.fi-btn.fi-color-success:hover,
button.fi-btn.fi-color-success:hover {
    background-color: #047857 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
.fi-btn.fi-color-success svg {
    color: #ffffff !important;
}

/* 3. WARNING BUTTONS (Amber / Gold) */
.fi-btn.fi-color-warning,
a.fi-btn.fi-color-warning,
button.fi-btn.fi-color-warning {
    background-color: #D97706 !important;
    color: #ffffff !important;
    border: 1.5px solid #B45309 !important;
    box-shadow: 0 1px 2px 0 rgba(217, 119, 6, 0.2) !important;
}
.fi-btn.fi-color-warning:hover,
a.fi-btn.fi-color-warning:hover,
button.fi-btn.fi-color-warning:hover {
    background-color: #B45309 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
.fi-btn.fi-color-warning svg {
    color: #ffffff !important;
}

/* 4. DANGER BUTTONS (Crimson Red) */
.fi-btn.fi-color-danger,
a.fi-btn.fi-color-danger,
button.fi-btn.fi-color-danger {
    background-color: #DC2626 !important;
    color: #ffffff !important;
    border: 1.5px solid #B91C1C !important;
    box-shadow: 0 1px 2px 0 rgba(220, 38, 38, 0.2) !important;
}
.fi-btn.fi-color-danger:hover,
a.fi-btn.fi-color-danger:hover,
button.fi-btn.fi-color-danger:hover {
    background-color: #B91C1C !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
.fi-btn.fi-color-danger svg {
    color: #ffffff !important;
}

/* 5. INFO BUTTONS (Navy / Blue) */
.fi-btn.fi-color-info,
a.fi-btn.fi-color-info,
button.fi-btn.fi-color-info {
    background-color: #2563EB !important;
    color: #ffffff !important;
    border: 1.5px solid #1D4ED8 !important;
    box-shadow: 0 1px 2px 0 rgba(37, 99, 235, 0.2) !important;
}
.fi-btn.fi-color-info:hover,
a.fi-btn.fi-color-info:hover,
button.fi-btn.fi-color-info:hover {
    background-color: #1D4ED8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
.fi-btn.fi-color-info svg {
    color: #ffffff !important;
}

/* 6. GRAY / CANCEL / SECONDARY BUTTONS */
.fi-btn.fi-color-gray,
a.fi-btn.fi-color-gray,
button.fi-btn.fi-color-gray,
.fi-modal-close-overlay + .fi-modal-window button.fi-color-gray {
    background-color: #F1F5F9 !important;
    color: #1E293B !important;
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.fi-btn.fi-color-gray:hover,
a.fi-btn.fi-color-gray:hover,
button.fi-btn.fi-color-gray:hover {
    background-color: #E2E8F0 !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
    transform: translateY(-1px) !important;
}
.fi-btn.fi-color-gray svg {
    color: #475569 !important;
}

/* 7. TABLE RECORD ACTIONS (Pill/Badge style with crisp borders) */
.fi-ta-actions .fi-btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8125rem !important;
    border-radius: 6px !important;
}

/* 8. MODAL FOOTER BUTTONS */
.fi-modal-footer-actions .fi-btn.fi-color-primary {
    background-color: #B31934 !important;
    color: #ffffff !important;
}
.fi-modal-footer-actions .fi-btn.fi-color-gray {
    background-color: #F1F5F9 !important;
    color: #1E293B !important;
}

/* BANHCAFE Official Crimson/Burgundy Accent Palette */
:root {
    --primary-50: 254 242 242;
    --primary-100: 254 226 226;
    --primary-200: 254 202 202;
    --primary-300: 252 165 165;
    --primary-400: 248 113 113;
    --primary-500: 179 25 52;
    --primary-600: 155 18 42;
    --primary-700: 130 14 34;
    --primary-800: 105 11 27;
    --primary-900: 82 8 20;
    --primary-950: 55 4 13;
}

/* Login Page Container - Anti-scroll Compact Optimization */
.fi-simple-layout {
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem !important;
}

.fi-simple-main-ctn {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.fi-simple-main {
    max-width: 26rem !important;
    padding: 1.5rem !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

/* Executive Cards (Stats Overview) Animation & Elevation */
.fi-wi-stats-overview-stat {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
    border-color: #cbd5e1 !important;
}

/* Status Chart & Widgets Animation */
.fi-wi-chart {
    border-radius: 12px !important;
    transition: all 0.22s ease !important;
}

.fi-wi-chart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.07) !important;
}

/* Topbar Header styling */
.fi-topbar {
    border-bottom: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    overflow: visible !important;
}

.fi-topbar:not(.bchfe-bell-dropdown) svg,
#banhcafe-header-bar svg {
    max-width: 18px !important;
    max-height: 18px !important;
}

.bchfe-bell-dropdown svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
}

#banhcafe-header-bar {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 32px !important;
    overflow: hidden !important;
}

.bchfe-header-status-bar {
    min-width: 0;
    max-width: calc(100vw - 28rem);
}

.bchfe-header-identity,
.bchfe-header-user-name {
    min-width: 0;
}

.bchfe-header-user-name {
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-sidebar-nav {
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.fi-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

@media (max-width: 1440px) {
    .bchfe-header-status-bar {
        max-width: calc(100vw - 23rem);
    }

    .bchfe-header-ip,
    .bchfe-header-ip-separator {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .bchfe-header-clock-label {
        display: none;
    }

    .bchfe-header-user-name {
        max-width: 10rem;
    }
}

@media (max-width: 900px) {
    .bchfe-header-status-bar {
        display: none !important;
    }
}

.dark .bchfe-header-status-bar {
    border-color: #334155 !important;
    background-color: #0f172a !important;
}

/* ========================================================
   BANHCAFE EXECUTIVE DASHBOARD WIDGETS & GRID SYSTEM
   ======================================================== */

/* Grid Containment: Ensure full-width widgets span 100% */
.fi-wi {
    display: grid !important;
}

.fi-wi-widget.col-span-full,
.col-span-full,
[style*="grid-column: 1 / -1"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* 1. Announcement Banner */
.bchfe-announcement-card {
    position: relative;
    border-radius: 14px;
    padding: 16px 20px;
    color: #ffffff !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}
.bchfe-announcement-card.urgente {
    background: linear-gradient(135deg, #7f1d1d 0%, #B31934 50%, #991b1b 100%) !important;
    border: 1.5px solid #ef4444 !important;
}
.bchfe-announcement-card.importante {
    background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #92400e 100%) !important;
    border: 1.5px solid #f59e0b !important;
}
.bchfe-announcement-card.informativo {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%) !important;
    border: 1.5px solid #3b82f6 !important;
}
.bchfe-announcement-card h3 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}
.bchfe-announcement-card p {
    margin: 4px 0 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.92) !important;
}
.bchfe-announcement-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff !important;
}
.bchfe-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: bchfePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes bchfePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* 2. Admin Quick Actions Bar */
.bchfe-quick-bar {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}
.bchfe-quick-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    border: 1px solid transparent !important;
    line-height: 1 !important;
}
.bchfe-quick-btn-burgundy {
    background-color: #B31934 !important;
    color: #ffffff !important;
    border-color: #8F1228 !important;
}
.bchfe-quick-btn-burgundy:hover {
    background-color: #8F1228 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -1px rgba(179, 25, 52, 0.3) !important;
}
.bchfe-quick-btn-dark {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #020617 !important;
}
.bchfe-quick-btn-dark:hover {
    background-color: #1e293b !important;
    transform: translateY(-1px);
}
.bchfe-quick-btn-light {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
.bchfe-quick-btn-light:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
.bchfe-quick-btn-amber {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}
.bchfe-quick-btn-amber:hover {
    background-color: #fef3c7 !important;
}

/* 3. Agency Hero Banner */
.bchfe-agency-hero {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #B31934 0%, #8F1228 50%, #600b1b 100%) !important;
    padding: 24px;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(179, 25, 52, 0.35);
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.bchfe-agency-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.bchfe-agency-hero h2 {
    font-size: 24px !important;
    font-weight: 900 !important;
    margin: 8px 0 6px 0 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}
.bchfe-agency-budget-box {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 280px;
    max-width: 360px;
    backdrop-filter: blur(8px);
}
.bchfe-progress-bar-bg {
    height: 8px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    margin: 6px 0;
}
.bchfe-progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}
.bchfe-agency-actions-row {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 4. KPI 4-Column Grid */
.bchfe-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1024px) {
    .bchfe-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .bchfe-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}
.bchfe-kpi-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}
.bchfe-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.bchfe-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.bchfe-kpi-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}
.bchfe-kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bchfe-kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.bchfe-kpi-number {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.bchfe-kpi-subtext {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
}
.bchfe-kpi-footer {
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 600;
}

/* 5. 2-Column Recent Activity Grid */
.bchfe-recent-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1024px) {
    .bchfe-recent-grid {
        grid-template-columns: 1fr !important;
    }
}
.bchfe-recent-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
.bchfe-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}
.bchfe-recent-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bchfe-table-row {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bchfe-table-row:last-child {
    border-bottom: none;
}

/* ========================================================
   BANHCAFE NOTIFICATIONS EXECUTIVE CARDS SYSTEM
   ======================================================== */
.bchfe-notif-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.bchfe-notif-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.bchfe-notif-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.bchfe-notif-card.unread {
    border-left: 5px solid #B31934 !important;
    background-color: #fdf8f9;
}

.bchfe-notif-card.read {
    border-left: 5px solid #cbd5e1 !important;
}

.bchfe-notif-header {
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.bchfe-notif-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 500px;
}

.bchfe-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bchfe-notif-icon.autorizada {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.bchfe-notif-icon.pendiente {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.bchfe-notif-icon.urgente {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.bchfe-notif-icon.nueva {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.bchfe-notif-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bchfe-notif-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bchfe-notif-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.bchfe-notif-badge-new {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 9.5px;
    font-weight: 900;
    background-color: #B31934;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.bchfe-notif-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}

.bchfe-notif-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: #64748b;
}

.bchfe-notif-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bchfe-notif-btn-expand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.bchfe-notif-btn-expand:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.bchfe-notif-btn-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background-color: #B31934 !important;
    color: #ffffff !important;
    border: 1px solid #8F1228 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.bchfe-notif-btn-action:hover {
    background-color: #8F1228 !important;
    box-shadow: 0 2px 6px rgba(179, 25, 52, 0.35) !important;
}

.bchfe-notif-body {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-top: 1.5px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bchfe-notif-message-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.bchfe-notif-body-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.bchfe-filter-bar {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.bchfe-filter-pill {
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ========================================================
   BANHCAFE TOPBAR NOTIFICATION BELL & DROPDOWN POPUP
   ======================================================== */
.bchfe-bell-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.bchfe-bell-trigger {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
}

.bchfe-bell-trigger:hover {
    background-color: #f1f5f9 !important;
    border-color: #B31934 !important;
    color: #B31934 !important;
}

.bchfe-bell-trigger svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

.bchfe-bell-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    background-color: #B31934 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.bchfe-bell-dropdown {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    width: 380px !important;
    max-width: 90vw !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.35), 0 10px 15px -5px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column !important;
}

.bchfe-bell-dropdown-header {
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #B31934 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.bchfe-bell-dropdown-list {
    max-height: 380px !important;
    overflow-y: auto !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
}

.bchfe-bell-dropdown-item {
    padding: 12px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.bchfe-bell-dropdown-item:hover {
    background-color: #f8fafc !important;
}

.bchfe-bell-dropdown-item.unread {
    background-color: #fdf5f6 !important;
    border-left: 4px solid #B31934 !important;
}

.bchfe-bell-dropdown-footer {
    padding: 10px 16px !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    text-align: center !important;
}

/* Table row detail toggle: down when closed, up when open. */
.fi-ta-record-collapse-btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
    margin-inline: 0.5rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.625rem !important;
    background-color: #ffffff !important;
    color: #475569 !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease !important;
}

.fi-ta-record-collapse-btn:hover {
    border-color: #B31934 !important;
    background-color: #fdf5f6 !important;
    color: #B31934 !important;
}

.fi-ta-record.fi-ta-record-collapsed .fi-ta-record-collapse-btn {
    transform: rotate(0deg) !important;
}

.fi-ta-record:not(.fi-ta-record-collapsed) .fi-ta-record-collapse-btn {
    border-color: #B31934 !important;
    background-color: #fdf5f6 !important;
    color: #B31934 !important;
    transform: rotate(180deg) !important;
}

.dark .fi-ta-record-collapse-btn {
    border-color: #475569 !important;
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

