
@media (prefers-color-scheme: dark) {
    :root {
        --signal: -;
    }
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

html {
    height: 100hv;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-normal);
    font-optical-sizing: auto;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body>* {
    padding-left: calc(50vw - 37.5rem);
    padding-right: calc(50vw - 37.5rem);
}

@media (max-width: 1240px) {
    body>* {
        padding: 0;
    }

    main>section {
        padding: 0 calc(1vw + 0.5rem);
    }

    body>header {
        padding: 0 calc(1vw + 0.5rem);
    }
}

body>header {
    height: 4rem;
    display: flex;
    align-items: center;
    background: var(--header-background-color);
}

body>header nav {
    display: flex;
    align-items: center;
    flex-basis: calc(90% - 5rem);
    position: relative;
    font-size: 0.9rem;
}

body>header nav button.menu {
    display: none;
}

body>header ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}

body>header ul a {
    color: var(--color-emphasis);
    line-height: 1;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem;
    display: block;
}

body>header .current a {
    font-weight: bolder;
    color: var(--header-text-color);
}

body>header .submenu .current a {
    color: var(--header-text-color);
    background-color: var(--color-emphasis-over);
}

body>header .logo {
    height: 3rem;
}

body>header .logo img {
    max-height: 143%;
    flex-basis: 3rem;
}

body>main {
    padding-bottom: 3rem;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
}

h4,
h5,
h6 {
    margin-bottom: 0.25rem;
}

h1 {
    font-size: 2.25em;
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.25em;
}

h5 {
    font-size: 1.125em;
}

h6 {
    font-size: 1.065em;
    color: var(--text-color)
}

a {
    font-weight: bold;
}

figure {
    margin: 0;
}

blockquote {
    border-left: 2px solid #daf4ff;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 1rem 0;
    background-color: #ecf2ee26;
    min-width: 80vw;
    line-height: 1.75;
}

blockquote h5:first-child {
    margin-top: 0;
}

.attention {
    background-color: var(--warn-color-bg);
    color: var(--zwarn-color);
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border: 2px dashed var(--warn-color)
}

.attention h4 {
    font-size: 1.1rem;
    color: inherit;
    margin: 0 0 0.25rem 0;
}

.error {
    background-color: var(--error-color-bg);
    color: var(--error-color)
}

span.pai {
    font-weight: 400;
    font-size: 75%;
    opacity: 0.75;
    display: block;
}


@media (max-width: 640px) {
    .list li .image {
        order: 1;
    }
}

.list li .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read label {
    font-weight: 700;
    font-size: 0.9em;
}

.read label+span,
.read label+p {
    font-size: 1.125em;
    color: inherit;
    margin: 0;
}

.read label+video {
    margin: 0.25rem 0 0 0;
}

video {
    max-width: 100%;
    max-height: 80vh;
    background-color: #000;
    border-radius: 0.25em;
}

.field.write.pdf {
    flex: 1 0 100%;
}
.field.pdf {
    width: 100%;
    max-height: 80vh;
}

.field embed {
    flex: 1 0 100%;
    height: 70vh;
    background: url('/assets/audio.svg') #bebebe47 no-repeat center/contain;
    border-radius: 0.5em;
    object-fit: contain;
    width: 100%;
    max-height: 80vh;
}

.field.write.markdown,
.field.write.plaitext {
    flex: 100%;
}

.field.read.image {
    margin: 0 0 1em 0;
}

.field.write.image img,
.field.read.image img {
    width: 100%;
    border-radius: 0.25em;
}

.list-info {
    margin: 1em 0;
    line-height: 1.65;
}

.list-info span {
    display: inline-block;
    margin-right: 0.75em;
    padding-right: 1em;
    border-right: 1px solid var(--border-color);
    line-height: 1;
    white-space: nowrap;
}

.list-info span:last-child {
    border-right: none;
}

