@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ===================================================================
   Custom Primary Color Override - #0a3579 (Deep Blue)
   =================================================================== */

:root {
    /* Main Primary Color */
    --bs-primary: #0a3579;
    --bs-primary-rgb: 10, 53, 121;

    /* Primary Shades & Tints */
    --bs-primary-shade: #082a61;
    --bs-primary-tint: #0d4291;
    --bs-primary-light: #1a4fa0;
    --bs-primary-lighter: #3d6bb5;
    --bs-primary-lightest: #6087c9;
    --bs-primary-dark: #071f49;
    --bs-primary-darker: #051531;

    /* Button States */
    --bs-btn-primary-bg: #0a3579;
    --bs-btn-primary-border: #0a3579;
    --bs-btn-primary-hover-bg: #082a61;
    --bs-btn-primary-hover-border: #082a61;
    --bs-btn-primary-active-bg: #071f49;
    --bs-btn-primary-active-border: #071f49;
    --bs-btn-primary-disabled-bg: #0a3579;
    --bs-btn-primary-disabled-border: #0a3579;

    /* Warning Color */
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
}

/* ===================================================================
   Background Colors
   =================================================================== */

.bg-primary {
    background-color: #0a3579 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
}

.bg-label-primary {
    background-color: rgba(10, 53, 121, 0.12) !important;
    color: #0a3579 !important;
}

.bg-primary-subtle {
    background-color: rgba(10, 53, 121, 0.1) !important;
}

/* ===================================================================
   Text Colors
   =================================================================== */

.text-primary {
    color: #0a3579 !important;
}

a.text-primary:hover,
a.text-primary:focus {
    color: #082a61 !important;
}

.text-body-secondary .text-primary {
    color: #0a3579 !important;
}

/* ===================================================================
   Border Colors
   =================================================================== */

.border-primary {
    border-color: #0a3579 !important;
}

.border-top-primary {
    border-top-color: #0a3579 !important;
}

.border-bottom-primary {
    border-bottom-color: #0a3579 !important;
}

.border-start-primary {
    border-left-color: #0a3579 !important;
}

.border-end-primary {
    border-right-color: #0a3579 !important;
}

.table > tbody > tr > td,
.table > tbody > tr > th {
    border-bottom-color: #343a40;
}

@media (max-width: 767.98px) {
    .imagenologia-study-icon {
        width: 74px !important;
        height: 74px !important;
    }
}

/* ===================================================================
   Buttons - Primary
   =================================================================== */

.btn-primary {
    --bs-btn-bg: #0a3579;
    --bs-btn-border-color: #0a3579;
    --bs-btn-hover-bg: #082a61;
    --bs-btn-hover-border-color: #082a61;
    --bs-btn-active-bg: #071f49;
    --bs-btn-active-border-color: #071f49;
    --bs-btn-disabled-bg: #0a3579;
    --bs-btn-disabled-border-color: #0a3579;
    background-color: #0a3579 !important;
    border-color: #0a3579 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #082a61 !important;
    border-color: #082a61 !important;
    color: #fff !important;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(10, 53, 121, 0.4) !important;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary.show {
    background-color: #071f49 !important;
    border-color: #071f49 !important;
    color: #fff !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #0a3579 !important;
    border-color: #0a3579 !important;
    opacity: 0.65;
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    background-color: #071f49 !important;
    border-color: #071f49 !important;
}

.btn-whatsapp {
    --bs-btn-color: #fff;
    --bs-btn-bg: #3f9b04;
    --bs-btn-border-color: #25d366;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1ebe57;
    --bs-btn-hover-border-color: #1ebe57;
    --bs-btn-focus-shadow-rgb: 37, 211, 102;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1aa34a;
    --bs-btn-active-border-color: #1aa34a;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #25d366;
    --bs-btn-disabled-border-color: #25d366;
    background-color: #3f9b04 !important;
    border-color: #3f9b04 !important;
    color: #fff !important;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(37, 211, 102, 0.4) !important;
}

