/* Estilos gerais */
.wrap {
    max-width: 800px;
    margin: 20px auto;
}

.notice {
    margin: 20px 0;
}

/* Tabelas */
.wp-list-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.wp-list-table th,
.wp-list-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.wp-list-table th {
    background-color: #f9f9f9;
}

/* Formulários */
form label {
    display: block;
    margin: 10px 0 5px;
}

form select,
form input[type="number"],
form input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.notas-box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.4em;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    color: #066ae0 !important;
    margin-bottom: 20px;
}
.notas-box:hover {
    box-shadow: 0 0 11px -4px rgb(6 106 224);
    background: #f8f8f8;
    border: 1px solid #066ae0;
}
.top-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2em;
    color: #066ae0 !important;
    margin-bottom: 20px;
}
.top-filters #filtro-notas {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-bottom: 0px;
}
.top-filters #filtro-notas select {
    margin:0;
}
.top-filters #filtro-notas #data {
    -webkit-appearance: none;
    border: 1px solid #e1e1e1;
    padding: 8px 6px;
    color: #777;
    margin: 0;
    width: 100%;
    display: block;
    background: #fff;
    border-radius: 0px;
}
.bimestre-blocos {
    width: 60%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
}
.blocos-container {
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}
.top-notas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}
.container-materias {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1)
}
.nota-azul {
    color: blue;
}
.nota-vermelha {
    color: red;
}
.bloco {
    cursor: pointer;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.4em;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    color: #066ae0 !important;
    margin-bottom: 20px;
}

.bloco:hover {
    background-color: #e0e0e0;
}
.bloco.active {
    background-color: #777;
    color: white !important;
    border-color: #444;
}
#filtro-notas #materia {
    background-color: #fff;
}
#notas-container {
    border-top: 1px solid #066ae0;
    padding-top: 10px;
}
.nota-total {
    font-size: 1.5em;
    margin-bottom: 20px;
}
.nota-total.nota-vermelha span {
    background: #ffe4e4;
    color: red;
    border: 1px solid #e19494;
    padding: 4px 10px;
}
.nota-total.nota-azul span {
    background: #e0e0ff;
    color: blue;
    border: 1px solid #a0a0ff;
    padding: 4px 10px;
}
#resultado-notas .materia.nota-azul {
    width: fit-content;
    text-align: center;
    border: 1px solid #89a8ff;
    padding: 5px 10px;
    border-radius: 5px;
    background: #e4eafb;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}
#resultado-notas .materia.nota-vermelha {
    width: fit-content;
    text-align: center;
    border: 1px solid #ff8989;
    padding: 5px 10px;
    border-radius: 5px;
    background: #fbe4e4;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}
.provas-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}
.prova-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.4em;
    width: 100%;
    display: flex    ;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    color: #066ae0 !important;
}
.lista-filhos {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 15px 0;
    width: fit-content;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
}
.lista-filhos .filho {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 15px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    width: fit-content;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    border: 1px solid #ccc;
}
.lista-filhos .filho:hover { 
    background:#eee;
}
.filho.active {
    color: #0550a0;
    border: 2px solid #0550a0;
}
.lista-filhos .avatar-filho {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.lista-filhos .nome-filho {
    font-size: 16px;
}
.filtros-professor {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    margin-bottom:20px;
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}
#alunos-container {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    margin: 20px 0;
}
.topinfo-notas {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
/* Mobile */
@media screen and (max-width: 782px) {
    .top-filters {
        flex-direction: column !important;
    }
    .bimestre-blocos {
        width: 100%;
    }
    .blocos-container {
        width: 100%;
        justify-content: center;
    }
    .bloco {
        width: 22%;
    }
    .top-notas {
        gap: 2em;
        flex-direction: column;
    }
    .container-materias {
        display: block;
    }
    #resultado-notas .materia.nota-vermelha {
        width: 42%;
        margin: .500em 1em;
        float: left;
    }
    .notas-box {
        gap: 1em;
        text-align: center;
    }
}