:root {
  --cor-nav: #1f3a5f;
  --bs-primary: #1f6feb;
  --bs-primary-rgb: 31, 111, 235;
}

body { background: #f4f6f9; }

.bg-nav { background: var(--cor-nav); }

.btn-primary { --bs-btn-bg: #1f6feb; --bs-btn-border-color: #1f6feb;
  --bs-btn-hover-bg: #1a5fcc; --bs-btn-hover-border-color: #1a5fcc; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1f3a5f 0%, #2c5282 100%); padding: 1rem; }
.login-card { width: 100%; max-width: 380px; border: 0; border-radius: 1rem; }
.logo-circle { width: 56px; height: 56px; border-radius: 50%; background: #e8f0fe; color: #1f6feb;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }

/* menu */
.navbar .nav-link.active { color: #fff; font-weight: 600; border-bottom: 2px solid #fff; }

/* tabelas */
.table td, .table th { white-space: nowrap; }
.table td.quebra { white-space: normal; min-width: 14rem; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #6c757d; }
.acoes .btn { padding: .15rem .45rem; }
.vazio { text-align: center; color: #8a94a6; padding: 2.5rem 1rem !important; }

/* cartões de resumo */
.resumo { background: #fff; border-radius: .6rem; padding: .75rem 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.resumo small { color: #6c757d; display: block; font-size: .75rem; text-transform: uppercase; }
.resumo strong { font-size: 1.15rem; }

/* cálculo na nova nota */
.calc-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  background: #f1f5fb; border-radius: .6rem; padding: .75rem 1rem; }
.calc-box small { color: #6c757d; display: block; font-size: .75rem; }
.calc-box strong { font-size: 1.05rem; }
@media (max-width: 576px) { .calc-box { grid-template-columns: repeat(2, 1fr); } }

/* status */
.st { font-weight: 600; font-size: .75rem; }
.st-digitacao   { background: #e9ecef; color: #495057; }
.st-enviando,
.st-processando { background: #fff3cd; color: #8a6d00; }
.st-autorizada  { background: #d1f2df; color: #146c43; }
.st-rejeitada,
.st-erro        { background: #f8d7da; color: #a52834; }
.st-cancelada   { background: #e2e3e5; color: #41464b; text-decoration: line-through; }

pre.msg { white-space: pre-wrap; background: #fff5f5; border: 1px solid #f5c2c7; border-radius: .4rem;
  padding: .6rem .8rem; font-size: .85rem; margin: 0; }

dl.detalhe dt { color: #6c757d; font-weight: 500; font-size: .8rem; }
dl.detalhe dd { margin-bottom: .6rem; }