.btn-whatsapp:active,
.btn-whatsapp.active,
.btn-whatsapp.show {
    background-color: #1aa34a !important;
    border-color: #1aa34a !important;
    color: #fff !important;
}

.btn-whatsapp:disabled,
.btn-whatsapp.disabled {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
    opacity: 0.65;
}

/* Button Outline Primary */
.btn-outline-primary {
    --bs-btn-color: #0a3579;
    --bs-btn-border-color: #0a3579;
    --bs-btn-hover-bg: #0a3579;
    --bs-btn-hover-border-color: #0a3579;
    --bs-btn-active-bg: #0a3579;
    --bs-btn-active-border-color: #0a3579;
    color: #0a3579 !important;
    border-color: #0a3579 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #0a3579 !important;
    border-color: #0a3579 !important;
    color: #fff !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #071f49 !important;
    border-color: #071f49 !important;
}

/* Button Label Primary */
.btn-label-primary {
    color: #0a3579 !important;
    background-color: rgba(10, 53, 121, 0.12) !important;
    border-color: transparent !important;
}

.btn-label-primary:hover,
.btn-label-primary:focus {
    background-color: rgba(10, 53, 121, 0.2) !important;
    color: #0a3579 !important;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(10, 53, 121, 0.4) !important;
}

.btn-label-primary:active,
.btn-label-primary.active {
    background-color: #0a3579 !important;
    color: #fff !important;
}

/* ===================================================================
   Badges
   =================================================================== */

.badge.bg-primary {
    background-color: #0a3579 !important;
    color: #fff !important;
}

.badge.bg-label-primary {
    background-color: #0a3579 !important;
    color: #FFFFFF !important;
}

/* ===================================================================
   Alerts
   =================================================================== */

.alert-primary {
    background-color: rgba(10, 53, 121, 0.12) !important;
    border-color: rgba(10, 53, 121, 0.2) !important;
    color: #0a3579 !important;
}

.alert-primary .alert-link {
    color: #071f49 !important;
}

.alert-primary .btn-close {
    filter: invert(16%) sepia(71%) saturate(2087%) hue-rotate(201deg) brightness(93%) contrast(98%);
}

/* ===================================================================
   Links
   =================================================================== */

a.link-primary,
.link-primary {
    color: #0a3579 !important;
}

a.link-primary:hover,
a.link-primary:focus,
.link-primary:hover,
.link-primary:focus {
    color: #082a61 !important;
}

/* ===================================================================
   Forms
   =================================================================== */

.form-check-input:checked {
    background-color: #0a3579 !important;
    border-color: #0a3579 !important;
}

.form-check-input:focus {
    border-color: #3d6bb5 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 53, 121, 0.25) !important;
}

.form-switch .form-check-input:checked {
    background-color: #0a3579 !important;
}

.form-select:focus {
    border-color: #3d6bb5 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 53, 121, 0.25) !important;
}

.form-control:focus {
    border-color: #3d6bb5 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 53, 121, 0.25) !important;
}

.form-range::-webkit-slider-thumb {
    background-color: #0a3579 !important;
}

.form-range::-moz-range-thumb {
    background-color: #0a3579 !important;
}

/* ===================================================================
   Tooltips UPC
   =================================================================== */

.tooltip-upc {
    max-width: 100% !important;
}

.tooltip-upc .tooltip-inner {
    max-width: 720px !important;
    min-width: 520px !important;
    text-align: left;
    border-radius: 0.75rem;
}

@media (min-width: 768px) {
    .lab-result-actions {
        width: auto !important;
        margin-left: auto !important;
    }
}

.form-range::-webkit-slider-thumb:active {
    background-color: #6087c9 !important;
}

.form-range::-moz-range-thumb:active {
    background-color: #6087c9 !important;
}

