[data-bs-theme="light"] {
    --bs-body-color: $3f3f3f;
    --bs-body-bg-blend-with-gradient: #ebeaf0;
    --bs-body-bg-gradient: linear-gradient(0deg,rgba(163,212,252,0),#a3d4fc);
    --navbar-color: #004677;
}

[data-bs-theme="dark"] {
    --navbar-color: inherit;
    --bs-body-bg-blend-with-gradient: #000;
    --bs-primary-bg-subtle: #000;
    --bs-primary-bg-subtle-dark: #000;
    --bs-body-bg: #181818;
}

canvas {
    color: var(--bs-body-color);
}

body {
    background-color: var(--bs-body-bg-blend-with-gradient);
    font-family: 'Rubik', sans-serif;
    font-kerning: normal;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body:before {
    content: "";
    border-image: linear-gradient(90deg,#0f69b4 50%,#eb3c46 0) 1;
    border-width: 3px;
    display: block;
    width: 100%;
    position: fixed;
    border-style: solid;
    top: 0;
    z-index: 2;
}

.gradiente:before {
    content: "";
    height: 100%;
    position: absolute;
    z-index: -2;
    top: 0;
    width: 100%;
    background: #a3d4fc;
    background: -moz-linear-gradient(0deg,rgba(163,212,252,0) 0,#a3d4fc 100%);
    background: -webkit-linear-gradient(0deg,rgba(163,212,252,0),#a3d4fc);
    background: var(--bs-body-bg-gradient);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a3d4fc",endColorstr="#a3d4fc",GradientType=1);
}

section.payload {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 32px;
    margin-top: 10px;
    border-radius: 6px;

    border-top: 4px solid #4290d0;
    border-radius: 10px 10px 0 0;

    > h1 {
        margin-top: 0;
    }
}

@media print {
    section.payload {
        border-top: 0;
        border-radius: 0;
        padding: 0;
    }
    body {
        background-color: inherit;
    }
    .gradiente:before {
        visibility: none;
    }
    body:before {
        border: none;
    }
    p {
        text-align: justify;
    }
    h2 {
        margin: 1.5rem 0 1rem;
    }
    div.sticky-top,
    nav.sticky-top
    {
        position: static;
    }
}

ul.partidas {
    list-style: none;
}

ul.partidas ul {
    list-style: none;
}

ul.partidas li:before {
    content: "\F132";
    font-family: bootstrap-icons !important;
    font-weight: normal !important;
    margin-right: 5px;
}

.nodo {
    h1, h2, h3, h4, h5, h6 {
        margin-top: 1rem;
    }
    h3 {
        opacity: .9;
    }
    h4 {
        opacity: .8;
    }
    h5 {
        opacity: .7;
    }
}

.navbar {
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
    padding: 20px 25px;
    .nav-link {
        font-weight: 700;
        color: var(--navbar-color);
        font-size: 1.15rem;
        font-family: Raleway, sans-serif;
    }
}

body.header-not-at-top {
    .navbar {
        background-color: var(--bs-body-bg);
    }
    .sticky-top {
        background: var(--bs-body-bg);
    }
    .hnat-fs-5 { font-size: 1.25rem !important; line-height: 2.5rem; }
    .hnat-fs-6 { font-size: 1rem !important; }
}

.navbar-brand {
    width: 135px;
    display: block;
}

.offcanvas {
    h2 { @extend .fs-5; }
    th, b { font-weight: normal; }
    td { font-weight: bold; }
    .offcanvas-body { padding-top: 0; }
    z-index: 10000;
    .d-offcanvas-none { display: none !important; }
    .d-offcanvas-inline { display: inline !important; }
    .d-offcanvas-block { display: block !important; }
    .d-offcanvas-grid { display: grid !important; }
    .navbar-collapse:not(.show) { display: flex !important; }
    .justify-content-offcanvas-unset { justify-content: unset !important; }
}

section.hijos {
    h2 {
        font-size: 1.3rem;
        a {
            text-decoration: none;
        }
    }
}


.portada {
    padding: 50px 20px 500px 20px;
    margin: 30px auto 0;
    text-align: center;
    max-width: 900px;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-top: 4px solid #4290d0;
    border-radius: 10px 10px 0 0;

    .logo {
        max-width: 440px;
        margin-bottom: 50px;
    }

    p {
        font-size: 27px;
        font-weight: 400;
        margin: 0 auto 30px auto;
        font-family: Raleway, sans-serif;
    }

    > * {
        margin-left: auto;
        margin-right: auto;
        max-width: 700px;
    }
}

img.bg {
    position: absolute;
    bottom: 0;
    object-fit: none;
    width: 100%;
    left: 0;
    right: 0;
    height: 505px;
}

.bi.bi-fw {
    display: inline-block;
    width: 1.2rem;
}

.pagination {
    --bs-pagination-disabled-bg: transparent;
}

.form-switch {
    padding-left: 0;
    > div {
        padding-left: 1rem;
    }
}

.offcanvas {
    .form-check-label {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
    }
    legend {
        font-weight: bold;
    }
}

#trans_emitidas_emisora_id .form-check, #trans_emitidas_receptora_id .form-check {
    white-space: nowrap;
    overflow: hidden;
    margin-left: -1.6rem;
    padding-left: 3rem;
}

#transferencia_legacy_fecha {
    display: flex;
    > * {
        width: 50%;
    }
}

#trans_emitidas_geo,
#trans_recibidas_geo,
#transferencia_geo,
#trans_emisora_clase,
#trans_emisora_clase1,
#trans_emisora_clase2,
#trans_receptora_clase,
#trans_receptora_clase1,
#trans_receptora_clase2,
#institucion_clase,
#institucion_clase1,
#institucion_clase2,
.geo fieldset > div {
    height: 13rem;
    overflow-y: auto;
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    padding: 0.375rem 0.75rem 0.375rem 1.75rem;
    border-radius: var(--bs-border-radius);
}

[data-clase-ext-target=col1] legend,
[data-clase-ext-target=col2] legend
{
    visibility: hidden;
}

.ts-dropdown, .ts-control, .ts-control input {
    color: var(--bs-body-color) !important;
}

.icon-link > .bi {
    height: auto;
}

.pie {
    background-color: #003960;
    margin-top: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer {
    max-width: 1140px;
    margin: auto;
    color: #fff;
    img {
        height: 60px;
        float: right;
    }
    img.mh {
        height: 100px;
    }
    ul {
        list-style: none;
        padding: 0;
        color: #fff;
    }
    a {
        color: #fff;
    }
     .titulo {
        font-weight: 800;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
}

a.perma {
    display: none;
}

a.alert-link {
    text-decoration: none;
}

.novedades .alert p {
    display: inline;
    font-style: italic;
}

article.nodo header p {
    display: inline;
}

textarea {
    height: 10rem;
}
