* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #1f2937;
}

.topo {
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    color: white;
    padding: 28px 40px;
    text-align: center;
}

.topo h1 {
    margin: 0;
    font-size: 32px;
}

.topo p {
    margin: 8px 0 0;
    font-size: 16px;
    opacity: 0.85;
}

.container {
    width: 95%;
    max-width: 1300px;
    margin: 30px auto;
}

.linha-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.cards-resumo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.resumo span {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.resumo strong {
    font-size: 34px;
    color: #1d4ed8;
}

.btn {
    display: inline-block;
    background: #1d4ed8;
    color: white;
    text-decoration: none;
    border: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover {
    background: #1e40af;
}

.btn.pequeno {
    padding: 7px 12px;
    font-size: 13px;
}

.btn.secundario {
    background: #0f766e;
}

.btn.secundario:hover {
    background: #115e59;
}

.btn.voltar {
    background: #64748b;
}

.btn.voltar:hover {
    background: #475569;
}

form label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f1f5f9;
    color: #334155;
    text-align: left;
    padding: 12px;
    font-size: 14px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.centro {
    text-align: center;
}

.alerta {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 10px;
}

.alerta.success {
    background: #dcfce7;
    color: #166534;
}

.barra-progresso {
    width: 100%;
    background: #e5e7eb;
    height: 30px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 22px;
}

.barra-progresso div {
    height: 100%;
    background: #22c55e;
    color: white;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

textarea {
    height: 430px;
    resize: vertical;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.btn-horas {
    background: #2563eb;
}

.btn-horas:hover {
    background: #1d4ed8;
}

.btn-anexo {
    background: #0f766e;
}

.btn-anexo:hover {
    background: #115e59;
}

.btn-relatorio {
    background: #7c3aed;
}

.btn-relatorio:hover {
    background: #6d28d9;
}

.login-wrapper {
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 480px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-card {
    padding: 28px;
}

.login-card .btn {
    width: 100%;
    margin-top: 18px;
}

.topo {
    position: relative;
}

.sair-sistema {
    position: absolute;
    right: 40px;
    top: 35px;
    background: #64748b;
}

.sair-sistema:hover {
    background: #475569;
}

.linha-finalizada td {
    background: #f8fafc;
    color: #94a3b8;
    border-bottom: 1px solid #e2e8f0;
}

.linha-finalizada td:first-child {
    color: #94a3b8;
    font-weight: normal;
    opacity: 0.65;
}

.linha-finalizada input,
.linha-finalizada select {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.btn-ok {
    background: #22c55e;
    color: white;
    cursor: default;
}

.btn-ok:hover {
    background: #22c55e;
}

.btn-editar {
    background: #dc2626;
    color: white;
    margin-left: 6px;
}

.btn-editar:hover {
    background: #b91c1c;
}

.acoes-linha {
    white-space: nowrap;
}

.btn-ok {
    background: #22c55e;
    color: white;
    cursor: default;
}

.btn-ok:hover {
    background: #22c55e;
}

.btn-editar {
    background: #dc2626;
    color: white;
    margin-left: 6px;
}

.btn-editar:hover {
    background: #b91c1c;
}

.acoes-linha {
    white-space: nowrap;
}

.titulo-acoes {
    text-align: center;
}

.topo-index {
    margin-bottom: 20px;
}

.topo-index h2 {
    margin-bottom: 18px;
}

.botoes-index {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}