/*----------------------------------------------------------
               Paramètre de la ligne des stats
----------------------------------------------------------*/

main {
    margin-top: 1.4rem;
}

main #date {
    display: inline-block;
    background: var(--couleur-light);
    border-radius: var(--rayon-bordure-1);
    margin-top: 1rem;
    padding: 0.5rem 1.6rem;

}

main #date input[type="date"] {
    background: transparent;
    color: var(--couleur-dark);
    fill: var(--couleur-dark);
}

main #deftitle {
    margin-top: 2rem;
}

main #insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

main #insights > div {
    background: var(--couleur-white);
    padding: var(--padding-cartes);
    border-radius: var(--rayon-bordure-cartes);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    transition: all 300ms ease;
}

main #insights > div > svg.use {
    width: 3rem;
    height: 3rem;
    padding: 0.6rem;
    border-radius: 30%;
    fill: var(--couleur-white);
    background: var(--couleur-primaire);
}

main #insights > div:hover {
    box-shadow: none;
}

main #insights > div .middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main #insights h3 {
    margin: 1rem 0 0.6rem;
    font-size: 1rem;
}

main #insights small {
    display: block;
    margin-top: 3rem;
}

/*----------------------------------------------------------
              Paramètre de la liste des tickets
----------------------------------------------------------*/

main #recent-tickets {
    margin-top: 2rem;
}

main #recent-tickets h2 {
    margin-bottom: 0.8rem;
}

main #recent-tickets table {
    background: var(--couleur-white);
    width: 100%;
    border-radius: var(--rayon-bordure-cartes);
    padding: var(--padding-cartes);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 300ms ease;
}

main #recent-tickets table:hover {
    box-shadow: none;
}

main table tbody td {
    height: 2.8rem;
    border-bottom: 1px solid var(--couleur-light);
}

main table tbody tr:last-child td {
    border: none;
}

main #recent-tickets a {
    text-align: center;
    display: block;
    margin: 1rem auto;
    color: var(--couleur-primaire);
}

/*----------------------------------------------------------
              Paramètre de la partie droite
----------------------------------------------------------*/


/* Stats */

#right #stats {
    margin-top: 1rem;
}

#right #stats h3 {
    margin-top: 0.8rem;
}

#right #stats #list {
    background: var(--couleur-white);
    padding: var(--padding-cartes);
    border-radius: var(--rayon-bordure-cartes);
    box-shadow: var(--box-shadow);
    transition: all 300ms ease;
}

#right #stats #list:hover {
    box-shadow: none;
}

#right #stats #list #stats {
    display: grid;
    grid-template-columns: 2.6rem auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* lastnews */

#right #lastnews {
    margin-top: 5rem;
}

#right #lastnews svg.use {
    height: 2rem;
    width: 2rem;
}

#right #lastnews h3 {
    margin-bottom: 0.8rem;
}

#right #lastnews .item {
    background: var(--couleur-white);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
    padding: 1.4rem var(--padding-cartes);
    box-shadow: var(--box-shadow);
    border-radius: var(--rayon-bordure-3);
    transition: all 300ms ease;
}

#right #lastnews .item svg.use {
    fill: var(--couleur-dark);
    border-radius: 50%;
    background: var(--couleur-primaire);
    padding: 0.6rem;
    height: 2.7rem;
    width: 2.7rem;
    display: flex;
}

#right #lastnews .item:hover {
    box-shadow: none;
}

#right #lastnews .item #right {
    display: flex;
    justify-content: space-between ;
    gap: 1rem;
    align-items: start;
    margin: 0;
    width: 100%;
}

#right #lastnews .pend svg.use {
    background: var(--couleur-avertissement);
}

#right #lastnews .fail svg.use {
    background: var(--couleur-erreur);
}

#right #lastnews .finish svg.use {
    background: var(--couleur-succes);
}

#right #lastnews .item svg.other {
    fill: var(--couleur-primaire);
    border-radius: 50%;
    padding: 0.6rem;
    height: 2.7rem;
    width: 2.7rem;
    display: flex;
}

#right #lastnews .add-update {
    background-color: transparent;
    border: 2px dashed var(--couleur-primaire);
    display: flex;
    color: var(--couleur-primaire);
    align-items: center;
    justify-content: center;
}

#right #lastnews .add-update div {
    display: flex;
    align-items: center;
}

#right #lastnews .add-update h3 {
    margin-top: 5%;
    font-weight: 600;
}

/*----------------------------------------------------------
                  Paramètre de taille d'écran
----------------------------------------------------------*/
/* Pc petit écran */

@media screen and (max-width: 1200px) {
    #container {
        width: 94%;
        grid-template-columns: 7rem auto 23rem;
    }

    main #insights {
        grid-template-columns: 1fr;
        gap: 0;
    }

    main #recent-tickets {
        width: 94%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 2rem 0 0 8.8rem;
    }

    main #recent-tickets table {
        width: 83vw;
    }
    
    main table thead tr th:last-child,
    main table thead tr th:first-child {
        display: none;
    }

    main table tbody tr td:last-child,
    main table tbody tr td:first-child {
        display: none;
    }
}

@media screen and (max-width: 1070px) {
    main #recent-tickets table {
        width: 82vw;
    }
}

@media screen and (max-width: 1030px) {
    main #recent-tickets table {
        width: 80vw;
    }
}

@media screen and (max-width: 850px) {
    main #recent-tickets table {
        width: 77vw;
    }
}

/* Téléphone / tablette */

@media screen and (max-width: 768px) {
    #container {
        width: 100%;
        grid-template-columns: 1fr;
    }

    main {
        margin-top: 8rem;
        padding: 0 1rem;
    }

    main #insights {
        grid-template-columns: 1fr;
        gap: 0;
    }

    main #recent-tickets {
        width: 100%;
        position: relative;
        margin: 3rem 0 0 0;
    }

    main #recent-tickets table {
        width: 100%;
        margin: 0;
    }
    
}