* {
    box-sizing: border-box;
}

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

h1 {
    font-size: 22px;
    font-weight: 700;
    color: #102a43;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1d3557;
    margin: 0 0 12px;
}

h3 {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 20px 0 10px;
}

.texto-auxiliar {
    font-size: 13px;
    color: #7b8794;
    margin: -8px 0 16px;
}

.topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1d3557;
    color: #fff;
    padding: 12px 24px;
}

.topo-marca {
    font-weight: bold;
    letter-spacing: 1px;
}

.topo-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 18px;
    font-size: 14px;
}

.topo-nav a:hover {
    text-decoration: underline;
}

.conteudo {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
    width: 100%;
}

.mensagens {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.mensagem {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.mensagem-erro {
    background: #fde2e1;
    color: #9b1c1c;
}

.mensagem-sucesso {
    background: #d8f3dc;
    color: #1b4332;
}

.login-box {
    max-width: 360px;
    margin: 60px auto;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 24px;
}

.login-box label {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #52606d;
}

.login-box input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
}

.login-box button {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background: #1d3557;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-box button:hover {
    background: #16283f;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

table th,
table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e4e7eb;
    vertical-align: middle;
}

table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #7b8794;
    background: #f8f9fb;
}

table tbody tr:hover {
    background: #f4f7fb;
}

table tbody tr:last-child td {
    border-bottom: none;
}

.estado-vazio {
    color: #7b8794;
    padding: 18px 14px;
}

.estado-vazio .botao,
.estado-vazio .botao-pequeno {
    margin-left: 12px;
}

.cartoes {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cartao {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    min-width: 160px;
}

.cartao .numero {
    font-size: 28px;
    font-weight: bold;
}

.cartao .rotulo {
    font-size: 13px;
    color: #52606d;
}

.barra-acoes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.botao {
    display: inline-block;
    padding: 9px 16px;
    background: #1d3557;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.botao:hover {
    background: #16283f;
}

.botao-secundario {
    background: #fff;
    color: #52606d;
    font-weight: 500;
    border: 1px solid #cbd2d9;
    box-shadow: none;
}

.botao-secundario:hover {
    background: #f4f6f8;
    color: #1f2933;
}

.botao-pequeno {
    padding: 4px 10px;
    font-size: 12px;
    box-shadow: none;
}

form.form-padrao label {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #52606d;
}

form.form-padrao input,
form.form-padrao textarea,
form.form-padrao select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    font-family: inherit;
}

.acoes-form {
    margin-top: 20px;
}

.form-inline {
    display: inline;
}

.link-botao {
    background: none;
    border: none;
    color: #9b1c1c;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 10px;
    text-decoration: underline;
}

table td a {
    margin-right: 10px;
}

.trilha {
    margin-bottom: 16px;
    font-size: 12px;
    color: #9aa5b1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.trilha a,
.trilha .trilha-atual {
    color: #52606d;
    text-decoration: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
}

.trilha a:hover {
    color: #1d3557;
    text-decoration: underline;
}

.trilha .trilha-atual {
    color: #1d3557;
    font-weight: 600;
}

.trilha-separador {
    color: #cbd2d9;
    font-size: 13px;
}

.cartao-info {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.cartao-info dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 24px;
    margin: 0;
}

.cartao-info dt {
    font-size: 12px;
    color: #52606d;
    margin: 0;
}

.cartao-info dd {
    margin: 2px 0 0;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #e4e7eb;
    color: #1f2933;
}

.badge-aberta {
    background: #fde2e1;
    color: #9b1c1c;
}

.badge-em-andamento {
    background: #fef3c7;
    color: #92400e;
}

.badge-concluida {
    background: #d8f3dc;
    color: #1b4332;
}

.badge-cancelada {
    background: #e4e7eb;
    color: #52606d;
}

.secao {
    margin-top: 32px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 16px;
    align-items: end;
}

.grid-form .botao {
    margin-top: 4px;
    height: 38px;
}
