:root {
    --primary-color: #7d0505;
    --primary-txt-color: #444;
    --default-box-shadow: 0px 0px 12px 0px #0000000e;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #fafafa;
    padding-top: 96px;
    color: var(--primary-txt-color);
    font-family: 'Parkisans', sans-serif;
    font-size: 100%;
    z-index: 0;
}

h1 {
    margin: 0px;
    color: var(--primary-color);
}

.hidden {
    display: none;
}

*[disabled] {
    opacity: 0.5;
}

#layout-header {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 0px 36px;
    justify-content: space-between;
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--default-box-shadow);
    z-index: 1;
    position: fixed;
    width: 100%;
    top: 0px;
    height: 96px;
}

#layout-header .icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
}

#layout-header #logo {
    font-size: 140%;
    color: inherit;
}

#layout-header #menu {
    cursor: pointer;
}

#layout-header #box-user {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    cursor: pointer;
}

#layout-header #box-user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

#layout-header #box-user-name {
    font-size: 90%;
}

#layout-header #box-user-institution {
    font-size: 80%;
}

#layout-header #box-user:hover #menu-usuario {
    display: flex;
}

#menu-usuario {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    color: white;
    width: max-content;
    border-radius: 0px 0px 0px 15px;
    position: fixed;
    top: 96px;
    right: 0px;
    text-align: right;
}

#menu-usuario a {
    text-decoration: none;
    color: white;
}

#menu-usuario a:hover {
    text-decoration: underline;
}

#layout-body {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

#layout-body main {
    flex-grow: 1;
}

#layout-menu {
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    color: white;
    overflow-x: hidden;
    padding: 18px 0;
    transition: 0.25s;
    width: max-content;
    max-width: 320px;
}

#layout-menu.closed {
    max-width: 0%;
}

.layout-menu-opt {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 18px 36px;
}

.layout-menu-opt:hover,
.layout-menu-opt.selected {
    background-color: #00000060;
}

.layout-menu-opt .icon {
    width: 24px;
    height: 24px;
    background-color: white;
}

.layout-menu-opt-img {
    width: 24px;
    height: 24px;
}

#layout-menu a {
    text-decoration: none;
    color: white;
}

.botao-primario,
.botao-secundario {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    text-transform: uppercase;
    height: 40px;
    text-decoration: none;
    font-weight: bold;
    line-height: 1;
    font-size: 80%;
    transform-origin: center;
}

.botao-primario:active,
.botao-secundario:active {
    transform: scale(0.95);
}

.botao-secundario {
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    background-color: transparent;
}

fieldset {
    padding: 24px;
    gap: 24px;
    border: none;
    border-radius: 12px;
    box-shadow: var(--default-box-shadow);
    background-color: white;
    border: 1px solid #0000001e;
}

.flexModal fieldset {
    margin: 24px;
}

fieldset legend {
    border-radius: 6px;
    background-color: var(--primary-color);
    font-size: 80%;
    color: white;
    padding: 6px 12px;
    font-weight: bold;
}

.flexModal fieldset legend {
    text-align: center;
}

form,
fieldset {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #FAFAFA;
    background-color: #00000015;
    border: 1px solid #00000029;
    background-color: #0000000a;
}

table {
    width: 100%;
    border-radius: 4px;
    background-color: white;
    border-collapse: collapse;
    border-radius: 12px;
    box-shadow: var(--default-box-shadow);
}

table th {
    text-align: left;
    background-color: var(--primary-color);
    color: white;
    font-size: 80%;
    text-transform: uppercase;
}

table th:first-child {
    border-top-left-radius: 12px;
}

table th:last-child {
    border-top-right-radius: 12px;
}

th,
td {
    padding: 12px 24px;
}

tr:not(:last-child) {
    border-bottom: 1px solid #00000037;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

tr:hover {
    background-color: #0000000c;
    cursor: pointer;
}

a {
    text-decoration: none;
}

.layout-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 36px;
}

.material-icons,
.material-symbols-outlined {

    vertical-align: middle;
    color: var(--primary-color);
}

.escuro {
    background-color: black;
}

.escuro h2,
.escuro h3 {
    background-color: black;
    color: white;
}

.paimenu {
    position: relative;
    cursor: pointer;
}

select {
    padding: 10px;
    font-size: 100%;
}

#modal-error {
    position: relative;
}

.modal-error-btn-close {
    position: absolute;
    right: 12px;
    top: -32px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    line-height: 0.8;
    user-select: none;
}

.modal-error-btn-close:hover {
    filter: brightness(1.5);
}

@media screen and (max-width: 768px) {
    #layout-menu {
        position: fixed;
        height: 100%;
        min-width: 0;
    }
}

#label-cadastro {
    text-decoration: underline;
}

#cadastro {
    text-align: center;
}

#naoexiberelatorio label {
    display: none;
}

.th-acoes {
    width: 130px;
}

label[for="botao-cadastro"] {
    cursor: pointer;
}

label[for="botao-cadastro"]:hover {
    color: var(--primary-color);
}

#modal-cadastro input {
    text-align: center;
}

#icone-filtro {
    width: 40px;
    height: 40px;
}

#aviso {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    background-color: #7d05054f;
    padding: 24px;

}

.cima {
    font-weight: bold;
    font-size: 90%;
}

.baixo {
    color: #444;
}

.baixo:hover {
    text-decoration: underline;
}

#anuncio {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: sans-serif;
    flex-grow: 1;
}

.fechar {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #888;
}

.fechar:hover {
    color: #000;
}
