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

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

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

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

/*------------------------------
        SECTION TITLE
------------------------------*/    

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E4E6EF;
    max-width: 100%;
}

  /*------------------------------
   TIPOGRAFÍA DEFAULT NEGRA
   Contenido principal legible; grises reemplazados por negro/dark donde corresponde.
------------------------------*/
[data-bs-theme=light] {
    --bs-body-color: #000000;
    --bs-body-color-rgb: 0, 0, 0;
    --bs-heading-color: #000000;
    --bs-text-gray-500: #252F4A;
    --bs-text-gray-600: #000000;
}
[data-bs-theme=light] .text-gray-500,
[data-bs-theme=light] .text-gray-600 {
    color: #252F4A !important;
}
[data-bs-theme=light] .text-muted {
    color: #252F4A !important;
}

  /*------------------------------
       CUSTOM FRAMEWORK
------------------------------*/
[data-bs-theme=light] {
    /* Superficies alineadas al mockup Granrex (fondo claro #F3F6FB) */
    --bs-app-bg-color: #F3F6FB;
    --bs-app-blank-bg-color: #F3F6FB;
    --bs-app-header-base-bg-color: #ffffff;
    --bs-app-header-base-box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
    --bs-app-toolbar-base-bg-color: #ffffff;
    --bs-app-toolbar-base-box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
    --bs-app-toolbar-base-border-top: 1px solid #F1F1F4;
    --bs-app-footer-bg-color: #ffffff;
}

/*------------------------------
   GRANREX REDESIGN — acento azul del mockup (#1B5EFF), tokens Bootstrap / Metronic
------------------------------*/
[data-bs-theme=light] {
    --bs-primary: #1b5eff;
    --bs-primary-rgb: 27, 94, 255;
    --bs-primary-active: #1247cc;
    --bs-primary-light: #e8eeff;
    --bs-primary-inverse: #ffffff;
    --bs-primary-clarity: rgba(27, 94, 255, 0.2);
    --bs-text-primary: #1b5eff;
    --bs-component-active-bg: #1b5eff;
    --bs-component-hover-color: #1b5eff;
    --bs-component-checked-bg: #1b5eff;
    --bs-link-color: #1b5eff;
    --bs-link-color-rgb: 27, 94, 255;
    --bs-link-hover-color: #1247cc;
    --bs-link-hover-color-rgb: 18, 71, 204;
    --bs-focus-ring-color: rgba(27, 94, 255, 0.25);
    --bs-primary-text-emphasis: #0b2d73;
    --bs-primary-bg-subtle: #dbe8ff;
    --bs-primary-border-subtle: #b3ccff;
}

/*------------------------------
   BACKOFFICE — sombra única en cards
   `shadow-sm` usa --bs-box-shadow-sm (más marcada) que --bs-root-card-box-shadow
   de las cards Metronic; unificamos al mismo relieve en #kt_app_content.
------------------------------*/
[data-bs-theme=light] #kt_app_content .card.shadow-sm,
[data-bs-theme=light] #kt_app_content_container .card.shadow-sm {
    box-shadow: var(--bs-root-card-box-shadow) !important;
}

[data-bs-theme=dark] #kt_app_content .card.shadow-sm,
[data-bs-theme=dark] #kt_app_content_container .card.shadow-sm {
    box-shadow: var(--bs-root-card-box-shadow) !important;
}

/*------------------------------
   FORMULARIOS DE CREACIÓN (BACKOFFICE)
   Ancho legible + campos acordes al tipo de dato (fecha, cantidad, importe).
------------------------------*/
.backoffice-form-create {
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
}

@media (min-width: 1400px) {
    .backoffice-form-create {
        max-width: 56rem;
    }
}

/* Contenedor del control: limita input, select nativo y Select2 */
.backoffice-form-create .bo-input-narrow {
    max-width: 10rem;
    width: 100%;
}

.backoffice-form-create .bo-input-medium {
    max-width: 14rem;
    width: 100%;
}

.backoffice-form-create .bo-input-wide {
    max-width: 18rem;
    width: 100%;
}

.backoffice-form-create .bo-input-money {
    max-width: 13rem;
    width: 100%;
}

