/*
 * Estilos Profesionales para Layout Global
 * Identidad Corporativa: Blanco y Negro
 * Fuente: Gotham
 * NO afecta Reporting Services
 */

/* ========================================
   FUENTE GOTHAM GLOBAL
   ======================================== */
body:not(.report-page) {
    font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: #f5f5f5 !important;
    color: #1a1a1a !important;
}

/* ========================================
   NAVBAR PROFESIONAL - Blanco y Negro
   ======================================== */
body:not(.report-page) .navbar {
    background-color: #000000 !important;
    border-bottom: 2px solid #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    padding: 0.75rem 1rem !important;
    min-height: 56px !important;
}

body:not(.report-page) .navbar-brand {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

body:not(.report-page) .navbar-brand:hover {
    color: #e0e0e0 !important;
}

body:not(.report-page) .navbar .nav-link {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease !important;
}

body:not(.report-page) .navbar .nav-link:hover {
    color: #b8b8b8 !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
}

body:not(.report-page) .navbar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

/* Logo en navbar */
body:not(.report-page) .navbar img {
    max-height: 40px !important;
    border-radius: 6px !important;
}

/* ========================================
   SIDEBAR PROFESIONAL Y ACORDEÓN (WHITE, BLACK, BLUE)
   ======================================== */

:root {
    --sb-bg-color: #ffffff;
    --sb-text-color: #1a1a1a;
    --sb-subtext-color: #4b5563;
    --sb-active-bg: #f3f4ff; /* soft indigo background */
    --sb-active-color: #4f46e5; /* beautiful purple/indigo */
    --sb-hover-bg: #f9fafb; /* very light gray */
    --sb-border-color: #f3f4f6; /* gray-100 */
}

body:not(.report-page) #sidebar-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    width: 280px;
    height: 100vh;
    background-color: var(--sb-bg-color) !important;
    border-right: 1px solid var(--sb-border-color) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateX(0);
}

/* Sidebar header */
body:not(.report-page) .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sb-border-color);
    background-color: #ffffff;
}

body:not(.report-page) .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body:not(.report-page) .sidebar-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--sb-border-color);
}

body:not(.report-page) .brand-text {
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: none !important;
}

/* Close button inside sidebar (mobile only) */
body:not(.report-page) .sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: #000000;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

body:not(.report-page) .sidebar-close-btn:hover {
    color: var(--sb-active-color);
}

/* Sidebar content wrapper (scrollable) */
body:not(.report-page) .sidebar-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Accordion Group container */
body:not(.report-page) .sidebar-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Parent links (collapsible triggers) */
body:not(.report-page) .sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 2px 12px !important;
    color: var(--sb-text-color) !important;
    font-family: 'Gotham', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: none !important;
    cursor: pointer;
    background: transparent;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    border-radius: 12px !important;
}

body:not(.report-page) .sidebar-link:hover {
    background-color: var(--sb-hover-bg) !important;
    color: var(--sb-active-color) !important;
}

body:not(.report-page) .sidebar-icon {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 15px;
    color: #6b7280;
    transition: color 0.2s ease;
}

body:not(.report-page) .sidebar-link:hover .sidebar-icon {
    color: var(--sb-active-color);
}

body:not(.report-page) .sidebar-text {
    flex: 1;
}

/* Rotating arrow for accordion */
body:not(.report-page) .toggle-arrow {
    font-size: 10px;
    color: #888888;
    transition: transform 0.3s ease;
}

body:not(.report-page) .sidebar-link:not(.collapsed) {
    background-color: var(--sb-hover-bg) !important;
    color: var(--sb-active-color) !important;
}

body:not(.report-page) .sidebar-link:not(.collapsed) .sidebar-icon {
    color: var(--sb-active-color);
}

body:not(.report-page) .sidebar-link:not(.collapsed) .toggle-arrow {
    transform: rotate(180deg);
    color: var(--sb-active-color);
}

/* Collapsible submenu list */
body:not(.report-page) .sidebar-sublist {
    background-color: transparent !important;
    padding: 0.25rem 12px 0.5rem 12px !important;
}

/* Submenu links */
body:not(.report-page) .sidebar-sublink {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    margin: 2px 0 !important;
    color: var(--sb-subtext-color) !important;
    font-family: 'Gotham', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: none !important;
    border-radius: 8px !important;
}

body:not(.report-page) .sidebar-sublink:hover {
    color: var(--sb-active-color) !important;
    background-color: var(--sb-active-bg) !important;
    text-decoration: none !important;
}

/* Standalone single links (e.g. Calendario) */
body:not(.report-page) .sidebar-single-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 2px 12px !important;
    color: var(--sb-text-color) !important;
    font-family: 'Gotham', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: none !important;
    border-radius: 12px !important;
}

