/* Painel de gestão NHN */
:root {
  --nhn-verde: #0f3d2e;
  --nhn-verde-2: #165340;
  --nhn-laranja: #c47a2c;
  --nhn-creme: #f6f4ef;
  --bs-primary: #165340;
  --bs-primary-rgb: 22, 83, 64;
  --bs-link-color: #165340;
  --bs-link-color-rgb: 22, 83, 64;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
body { background: var(--nhn-creme); font-size: .925rem; }
.btn-primary { --bs-btn-bg: #165340; --bs-btn-border-color: #165340; --bs-btn-hover-bg: #0f3d2e; --bs-btn-hover-border-color: #0f3d2e; --bs-btn-active-bg: #0f3d2e; }
.btn-warning { --bs-btn-bg: #c47a2c; --bs-btn-border-color: #c47a2c; --bs-btn-color: #fff; --bs-btn-hover-bg: #a8641f; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #a8641f; }
.text-bg-primary { background: #165340 !important; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--nhn-verde); color: #c9d7cf; overflow-y: auto; z-index: 1040; transition: transform .25s; }
.sb-marca { display: flex; gap: 10px; align-items: center; padding: 18px 18px 14px; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-marca img { width: 42px; height: 42px; background: #fff; border-radius: 50%; }
.sb-marca b { display: block; font-size: 1.05rem; line-height: 1.1; }
.sb-marca small { color: #9fb6a9; font-size: .74rem; }
.sidebar nav { padding: 8px 10px 24px; }
.sb-grupo { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #7f9a8b; padding: 14px 10px 6px; font-weight: 700; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: #d6e2db; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.activo { background: var(--nhn-laranja); color: #fff; }
.sidebar nav a i { font-size: 1.05rem; width: 20px; }
.sidebar nav a em { margin-left: auto; font-style: normal; background: #e0453a; color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 8px; font-weight: 700; }

.conteudo { margin-left: 250px; min-height: 100vh; }
.barra { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid #e7e2d8; display: flex; align-items: center; gap: 12px; padding: 12px 24px; }
.barra h1 { font-size: 1.15rem; margin: 0; font-weight: 700; color: var(--nhn-verde); }

.card { border: 1px solid #ebe5da; border-radius: 12px; box-shadow: 0 2px 10px rgba(15,61,46,.04); }
.card-header { background: #fff; border-bottom: 1px solid #efeae1; font-weight: 700; color: var(--nhn-verde); border-radius: 12px 12px 0 0 !important; }
.kpi { padding: 18px; display: flex; flex-direction: row; gap: 14px; align-items: center; height: 100%; }
.kpi .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.kpi .v { font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: #1d2a24; }
.kpi .l { color: #6b7570; font-size: .8rem; font-weight: 600; }
.ic.verde { background: #e3f1e8; color: #17663f; }
.ic.laranja { background: #fbeedd; color: #a8641f; }
.ic.azul { background: #e5ecf7; color: #234f8c; }
.ic.vermelho { background: #f8e3e3; color: #a3121c; }

.table { --bs-table-bg: transparent; margin: 0; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7570; font-weight: 700; border-bottom-width: 1px; white-space: nowrap; }
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { --bs-table-hover-bg: #faf8f4; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.form-label { font-weight: 600; font-size: .82rem; color: #3a4640; }
.quota-grid td, .quota-grid th { text-align: center; padding: .4rem .3rem; }
.quota-grid td:first-child, .quota-grid th:first-child { text-align: left; }
.q-pago { color: #17663f; }
.q-falta { color: #d0c9bd; }
.vazio-admin { text-align: center; color: #8a918d; padding: 40px 10px; }
.vazio-admin i { font-size: 2rem; display: block; margin-bottom: 6px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0f3d2e, #165340 60%, #2a6b52); padding: 16px; }
.login-card { width: 100%; max-width: 410px; background: #fff; border-radius: 16px; padding: 34px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.login-card img { width: 92px; margin: 0 auto 10px; display: block; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.aberta { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .conteudo { margin-left: 0; }
  .barra { padding: 10px 14px; }
}
