/*
|--------------------------------------------------------------------------
| Determinaciones de los Consejos Distritales y Municipales
|--------------------------------------------------------------------------
*/

.determinaciones-page {
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Contenedor
|--------------------------------------------------------------------------
*/

.determinaciones-app {
    width: 100%;
    max-width: 1120px;

    margin:
        1.5rem
        auto
        0;
}


/*
|--------------------------------------------------------------------------
| Pestañas
|--------------------------------------------------------------------------
*/

.determinaciones-tabs {
    display: flex;
    justify-content: center;
    gap: 0;

    border-bottom:
        1px solid
        rgba(138, 21, 137, 0.18);
}


.determinaciones-tabs .nav-link {
    min-width: 150px;

    padding:
        0.85rem
        1.1rem;

    color: #4a5260;

    background: transparent;

    border: 0;
    border-bottom:
        3px solid
        transparent;

    border-radius: 0;

    font-weight: 600;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.determinaciones-tabs .nav-link:hover {
    color: #8a1589;

    background:
        rgba(138, 21, 137, 0.035);
}


.determinaciones-tabs .nav-link.active {
    color: #8a1589;

    background:
        rgba(138, 21, 137, 0.055);

    border-bottom-color: #8a1589;
}


.determinaciones-tabs .nav-link:focus-visible {
    outline:
        3px solid
        rgba(138, 21, 137, 0.24);

    outline-offset: -3px;
}


/*
|--------------------------------------------------------------------------
| Panel
|--------------------------------------------------------------------------
*/

.determinaciones-panel {
    padding-top: 2rem;
}


/*
|--------------------------------------------------------------------------
| Filtros
|--------------------------------------------------------------------------
*/

.determinaciones-filters {
    padding: 1.25rem;

    background: #ffffff;

    border:
        1px solid
        rgba(138, 21, 137, 0.14);

    border-radius: 12px;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.045);
}


.determinaciones-filter-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        1rem
        1.25rem;

    align-items: end;
}


.determinaciones-field {
    min-width: 0;
}


.determinaciones-field--council {
    grid-column:
        1
        / 2;
}


.determinaciones-field label {
    display: block;

    margin-bottom: 0.45rem;

    color: #15233c;

    font-weight: 600;
}


.determinaciones-field .form-control,
.determinaciones-field .form-select {
    min-height: 46px;

    border-color:
        rgba(
            21,
            35,
            60,
            0.2
        );

    border-radius: 8px;
}


.determinaciones-field .form-control:focus,
.determinaciones-field .form-select:focus {
    border-color:
        rgba(
            138,
            21,
            137,
            0.7
        );

    box-shadow:
        0 0 0 0.2rem
        rgba(
            138,
            21,
            137,
            0.1
        );
}


.determinaciones-submit-wrap {
    display: flex;

    justify-content: flex-start;
    align-items: end;
}


.determinaciones-submit {
    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.5rem;

    padding:
        0.65rem
        1.15rem;

    color: #ffffff;

    background: #8a1589;

    border:
        1px solid
        #8a1589;

    border-radius: 8px;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}


.determinaciones-submit:hover:not(:disabled) {
    background: #711170;

    border-color: #711170;
}


.determinaciones-submit:focus-visible {
    outline:
        3px solid
        rgba(138, 21, 137, 0.28);

    outline-offset: 3px;
}


.determinaciones-submit:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


/*
|--------------------------------------------------------------------------
| Mensajes
|--------------------------------------------------------------------------
*/

.determinaciones-message {
    display: flex;

    align-items: center;

    gap: 0.6rem;

    margin-top: 1rem;

    padding: 0.85rem 1rem;

    border-radius: 8px;

    font-size: 0.95rem;
}


.determinaciones-message[hidden] {
    display: none !important;
}


.determinaciones-message--info {
    color: #3b4a61;

    background: #f7f8fa;

    border:
        1px solid
        #e5e8ec;
}


.determinaciones-message--error {
    color: #7b2431;

    background: #fff6f7;

    border:
        1px solid
        #f0c7ce;
}


/*
|--------------------------------------------------------------------------
| Resultados
|--------------------------------------------------------------------------
*/

.determinaciones-results {
    margin-top: 2rem;
}


.determinaciones-results-head {
    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 0.8rem;
}