.list-title {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.list-title h3 {
    margin: 1em 0;
    font-size: 1.45em;
    line-height: 1.125;
    font-weight: 400;
}

.list-title .status,
.list ul a .status {
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    margin: 0 0 0 auto;
    flex: 0;
}

.status.normal {
    background-color: var(--color-status-normal);
}

.status.atencao {
    background-color: var(--color-status-atencao);
    color: var(--bg-color);
}

.status.alerta {
    background-color: var(--color-status-alerta);
}

.status.critico {
    background-color: var(--color-status-critico);
}

.status.positivo {
    background-color: var(--color-status-positivo);
}

.status span {
    font-size: 85%;
}

.status b {
    display: block;
}

:not(form) fieldset+.buttons {
    margin-top: 1rem;
}

.remover-inscricao {
    background-color: var(--color-status-critico);
}

.roteiro {
    background-color: var(--bg-color-over);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 2rem 0 0 0;
}

.roteiro h3 {
    margin: 0 0 1rem 0;
}

.roteiro ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
}

.roteiro li {
    display: flex;
    flex-flow: row nowrap;
    gap: 1rem;
    align-items: center;
}

.roteiro b {
    width: 2rem;
    height: 2rem;
    border-radius: 2rem;
    color: var(--text-color-weak);
    border: 1px solid var(--text-color-weak);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roteiro span {
    font-weight: 500;
    color: var(--text-color-weak)
}

.roteiro li.selecionado b {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
}

.roteiro li.selecionado span {
    color: var(--text-color);
}

.roteiro li.atual b {
    background-color: var(--color-emphasis);
    color: var(--bg-color);
    box-shadow: 0 0 0 0.125rem var(--text-color);
}

.roteiro li.atual span {
    color: var(--color-emphasis);
    font-weight: 700;
}

.report {
    display: flex;
    gap: 2rem;
}

.report>div {
    flex: 1 1 40%;
}

.grafico .barras {
    display: flex;
    gap: 0.125rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    background-color: var(--surface-color);
}

.grafico .legenda li .status,
.grafico .barras div {
    height: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.125rem;
}

.grafico .legenda {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-flow: row wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.grafico .legenda li {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.grafico .legenda li .status {
    width: 0.5em;
    height: 2em;
    padding: 0;
    border-radius: 2em;
}
.grafico .legenda a {
    font-weight: 800;
    text-decoration: none;
}
.grafico .legenda span span {
    font-size: 0.85em;
}

@media (max-width: 580px) {
    .grafico .legenda li>span {
        display: flex;
        flex-flow: column nowrap;
    }

    .list .tools {
        flex-flow: column nowrap;
    }

    .list .tools .order,
    .list .tools .filters,
    .list .tools .filter {
        width: 100%;
        flex-flow: column nowrap;
    }

    .list .filters {
        flex-flow: column nowrap;
    }

    .list .filters::before {
        content: "Filtros";
    }

    .list .filters label {
        display: none;
    }

    .list li a,
    .list>div a {
        flex-flow: row wrap;
        gap: 0.5em 1em;
    }

    .list>ul a>div {
        order: 10;
    }

    .list-title .status,
    .list ul a .status {
        order: 1;
    }

    .list>ul a>label {
        flex-direction: row;
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    .list>ul a>label input {
        margin: 0;
    }

}



.revisao .list ul {
    background-color: var(--bg-color-over);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    list-style: none;
}

.revisao .list li:not(:last-child) {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 830px) {
    body>header nav ul.menu {
        display: none;
    }

    body>header nav.open ul.menu {
        display: flex;
        position: absolute;
        top: 3rem;
        left: 0;
        z-index: 1;
        background: var(--color-secundary);
        flex-flow: column;
        gap: 1px;
    }

    body>header nav button.menu {
        display: flex;
    }
}

.recomendacao {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--item-border-color);
    display: flex;
    flex-flow: column;
    gap: 0.5rem;
    margin: 2rem 0;
}

.recomendacao>* {
    margin: 0;
}

.agencias figure.logo {
    max-width: 7rem;
}

form figure.logo img,
figure.logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.header_agencia {
    display: flex;
    gap: 0.5rem 2rem;
    margin: 2rem 0;
    flex-flow: row wrap;
}

.pix {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
}

.pix figure {
    max-width: 50%;
}

.pix figure img {
    max-width: 22em;
    min-width: 12em;
    max-height: 80vh;
    aspect-ratio: 1;
}

.pix div {
    flex: 1 1 calc(65% - 1em);
}