/* =========================================================
   OBSERVATIONS DU JOUR
   ========================================================= */

.observations-jour
{
    margin-top: 25px;

    padding: 25px;

    border: 1px solid #e1e7eb;

    border-radius: 12px;

    background: #fafcfd;
}


/*
 * Titres
 */

.observations-jour h2
{
    margin-top: 0;

    margin-bottom: 20px;

    text-align: center;
}

.observations-jour h3
{
    margin-top: 25px;

    margin-bottom: 15px;

    text-align: center;

    font-size: 18px;
}


/*
 * Sélection de la date
 */

/* =========================================================
   SELECTION DE LA DATE
   ========================================================= */

.observations-date
{
    display: flex;

    align-items: end;

    justify-content: center;

    gap: 12px;

    margin-bottom: 20px;
}


.observations-date label
{
    margin-bottom: 11px;

    font-weight: bold;

    white-space: nowrap;
}


.observations-date input
{
    width: 220px;

    height: 42px;

    padding: 8px 12px;

    border: 1px solid #cfd8df;

    border-radius: 8px;

    background: white;

    font-size: 14px;

    box-sizing: border-box;
}


.observations-date button
{
    width: 100px;

    height: 42px;

    margin: 0;
}


/*
 * Tableau
 */

.observations-tableau
{
    width: 100%;

    overflow-x: auto;

    scrollbar-width: none;
}

.observations-tableau::-webkit-scrollbar
{
    display: none;
}

.observations-tableau table
{
    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    background: white;

    border: 1px solid #dfe5e9;

    border-radius: 10px;

    overflow: hidden;
}


/*
 * En-tête
 */

.observations-tableau th
{
    padding: 12px 10px;

    background: #eef3f6;

    border-bottom: 1px solid #d7dfe4;

    font-size: 13px;

    text-align: left;

    white-space: nowrap;
}


/*
 * Cellules
 */

.observations-tableau td
{
    padding: 11px 10px;

    border-bottom: 1px solid #e7ecef;

    font-size: 14px;

    white-space: nowrap;
}


/*
 * Dernière ligne
 */

.observations-tableau tbody tr:last-child td
{
    border-bottom: none;
}


/*
 * Alternance des lignes
 */

.observations-tableau tbody tr:nth-child(even)
{
    background: #f8fafb;
}


/*
 * Survol
 */

.observations-tableau tbody tr:hover
{
    background: #eef6fc;
}

/* =========================================================
   DETAIL D'UNE OBSERVATION
   ========================================================= */

.observation-detail
{
    display: none;

    position: fixed;

    z-index: 1000;

    width: 380px;

    max-width: calc(100vw - 20px);

    padding: 20px;

    box-sizing: border-box;

    border: 1px solid #cfd8df;

    border-radius: 10px;

    background: white;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.15);

    font-size: 14px;

    line-height: 1.7;

    pointer-events: none;
}

@media (max-width: 700px)
{

    .observations-jour
    {
        padding: 15px;
    }


    .observations-date
    {
        flex-direction: column;

        align-items: stretch;
    }


    .observations-date button
    {
        width: 100%;
    }


    .observations-tableau
    {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


.observations-tableau table
{
    min-width: 900px;
}