:root {
  --mar: #0b3d5c;
  --mar-escuro: #072a40;
  --areia: #f4f6f9;
  --bs-primary: #0d6efd;
}
body { background: var(--areia); }
.app { display: flex; min-height: 100vh; }
/* !important: o .offcanvas-lg do Bootstrap força fundo transparente em telas grandes */
.sidebar { width: 240px; background: var(--mar) !important; color: #fff; flex-shrink: 0; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar .marca { font-weight: 700; font-size: 1.15rem; padding: 1.1rem 1.25rem; background: var(--mar-escuro); }
.sidebar .marca i { color: #ffb703; }
.sidebar .nav-link { color: rgba(255,255,255,.8); padding: .6rem 1.25rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.12); border-left-color: #ffb703; }
.sidebar .secao { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); padding: 1rem 1.25rem .3rem; }
.offcanvas-lg.sidebar { --bs-offcanvas-width: 240px; --bs-offcanvas-bg: var(--mar); }
.conteudo { flex-grow: 1; min-width: 0; }
.topo { display: flex; align-items: center; background: #fff; border-bottom: 1px solid #e3e7ee; padding: .6rem 1.25rem; position: sticky; top: 0; z-index: 10; }
.card { border: 1px solid #e3e7ee; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }
.kpi { display: flex; flex-direction: row; align-items: center; gap: 1rem; }
.kpi i { font-size: 1.6rem; width: 3rem; height: 3rem; border-radius: .75rem; display: grid; place-items: center; background: #e7f1ff; color: var(--mar); }
.kpi .valor { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.kpi .rotulo { color: #6c757d; font-size: .85rem; }
.cabecalho { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cabecalho h1 { font-size: 1.45rem; margin: 0; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table a.linha { color: inherit; text-decoration: none; font-weight: 500; }
.table a.linha:hover { text-decoration: underline; }
dl.dados dt { color: #6c757d; font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
dl.dados dd { margin-bottom: .75rem; }
.linha-tempo { list-style: none; padding: 0; margin: 0; }
.linha-tempo li { border-left: 2px solid #dee2e6; padding: 0 0 .9rem 1rem; position: relative; }
.linha-tempo li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #adb5bd; position: absolute; left: -6px; top: .35rem; }
.lista-alunos { max-height: 320px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: .375rem; padding: .5rem .75rem; background: #fff; }
.topicos .form-check { margin-bottom: .25rem; }
.login-fundo { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--mar) 0%, #146c94 100%); }
.login-card { width: 100%; max-width: 400px; }
.diff-antes { background: #fff1f0; }
.diff-depois { background: #effaf3; }
pre.json { white-space: pre-wrap; word-break: break-word; margin: 0; font-size: .85rem; }
@media print { .sidebar, .topo, .no-print { display: none !important; } }
