.dashboard {
    margin: 1.5em 0 2.5em 0;
    border-radius: 0.5em;
    background-color: var(--surface-color);
    padding: 0.5em;
    display: flex;
    flex-flow: row wrap;
    gap: calc(1em + 2vw) 0.5rem;
}

.dashboard>div {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    width: 50%;
    text-align: center;
    justify-content: space-between;
    align-content: space-between;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--surface-color);
}


.totals {
    flex: 0 1 20%;
}

.totals p {
    font-size: 0.8em;
    text-align: center;
    margin: 0.75em 0 0 0;
}

.ritmo {
    flex-flow: column nowrap;
    flex: 1 0 30%;
}

.periodo {
    display: flex;
    flex-flow: row nowrap;
    gap: 1em;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.periodo div {
    display: flex;
    flex-flow: column nowrap;
}

.medias {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    text-align: left;
    line-height: 1;
}

.medias ul {
    font-size: 0.875em;
    margin: 0;
}

.medias li {
    margin: 0.4em 0;
}

.medias .grafico {
    background-color: var(--surface-color);
    border-radius: 0.5em;
    width: 100%;
    height: 0.75em;
    margin: 1.75em 0 0.75em 0;
    padding: 0.25em;
    position: relative;
}

.medias .media {
    background-color: var(--color-link);
    height: 0.25em;
    width: 15%;
}

.medias .position {
    position: absolute;
    top: -1.6em;
    background: transparent url('/custom/2026/img/turtle.svg') no-repeat center / contain;
    border-radius: 1em;
    width: 2em;
    height: 2em;
    z-index: 2;
}
html[data-theme="dark"] .medias .position {
    filter: brightness(2);
}
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .medias .position {
        filter: brightness(2);
    }
}
.medias .position.alta {
    background-image: url('/custom/2026/img/rabbit.svg');
}


.comparativo {
    display: flex;
    flex-flow: column nowrap;
    flex: 1 0 40%;
    min-height: 10em;
    justify-content: space-between;
}

.comparativo h4 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 500;
}

.comparativo p {
    margin: 0.5em 0 0.75em 0;
    flex: 0 1 1em;
    font-size: 0.96em;
}

.comparativo .barras {
    display: flex;
    flex-flow: row nowrap;
    flex: 1 1;
    gap: 0.25em;
    align-items: flex-end;
    margin: 0;
    width: 100%;
    list-style: none;
    padding: 0;
}

.comparativo .barras li {
    background-color: var(--text-color-weak);
    min-height: 0.25em;
    margin: 0;
    flex: 1;
    border-radius: 0.125em 0.125em 0 0;
}

.comparativo .barras li.me {
    background-color: var(--color-link);
}

.comparativo .barras li.completed {
    background-color: var(--color-status-positivo);
}

dialog#criterios {
    width: 90%;
    max-width: 60em;
}

#criterios table {
    border: none;
    background-color: transparent;
}

#criterios table tr {
    background-color: transparent;
}

#criterios table th {
    background-color: transparent;
    border-bottom: 2px solid var(--text-color-weak);
    padding: 0.5em;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.9em;
}

#criterios table td {
    background-color: transparent;
    border-bottom: 1px solid var(--text-color-weak);
}

.avaliacoes main .item header {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
    align-items: center;
    justify-content: space-between;
}

.mostrar-criterios {
    margin-left: auto;
}

.item .tools {
    display: flex;
    flex-flow: row nowrap;
    gap: 1em;
    justify-content: space-between;
    margin: 1em 0;
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--surface-color-opaque);
    box-shadow: 0 0.5em 1em -0.25em var(--surface-color);
    padding: 1em;
    border-radius: 0.5em;
    border: 1px solid var(--border-color);
}

.tools .criterios {
    display: flex;
    flex-flow: row nowrap;
    gap: 1em;
    align-items: stretch;
}

.tools .criterios {
    flex: 1 1 auto;
    display: flex;
    flex-flow: row nowrap;
    gap: 0.5em;
    width: 10vw;
}

.tools .criterios>div {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.25em;
    width: calc(25% - 0.37em);
}

.tools .criterios label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools .criterios button[type="submit"] {
    flex: 0 0 5em;
}

.tools .calculo {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    flex: 0 0 4em
}

.tools output {
    font-size: 1.5em;
    font-weight: 600;
}

.tools input {
    font-size: 1.125em;
    font-weight: 600;
    padding: 0.25em 0;
    text-align: center;
}

.tools button {
    height: auto;
    background-color: var(--color-link);
}

form:invalid button[type="submit"] {
    background-color: var(--surface-color);
    color: #fffa;
    cursor: not-allowed;
}

button[type="submit"]:hover {
    color: #fff;
    opacity: 1;
}

header .favorito svg {
    width: 3.25em;
    height: 3.25em
}

@media (max-width: 800px) {
    .avaliacoes main .item header {
        flex-wrap: wrap;
    }

    .avaliacoes main .item header h1 {
        width: 100%;
    }

    .avaliacoes main .item header button {
        margin: 0;
    }

    .avaliacoes main {
        max-width: 100vw;
    }

    .item .tools {
        flex-wrap: wrap;
        width: calc(100vw - 2em);
    }
    
    .item .tools .criterios {
        width: 100%;
    }
    h1 {
        overflow-wrap: break-word;
    }
}

@media (max-width: 440px) {
    .dashboard>div {
        flex-basis: 100%;
    }

    .dashboard>div:not(:last-child) {
        border-bottom: 1px solid var(--text-color-weak);
        padding-bottom: 2em;
    }
}

.list .indefinida {
    color: var(--text-color-weak);
}