:root { --primario: #1f4e79; --primario-esc: #163a5a; }
body { background: #f4f6f9; font-size: .95rem; }
.bg-primario { background: var(--primario) !important; }
.text-primario { color: var(--primario) !important; }
.btn-primary { --bs-btn-bg: var(--primario); --bs-btn-border-color: var(--primario); --bs-btn-hover-bg: var(--primario-esc); --bs-btn-hover-border-color: var(--primario-esc); --bs-btn-active-bg: var(--primario-esc); }
.sidebar { width: 250px; min-height: 100vh; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; } }
.sidebar .nav-link { color: rgba(255,255,255,.85); border-radius: .5rem; padding: .5rem .75rem; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar .nav-link.active { background: #fff; color: var(--primario); font-weight: 600; }
.conteudo { min-width: 0; }
.card { border: 0; box-shadow: 0 1px 3px rgba(16,24,40,.08); border-radius: .75rem; }
.card-header { background: #fff; border-bottom: 1px solid #eef0f3; font-weight: 600; border-radius: .75rem .75rem 0 0 !important; }
.kpi .valor { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.kpi .rotulo { color: #6b7280; font-size: .85rem; }
.kpi i { font-size: 1.6rem; opacity: .35; }
.titulo-pagina { font-size: 1.4rem; font-weight: 700; margin: 0; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { font-size: .8rem; text-transform: uppercase; color: #6b7280; font-weight: 600; white-space: nowrap; }
.barra { height: .55rem; background: #e5e9f0; border-radius: 1rem; overflow: hidden; }
.barra > div { height: 100%; background: var(--primario); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f4e79, #2e75b6); }
.login-card { width: 100%; max-width: 400px; }
.login-card img { max-height: 60px; max-width: 100%; }
.badge-situacao { font-weight: 600; }
.itens-tabela input { min-width: 70px; }
.itens-tabela td.seq { width: 2.5rem; color: #6b7280; font-weight: 600; text-align: center; }
.itens-tabela .total-linha { white-space: nowrap; font-weight: 600; text-align: right; }
.totais-orc { font-size: 1.05rem; }
.totais-orc .total { font-size: 1.4rem; font-weight: 700; color: var(--primario); }
.sugestoes { position: absolute; z-index: 1050; max-height: 300px; overflow-y: auto; width: 100%; }
.logo-preview { max-height: 70px; max-width: 100%; background: #fff; padding: 4px; border: 1px solid #dee2e6; border-radius: .375rem; }
@media (max-width: 767.98px) {
  .itens-tabela thead { display: none; }
  .itens-tabela tr.item { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .6rem 0; border-bottom: 1px solid #dee2e6; }
  .itens-tabela tr.item td { border: 0; padding: 0; }
  .itens-tabela tr.item td.seq { grid-column: 1 / 3; text-align: left; }
  .itens-tabela tr.item td.c-produto { grid-column: 1 / 3; }
  .itens-tabela tr.item td[data-rotulo]::before { content: attr(data-rotulo); display: block; font-size: .75rem; color: #6b7280; }
}
@media print { .sidebar, .navbar, .no-print { display: none !important; } }