body:not(.report-page) .sidebar-single-link:hover {
    background-color: var(--sb-hover-bg) !important;
    color: var(--sb-active-color) !important;
}

body:not(.report-page) .sidebar-single-link:hover .sidebar-icon {
    color: var(--sb-active-color);
}

/* Active sublink styling when on the current page */
body:not(.report-page) .sidebar-sublink.active {
    color: var(--sb-active-color) !important;
    font-weight: 600 !important;
    background-color: var(--sb-active-bg) !important;
    border-left: none !important;
}

body:not(.report-page) .sidebar-single-link.active {
    color: var(--sb-active-color) !important;
    font-weight: 600 !important;
    background-color: var(--sb-active-bg) !important;
    border-left: none !important;
}

/* Footer of the sidebar */
body:not(.report-page) .sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--sb-border-color);
    background-color: #ffffff;
}

body:not(.report-page) .sidebar-btn-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-family: 'Gotham', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid #000000 !important;
}

body:not(.report-page) .sidebar-btn-home *,
body:not(.report-page) .sidebar-btn-home:hover * {
    color: #ffffff !important;
}

body:not(.report-page) .sidebar-btn-home:hover {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Overlay / Backdrop for mobile menu */
body:not(.report-page) .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

/* Main Layout adjustments */
body:not(.report-page) #wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

body:not(.report-page) #page-content-wrapper,
body:not(.report-page) #page-content-wrapper2 {
    width: 100%;
    min-height: 100vh;
    padding-left: 280px; /* space for pinned sidebar on desktop */
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Desktop: Pinned and collapsed logic */
@media (min-width: 768px) {
    /* When wrapper has toggled class, slide sidebar away and expand page content */
    body:not(.report-page) #wrapper.toggled #sidebar-wrapper {
        transform: translateX(-280px) !important;
    }
    
    body:not(.report-page) #wrapper.toggled #page-content-wrapper,
    body:not(.report-page) #wrapper.toggled #page-content-wrapper2 {
        padding-left: 0 !important;
    }
}

/* Mobile responsive drawer logic */
@media (max-width: 768px) {
    body:not(.report-page) #sidebar-wrapper {
        transform: translateX(-280px) !important; /* hidden offscreen by default */
    }
    
    body:not(.report-page) #page-content-wrapper,
    body:not(.report-page) #page-content-wrapper2 {
        padding-left: 0 !important; /* content takes full width on mobile */
    }
    
    body:not(.report-page) .sidebar-close-btn {
        display: block; /* show close button inside sidebar on mobile */
    }
    
    /* When wrapper is toggled, slide sidebar IN and show backdrop */
    body:not(.report-page) #wrapper.toggled #sidebar-wrapper {
        transform: translateX(0) !important;
    }
    
    body:not(.report-page) #wrapper.toggled .sidebar-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
    }
}


/* ========================================
   BOTÓN TOGGLE MENU
   ======================================== */
body:not(.report-page) #menu-toggle {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    font-family: 'Gotham', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

body:not(.report-page) #menu-toggle:hover {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

body:not(.report-page) #menu-toggle:active {
    transform: translateY(0) !important;
}



@media (min-width: 768px) {
    #menu-toggle {
        display: none !important;
    }
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */
body:not(.report-page) #page-content-wrapper,
body:not(.report-page) #page-content-wrapper2 {
    background-color: #f5f5f5 !important;
    min-height: 100vh !important;
}

body:not(.report-page) .container-fluid {
    padding: 1.5rem !important;
    background-color: transparent !important;
}

/* ========================================
   TÍTULOS PROFESIONALES
   ======================================== */
body:not(.report-page) h1 {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: #000000 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid #000000 !important;
    letter-spacing: 0.5px !important;
}

body:not(.report-page):not(.premium-edit-header):not(.page-title-processed):not(.page-title) h2 {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    color: black !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #000000 !important;
    letter-spacing: 0.5px !important;
}

body:not(.report-page):not(.premium-edit-header):not(page-subtitle) p {
    font-family: 'Gotham', sans-serif !important;
    color: black !important;
}

body:not(.report-page) h3 {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
}

body:not(.report-page) h4 {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 0.75rem !important;
}

body:not(.report-page) h5 {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
}

