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

body {
    background-color: var(--bs-body-bg-blend-with-gradient);
    font-family: 'Rubik', sans-serif;
}

.navbar {
    font-weight: 700;
    font-family: Raleway, sans-serif;
}

.bg-gray-200 {
    background-color: var(--bs-secondary-bg);
    opacity: .7;
}

table.table th {
    font-weight: normal;
}

tr.fade-out {
    opacity: 1;
    -webkit-transition: opacity 1000ms linear;
    transition: opacity 1000ms linear;
}

.popover-target.border {
    border-width: 3px !important;
}

h1 small {
    font-size: 60%;
}

.table-head {
    border-bottom: 2px solid #dee2e6;
}

.progress {
    height: 1.5rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.ficha-sub .progress, .ficha-sub .btn.btn-block, .ficha-sub .vigencia {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.ficha-sub > div {
    padding-top: .5rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

textarea#docs_cm_data {
    height: 400px;
}

/* responsive: xs */
.table-row {
    margin: 1rem .2rem;
    border-radius: .25rem;
    border: 1px solid #dee2e6;
}

.table-head > div, .table-row > div {
    padding-top: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #dee2e6;
    margin-top: auto;
    margin-bottom: auto;
}

.table-row > div:first-child {
    font-weight: bold;
    background-color: #f8f9fa;
}

.ficha-sub .progress {
    margin-left: auto;
    margin-right: auto;
}

.ficha-sub h1 {
    margin-bottom: 0;
}

legend.col-form-label {
    padding-top: 0;
}

@media (min-width: 992px) {
    .table-row {
        margin: 0 -15px;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid #dee2e6;
    }

    .table-head > div, .table-row > div {
        padding: .75rem;
        border-bottom: 0;
    }

    .table-row > div:first-child {
        font-weight: normal;
        background-color: inherit;
    }

    .ficha-sub .progress {
        margin-left: auto;
        margin-right: 0;
    }
}

.dropdown-menu {
    z-index: 2000;
}

#ayuda-cm {
    z-index: 3000;
}

.no-feedback .invalid-feedback {
    display: none !important;
}

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

article.nodo {
    a.perma {
        display: none;
    }

    header h2 {
        margin-bottom: 1rem;
    }

    section.hijos .accordion-body {
        padding-bottom: 0;
    }

    section.hijos > ul {
        list-style: none;
        padding: 0;
        & > li {
            background-color: var(--bs-secondary-bg);
            border-radius: .25rem;
            padding: 1rem 1.5rem;
            margin-bottom: 1rem;
            &::before {
                font-family: bootstrap-icons;
                position: absolute;
                content: "\F309";
            }
            &.documento::before {
                content: "\F29B";
            }
            h3 {
                font-size: 1rem;
                font-weight: 500;
                margin-bottom: 0;
                margin-left: 24px;
            }
            a {
                color: inherit;
                text-decoration: none;
            }
        }
    }
}

div#subvencion_cuotas {
    fieldset {
        display: flex;
        gap: 1rem;
        align-items: end;
        margin: 1rem 0 0 0 !important;
        > legend {
            width: auto;
            font-size: 2rem;
            padding: 1rem;
        }
        > div[id] {
            display: flex;
            gap: 1rem;
            flex-grow: 1;
            > * {
                flex-grow: 1;
            }
        }
        div, legend, button {
            margin-bottom: 1rem;
        }
    }
}

.nav-tab-label {
    display: none;
}

.nav-link.active .nav-tab-label,
.nav-link:hover .nav-tab-label,
.nav-link.show .nav-tab-label
{
    display: inline;
}
