/* ==========================================================================
   Back-office / Área de Gestão — Portal do Munícipe
   Usa as cores de tema.css. Igual para todas as cidades.
   ========================================================================== */
body.admin { background: #eef2f0; }

.adm-layout { display: flex; min-height: 100vh; }

/* Barra lateral */
.adm-side {
  background: var(--mcq-verde-escuro); color: #cfe6d7;
  width: 240px; flex-shrink: 0; padding: 1rem .8rem;
}
.adm-side .brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; padding: .3rem .5rem 1rem; }
.adm-side .brand img { height: 38px; background: #fff; border-radius: 8px; padding: 2px; }
.adm-side .nav-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; padding: .8rem .6rem .3rem; }
.adm-side a { color: #cfe6d7; display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 9px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.adm-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-side a.on { background: var(--mcq-verde); color: #fff; }
.adm-side a .badge { margin-left: auto; }

.adm-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Barra de topo */
.adm-top { background: #fff; border-bottom: 1px solid #e3e9e5; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.adm-top h1 { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--mcq-verde-escuro); }
.adm-main { padding: 1.25rem; }

/* Cartões */
.adm-card { background: #fff; border: 1px solid #e6ece8; border-radius: 14px; }
.adm-kpi .n { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.adm-kpi .l { font-size: .78rem; color: #6b7a71; }
.adm-kpi .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; }

/* Tabelas */
.adm-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7a71; }
.adm-table td { vertical-align: middle; }

.prio { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 50px; }
.prio-alta { background: #fde8e6; color: #b8281c; }
.prio-media { background: #fff3cd; color: #8a6d00; }
.prio-baixa { background: #e7f6ec; color: #146c30; }

/* Mini barras (gráfico simples sem libs) */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars > div { flex: 1; background: var(--mcq-verde); border-radius: 6px 6px 0 0; opacity: .85; }
.bars > div:hover { opacity: 1; }

@media (max-width: 991px) {
  .adm-side { display: none; }
  .adm-side.aberta { display: block; position: fixed; z-index: 1050; height: 100vh; box-shadow: 0 0 40px rgba(0,0,0,.3); }
}