body:not(.report-page) h6 {
    font-family: 'Gotham', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #2d2d2d !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   PÁRRAFOS Y TEXTO
   ======================================== */
body:not(.report-page):not(.premium-edit-heade) p {
    font-family: 'Gotham', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
}

body:not(.report-page) a:not(.btn):not(.list-group-item):not(.btn-usr-edit):not(.dropdown-item):not(.nav-link):not(.sidebar-btn-home):not(.sidebar-link):not(.sidebar-sublink):not(.sidebar-single-link) {
    color: #1a73e8 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;   
}

body:not(.report-page) a:not(.btn):not(.list-group-item):not(.dropdown-item):not(.nav-link):not(.sidebar-btn-home):not(.sidebar-link):not(.sidebar-sublink):not(.sidebar-single-link):hover {
    color: #1558b0 !important;
    border-bottom-color: #1558b0 !important;
}

/* Grillas: links en celdas de tabla deben verse bien sobre fondo blanco */
body:not(.report-page) table td a,
body:not(.report-page) table th a {
    color: #1a73e8 !important;
    font-weight: 500 !important;
  
}
body:not(.report-page) table td a:hover,
body:not(.report-page) table th a:hover {
    color: #1558b0 !important;
    text-decoration: underline !important;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
body:not(.report-page) #fluidBreadcrumb {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ========================================
   CALENDARIO - Más cerca del navbar
   ======================================== */
body.calendar-page #page-content-wrapper,
body.calendar-page #page-content-wrapper2 {
    padding-top: 0 !important;
}

body.calendar-page .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

body.calendar-page iframe {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    body:not(.report-page) h1 {
        font-size: 20px !important;
    }

    body:not(.report-page) h2 {
        font-size: 18px !important;
    }

    body:not(.report-page) h3 {
        font-size: 15px !important;
    }

    body:not(.report-page) .navbar {
        padding: 0.5rem 0.75rem !important;
    }

    body:not(.report-page) .container-fluid {
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    body:not(.report-page) h1 {
        font-size: 18px !important;
    }

    body:not(.report-page) h2 {
        font-size: 16px !important;
    }

    body:not(.report-page) h3 {
        font-size: 14px !important;
    }

    body:not(.report-page) .navbar-brand {
        font-size: 14px !important;
    }

    body:not(.report-page) .container-fluid {
        padding: 0.75rem !important;
    }


}

@media (max-width: 576px) {
    body:not(.report-page) h1 {
        font-size: 16px !important;
    }

    body:not(.report-page) h2 {
        font-size: 14px !important;
    }

    body:not(.report-page) p {
        font-size: 12px !important;
    }
}

/* ========================================
   DASHBOARD PREMIUM STYLES (Mockup conversion)
   ======================================== */

/* Viewport height restrictions on desktop to prevent page scroll */
@media (min-width: 992px) {
    .dashboard-viewport-container {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 100px); /* Adjust based on navbar + margins */
        gap: 12px;
    }

    .dashboard-grid {
        display: grid !important;
        grid-template-columns: 1.3fr 1.0fr !important;
        gap: 12px !important;
        height: auto !important;
    }

    .dashboard-column-left {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: auto !important;
    }

    .dashboard-column-right {
        display: flex;
        flex-direction: column;
        height: auto !important;
    }
}

/* Fallback for smaller screens */
@media (max-width: 992px) {
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .dashboard-column-left,
    .dashboard-column-right {
        width: 100%;
    }
}

/* Compact and modern unified welcome row */
.dashboard-welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.8) 100%), url('https://lh3.googleusercontent.com/aida-public/AB6AXuCT3WiSkr0DfO6-hS3pvx3qrIKe8wTWoyI8CMGdzClm5x0DauGR36ZYW3kXUIoKN1dvvak33wSFPk8JiW1z-loMx5dltahF5RTb6TgD4bp-AYyjJg_mtp6sxFSUNbq5byJlkpRT6pAsnJrT-Qx6p_JS9Oz6BQXKbqp5TUB3epWIZzUczS5Hfy30MfNstM7461XmucwaVqrVKn6uOh1PkXDm0t5pAz4zzMwiJ5PpF0d_mvcEve3JtN6LiVj3jfxWKFKmbaQoiL5lB2s');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 14px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.welcome-title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important;
}

.welcome-subtitle {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem) !important;
    color: #4b5563 !important;
    margin: 4px 0 0 0 !important;
}

/* User avatar and identity badge inside the welcome row */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f3e8ff;
    color: #7c3aed;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-avatar-name {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.user-avatar-role {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
}