.determinaciones-results-title {
    margin: 0;

    color: #15233c;

    font-size:
        clamp(
            1.1rem,
            1.5vw,
            1.35rem
        );

    font-weight: 700;
}


.determinaciones-results-count {
    margin:
        0.25rem
        0
        0;

    color: var(--text-muted);

    font-size: 0.9rem;
}


/*
|--------------------------------------------------------------------------
| Estado vacío
|--------------------------------------------------------------------------
*/

.determinaciones-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0.65rem;

    min-height: 150px;

    padding: 1.5rem;

    color: #6d7480;

    background: #fafafa;

    border:
        1px dashed
        rgba(
            138,
            21,
            137,
            0.2
        );

    border-radius: 10px;

    text-align: center;
}


.determinaciones-empty[hidden] {
    display: none !important;
}


.determinaciones-empty i {
    color:
        rgba(
            138,
            21,
            137,
            0.65
        );

    font-size: 1.8rem;
}


.determinaciones-empty p {
    max-width: 620px;

    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Tabla
|--------------------------------------------------------------------------
*/

.determinaciones-table {
    width: 100%;

    border-collapse: collapse;

    color: #15233c;
}


.determinaciones-table thead {
    border-top:
        1px solid
        #dfe3e8;

    border-bottom:
        2px solid
        #dfe3e8;
}


.determinaciones-table th {
    padding:
        0.85rem
        0.75rem;

    text-align: left;

    font-size: 0.9rem;
    font-weight: 700;

    vertical-align: bottom;
}


.determinaciones-table td {
    padding:
        1rem
        0.75rem;

    border-bottom:
        1px solid
        #e4e7eb;

    vertical-align: top;

    line-height: 1.5;
}


.determinaciones-table tbody tr:hover {
    background:
        rgba(
            138,
            21,
            137,
            0.025
        );
}


.determinaciones-col-date,
.determinaciones-cell-date {
    width: 125px;
    white-space: nowrap;
}


.determinaciones-col-file,
.determinaciones-cell-file {
    width: 145px;
}


.determinaciones-col-council,
.determinaciones-cell-council {
    min-width: 220px;
}


.determinaciones-cell-title {
    min-width: 360px;
}


/*
|--------------------------------------------------------------------------
| Archivo
|--------------------------------------------------------------------------
*/

.determinaciones-file {
    display: flex;

    justify-content: flex-start;
}


.determinaciones-file-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.45rem;

    min-height: 38px;

    padding:
        0.5rem
        0.85rem;

    color: #ffffff;

    background: #8a1589;

    border:
        1px solid
        #8a1589;

    border-radius: 7px;

    font-size: 0.85rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.determinaciones-file-btn:hover {
    color: #ffffff;

    background: #711170;

    border-color: #711170;
}


.determinaciones-file-btn:focus-visible {
    outline:
        3px solid
        rgba(138, 21, 137, 0.28);

    outline-offset: 3px;
}


.determinaciones-file-unavailable {
    color: #7a8089;

    font-size: 0.85rem;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    .determinaciones-filter-grid {
        grid-template-columns: 1fr 1fr;
    }


    .determinaciones-field--council {
        grid-column:
            1
            / -1;
    }


    .determinaciones-submit-wrap {
        grid-column:
            1
            / -1;
    }

}


/*
|--------------------------------------------------------------------------
| Móvil
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .determinaciones-app {
        margin-top: 1rem;
    }


    .determinaciones-tabs {
        flex-wrap: nowrap;

        overflow-x: auto;

        justify-content: flex-start;
    }


    .determinaciones-tabs .page-tab {
        min-width: max-content;

        white-space: nowrap;
    }


    .determinaciones-panel {
        padding-top: 1.5rem;
    }


    .determinaciones-filters {
        padding: 0.9rem;
    }


    .determinaciones-filter-grid {
        grid-template-columns: 1fr;
    }


    .determinaciones-field--council,
    .determinaciones-submit-wrap {
        grid-column: auto;
    }


    .determinaciones-submit {
        width: 100%;
    }


    .determinaciones-results {
        margin-top: 1.5rem;
    }


    .determinaciones-table th,
    .determinaciones-table td {
        padding:
            0.75rem
            0.6rem;
    }


    .determinaciones-cell-title {
        min-width: 300px;
    }

}
