.table > :not(caption) > * > * {
    box-shadow: none;
}

.table .form-control {
    background-color: #ffffff !important;
    border-width: 0.5px !important;
    border-bottom-color: #ccc !important;
    color: #000 !important;
}

.table .form-select {
    background-color: #ffffff !important;
    border-width: 0.5px !important;
    border-bottom-color: #ccc !important;
    color: #000 !important;
}

.table .btn-primary {
    background-color: var(--bs-primary);
}

.table .btn-secondary {
    background-color: var(--bs-secondary);
}

.alert-dismissible .btn-close {
    z-index: 1;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #e6e6e6;
        border-bottom: 1px solid #d6d5d5;
    }



.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    transition: width 0.2s ease;
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.app-menu {
    width: 100%
}

.breadcrumb {
    margin-top: 0em;
}

.app-menu .nav-item {
    font-size: 0.9rem;
    padding-bottom: -0.5rem;
}

    .app-menu .nav-item:first-of-type {
        padding-top: rem;
    }

    .app-menu .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .app-menu .nav-item a {
        color: #d7d7d7;
        border-radius: 10px;
        height: 2.7rem;
        display: flex;
        align-items: center;
        padding-left: 0.2rem;
    }

        .app-menu .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .app-menu .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
    margin: .5rem;
}

.app-logo .navbar-brand {
    color: white;
}

@media (max-width: 800.98px) {
    .app-search {
        border-radius: 6px;
    }

    .app-search input {
        display: none !important;
    }

        .app-search input + button {
            position: initial;
            padding-top: 7px;
            padding-bottom: 7px;
        }

    .app-search:active, .app-search:hover {
        display: block;
        position: absolute;
        color: #fff;
        top: 0;
        min-height: 60px;
        width: 100%;
        left: 0;
        z-index: 999;
        border-radius: 0;
        background-color: #e6e6e6;
    }

    .app-search:active .app-form-inline, .app-search:hover .app-form-inline {
        margin: 10px auto;
        position: relative;
        display: block;
        max-width: 80%;
    }

    .app-search:active .app-form-inline input, .app-search:hover .app-form-inline input {
        width: 100%;
        display: block !important;
    }

    .app-search:active .app-form-inline input + button, .app-search:hover .app-form-inline input + button {
        position: absolute;
        color: rgb(42, 159, 214);
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }

    .breadcrumb-bar {
        margin-top: 9.5em !important;
        border-top: 1px solid #d6d5d5;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
        display: block;
    }

    .app-logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }


    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 4

    }

    .main .top-row {
        position: sticky;
        top: 0;
        z-index: 5
    }

    .main > div {
        padding-left: 2rem !important;
        , padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .main > .container {
        margin-top: 30px;
    }
}

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4)
    }

    20% {
        -webkit-transform: scaleY(1.0)
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}

@media (max-width: 767.98px) {
    .app-logo {
        height: 80px;
        display: flex;
        align-items: center;
    }

    .breadcrumbs {
        position: fixed;
        top: 150px;
        width: 100%;
        left: 0;
        z-index: 4;
        border-bottom: 1px solid #d6d5d5;
        margin-top: 0;
        background-color: aliceblue;
    }

    .sidebar {
        margin-top: 3.5rem;
        position: fixed;
        width: 100%;
        z-index: 4;
    }

    .main .top-row {
        z-index: 4;
    }

    .main > .top-row.px-4 {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
    }

    .ml-md-auto {
        margin-left: auto;
    }
}