/* Premium Dashboard Card structure */
.premium-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* Responsive Next Event Card */
.next-event-card {
    display: flex;
    min-height: 180px;
    height: auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.next-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.next-event-info {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.next-event-image-container {
    width: 30%;
    min-width: 120px;
    flex-shrink: 0;
    position: relative;
    background-color: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.next-event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.next-event-card:hover .next-event-img {
    transform: scale(1.04);
}

.next-event-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30px;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
    pointer-events: none;
}

.event-title-responsive {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important;
    font-weight: 700 !important;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: #4b5563;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-detail-item i {
    color: #4f46e5;
    width: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .next-event-card {
        min-height: 130px;
        height: auto;
    }
    .next-event-info {
        padding: 14px 16px;
    }
    .event-title-responsive {
        font-size: 13.5px !important;
        margin-bottom: 6px;
    }
    .event-details-list {
        gap: 6px;
    }
    .event-detail-item {
        font-size: 11px !important;
    }
    .next-event-image-container {
        width: 30%;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .next-event-card {
        min-height: 120px;
        height: auto;
    }
    .next-event-info {
        padding: 12px;
        flex: 1;
    }
    .next-event-image-container {
        width: 35%;
        min-width: 90px;
    }
    .event-title-responsive {
        font-size: 12.5px !important;
        margin-bottom: 4px;
    }
    .event-details-list {
        gap: 4px;
    }
    .event-detail-item {
        font-size: 10px !important;
    }
    .event-detail-item i {
        width: 12px;
    }
}

/* Bible Quote Card styling */
.bg-gradient-quote {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    border-left: 4px solid #4f46e5;
    border-radius: 16px;
    padding: 18px 24px;
    min-height: 100px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.quote-icon-bg {
    position: absolute;
    right: 20px;
    bottom: -15px;
    font-size: 80px;
    color: rgba(79, 70, 229, 0.04);
    pointer-events: none;
}

.quote-content-wrapper {
    position: relative;
    z-index: 1;
}

.quote-text-responsive {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem) !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 6px !important;
    padding-top: 0 !important;
    font-style: italic;
}

.quote-author-responsive {
    font-size: clamp(0.7rem, 0.9vw, 0.8rem) !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact Quick Access Section */
.quick-access-section-compact {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.quick-access-title-responsive {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem) !important;
    font-weight: 700 !important;
    color: #111827;
    margin-bottom: 8px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 768px) {
    .bg-gradient-quote {
        margin-top: 15px;
    }
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-access-btn-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: #1f2937 !important;
    width: 100%;
}

.quick-access-btn-compact:hover {
    transform: translateY(-2px);
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.quick-access-icon-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.quick-access-btn-text {
    display: flex;
    flex-direction: column;
}

.quick-access-btn-name {    
    font-weight: 700 !important;
    color: #1f2937;
    line-height: 1.1;
}

.quick-access-btn-desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.1;
}

.icon-indigo { background-color: #e0e7ff; color: #4f46e5; }
.icon-green { background-color: #d1fae5; color: #10b981; }
.icon-orange { background-color: #ffedd5; color: #f97316; }
.icon-blue { background-color: #e0f2fe; color: #0284c7; }

/* Custom Responsive Grid Calendar */
.dashboard-calendar-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 16px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.calendar-months-scroller {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}
.calendar-months-scroller::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}
.calendar-months-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.cal-month-btn {
    display: inline-block;
    padding: 6px 8px;
    font-size: clamp(0.7rem, 0.9vw, 0.75rem);
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    flex-grow: 1;
}
.cal-month-btn:hover {
    background-color: #f1f5f9;
    color: #4f46e5;
}
.cal-month-btn.active {
    background-color: #e0e7ff;
    color: #4f46e5;
    font-weight: 700;
}

/* Calendar Days Grid (7 cols) */
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 4px;
}
.calendar-day-name {
    font-size: clamp(0.65rem, 0.9vw, 0.75rem);
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Calendar Dates Grid (7 cols) */
.calendar-dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}
.calendar-date-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 32px;
    height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    font-weight: 600;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: #334155;
    user-select: none;
}
.calendar-date-cell.empty {
    cursor: default;
    pointer-events: none;
}
.calendar-date-cell:not(.empty):hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.calendar-date-cell.has-events {
    background-color: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}
.calendar-date-cell.active {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}
.calendar-date-cell.has-events.active {
    background-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.btn-cal-nav {
    color: #64748b;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-cal-nav:hover {
    background: #e2e8f0;
    color: #4f46e5;
}

/* Sidebar header logo layout details */
body:not(.report-page) .sidebar-logo-box {
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

/* Home button custom style */
body:not(.report-page) .sidebar-btn-home {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.8rem 1rem !important;
    border: none !important;
}

body:not(.report-page) .sidebar-btn-home:hover {
    background-color: #1a1a1a !important;
}

/* Estandarización de alineación de botones de acción en tablas */
.actions-cell,
table td:last-child > div {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
}
table th:last-child,
table td:last-child {
    text-align: left !important;
    padding-left: 20px !important;
}
.btn-action-premium {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}