/* =========================================================
   PÁGINA TURNOS
========================================================= */

.turnos-page {
    width: 100%;
    padding: 28px 30px 40px;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.turnos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.turnos-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #182230;
}

.turnos-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #667085;
}


/* =========================================================
   PANELES
========================================================= */

.turnos-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.turnos-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.turnos-panel h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
    color: #182230;
}

.turnos-panel p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #667085;
}


/* =========================================================
   FILTRO DE FECHA
========================================================= */

.turnos-filtro {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.turnos-filtro .turnos-field {
    width: 220px;
}


/* =========================================================
   TARJETAS DE RESUMEN
========================================================= */

.turnos-metricas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.turnos-metrica {
    position: relative;
    background: #ffffff;
    min-width: 0;
    min-height: 125px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.turnos-metrica-icono {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #eef7f0;

    font-size: 18px;
}

.turnos-metrica-label {
    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    color: #667085;
}

.turnos-metrica-valor {
    margin-bottom: 9px;

    font-size: 28px;
    line-height: 1;
    font-weight: 800;

    color: #182230;
}

.turnos-metrica-descripcion {
    font-size: 12px;
    color: #7b8493;
}


/* =========================================================
   CAMPOS
========================================================= */

.turnos-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.turnos-field label {
    font-size: 12px;
    font-weight: 700;
    color: #475467;
}

.turnos-field input,
.turnos-field select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    background: #ffffff;

    font-family: inherit;
    font-size: 14px;

    color: #182230;

    box-sizing: border-box;
}

.turnos-field input:focus,
.turnos-field select:focus {
    outline: none;
    border-color: #2f913e;
    box-shadow: 0 0 0 3px rgba(47, 145, 62, 0.12);
}


/* =========================================================
   TABLA
========================================================= */

.turnos-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.turnos-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.turnos-table thead th {
    padding: 12px 10px;

    border-bottom: 1px solid #e4e7ec;

    text-align: left;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.4px;

    color: #667085;
}

.turnos-table tbody td {
    padding: 14px 10px;

    border-bottom: 1px solid #eef0f2;

    font-size: 13px;

    color: #344054;

    vertical-align: middle;
}

.turnos-table tbody tr:last-child td {
    border-bottom: none;
}

.turnos-table tbody tr:hover {
    background: #fafafa;
}

.turnos-empty {
    padding: 35px !important;
    text-align: center;
    color: #667085 !important;
}


/* =========================================================
   BOTONES
========================================================= */

.btn-turnos-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 15px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    background: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 650;

    color: #344054;

    cursor: pointer;
}

.btn-turnos-secondary:hover {
    background: #f8f9fa;
}

.btn-turnos-danger {
    width: 100%;
    min-height: 42px;

    padding: 0 16px;

    border: none;
    border-radius: 9px;

    background: #c43d3d;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.btn-turnos-danger:hover {
    background: #ac3333;
}


/* =========================================================
   BLOQUEOS
========================================================= */

.turnos-bloqueos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.turnos-bloqueos-grid .turnos-panel {
    margin-bottom: 0;
}

.turnos-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.turnos-panel-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef7f0;

    font-size: 18px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .turnos-metricas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 750px) {

    .turnos-page {
        padding: 20px 15px 30px;
    }

    .turnos-header {
        flex-direction: column;
        align-items: stretch;
    }

    .turnos-filtro {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .turnos-filtro .turnos-field {
        width: 100%;
    }

    .turnos-metricas {
        grid-template-columns: 1fr;
    }

    .turnos-bloqueos-grid {
        grid-template-columns: 1fr;
    }

/* =========================================================
   TURNOS MOBILE
========================================================= */

@media (max-width: 760px) {

    .turnos-page {
        padding: 0;
    }


    .turnos-header {
        align-items: flex-start;
    }


    .turnos-header h1 {
        font-size: 24px;
    }


    .turnos-metricas {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 12px;
    }


    .turnos-metrica {
        min-height: 110px;
        padding: 16px;
    }


    .turnos-metrica-valor {
        font-size: 23px;
    }


    .turnos-filtro {
        gap: 15px;
    }


    .turnos-panel {
        padding: 16px;
        margin-bottom: 15px;
    }


    .turnos-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    .turnos-table {
        min-width: 760px;
    }


    .turnos-bloqueos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .btn-turnos-secondary,
    .btn-turnos-danger {

        min-height:
            44px;
    }

}


@media (max-width: 480px) {

    .turnos-metricas {
        grid-template-columns:
            1fr;
    }

}

}