@media (max-width: 575.98px) {
    .backoffice-form-create .bo-input-narrow,
    .backoffice-form-create .bo-input-medium,
    .backoffice-form-create .bo-input-wide,
    .backoffice-form-create .bo-input-money {
        max-width: 100%;
    }
}

.backoffice-form-create .bo-input-narrow .form-control,
.backoffice-form-create .bo-input-narrow .form-select,
.backoffice-form-create .bo-input-medium .form-control,
.backoffice-form-create .bo-input-medium .form-select,
.backoffice-form-create .bo-input-wide .form-control,
.backoffice-form-create .bo-input-wide .form-select,
.backoffice-form-create .bo-input-money .form-control,
.backoffice-form-create .bo-input-money .form-select {
    width: 100%;
}

.backoffice-form-create .bo-input-narrow .select2-container,
.backoffice-form-create .bo-input-medium .select2-container,
.backoffice-form-create .bo-input-wide .select2-container,
.backoffice-form-create .bo-input-money .select2-container {
    width: 100% !important;
    max-width: 100%;
}

[data-bs-theme=light] {
    --bs-app-header-base-menu-link-bg-color-active: #eef7ff;
    --bs-app-header-light-separator-color: #E4E6EF;
    --bs-app-sidebar-light-bg-color: #eef7ff;
    --bs-app-sidebar-light-box-shadow: 0 0 28px 0 rgba(82, 63, 105, 0.05);
    --bs-app-sidebar-light-scrollbar-color: #F1F1F4;
    --bs-app-sidebar-light-menu-heading-color: #99A1B7;
    --bs-app-sidebar-light-menu-link-bg-color-active: #F4F6FA;
    --bs-app-sidebar-light-header-menu-link-bg-color-active: #EAEEF2;
    --bs-app-sidebar-dark-bg-color: #202B46;
    --bs-app-sidebar-dark-separator-color: #33446C;
    --bs-app-sidebar-dark-menu-heading-color: #646477;
    --bs-app-sidebar-dark-toggle-btn-bg-color: #323C55;
    --bs-app-layout-builder-toggle-bg-color: #323C55;
}

/*------------------------------
   PORTAL — inicio sucursal + nav móvil
------------------------------*/
.portal-layout #kt_app_content_container {
    padding-bottom: 0;
}

@media (max-width: 991.98px) {
    .portal-layout #kt_app_main {
        padding-bottom: 4.5rem;
    }
}

.portal-home-loading {
    min-height: 280px;
}

.letter-spacing-1 {
    letter-spacing: 0.06em;
}

.portal-home-action-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-home-action:hover .portal-home-action-card {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(82, 63, 105, 0.12) !important;
}

.portal-home-action-icon {
    width: 3.25rem;
    height: 3.25rem;
}

.portal-home-action-icon--danger {
    background: rgba(241, 65, 108, 0.12);
}

.portal-home-action-icon--warning {
    background: rgba(255, 199, 0, 0.15);
}

.portal-home-action-icon--primary {
    background: rgba(var(--bs-primary-rgb), 0.12);
}

.portal-home-alert-icon {
    width: 48px;
    height: 48px;
}

.portal-home-chart-wrap {
    width: 150px;
    height: 150px;
}

.portal-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--bs-app-header-base-bg-color, #fff);
    border-top: 1px solid var(--bs-app-header-light-separator-color, #e4e6ef);
    box-shadow: 0 -4px 24px rgba(82, 63, 105, 0.08);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0));
}

.portal-mobile-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--bs-gray-600, #7e8299);
    text-decoration: none;
    text-align: center;
    line-height: 1.1;
    border-radius: 0.5rem;
    min-width: 0;
}

