* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6f9;
    color: #263238;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.menu-lateral {
    width: 260px;
    background: #0f172a;
    color: #ffffff;
    padding: 25px 20px;
}

.logo {
    margin-bottom: 35px;
}

.logo h2 {
    margin: 0;
    font-size: 26px;
    color: #facc15;
}

.logo span {
    font-size: 13px;
    color: #cbd5e1;
}

.menu-lateral nav a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    padding: 13px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.menu-lateral nav a:hover {
    background: #1e293b;
    color: #facc15;
}

.conteudo {
    flex: 1;
    padding: 30px;
}

.topo-pagina {
    margin-bottom: 25px;
}

.topo-pagina h1 {
    margin: 0 0 5px;
    font-size: 30px;
}

.topo-pagina p {
    margin: 0;
    color: #64748b;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

.card h3 {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 15px;
    font-weight: normal;
}

.card strong {
    font-size: 34px;
    color: #0f172a;
}

.card.vermelho {
    border-left: 5px solid #dc2626;
}

.card.amarelo {
    border-left: 5px solid #f59e0b;
}

.card.verde {
    border-left: 5px solid #16a34a;
}

.card.azul {
    border-left: 5px solid #2563eb;
}

.box {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    margin-bottom: 25px;
}

.box h2 {
    margin-top: 0;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
}

.tabela th,
.tabela td {
    padding: 13px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.tabela th {
    background: #f8fafc;
    color: #475569;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge.verde {
    background: #dcfce7;
    color: #166534;
}

.badge.amarelo {
    background: #fef3c7;
    color: #92400e;
}

.badge.laranja {
    background: #ffedd5;
    color: #9a3412;
}

.badge.vermelho {
    background: #fee2e2;
    color: #991b1b;
}

.alerta {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alerta.erro {
    background: #fee2e2;
    color: #991b1b;
}

.alerta.sucesso {
    background: #dcfce7;
    color: #166534;
}

.formulario {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

.campo {
    margin-bottom: 16px;
}

.campo label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.campo textarea {
    min-height: 100px;
}

.botao {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    border: 0;
    padding: 11px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.botao:hover {
    background: #1d4ed8;
}

.botao.verde {
    background: #16a34a;
}

.botao.verde:hover {
    background: #15803d;
}

.botao.vermelho {
    background: #dc2626;
}

.botao.vermelho:hover {
    background: #b91c1c;
}

.acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 1000px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-lateral {
        width: 220px;
    }
}

@media (max-width: 700px) {
    .layout {
        flex-direction: column;
    }

    .menu-lateral {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}
.box {
    overflow-x: auto;
}

.tabela {
    min-width: 850px;
}
.checklist-box {
    margin-top: 20px;
    margin-bottom: 20px;
}

.checklist-box .tabela input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.checklist-box .tabela input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

button:disabled,
.botao:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}
.filtros {
    display: grid;
    grid-template-columns: 220px 1fr auto auto auto;
    gap: 12px;
    align-items: end;
}

.filtros .campo {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .filtros {
        grid-template-columns: 1fr;
    }
}
.filtros {
    display: grid;
    grid-template-columns: 220px 1fr auto auto auto;
    gap: 12px;
    align-items: end;
}

.filtros .campo {
    margin-bottom: 0;
}

.checklist-box {
    margin-top: 20px;
    margin-bottom: 20px;
}

.checklist-box .tabela input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.checklist-box .tabela input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

button:disabled,
.botao:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .filtros {
        grid-template-columns: 1fr;
    }
}
.filtros-relatorio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: end;
}

.filtros-relatorio .campo {
    margin-bottom: 0;
}

.cabecalho-relatorio {
    display: none;
    text-align: center;
    margin-bottom: 25px;
}

.cabecalho-relatorio h1 {
    margin-bottom: 5px;
}

.cabecalho-relatorio p {
    margin: 4px 0;
    color: #475569;
}

.resumo-filtros {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.resumo-filtros ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

@media (max-width: 1000px) {
    .filtros-relatorio {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .filtros-relatorio {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .menu-lateral,
    .area-nao-imprimir {
        display: none !important;
    }

    .layout {
        display: block;
    }

    .conteudo {
        padding: 0;
    }

    .cabecalho-relatorio {
        display: block;
    }

    .box,
    .card {
        box-shadow: none;
        border: 1px solid #cccccc;
    }

    .cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .card strong {
        font-size: 24px;
    }

    .tabela {
        min-width: 100%;
        font-size: 12px;
    }

    .tabela th,
    .tabela td {
        padding: 7px;
    }

    .badge {
        border: 1px solid #999999;
        color: #000000 !important;
        background: #ffffff !important;
    }

    a {
        color: #000000;
        text-decoration: none;
    }
}
.usuario-logado {
    margin: 18px 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
}

.usuario-logado strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.usuario-logado span {
    font-size: 13px;
    color: #cbd5e1;
    text-transform: capitalize;
}

.menu-lateral nav a.sair {
    margin-top: 18px;
    background: #dc2626;
    color: #ffffff;
}

.menu-lateral nav a.sair:hover {
    background: #b91c1c;
}
.grid-usuarios-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 220px;
    gap: 16px;
    align-items: end;
}

.grid-usuarios-form .campo {
    margin-bottom: 0;
}

.badge.azul {
    background: #dbeafe;
    color: #1d4ed8;
}

@media (max-width: 1000px) {
    .grid-usuarios-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .grid-usuarios-form {
        grid-template-columns: 1fr;
    }
}
.grid-editar-usuario {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 220px 180px;
    gap: 16px;
    align-items: end;
}

.grid-senha-usuario {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: end;
}

.grid-editar-usuario .campo,
.grid-senha-usuario .campo {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .grid-editar-usuario,
    .grid-senha-usuario {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .grid-editar-usuario,
    .grid-senha-usuario {
        grid-template-columns: 1fr;
    }
}

