* {
    box-sizing: border-box;
}

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

.topo {
    background: #ffffff;
    color: #0f3d56;
    padding: 28px 16px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.topo h1 {
    margin: 0;
    font-size: 2rem;
    color: #0f3d56;
}

.topo p {
    margin: 8px 0 0;
    color: #475569;
    opacity: 1;
}

.container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}

.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card h2 {
    margin-top: 0;
    color: #0f3d56;
}

.card p {
    line-height: 1.65;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

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

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

button {
    width: 100%;
    border: none;
    background: #0f766e;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #0d5f59;
}

.msg-erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.link-sair {
    display: inline-block;
    margin-top: 10px;
    color: #0f3d56;
    text-decoration: none;
    font-weight: bold;
}

.link-sair:hover {
    text-decoration: underline;
}

.rodape {
    text-align: right;
    color: #64748b;
    padding: 24px 16px 24px 16px;
    font-size: 0.95rem;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-topo {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 14px auto;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .topo h1 {
        font-size: 1.8rem;
    }

    .logo-topo {
        width: 90px;
    }
}
.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.app-header-top {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 64px;
    height: auto;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #0f3d56;
}

.brand-subtitle {
    font-size: 0.95rem;
    color: #64748b;
}

.user-box {
    color: #334155;
    font-size: 0.95rem;
    white-space: nowrap;
}

.user-label {
    color: #64748b;
    margin-right: 4px;
}

.menu-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
}

.menu-bar a {
    display: inline-block;
    padding: 14px 12px;
    color: #0f3d56;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.menu-bar a:hover {
    background: #f8fafc;
    border-bottom-color: #0f766e;
}

.menu-sair {
    margin-left: auto;
    color: #991b1b !important;
}

@media (max-width: 900px) {
    .app-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-sair {
        margin-left: 0;
    }
}
.msg-sucesso {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
}
.acao-link {
    display: inline-block;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 10px;
}

.acao-link:hover {
    transform: scale(1.08);
}

.acao-processar {
    color: #0f766e;
}

.acao-excluir {
    color: #991b1b;
}
.acao-botao {
    display: inline-block;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    margin-right: 8px;
    transition: 0.2s ease;
}

.acao-botao:hover {
    transform: translateY(-1px);
}

.acao-processar {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.acao-processar:hover {
    background: #bbf7d0;
}

.acao-excluir {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.acao-excluir:hover {
    background: #fecaca;
}
.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.status-enviado {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

.status-pendente {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.status-em_processamento {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.status-concluido {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.status-erro {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.status-excluido {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}
.caixa-logs {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    height: 320px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.linha-log {
    margin-bottom: 8px;
}