.portal-mobile-nav__link i {
    color: var(--bs-gray-500, #a1a5b7);
}

.portal-mobile-nav__link.is-active {
    color: var(--bs-primary, #009ef7);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.portal-mobile-nav__link.is-active i {
    color: var(--bs-primary, #009ef7);
}

/*------------------------------
   PORTAL — listado suministros (cards anchas, layout horizontal)
------------------------------*/
.portal-supply-card .position-relative {
    z-index: 1;
}

.portal-supply-card__date-block {
    min-width: 0;
    background: linear-gradient(
        180deg,
        rgba(var(--bs-primary-rgb), 0.06) 0%,
        rgba(var(--bs-primary-rgb), 0.02) 100%
    );
}

@media (min-width: 768px) {
    .portal-supply-card__date-block {
        min-width: 11rem;
        max-width: 13rem;
    }

    .portal-supply-card__main-divider {
        border-left: 1px solid var(--bs-app-header-light-separator-color, #e4e6ef);
    }
}

@media (max-width: 767.98px) {
    .portal-supply-card__date-block {
        border-bottom: 1px solid var(--bs-app-header-light-separator-color, #e4e6ef);
    }
}

.portal-supply-card__date-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--bs-gray-600, #7e8299);
    margin-bottom: 0.25rem;
}

.portal-supply-card__weekday {
    font-size: 0.8rem;
    font-weight: 600;
}

.portal-supply-card__date-stack {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
}

.portal-supply-card__day-num {
    font-size: 2.85rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bs-primary, #009ef7);
}

.portal-supply-card__month-year {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.2rem;
    text-align: left;
}

.portal-supply-card__month {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-gray-900, #181c32);
}

.portal-supply-card__year {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-gray-600, #7e8299);
}

.portal-supply-card__top {
    min-width: 0;
}

.portal-supply-card__branch-name {
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--bs-gray-900, #181c32);
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.portal-supply-card__stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-gray-600, #7e8299);
    margin-bottom: 0.15rem;
}

.portal-supply-card__stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.portal-supply-card__meta {
    z-index: 2;
    font-size: 0.8rem;
}

/*------------------------------
   PORTAL — línea de tiempo horizontal (estados del suministro)
------------------------------*/
.portal-supply-timeline__scroll {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.portal-supply-timeline__step {
    flex: 1 1 0;
    min-width: 5.5rem;
    max-width: 12rem;
}

.portal-supply-timeline__track {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.portal-supply-timeline__line {
    flex: 1 1 auto;
    min-width: 0.5rem;
    height: 4px;
    border-radius: 2px;
    align-self: center;
}

.portal-supply-timeline__line--before {
    margin-right: 0;
}

.portal-supply-timeline__line--after {
    margin-left: 0;
}

/* Primer paso: tramo "antes" visible (muted vía JS) para que la pista arranque
   desde el borde izquierdo de la columna y el punto quede alineado con el resto. */

.portal-supply-timeline__step:last-child .portal-supply-timeline__line--after {
    visibility: hidden;
    flex: 0 0 0;
    min-width: 0;
    width: 0;
    margin: 0;
}

.portal-supply-timeline__line--active {
    background: linear-gradient(90deg, var(--bs-primary, #009ef7), rgba(var(--bs-primary-rgb), 0.85));
}

.portal-supply-timeline__line--muted {
    background: var(--bs-gray-200, #e4e6ef);
}

.portal-supply-timeline__dot {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.portal-supply-timeline__dot--done {
    background: var(--bs-primary, #009ef7);
    border: 2px solid var(--bs-primary, #009ef7);
    color: #fff;
}

.portal-supply-timeline__dot--current {
    background: #fff;
    border: 3px solid var(--bs-primary, #009ef7);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.2);
    transform: scale(1.08);
}

.portal-supply-timeline__dot--todo {
    background: #fff;
    border: 2px solid var(--bs-gray-300, #e4e6ef);
    color: transparent;
}

.portal-supply-timeline__label {
    word-break: break-word;
    hyphens: auto;
    line-height: 1.25;
}

/*
 * Página "Configurar pedido": sin max-width por paso ni space-between, que en
 * pantallas anchas dejaban huecos entre columnas y la línea se veía "cortada".
 */
.portal-supply-timeline--page {
    overflow: visible;
    min-width: 0;
}

.portal-supply-timeline--page .portal-supply-timeline__scroll {
    justify-content: flex-start;
    padding: 0.75rem 0.5rem 1.35rem;
    margin-inline: -0.25rem;
}

.portal-supply-timeline--page .portal-supply-timeline__step {
    flex: 1 1 0;
    min-width: 5.5rem;
    max-width: none;
}

/* Variante compacta (cards del listado portal/supply) */
.portal-supply-timeline--compact .portal-supply-timeline__dot {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
}

.portal-supply-timeline--compact .portal-supply-timeline__dot--current {
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.18);
    transform: scale(1.05);
}

.portal-supply-timeline--compact .portal-supply-timeline__line {
    height: 3px;
}

.portal-supply-card__timeline {
    background: rgba(243, 246, 251, 0.72);
}

/* Pasos repartidos en ancho; etiquetas multilínea sin truncar */
.portal-supply-timeline--compact .portal-supply-timeline__step {
    min-width: 4.5rem;
    max-width: none;
    flex: 1 1 0;
}

.portal-supply-timeline--compact .portal-supply-timeline__label {
    min-height: 2.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding-inline: 0.15rem;
}

.portal-supply-timeline--compact.portal-supply-timeline .portal-supply-timeline__scroll {
    gap: 0.25rem;
    padding-inline: 0.25rem;
}

/*------------------------------
   BOTONES DE ACCIÓN — fondo azul claro (no relleno azul oscuro)
   Aplica a portal y backoffice (ambos cargan este CSS).
------------------------------*/
[data-bs-theme=light] {
    --gr-action-btn-bg: #E9F3FF;
    --gr-action-btn-bg-hover: #d7e9fc;
    --gr-action-btn-bg-active: #c7dff9;
}

[data-bs-theme=light] .btn.btn-primary,
[data-bs-theme=light] .btn.btn-primary:disabled,
[data-bs-theme=light] .btn.btn-primary.disabled {
    color: var(--bs-primary) !important;
    background-color: var(--gr-action-btn-bg) !important;
    border-color: var(--gr-action-btn-bg) !important;
}

[data-bs-theme=light] .btn.btn-primary i,
[data-bs-theme=light] .btn.btn-primary .svg-icon {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn.btn-primary.dropdown-toggle::after {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn-check:checked + .btn.btn-primary,
[data-bs-theme=light] .btn-check:active + .btn.btn-primary,
[data-bs-theme=light] .btn.btn-primary:focus:not(.btn-active),
[data-bs-theme=light] .btn.btn-primary:hover:not(.btn-active),
[data-bs-theme=light] .btn.btn-primary:active:not(.btn-active),
[data-bs-theme=light] .btn.btn-primary.active,
[data-bs-theme=light] .btn.btn-primary.show,
[data-bs-theme=light] .show > .btn.btn-primary {
    color: var(--bs-primary) !important;
    background-color: var(--gr-action-btn-bg-hover) !important;
    border-color: var(--gr-action-btn-bg-hover) !important;
}

[data-bs-theme=light] .btn-check:checked + .btn.btn-primary i,
[data-bs-theme=light] .btn-check:checked + .btn.btn-primary .svg-icon,
[data-bs-theme=light] .btn-check:active + .btn.btn-primary i,
[data-bs-theme=light] .btn-check:active + .btn.btn-primary .svg-icon,
[data-bs-theme=light] .btn.btn-primary:focus:not(.btn-active) i,
[data-bs-theme=light] .btn.btn-primary:focus:not(.btn-active) .svg-icon,
[data-bs-theme=light] .btn.btn-primary:hover:not(.btn-active) i,
[data-bs-theme=light] .btn.btn-primary:hover:not(.btn-active) .svg-icon,
[data-bs-theme=light] .btn.btn-primary:active:not(.btn-active) i,
[data-bs-theme=light] .btn.btn-primary:active:not(.btn-active) .svg-icon,
[data-bs-theme=light] .btn.btn-primary.active i,
[data-bs-theme=light] .btn.btn-primary.active .svg-icon,
[data-bs-theme=light] .btn.btn-primary.show i,
[data-bs-theme=light] .btn.btn-primary.show .svg-icon,
[data-bs-theme=light] .show > .btn.btn-primary i,
[data-bs-theme=light] .show > .btn.btn-primary .svg-icon {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn-check:checked + .btn.btn-primary.dropdown-toggle::after,
[data-bs-theme=light] .btn-check:active + .btn.btn-primary.dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-primary:focus:not(.btn-active).dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-primary:hover:not(.btn-active).dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-primary:active:not(.btn-active).dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-primary.active.dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-primary.show.dropdown-toggle::after,
[data-bs-theme=light] .show > .btn.btn-primary.dropdown-toggle::after {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn.btn-primary:active:not(.btn-active),
[data-bs-theme=light] .btn.btn-primary.active:not(:hover) {
    background-color: var(--gr-action-btn-bg-active) !important;
    border-color: var(--gr-action-btn-bg-active) !important;
}

/* btn-light-primary: el tema Metronic pasa a azul sólido al hover; lo mantenemos en escala clara */
[data-bs-theme=light] .btn.btn-light-primary,
[data-bs-theme=light] .btn.btn-light-primary:disabled,
[data-bs-theme=light] .btn.btn-light-primary.disabled {
    color: var(--bs-primary) !important;
    background-color: var(--gr-action-btn-bg) !important;
    border-color: var(--gr-action-btn-bg) !important;
}

[data-bs-theme=light] .btn.btn-light-primary i,
[data-bs-theme=light] .btn.btn-light-primary .svg-icon {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn.btn-light-primary.dropdown-toggle::after {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn-check:checked + .btn.btn-light-primary,
[data-bs-theme=light] .btn-check:active + .btn.btn-light-primary,
[data-bs-theme=light] .btn.btn-light-primary:focus:not(.btn-active),
[data-bs-theme=light] .btn.btn-light-primary:hover:not(.btn-active),
[data-bs-theme=light] .btn.btn-light-primary:active:not(.btn-active),
[data-bs-theme=light] .btn.btn-light-primary.active,
[data-bs-theme=light] .btn.btn-light-primary.show,
[data-bs-theme=light] .show > .btn.btn-light-primary {
    color: var(--bs-primary) !important;
    background-color: var(--gr-action-btn-bg-hover) !important;
    border-color: var(--gr-action-btn-bg-hover) !important;
}

[data-bs-theme=light] .btn-check:checked + .btn.btn-light-primary i,
[data-bs-theme=light] .btn-check:checked + .btn.btn-light-primary .svg-icon,
[data-bs-theme=light] .btn-check:active + .btn.btn-light-primary i,
[data-bs-theme=light] .btn-check:active + .btn.btn-light-primary .svg-icon,
[data-bs-theme=light] .btn.btn-light-primary:focus:not(.btn-active) i,
[data-bs-theme=light] .btn.btn-light-primary:focus:not(.btn-active) .svg-icon,
[data-bs-theme=light] .btn.btn-light-primary:hover:not(.btn-active) i,
[data-bs-theme=light] .btn.btn-light-primary:hover:not(.btn-active) .svg-icon,
[data-bs-theme=light] .btn.btn-light-primary:active:not(.btn-active) i,
[data-bs-theme=light] .btn.btn-light-primary:active:not(.btn-active) .svg-icon,
[data-bs-theme=light] .btn.btn-light-primary.active i,
[data-bs-theme=light] .btn.btn-light-primary.active .svg-icon,
[data-bs-theme=light] .btn.btn-light-primary.show i,
[data-bs-theme=light] .btn.btn-light-primary.show .svg-icon,
[data-bs-theme=light] .show > .btn.btn-light-primary i,
[data-bs-theme=light] .show > .btn.btn-light-primary .svg-icon {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn-check:checked + .btn.btn-light-primary.dropdown-toggle::after,
[data-bs-theme=light] .btn-check:active + .btn.btn-light-primary.dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-light-primary:focus:not(.btn-active).dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-light-primary:hover:not(.btn-active).dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-light-primary:active:not(.btn-active).dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-light-primary.active.dropdown-toggle::after,
[data-bs-theme=light] .btn.btn-light-primary.show.dropdown-toggle::after,
[data-bs-theme=light] .show > .btn.btn-light-primary.dropdown-toggle::after {
    color: var(--bs-primary) !important;
}

[data-bs-theme=light] .btn.btn-light-primary:active:not(.btn-active),
[data-bs-theme=light] .btn.btn-light-primary.active:not(:hover) {
    background-color: var(--gr-action-btn-bg-active) !important;
    border-color: var(--gr-action-btn-bg-active) !important;
}