/* ===================================================================
   Progress Bars
   =================================================================== */

.progress-bar {
    background-color: #0a3579 !important;
}

.progress-bar.bg-primary {
    background-color: #0a3579 !important;
}

/* ===================================================================
   Pagination
   =================================================================== */

.pagination .page-item.active .page-link {
    background-color: #0a3579 !important;
    border-color: #0a3579 !important;
    color: #fff !important;
}

.page-link {
    color: #0a3579 !important;
}

.page-link:hover,
.page-link:focus {
    color: #082a61 !important;
    background-color: rgba(10, 53, 121, 0.1) !important;
}

.lis-pagination .page-link {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    font-weight: 600;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.lis-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    border-color: rgba(10, 53, 121, 0.12);
}

.lis-pagination .page-item.active .page-link {
    box-shadow: 0 0.2rem 0.45rem rgba(10, 53, 121, 0.22);
}

.lis-pagination .page-item.disabled .page-link {
    color: #8a94a6 !important;
    background-color: #f3f5f8 !important;
}

.lis-pagination .page-link:focus-visible {
    outline: 3px solid rgba(10, 53, 121, 0.22);
    outline-offset: 2px;
}

/* ===================================================================
   Navigation & Menu
   =================================================================== */

/* Vertical Menu Active State */
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
    background-color: rgba(10, 53, 121, 0.16) !important;
    color: #0a3579 !important;
}

.menu-vertical .menu-item.active > .menu-link .menu-icon {
    color: #0a3579 !important;
}

.menu-vertical .menu-item.active:before {
    background-color: #0a3579 !important;
}

/* Horizontal Menu */
.menu-horizontal .menu-item.active > .menu-link {
    color: #0a3579 !important;
}

/* Menu Sub Active */
.menu-sub > .menu-item.active > .menu-link:not(.menu-toggle) {
    background-color: rgba(10, 53, 121, 0.12) !important;
}

/* Navbar */
.navbar .nav-link.active {
    color: #0a3579 !important;
}

/* ===================================================================
   Nav Tabs & Pills
   =================================================================== */

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #0a3579 !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #0a3579 !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #0a3579 !important;
    color: #fff !important;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    color: #fff !important;
}

/* ===================================================================
   List Groups
   =================================================================== */

.list-group-item.active {
    background-color: #0a3579 !important;
    border-color: #0a3579 !important;
}

.list-group-item-primary {
    background-color: rgba(10, 53, 121, 0.12) !important;
    color: #0a3579 !important;
}

.list-group-item-primary.list-group-item-action:hover,
.list-group-item-primary.list-group-item-action:focus {
    background-color: rgba(10, 53, 121, 0.2) !important;
    color: #0a3579 !important;
}

/* ===================================================================
   Dropdowns
   =================================================================== */

.dropdown-item.active,
.dropdown-item:active {
    background-color: #0a3579 !important;
    color: #fff !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(10, 53, 121, 0.08) !important;
    color: #0a3579 !important;
}

/* ===================================================================
   Cards
   =================================================================== */

.card.bg-primary {
    background-color: #0a3579 !important;
    color: #fff !important;
}

.card-header.bg-primary {
    background-color: #0a3579 !important;
    color: #fff !important;
}

/* ===================================================================
   Tables
   =================================================================== */

.table-primary {
    --bs-table-bg: rgba(10, 53, 121, 0.1);
    --bs-table-border-color: rgba(10, 53, 121, 0.15);
    --bs-table-striped-bg: rgba(10, 53, 121, 0.05);
    --bs-table-active-bg: rgba(10, 53, 121, 0.1);
    --bs-table-hover-bg: rgba(10, 53, 121, 0.075);
}

.table-primary,
.table-primary > th,
.table-primary > td {
    background-color: rgba(10, 53, 121, 0.1) !important;
    color: #0a3579 !important;
    border-color: black !important;
}