/* VERTICAL NAV MENU */
.has-children {
    position: relative;
}

    .has-children > .submenu {
        display: none;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .has-children > .submenu a {
        font-size: 0.75rem;
        color: #b0b0b0;
        min-width: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .has-children.open > .submenu {
        display: flex;
    }

/* Flecha que rota al abrir */
.nav-link .ms-auto {
    display: inline-block;
    transition: transform 0.25s ease;

}

.has-children.open > .nav-link .ms-auto {
    transform: rotate(90deg);
}

/* END VERTICAL NAV MENU */   


:root {
    --background-color: #FFFFFF;
    --text-color: #1F1F39;
}

.theme {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

.dark-theme {
    --background-color: #1F1F39 !important;
    --text-color: #FAFAFB !important;
}


    .dark-theme .main,
    .dark-theme .sidebar,
    .dark-theme .top-row,
    .dark-theme .container,
    .dark-theme .breadcrumb,
    .dark-theme p,
    .dark-theme div.modal-header,
    .dark-theme h1,
    .dark-theme h2,
    .dark-theme h3,
    .dark-theme h4,
    .dark-theme h5,
    .dark-theme figcaption,
    .dark-theme .auto-anchor,
    .dark-theme .ul-informes,
    .dark-theme .page-link.shadow-none,
    .dark-theme .container ul,
    .dark-theme div.lead,
    .dark-theme div.modal-body,
    .dark-theme .breadcrumb-bar,
    .dark-theme .breadcrumb-item,
    .dark-theme li.breadcrumb-item.active::before,
    .dark-theme li.breadcrumb-item::before,
    .dark-theme .app-search:active,
    .dark-theme .app-search:hover,
    .dark-theme nav-link.active,
    .dark-theme table-responsive,
    .dark-theme a.btn-close,
    .dark-theme .Messages,
    .dark-theme .Input-blank,
    .dark-theme .alta-de-client {
        background-color: #1F1F39 !important;
        color: white !important;
    }



    .dark-theme a,
    .dark-theme .oi,
    .dark-theme a.btn-close,
    .dark-theme .Input_field,
    .dark-theme .Messenger_prompt,
    .dark-theme svg,
    .dark-theme .Input_button {
        color: #FAFAFB !important;
    }

.dark-theme .btn-close {
    filter: invert(0.1) brightness(300%);
    --bs-btn-close-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e);
    --bs-btn-close-opacity: 0.8;
}

.dark-theme .oi.oi-magnifying-glass.align-middle,
.dark-theme a.dropdown-item {
    color: black !important;
}

.dark-theme .Messages,
.dark-theme .Input-blank,
.dark-theme .Input_field,
.dark-theme .responsText {
    background-color: #1F1F39 !important;
    color: white !important;
}

.dark-theme .botIconContainer {
    background-color: transparent;
}


.img-fluid {
    max-width: 300px !important;
    height: auto;
}

.app-logo img {
    max-height: 60px !important;
    width: auto !important;
}


.section-title {
    margin: 10px 0px;
    font-weight: 600;
    line-height: 21.12px;
    font-size: 1.1em;
    font-family: "Source Sans Pro", sans-serif;
    color: rgb(0, 0, 0);
}

    .section-title a {
        color: rgb(22, 80, 131);
        text-decoration: none;
    }

    .section-title .auto-anchor {
        opacity: 1;
        text-decoration: none;
    }

.doc-body {
    margin: 0px 0px 20px;
    font-family: "Source Sans Pro", sans-serif;
    line-height: inherit;
    text-align: justify;
    color: rgb(74, 74, 74);
}

.doc-title {
    margin: 10px 0px;
    font-weight: 600;
    font-size: 1.2em;
    line-height: 23.04px;
    font-family: "Source Sans Pro", sans-serif;
    color: rgb(0, 0, 0);
    text-align: justify;
}

    .doc-title a {
        color: inherit;
        text-decoration: none;
    }

.auto-anchor {
    text-decoration: none;
    color: inherit;
}

.doc-bold {
    font-weight: 800 !important;
}

.doc-img {
    max-width: 100% !important;
    height: auto;
    box-shadow: grey 5px 5px 10px;
    display: block;
}

.doc-figure {
    margin: 0px 0px 1.2em;
    display: table;
    color: rgb(74, 74, 74);
    font-family: "Source Sans Pro", sans-serif;
}

.doc-caption {
    display: table-caption;
    caption-side: bottom;
}

.doc-link {
    color: rgb(22, 80, 131);
    text-decoration: none;
}

@keyframes slide-to-right {
    to {
        transform: translateX(100vw)
    }
}

@keyframes slide-to-left {
    to {
        transform: translateX(-100vw)
    }
}

::view-transition-old(root) {
    animation: 90ms cubic-bezier(0.4,0,1,1) both fade-out, 250ms cubic-bezier(0.4,0,0.2,1) both slide-to-left;
}

:active-view-transition-type(back)::view-transition-old(root) {
    animation-name: fade-out, slide-to-right;
}

:active-view-transition-type(back)::view-transition-new(root) {
    animation-name: fade-out, slide-to-left;
}

.row.px-4 {
    animation: pageEnter 0.35s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-enter {
    animation: pageEnter 0.35s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Botones de navegación */

/* Contenedor para centrar el botón */
.btn-5:hover {
    color: black;
    background: transparent;
    box-shadow: none;
}

.btn-5:before,
.btn-5:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    background: #79bb60;
    box-shadow: -1px -1px 5px 0px #fff, 7px 7px 20px 0px #0003, 4px 4px 5px 0px #0002;
    transition: 400ms ease all;
}

.btn-5:after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
}

.btn-5:hover:before,
.btn-5:hover:after {
    width: 100%;
    transition: 800ms ease all;
}

.custom-btn.btn-5 {
    display: block;
    margin: 1rem auto;
    text-decoration: none;
    text-align: center;
    word-wrap: break-word;
}

.custom-btn {
    container-type: inline-size;
    width: 100%;
    max-width: 380px;
    height: 1vw;
    color: white;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5), 7px 7px 20px 0px rgba(0,0,0,.1), 4px 4px 5px 0px rgba(0,0,0,.1);
    outline: none;
    box-sizing: border-box;
}

    .custom-btn span {
        white-space: nowrap;
    }

.btn-5 {
    font-size: clamp(0.75rem, 2.5vw, 1.1rem);
    white-space: nowrap;
    width: 90%;
    height: 80px;
    line-height: 80px;
    padding: 0 1rem;
    border: none;
    background: rgb(255,27,0);
    background: linear-gradient(0deg, rgb(53, 115, 169) 0%, rgba(22,80,131) 100%);
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Botones de navegación */

.doc-title {
    scroll-margin-top: 80px;
}

/* White search bar*/

.doc-title {
    scroll-margin-top: 80px;
}

@media (max-width: 991.98px) {
    .dark-theme .oi.oi-magnifying-glass.align-middle {
        color: white !important;
    }
}

@media (max-width: 991.98px) {

    .dark-theme .oi.oi-magnifying-glass.align-middle {
        color: white !important;
    }

    .dark-theme .app-search:hover .oi.oi-magnifying-glass.align-middle {
        color: black !important;
    }
}

.breadcrumb-bar {
    width: 100%;
    background-color: #eef1f4;
    padding: 10px 0;
    border-bottom: 1px solid #dde2e7
}

    .breadcrumb-bar .breadcrumb {
        margin-bottom: 0;
    }

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--bs-nav-tabs-link-active-color);
    background-color: transparent; /* This removes the background */
    border-color: var(--bs-nav-tabs-link-active-border-color);

}

.dark-theme .table {
    --bs-table-color: #fff;
    --bs-table-bg: transparent;
    --bs-table-border-color: #ffffff;
    --bs-table-border: 3px;
}

 
.scrollableWrapper {
    overflow:hidden;
}

.scrollableContent {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
}

.px-3 {
    padding-right: 0rem !important;
}

.sidebar .navbar {

    --bs-navbar-padding-y: 0 !important;
}




.scrollable-bar {
    overflow-y: auto;
}

/* Solo en pantallas pequeñas */
@media (max-width: 991.98px) {
    .scrollable-bar {
        display: none; 
    }

    .sidebar.open .scrollable-bar {
        display: block;
        height: 100%; 
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    #Menu.show {
        max-height: calc(100dvh - 80px); /* 80px ≈ alto del logo + botón */
        overflow-y: auto;
    }
    .scrollableContent {
        overflow-y: hidden;
    }

}