/* Bootstrap Theme Overrides - Brand Colors */
:root {
    --bs-primary: #7F2629;
    --bs-primary-rgb: 127, 38, 41;
    --bs-link-color: #7F2629;
    --bs-link-hover-color: #5d1c1e;
}

.modern-navbar .navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28127,38,41,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(127, 38, 41, 0.5);
}

html {
  position: relative;
  min-height: 100%;
}

body {
    overflow-x: hidden;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.toast-container {
    z-index: 15000;
}

/* AJAX spinner overlay */
.ajax-spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.6);
    z-index: 10;
}

/* User profile badges */
.user-prof-badge { display:inline-flex; align-items:center; gap:4px; font-size:0.85rem; padding:2px 4px; border-radius:4px; background-color:var(--bs-light); border:1px solid var(--bs-border-color-translucent); }
.user-prof-badge .badge-avatar { width:24px; height:24px; border-radius:50%; object-fit:cover; display:block; }
.user-profiles-info-field .badge-avatar { width:32px; height:32px; }
.popover .popover-thumb { width:64px; height:64px; border-radius:8px; object-fit:cover; display:block; }
.user-prof-badge.opacity-50 { opacity:0.55; }
.user-name { line-height:1.1; }

/* AJAX Viewport Skeleton Loader */
.ajax-skeleton {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

.skeleton-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.skeleton-bar {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    height: 1rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin: 0 auto 0.5rem auto;
}

.skeleton-subtitle {
    height: 1rem;
    width: 40%;
    margin: 0 auto 1.5rem auto;
}

.skeleton-line {
    width: 100%;
}

.skeleton-line-short {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Smooth transitions for viewport content */
[data-ajax-viewport] {
    transition: opacity 0.2s ease-in-out;
}

/* Ensure skeleton maintains proper spacing */
.ajax-skeleton .spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Improve visibility of skeleton in different themes */
@media (prefers-color-scheme: dark) {
    .ajax-skeleton {
        background: #212529;
        border-color: #495057;
    }
    
    .skeleton-bar {
        background: linear-gradient(90deg, #495057 25%, #6c757d 50%, #495057 75%);
        background-size: 200% 100%;
    }
}

/* Select 2 bootstrap-5 theme override */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background-color: transparent !important;
    border: 1px solid #495057;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single {
    background - image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

    html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
        color: #dee2e6 !important;
    }

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    color: #dee2e6 !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    border: 1px solid var(--bs-gray-600);
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    color: #dee2e6 !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    background-color: transparent !important;
    color: #dee2e6 !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    color: #dee2e6 !important;
    border: 1px solid #495057 !important;
    background-color: var(--bs-body-bg);
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown.select2-results__options .select2-results__option[role = group] .select2-results__group {
    color: var(--bs-secondary-color) !important;
}

/* ========================================
   MODERN HEADER & FOOTER STYLES
   ======================================== */

/* Modern Sticky Header */
.modern-header {
    background: #121921;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-navbar {
    padding: 0.75rem 0;
}

.modern-navbar .navbar-brand {
    transition: transform 0.2s ease;
}

.modern-navbar .navbar-brand:hover {
    transform: scale(1.05);
}

.modern-navbar .navbar-brand img {
    height: 50px;
    width: auto;
}

.modern-navbar .nav-link {
    font-weight: 500;
    color: #fff;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
    font-size: 0.95rem;
}

.modern-navbar .nav-link:hover,
.modern-navbar .nav-link:focus {
    color: var(--bs-primary);
    background-color: rgba(127, 38, 41, 0.05);
}

.modern-navbar .nav-link.active {
    color: var(--bs-primary);
    font-weight: 600;
}

.modern-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.modern-navbar .dropdown-item {
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modern-navbar .dropdown-item:hover,
.modern-navbar .dropdown-item:focus {
    background-color: rgba(127, 38, 41, 0.1);
    color: var(--bs-primary);
}

.modern-navbar .navbar-toggler {
    border: 2px solid var(--bs-primary);
    padding: 0.5rem 0.75rem;
}

.modern-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(127, 38, 41, 0.25);
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    color: #ecf0f1;
    padding: 3rem 0 0 0;
    margin-top: 4rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-primary);
    display: inline-block;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-contact-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.footer-contact-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.footer-contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-contact-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.footer-contact-value a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-value a:hover {
    color: var(--bs-primary);
}

.footer-whatsapp-img {
    max-height: 1.5em;
    vertical-align: middle;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-4px) scale(1.1);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .modern-navbar .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .modern-navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        margin-top: 0;
    }
    
    .modern-navbar .dropdown-item {
        padding-left: 2rem;
    }
    
    .footer-contact-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .modern-navbar .navbar-brand img {
        height: 40px;
    }
    
    .modern-footer {
        padding: 2rem 0 0 0;
    }
    
    .footer-section-title {
        font-size: 1.1rem;
    }
    
    .footer-contact-icon {
        font-size: 2.5rem;
    }
    
    .footer-social-link {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .footer-contact-item {
        padding: 1.25rem;
    }
    
    .footer-social-links {
        gap: 1rem;
    }
}

/* ========================================
   MEMBER DIRECTORY STYLES
   ======================================== */

/* Copy Protection */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Remove the wildcard selector that might be causing issues */

/* Allow links to be clickable while preventing text selection */
.no-select a {
    cursor: pointer;
    pointer-events: auto;
}

.directory-search-btn {
    background: var(--bs-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    align-self: flex-end;
}

.directory-search-btn:hover {
    background: #5d1c1e;
    transform: translateY(-2px);
}

/* Directory Section */
.directory-section {
    background: #f8f9fa;
    padding: 3rem 0;
    min-height: 60vh;
}

.directory-results-count {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Member Cards */
.member-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.member-card-content {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.member-card-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.member-card-info {
    flex: 1;
    min-width: 0;
}

.member-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.member-name-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.member-name-link:hover {
    color: var(--bs-primary);
}

.member-card-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #495057;
}

.member-icon {
    color: var(--bs-primary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.member-data {
    word-break: break-word;
    color: #495057;
}

/* Clickable links inside member cards */
.member-clickable-link {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    pointer-events: auto;
}

.member-clickable-link:hover {
    color: #5d1c1e;
    text-decoration: underline;
}

.member-separator {
    color: #adb5bd;
    font-weight: 300;
}

/* Member Commercial Relations Section */
.member-relations-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.member-relations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}

.member-relations-title {
    font-size: 0.9rem;
}

.member-relations-tabs {
    pointer-events: auto;
}

/* Compact tabs navigation */
.member-relations-nav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.member-relations-nav .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.member-relations-nav .nav-link:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.member-relations-nav .nav-link.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.relation-tab-label {
    display: inline-flex;
    align-items: center;
}

/* Tab content */
.member-relations-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.85rem;
    min-height: 100px;
    max-height: 180px;
    overflow-y: auto;
}

.member-relations-content::-webkit-scrollbar {
    width: 6px;
}

.member-relations-content::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.member-relations-content::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.member-relations-content::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Relations groups */
.member-relations-group {
    margin-bottom: 0.85rem;
}

.member-relations-group:last-child {
    margin-bottom: 0;
}

.member-relations-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.member-relations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.member-relations-list::-webkit-scrollbar {
    width: 5px;
}

.member-relations-list::-webkit-scrollbar-track {
    background: transparent;
}

.member-relations-list::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.member-relations-item {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    white-space: nowrap;
}

/* Member Details Page */
.member-details-container {
    background: #f8f9fa;
    padding: 3rem 0;
    min-height: 60vh;
}

.member-details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.member-details-logo {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.member-logo-large {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.member-details-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.member-details-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.member-details-section {
    margin-bottom: 2.5rem;
}

.member-details-section:last-child {
    margin-bottom: 0;
}

.member-details-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.member-detail-item {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.member-detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-detail-label i {
    color: var(--bs-primary);
}

.member-detail-value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    word-break: break-word;
}

/* Member relation details for detail view page */
.member-relation-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.member-relation-header {
    margin-bottom: 1rem;
}

.member-relation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Tab navigation for member details page */
.member-details-relations-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-details-relations-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.member-details-relations-nav .nav-link:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #2c3e50;
}

.member-details-relations-nav .nav-link.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Expanded relation details container */
.member-relation-details-expanded {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.member-relation-details-single {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Detail page relation groups with larger styling */
.member-relations-group-detail {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
    border: 1px solid #e9ecef;
}

.member-relations-group-title-detail {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.member-relations-group-title-detail i {
    color: var(--bs-primary);
}

.member-relations-list-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-relations-item-detail {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.member-relations-item-detail:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .member-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .member-card-detail {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .directory-search-btn {
        width: 100%;
    }
    
    .member-card-content {
        padding: 1.25rem;
    }
    
    .member-card-logo {
        width: 60px;
        height: 60px;
    }
    
    .member-details {
        padding: 1.5rem;
    }
    
    .member-details-name {
        font-size: 1.75rem;
    }
    
    .member-details-section-title {
        font-size: 1.25rem;
    }
    
    .member-details-grid {
        grid-template-columns: 1fr;
    }
    
    .member-details-relations-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .member-relation-details-expanded,
    .member-relation-details-single {
        padding: 1rem;
    }
    
    .member-relations-group-detail {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .member-card-name {
        font-size: 1.1rem;
    }
    
    .member-logo-large {
        max-width: 150px;
        max-height: 150px;
    }
}

.rc-if {
    border: 0;
    margin: 0 auto !important;
}

.rc-if-300x250 {
    width: 300px;
    height: 250px;
}

.rc-if-336x280 {
    width: 336px;
    height: 280px;
}

.rc-if-728x90 {
    width: 728px;
    height: 90px;
}

.rc-if-300x600 {
    width: 300px;
    height: 600px;
}

.rc-if-320x100 {
    width: 320px;
    height: 100px;
}

.rc-if-320x50 {
    width: 320px;
    height: 50px;
}

.rc-if-468x60 {
    width: 468px;
    height: 60px;
}

.rc-if-234x60 {
    width: 234px;
    height: 60px;
}

.rc-if-120x600 {
    width: 120px;
    height: 600px;
}

.rc-if-120x240 {
    width: 120px;
    height: 240px;
}

.rc-if-160x600 {
    width: 160px;
    height: 600px;
}

.rc-if-160x600 {
    width: 160px;
    height: 600px;
}

.rc-if-300x1050 {
    width: 300px;
    height: 1050px;
}

.rc-if-970x250 {
    width: 970px;
    height: 250px;
}

.rc-if-250x250 {
    width: 250px;
    height: 250px;
}

.rc-if-200x200 {
    width: 200px;
    height: 200px;
}

.rc-if-180x150 {
    width: 180px;
    height: 150px;
}

.rc-if-125x125 {
    width: 125px;
    height: 125px;
}

.rc-if-240x400 {
    width: 240px;
    height: 400px;
}

.rc-if-980x120 {
    width: 980px;
    height: 120px;
}

.rc-if-250x360 {
    width: 250px;
    height: 360px;
}

.rc-if-930x180 {
    width: 930px;
    height: 180px;
}

.rc-if-580x400 {
    width: 580px;
    height: 400px;
}

.rc-if-580x400 {
    width: 580px;
    height: 400px;
}

.rc-if-750x300 {
    width: 750px;
    height: 300px;
}

.rc-if-750x200 {
    width: 750px;
    height: 200px;
}

.rc-if-750x100 {
    width: 750px;
    height: 100px;
}

.custom-list li {
    padding-left: 2.25rem !important; 
    text-indent: -1.25rem;
    margin-left: 0;
}

/* ========================================
   OBJECT DISPLAY TEMPLATES STYLES
   ======================================== */

/* Compact Object Display (Index Context) */
.object-display-compact {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.75rem;
    line-height: 1.3;
    padding: 0.25rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.object-compact-image {
    flex-shrink: 0;
}

.object-compact-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.object-compact-content {
    flex: 1;
    min-width: 0;
}

/* Override AutoDisplayForModel styles for compact mode */
.object-display-compact .autoform-group {
    margin-bottom: 0.35rem !important;
}

.object-display-compact .autoform-group-title {
    font-size: 0.7rem !important;
    font-weight: 600;
    margin-bottom: 0.2rem !important;
    color: #6c757d;
    text-transform: uppercase;
}

.object-display-compact .row {
    gap: 0.25rem !important;
}

.object-display-compact .col-md-6,
.object-display-compact .col-md-12 {
    padding: 0 !important;
}

.object-display-compact .autoform-field {
    margin-bottom: 0.25rem !important;
}

.object-display-compact .form-label {
    font-size: 0.65rem !important;
    font-weight: 600;
    margin-bottom: 0.1rem !important;
    color: #6c757d;
}

.object-display-compact .fw-medium {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #212529;
}

/* Compact collections - collapsed by default */
.object-display-compact .card {
    margin-bottom: 0.35rem !important;
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.object-display-compact .card-header {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    background: #fff !important;
    border-bottom: 1px solid #e9ecef !important;
    cursor: pointer;
}

.object-display-compact .card-body {
    padding: 0.35rem !important;
    font-size: 0.7rem !important;
}

.object-display-compact .badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.35rem !important;
}

/* Nested object within compact display */
.object-display-compact .object-display-compact {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 0.2rem;
}

/* Full Object Display Card (View/Edit Context) */
.object-display-card .object-image {
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

.object-display-card .card-header {
    background: linear-gradient(to right, rgba(13, 202, 240, 0.1), transparent);
}

/* Nested object styling - slight indent and border */
.object-display-card .object-display-card {
    margin-left: 1rem;
    border-left-color: #0dcaf0;
}

/* Form labels in object display */
.object-display-card .form-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .object-compact-thumb {
        width: 40px;
        height: 40px;
    }
    
    .object-display-compact {
        font-size: 0.7rem;
    }
}

/* ========================================
   END OBJECT DISPLAY TEMPLATES STYLES
   ======================================== */

/* ========================================
   TABLE COLLECTION TEMPLATE STYLES
   ======================================== */

/* Table collection expandable rows */
.table-row-expandable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.table-row-expandable:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Chevron icon animation */
.toggle-icon {
    transition: transform 0.2s ease;
    display: inline-block;
    font-size: 0.875rem;
}

[aria-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

/* Nested table sections with visual hierarchy */
.nested-table-section {
    border-left: 3px solid #0d6efd;
    padding-left: 1rem;
    margin: 0.75rem 0;
}

.nested-table-section[data-nesting-level="1"] {
    border-left-color: #0dcaf0;
}

.nested-table-section[data-nesting-level="2"] {
    border-left-color: #198754;
}

.nested-table-section[data-nesting-level="3"] {
    border-left-color: #ffc107;
}

/* Table styling improvements */
.table-collection {
    font-size: 0.875rem;
}

.table-collection thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.table-collection tbody td {
    vertical-align: middle;
    padding: 0.75rem;
}

/* Collection count badges in tables */
.table-collection .badge {
    font-weight: 500;
}

/* Expand/collapse button styling */
.table-collection .btn-link {
    color: inherit;
    text-decoration: none;
}

.table-collection .btn-link:hover {
    color: var(--bs-primary);
}

/* Sticky header for nested tables */
.table-collection thead.sticky-top {
    top: 0;
    z-index: 10;
}

/* Better visual separation for expanded rows */
.table-collection tr.collapse {
    border-top: 2px solid #dee2e6;
}

.table-collection tr.collapse.show {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .table-collection {
        font-size: 0.8rem;
    }
    
    .nested-table-section {
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
}

/* ========================================
   END TABLE COLLECTION TEMPLATE STYLES
   ======================================== */

/* Contenedor padre de la sección de resultados */
#magazine-results {
    position: relative !important;
}

/* Contenedor de laterales (relativo a la sección) */
.full-sidebars {
    position: absolute !important;
    inset: 0 !important; /* top/right/bottom/left = 0 */
    pointer-events: none !important;
    z-index: 5 !important;
}

/* Laterales */
.sidebar-left, .sidebar-right {
    position: absolute !important;
    top: 710px !important; /* distancia desde la parte superior de la sección */
    width: 160px !important;
    pointer-events: auto !important;
}

/* Izquierdo: borde izquierdo */
.sidebar-left {
    left: 30px !important;
    transform: none !important; /* ajusta si necesitas más margen */
}

/* Derecho: borde derecho */
.sidebar-right {
    right: 30px !important;
}

    /* Forzar visibilidad del iframe */
    .sidebar-left iframe, .sidebar-right iframe {
        display: block !important;
    }

/* Ocultar en móvil/tablet */
@media (max-width: 1199.98px) {
    .full-sidebars {
        display: none !important;
    }
}