/* ===================================================================
   Toasts
   =================================================================== */

.toast.bg-primary {
    background-color: #0a3579 !important;
    color: #fff !important;
}

/* ===================================================================
   Spinners
   =================================================================== */

.spinner-border.text-primary,
.spinner-grow.text-primary {
    color: #0a3579 !important;
}

/* ===================================================================
   Accordion
   =================================================================== */

.accordion-button:not(.collapsed) {
    color: #0a3579 !important;
    background-color: rgba(10, 53, 121, 0.1) !important;
}

.accordion-button:focus {
    border-color: #3d6bb5 !important;
    box-shadow: 0 0 0 0.2rem rgba(10, 53, 121, 0.25) !important;
}

/* ===================================================================
   Timeline
   =================================================================== */

.timeline .timeline-item.timeline-item-primary .timeline-event {
    border-color: #0a3579 !important;
}

.timeline .timeline-item.timeline-item-primary .timeline-point {
    background-color: #0a3579 !important;
    border-color: #0a3579 !important;
}

.upc-bg {
    background: linear-gradient(135deg, #0a3579, #1a4589);
}

.text-upc {
    color: #0a3579;
}

.text-upc-bold {
    color: #0a3579 !important;
    font-weight: bold !important;
}


/* ===================================================================
   Misc Components
   =================================================================== */

/* Offcanvas */
.offcanvas.bg-primary {
    background-color: #0a3579 !important;
}

/* Modal */
.modal-header.bg-primary {
    background-color: #0a3579 !important;
    color: #fff !important;
}

/* Breadcrumb */
.breadcrumb-item.active {
    color: #0a3579 !important;
}

/* Placeholder */
.placeholder.bg-primary {
    background-color: #0a3579 !important;
}

/* Focus ring */
.focus-ring-primary {
    --bs-focus-ring-color: rgba(10, 53, 121, 0.25) !important;
}


@keyframes shake-horizontal {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    50% {
        transform: translateX(8px);
    }
    75% {
        transform: translateX(-8px);
    }
}

.shake-horizontal {
    animation: shake-horizontal 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

/* Mejora la visibilidad del feedback de Bootstrap */
.invalid-feedback {
    font-weight: bold;
    font-size: 0.85rem;
}


.swal2-popup {
    font-family: 'Public Sans', sans-serif !important;
    border-radius: 12px !important;
}

.swal2-confirm {
    background-color: #4154f1 !important;
}

.swal2-confirm.upc-whatsapp-confirm {
    background-color: #3f9b04 !important;
}

.swal2-cancel.upc-whatsapp-cancel {
    background-color: #ea5455 !important;
}

/* ===================================================================
   Navbar Dropdown - Hide Arrow/Chevron
   =================================================================== */

/* Ocultar el pseudo-elemento ::after del dropdown-toggle */
.layout-navbar .nav-link.dropdown-toggle.hide-arrow::after {
    display: none !important;
}

/* ===================================================================
   Navbar - Ajustar padding horizontal al mismo del contenedor
   =================================================================== */

/* Aplicar el mismo padding horizontal que el contenedor-xxl */
.layout-navbar.navbar-detached {
    padding-inline: calc(var(--bs-gutter-x, 1.625rem) * 0.5) !important;
}

/* En móvil el contenedor-xxl usa padding-inline: 1rem, así que el navbar
   detached debe encogerse 1rem por lado (no 1.625rem) para alinear su ancho
   con el del contenido. La regla del template solo aplica con
   layout-navbar-fixed; este layout usa layout-menu-fixed. */
@media (max-width: 991.98px) {
    .layout-navbar.navbar-detached {
        inline-size: calc(100% - 1rem * 2) !important;
    }
}

.table thead th {
    text-transform: capitalize !important;
}

.imagenologia-table-responsive {
    overflow: visible !important;
}

.imagenologia-table-responsive .dropdown-menu {
    z-index: 1080;
}

.share-dropdown-menu {
    min-width: 220px;
    width: max-content;
    max-width: calc(100vw - 2rem);
}

.share-dropdown-menu .dropdown-item {
    font-size: 1rem;
    white-space: nowrap;
    font-weight: bold;
}

.imagenologia-table-responsive table tbody tr {
    contain: none;
}

/* ===================================================================
   Performance Optimization - Reduce Layout Shift & Improve LCP
   =================================================================== */

.mobile-navbar-menu-label {
    color: #0a3579;
    font-size: 0.79rem;
    font-weight: 700;
    vertical-align: middle;
}

/* Evitar cumulative layout shift en avatares */
.avatar, .avatar-initial {
    line-height: 1;
    vertical-align: middle;
}

/* Optimizar rendering de tablas */
table.table tbody tr {
    contain: layout style paint;
}

/* Lazy load para imágenes con blur-up placeholder */
img[loading="lazy"] {
    background-color: #f0f0f0;
    aspect-ratio: attr(width) / attr(height);
}

/* Evitar shift en badges */
.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Optimize skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

@media (max-width: 767.98px) {
    .tooltip-upc .tooltip-inner {
        min-width: 340px !important;
        max-width: 92vw !important;
    }

    .text-muted {
        font-weight: bold !important;
        color: #000000 !important;
        font-size: 10.5pt !important;
    }

    .nombre-estudio {
        font-size: 13pt !important;
        color: #0a3579 !important;
        font-weight: bold !important;
    }

    .upc-text-black {
        font-size: 13pt !important;
    }

    .upc-text {
        color: #0a3579 !important;
        font-weight: bolder !important;
        font-size: 12pt !important;
    }

    .upc-text-big {
        font-size: 14pt !important;
    }

    .upc-text-xl {
        font-size: 15pt !important;
    }

    .upc-text-big-bold {
        font-size: 14pt !important;
        font-weight: bold;
    }

    .border {
        border: 1px solid gray !important;
    }

    .layout-navbar .navbar-nav-right ul.navbar-nav {
        justify-content: flex-end;
    }

    .hide-thead-mobile {
        display: none !important;
    }

    .familiar-profile-avatar {
        margin-bottom: 0.5rem !important;
    }

    .laboratorio-mobile-record > * {
        border-bottom: 0 !important;
    }

    .laboratorio-mobile-actions {
        border-top: 0 !important;
    }

    .table tbody tr:not(:last-child) > * {
        border-bottom-color: #8e8e8e !important;
    }

    .imagenologia-mobile-icon,
    .imagenologia-mobile-icon .avatar {
        width: 60px !important;
        min-width: 60px !important;
        height: 60px !important;
        min-height: 60px !important;
        flex: 0 0 60px !important;
    }

    .imagenologia-mobile-content {
        min-width: 0;
        flex: 1 1 0%;
    }

    .laboratorio-mobile-icon,
    .laboratorio-mobile-icon .avatar {
        width: 60px !important;
        min-width: 60px !important;
        height: 60px !important;
        min-height: 60px !important;
        flex: 0 0 60px !important;
    }

    .laboratorio-mobile-content {
        min-width: 0;
        flex: 1 1 0%;
    }

    .laboratorio-mobile-row-content,
    .laboratorio-mobile-exam-content,
    .laboratorio-profile-row,
    .laboratorio-profile-name,
    .laboratorio-exam-row,
    .laboratorio-mobile-visit-meta {
        min-width: 0;
    }

    .laboratorio-mobile-row-content {
        flex: 1 1 0%;
    }

    .laboratorio-profile-name {
        flex: 1 1 auto;
    }

    .laboratorio-mobile-row-content a {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

/* ===================================================================
   Mobile Breakpoints - Small, Medium and Large Devices
   =================================================================== */

/* Mobile small: up to 374.98px */
@media (max-width: 374.98px) {
    .text-muted,
    .upc-text {
        font-size: 10pt !important;
    }

    .nombre-estudio {
        font-size: 12pt !important;
    }

    .imagenologia-mobile-content,
    .laboratorio-mobile-content {
        font-size: 0.8125rem;
    }
}

/* Mobile medium: 375px to 575.98px */
@media (min-width: 375px) and (max-width: 575.98px) {
    .imagenologia-mobile-content,
    .laboratorio-mobile-content,
    .laboratorio-mobile-visit-meta {
        font-size: 0.875rem;
    }

    .text-muted,
    .upc-text {
        font-size: 13pt !important;
    }

    .text-muted-lab {
        font-size: 11pt !important;
    }

    .upc-text-black-secondary {
        font-size: 10pt !important;
        color: black !important;
        font-weight: bold !important;
    }

    .upc-profile-text {
        font-size: 16pt !important;
        color: black !important;
    }

    .departamento-estudio {
        font-size: 14pt !important;
    }

    .text-upc-bold {
        font-size: 11.5pt !important;
    }

    .upc-text-black {
        font-size: 13pt !important;
    }
}

/* Mobile large: 576px to 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .imagenologia-mobile-content,
    .laboratorio-mobile-content {
        font-size: 0.9375rem;
    }
}

.text-bg-whatsapp,
.bg-success,
.text-bg-success {
    background-color: #3f9b04 !important;
    color: #fff !important;
}

.bg-whatsapp {
    background-color: #3f9b04 !important;
    color: #fff !important;
}

.bs-toast.bg-whatsapp .toast-header,
.bs-toast.bg-whatsapp .toast-body {
    background-color: #3f9b04 !important;
    color: #fff !important;
}

.btn-close-danger {
    filter: invert(47%) sepia(72%) saturate(2268%) hue-rotate(326deg) brightness(96%) contrast(91%);
    opacity: 1;
}

.upc-table-header > tr > th {
    background-color: #0a3579 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

@media (min-width: 768px) {
    .laboratorio-date-column {
        min-width: 180px;
        width: 180px;
        white-space: nowrap;
    }
}

.modal .btn-close,
.modal-avatar-close {
    background: var(--bs-danger) !important;
    background-image: none !important;
    filter: none !important;
    opacity: 1;
    transform: none !important;
}

.modal .btn-close:hover,
.modal .btn-close:focus,
.modal .btn-close:active {
    transform: none !important;
}

.modal .btn-close::before,
.modal-avatar-close::before {
    background-color: var(--bs-white, #fff) !important;
}

.avatar-upload-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.company-logo-pulse {
    width: 144px;
    height: 144px;
    border-radius: 999px;
    background: rgba(10, 53, 121, 0.08);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    animation: company-logo-pulse-anim 1.4s ease-in-out infinite;
}

.company-logo-pulse .company-logo-fade {
    position: relative;
    z-index: 1;
    width: 104px;
    height: 104px;
    object-fit: contain;
    opacity: 1;
    transform: none;
}

@keyframes company-logo-pulse-anim {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .company-logo-pulse {
        animation: none;
    }
}

.navigation-loading {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    color: #0a3579;
    font-weight: 600;
}

.navigation-loading.active {
    display: flex;
}

.modal-send-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0a3579;
    font-weight: 600;
}

.upc-color {
    color: #0a3579 !important;
}

.upc-interpretation-header,
.upc-interpretation-footer {
    background-color: #0a3579 !important;
    color: #fff !important;
}

.upc-interpretation-header .text-upc,
.upc-interpretation-footer .text-muted,
.upc-interpretation-footer .text-dark {
    color: #fff !important;
}

.upc-interpretation-icon,
.upc-interpretation-footer-icon {
    background-color: #fff !important;
    color: #0a3579 !important;
}

.upc-interpretation-icon i,
.upc-interpretation-footer-icon i {
    color: #0a3579 !important;
}
