/* ============================================
   Medicale — Módulo Gov (gov.css)
   ============================================ */

/* ── Brand lateral no login/cadastro Gov ────── */
.gov-brand {
    background: linear-gradient(150deg, var(--navy) 0%, var(--blue-dark) 55%, var(--red-dark) 100%) !important;
}

/* ── Seletor de tipo de acesso ───────────────── */
.gov-atype {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}
.gov-at-opt {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.7rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--text);
}
.gov-at-opt:hover { border-color: var(--blue); text-decoration: none; }
.gov-at-opt.sel { border-color: var(--blue); background: var(--blue-light); cursor: default; }
.gov-at-icon { font-size: 1.3rem; }
.gov-at-lbl  { font-size: 0.74rem; font-weight: 700; color: var(--navy); }
.gov-at-sub  { font-size: 0.66rem; color: var(--text-muted); }

/* ── Botão Gov.br ────────────────────────────── */
.btn-govbr {
    display: flex; align-items: center; justify-content: center; gap: 0.65rem;
    width: 100%; padding: 0.68rem; border-radius: 9px;
    background: #1351B4; color: #fff; font-weight: 700; font-size: 0.85rem;
    border: none; cursor: pointer; font-family: var(--font-body); margin-bottom: 0.75rem;
}
.btn-govbr:disabled { opacity: 0.65; cursor: not-allowed; }
.govbr-logo { font-size: 0.95rem; font-weight: 900; letter-spacing: -0.4px; }
.govbr-logo span { color: var(--gold); }

/* ── Alert tipo gov ──────────────────────────── */
.alert-gov { background: #EFF3F6; color: var(--navy); border: 1px solid #B0C4D4; }

/* ── Botão ação Gov ──────────────────────────── */
.btn-gov { background: #2A4255; color: #fff; }

/* ── Badges institucionais ───────────────────── */
.badge-gov { background: #EFF3F6; color: var(--navy); }
.badge-pub { background: #E6F9EE; color: #065F46; }

/* ── Sidebar institucional ───────────────────── */
.sidebar-gov { background: #162232 !important; }
.sidebar-gov .sidebar-plan { border-color: rgba(255,255,255,0.12); }

/* ── Header institucional no topo do dashboard ─ */
.gov-header-banner {
    background: linear-gradient(135deg, #162232, #1C3A5E);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.gov-header-banner .ghb-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.gov-header-banner .ghb-sub   { font-size: 0.74rem; color: rgba(255,255,255,0.65); }

/* ── Cards de estatística institucional ──────── */
.gov-stat-mini {
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 0.8rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.gov-stat-mini .gsv { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.gov-stat-mini .gsl { font-size: 0.66rem; color: rgba(255,255,255,0.55); margin-top: 1px; }

/* ── Tag rede pública na vitrine ──────────────── */
.gov-tag-card {
    display: inline-flex; align-items: center; gap: 4px;
    background: #EFF3F6; color: var(--navy);
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 6px; margin-bottom: 0.3rem;
}
.pbt-gov {
    position: absolute; top: 9px; left: 9px;
    background: var(--blue-dark); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    padding: 2px 7px; border-radius: 99px; z-index: 2;
}
.pc.pub { border-color: var(--blue); }
.btn-redistrib {
    background: var(--blue-dark); color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    border-radius: 7px; font-weight: 700; font-size: 0.78rem;
    padding: 0.48rem; text-decoration: none; margin-top: auto;
}
.btn-redistrib:hover { background: var(--blue); text-decoration: none; color: #fff; }

/* ── Responsivo ───────────────────────────────── */
@media (max-width: 600px) {
    .gov-atype { grid-template-columns: 1fr; }
}

/* ── Hambúrguer no topbar escuro do Gov ───────── */
.topbar-gov .hamburger-btn span { background: #fff; }
