.inscriptions-form th, .inscriptions-form thead td, .inscriptions-form td{
    color: var(--color_5);
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}

.inscriptions-form td{
    font-weight: 400;
}

.inscriptions-form td > div{
    display: flex;
    justify-content: center;
    align-items: center;
}

/** Tabla dentro de servicios listado de pagos */
.inscriptions-form table{
    width: 100% !important;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
}

.inscriptions-form table thead tr, .inscriptions-form table tbody tr{
    width: fit-content !important;
    display: flex;
    flex-direction: column;
}

.inscriptions-form table thead tr th:last-child{
    min-height: 69px;
} 
/** tablas mas complejas, tbodys con más de una fila */
.inscriptions-form table:has(tbody tr:nth-child(2)) {
    display: table !important;
}

.inscriptions-form table:has(tbody tr:nth-child(2)) thead tr, .inscriptions-form table:has(tbody tr:nth-child(2)) tbody tr {
    display: table-row !important;
    width: auto !important;
}

.inscriptions-form table:has(tbody tr:nth-child(2)) thead tr th {
    width: auto !important;
    display: table-cell !important;
    white-space: nowrap !important;
}

.inscriptions-form table select{
    width: 140px;
    font-size: 12px;
}

/** tablas mas complejas, muchos th y muchos tr, la hago scrollable */
.inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto !important;
    overflow: hidden !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    width: 100% !important;
}

.inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) thead tr {
    display: grid !important;
    /* grid-template-columns: auto 1fr !important; */
    grid-template-rows: auto 1fr !important;
    overflow: hidden !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    width: 100% !important;
}

.inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) th, 
.inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) td {
    min-height: 60px;
}

.inscriptions-form  table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) tbody {
    display: flex !important;
    flex-direction: row !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) tbody tr {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

/** */

.inscriptions-form #menuareaprivada #divServicios br{
    display: none;
}
.inscriptions-form #menuareaprivada #divServicios{
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-top: 20px;
}

.inscriptions-form #menuareaprivada #divServicios > a:nth-last-of-type(1){
    position: absolute;
    top: -20px;
    left: 0;
    text-decoration: none;
    font-size: 18px;
    font-family: var(--font-primary);
    color: var(--color_2);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    gap: 4px;
    align-items: center;
    border: 1px solid var(--color_2);
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 8;
}
.inscriptions-form #menuareaprivada #divServicios:has( a:nth-of-type(3)) a:nth-of-type(1),
.inscriptions-form #menuareaprivada #divServicios:has( a:nth-of-type(3)) a:nth-of-type(2) {
    display: none;
}

.inscriptions-form #menuareaprivada #divServicios > a:nth-last-of-type(1):hover{
    text-decoration: none;
    color: var(--color_2);
}

.inscriptions-form #menuareaprivada #divServicios > a:nth-last-of-type(1)::before{
    content: '';
    border-right: 2px solid var(--color_2);
    border-bottom: 2px solid var(--color_2);
    display: flex;
    width: 10px;
    height: 10px;
    transform: rotate(135deg);
    aspect-ratio: 1/1;
}

.inscriptions-form #menuareaprivada select{
    background: none;
    font-size: 16px;
    font-family: var(--font-primary);
}
.inscriptions-form #menuareaprivada .radio label{
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-family: var(--font-primary);
}

strong > br{
    display: block !important;
}

@media (min-width: 768px){
    #menuareaprivada{
        padding: 0 30px;
    }

    .inscriptions-form #menuareaprivada {
        padding-top: 0;
    }
    .inscriptions-form #menuareaprivada #divServicios > a:nth-last-of-type(1){
        top: 0;
        left: -80px;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .inscriptions-form table select{
        width: auto;
        font-size: 16px;
    }

    /** Tabla dentro de servicios listado de pagos */
    /** Resetear tabla a comportamiento nativo */
    .inscriptions-form table,
    .inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) {
        display: table !important;
        width: 100% !important;
    }
    .inscriptions-form table thead {
        display: table-header-group !important;
    }
    .inscriptions-form table tbody,
    .inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) tbody {
        display: table-row-group !important;
    }

    .inscriptions-form table thead tr,
    .inscriptions-form table tbody tr {
        display: table-row !important;
        width: auto !important;
    }
    .inscriptions-form table thead tr th,
    .inscriptions-form table tbody tr td {
        display: table-cell !important;
    }

    /** tablas mas complejas, muchos th y muchos tr, la hago scrollable */
    .inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) thead tr,
    .inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) tbody tr
    {
        display: table-row !important;
        width: auto !important;
    }

    .inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) th, 
    .inscriptions-form table:has(tbody tr:nth-child(2)):has(thead tr th:nth-child(3)) td {
        min-height: auto;
    }
}

@media (min-width: 1680px){

    .inscriptions-form #menuareaprivada #divServicios > a:nth-last-of-type(1){
        left: -120px;
    }

}