/* Complementos do tema Nexora (public/assets/tema/css/custom.css) para o site e os paineis.
   Usa os tokens --n-* do tema. */

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.min-w-0 { min-width: 0; }
pre.code { background: var(--n-navy); color: #d6e2f5; border-radius: var(--n-radius-md); padding: 1rem 1.25rem; font-size: .82rem; overflow: auto; margin-bottom: 0; line-height: 1.55; }
.key-once { background: #FFFAEB; border: 1px solid #FEDF89; border-radius: var(--n-radius-md); padding: 1.1rem 1.25rem; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.bars .bar { flex: 1; background: var(--n-gradient-primary); border-radius: 4px 4px 0 0; min-height: 2px; }

/* ---------------------------------------------------------------- Site */
body.site .navbar-nexora .nav-link { color: var(--n-slate) !important; }
body.site .navbar-nexora .nav-link:hover,
body.site .navbar-nexora .nav-link.active { color: var(--n-navy) !important; }
body.site .navbar-nexora.scrolled, body.site .navbar-nexora.navbar-solid { background: rgba(255,255,255,.95); backdrop-filter: blur(12px); box-shadow: var(--n-shadow-sm); }
.site-main { padding-top: 7.5rem; padding-bottom: 3rem; min-height: 70vh; background: var(--n-bg); }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card .card, .card-premium-static { border: 1px solid var(--n-border); border-radius: var(--n-radius-lg); box-shadow: var(--n-shadow-md); }
.code-window { background: var(--n-navy); border-radius: var(--n-radius-lg); box-shadow: var(--n-shadow-lg); overflow: hidden; }
.code-window .code-bar { display: flex; gap: .5rem; padding: .8rem 1rem; background: rgba(255,255,255,.05); }
.code-window .code-bar span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.code-window pre.code { border-radius: 0; background: transparent; }

/* ---------------------------------------------------------------- Paineis */
body.panel { background: var(--n-bg); overflow-x: hidden; }
.sidebar { width: 264px; min-height: 100vh; background: var(--n-gradient-dark); color: #fff; }
.sidebar .brand { font-family: var(--n-font-display); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.02em; }
.sidebar .brand span { color: #7CA5FF; }
.sidebar .nav-link { color: rgba(255,255,255,.7); border-radius: var(--n-radius-sm); font-family: var(--n-font-display); font-weight: 600; font-size: .9rem; padding: .6rem .9rem; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-link.active { background: var(--n-gradient-primary); color: #fff; box-shadow: var(--n-shadow-primary); }
.area-admin .sidebar { background: linear-gradient(180deg, #1B1042 0%, #0B1437 100%); }
.area-admin .sidebar .nav-link.active { background: linear-gradient(135deg, #6941C6 0%, #155EEF 100%); }
.area-badge { font-family: var(--n-font-display); font-size: .62rem; letter-spacing: .12em; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.area-admin .area-badge { background: rgba(105,65,198,.5); }
.sidebar hr { border-color: rgba(255,255,255,.15); }
.sidebar .side-link { color: rgba(255,255,255,.55); font-size: .8rem; }
.sidebar .side-link:hover { color: #fff; }
.topbar { background: #fff; border-bottom: 1px solid var(--n-border); }
.topbar h1 { font-size: 1.15rem; margin: 0; }
@media (max-width: 991.98px) { .sidebar { width: 100%; min-height: auto; } body.panel > .d-flex { flex-direction: column; } }

body.panel .btn { padding: .5rem 1.1rem; font-size: .88rem; }
body.panel .btn-sm { padding: .3rem .75rem; font-size: .8rem; border-width: 1px; }
body.panel .btn-outline-secondary, body.panel .btn-outline-danger, body.panel .btn-outline-warning, body.panel .btn-outline-success { font-family: var(--n-font-body); font-weight: 600; }
body.panel .card { border: 1px solid var(--n-border); border-radius: var(--n-radius-md); box-shadow: var(--n-shadow-sm); background: #fff; }
body.panel .card-header { background: #fff; border-bottom: 1px solid var(--n-border); font-family: var(--n-font-display); font-weight: 700; color: var(--n-navy); border-radius: var(--n-radius-md) var(--n-radius-md) 0 0 !important; }
body.panel .card-footer { background: #fff; border-top: 1px solid var(--n-border); }
body.panel .table { --bs-table-bg: transparent; color: var(--n-slate); }
body.panel .table thead th { font-family: var(--n-font-display); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--n-slate-light); border-bottom-color: var(--n-border); white-space: nowrap; }
body.panel .table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--n-bg); }
body.panel .form-control, body.panel .form-select { border-color: var(--n-border); border-radius: var(--n-radius-sm); }
body.panel .form-control:focus, body.panel .form-select:focus { border-color: var(--n-primary); box-shadow: 0 0 0 .2rem rgba(21,94,239,.15); }
body.panel .page-link { border-radius: var(--n-radius-sm); margin: 0 2px; color: var(--n-primary); }
body.panel .page-item.active .page-link { background: var(--n-gradient-primary); border-color: transparent; color: #fff; }
body.panel .nav-tabs .nav-link.active { color: var(--n-primary); font-weight: 600; }

.stat-card { background: #fff; border: 1px solid var(--n-border); border-radius: var(--n-radius-md); box-shadow: var(--n-shadow-sm); padding: 1.25rem; height: 100%; display: flex; gap: 1rem; align-items: center; transition: all .25s ease; }
.stat-card:hover { box-shadow: var(--n-shadow-md); transform: translateY(-3px); }
.stat-card .stat-value { font-family: var(--n-font-display); font-size: 1.75rem; font-weight: 800; color: var(--n-navy); line-height: 1.1; }
.stat-card .stat-label { font-size: .8rem; color: var(--n-slate); font-weight: 500; }
.stat-card .stat-sub { font-size: .75rem; color: var(--n-slate-light); }
.icon-box-danger { background: #FEF3F2; color: #D92D20; }
.icon-box-warning { background: #FFFAEB; color: #DC6803; }
.icon-box-sm { width: 46px; height: 46px; font-size: 1.25rem; }

/* ---------------------------------------------------------------- Cartoes, tabelas e badges (site + paineis) */
.site-main .card { border: 1px solid var(--n-border); border-radius: var(--n-radius-md); box-shadow: var(--n-shadow-sm); background: #fff; }
.site-main .card-header { background: #fff; border-bottom: 1px solid var(--n-border); font-family: var(--n-font-display); font-weight: 700; color: var(--n-navy); }

.table-responsive { border-radius: var(--n-radius-md); }
body.panel .table, .site-main .table { margin-bottom: 0; --bs-table-bg: transparent; --bs-table-color: var(--n-slate); font-size: .875rem; }
body.panel .table > :not(caption) > * > *, .site-main .table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--n-border); vertical-align: middle; }
body.panel .table thead th, .site-main .table thead th { background: var(--n-bg); font-family: var(--n-font-display); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--n-slate); border-bottom: 1px solid var(--n-border); padding-top: .75rem; padding-bottom: .75rem; }
body.panel .table tbody tr:last-child > * { border-bottom: 0; }
body.panel .table-hover > tbody > tr:hover > * { background: var(--n-bg-alt); }
body.panel .table td:first-child { color: var(--n-navy); font-weight: 500; }
body.panel .table .btn-sm { border-radius: 8px; }
body.panel .table td.text-end { white-space: nowrap; }
.table .mono { color: var(--n-navy); }

.badge { font-family: var(--n-font-body); font-weight: 600; border-radius: var(--n-radius-pill); padding: .4em .8em; letter-spacing: .01em; }
.badge.text-bg-success { background: #E7F9F0 !important; color: #067647 !important; }
.badge.text-bg-danger { background: #FEF3F2 !important; color: #B42318 !important; }
.badge.text-bg-warning { background: #FFFAEB !important; color: #B54708 !important; }
.badge.text-bg-secondary { background: #F2F4F7 !important; color: #475467 !important; }
.badge.text-bg-dark { background: #E4E7EC !important; color: #101828 !important; }
.badge.text-bg-primary { background: var(--n-bg-alt) !important; color: var(--n-primary) !important; }
.badge.text-bg-info { background: #F4F0FF !important; color: var(--n-secondary) !important; }
.badge.text-bg-light { background: #fff !important; color: var(--n-navy) !important; }

.card-footer { padding: .85rem 1rem; }
.list-group-item { border-color: var(--n-border); }
.form-label { font-family: var(--n-font-display); font-weight: 600; font-size: .82rem; color: var(--n-navy); }
.form-control, .form-select { border-color: var(--n-border); border-radius: var(--n-radius-sm); }

/* ---------------------------------------------------------------- Documentacao */
.docs-header { background: var(--n-gradient-dark); padding: 8rem 0 3.5rem; position: relative; overflow: hidden; }
.docs-header::before { content: ''; position: absolute; top: -120px; right: -120px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(21,94,239,.28) 0%, transparent 70%); }
.docs-header h1 { color: #fff; position: relative; }
.docs-header p { color: rgba(255,255,255,.7); position: relative; margin: 0; }
.docs-nav { background: #fff; border: 1px solid var(--n-border); border-radius: var(--n-radius-md); box-shadow: var(--n-shadow-sm); padding: .5rem; max-height: calc(100vh - 110px); overflow: auto; }
.docs-nav .docs-nav-title { font-family: var(--n-font-display); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--n-slate-light); padding: .7rem .75rem .3rem; }
.docs-nav a { display: flex; align-items: center; gap: .5rem; padding: .45rem .75rem; border-radius: var(--n-radius-sm); color: var(--n-slate); font-size: .84rem; font-weight: 500; }
.docs-nav a:hover { background: var(--n-bg-alt); color: var(--n-primary); }
.method { display: inline-block; min-width: 3.4rem; text-align: center; font-family: var(--n-font-display); font-size: .62rem; font-weight: 700; letter-spacing: .05em; padding: .2rem .45rem; border-radius: 6px; }
.method-get { background: #E7F9F0; color: #067647; }
.method-post { background: var(--n-bg-alt); color: var(--n-primary); }
.doc-card { background: #fff; border: 1px solid var(--n-border); border-radius: var(--n-radius-md); box-shadow: var(--n-shadow-sm); padding: 1.75rem; margin-bottom: 1.5rem; scroll-margin-top: 90px; }
.doc-card h2, .doc-card h3 { margin-bottom: .75rem; }
.doc-card code { color: var(--n-secondary); background: #F4F0FF; padding: .1rem .4rem; border-radius: 5px; font-size: .82em; }
.doc-endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--n-bg); border: 1px solid var(--n-border); border-radius: var(--n-radius-sm); margin-bottom: 1rem; }
.doc-endpoint .path { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--n-navy); font-weight: 600; }
.doc-label { font-family: var(--n-font-display); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--n-slate-light); margin: 1.1rem 0 .4rem; }
.doc-group { font-family: var(--n-font-display); font-size: 1.35rem; margin: 2.25rem 0 1rem; }
details summary { cursor: pointer; color: var(--n-primary); font-weight: 600; margin-bottom: .5rem; }
body.panel .card, .site-main .card { overflow: hidden; }

/* ---------------------------------------------------------------- Autenticacao */
body.auth { background: #fff; }
.auth-shell { min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; background: var(--n-gradient-dark); color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ''; position: absolute; top: -140px; right: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(105,65,198,.45) 0%, transparent 70%); }
.auth-side::after { content: ''; position: absolute; bottom: -180px; left: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(21,94,239,.4) 0%, transparent 70%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { font-family: var(--n-font-display); font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: -.02em; }
.auth-side .brand span { color: #7CA5FF; }
.auth-side h2 { color: #fff; font-size: 2.1rem; line-height: 1.2; }
.auth-side p.lead { color: rgba(255,255,255,.72); font-size: 1.02rem; }
.auth-side .auth-point { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.auth-side .auth-point .icon-box { background: rgba(255,255,255,.12); color: #fff; width: 42px; height: 42px; font-size: 1.15rem; }
.auth-side .auth-point strong { display: block; font-family: var(--n-font-display); font-size: .95rem; }
.auth-side .auth-point span { color: rgba(255,255,255,.65); font-size: .85rem; }
.auth-side .auth-snippet { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--n-radius-md); padding: 1rem 1.25rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; color: #cfe0ff; }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.auth-main .auth-top { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; }
.auth-main .auth-top a { font-size: .88rem; font-weight: 600; color: var(--n-slate); }
.auth-main .auth-top a:hover { color: var(--n-primary); }
.auth-main .auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 2rem 3rem; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form.wide { max-width: 580px; }
.auth-form h1 { font-size: 1.85rem; margin-bottom: .4rem; }
.auth-form .subtitle { color: var(--n-slate); margin-bottom: 1.75rem; }
.auth-form .input-group-text { background: var(--n-bg); border-color: var(--n-border); color: var(--n-slate-light); border-radius: var(--n-radius-sm) 0 0 var(--n-radius-sm); }
.auth-form .form-control { padding: .75rem 1rem; }
.auth-form .input-group .form-control { border-radius: 0; }
.auth-form .input-group > .form-control:last-child, .auth-form .input-group > .btn:last-child { border-radius: 0 var(--n-radius-sm) var(--n-radius-sm) 0; }
.auth-form .input-group > .form-control:not(:first-child) { border-left: 0; }
.auth-form .btn-toggle { background: var(--n-bg); border: 1.5px solid var(--n-border); border-left: 0; color: var(--n-slate); padding: .5rem .9rem; }
.auth-form .form-control:focus { box-shadow: 0 0 0 .2rem rgba(21,94,239,.15); }
.auth-form .divider { display: flex; align-items: center; gap: 1rem; color: var(--n-slate-light); font-size: .8rem; margin: 1.5rem 0; }
.auth-form .divider::before, .auth-form .divider::after { content: ''; flex: 1; height: 1px; background: var(--n-border); }
.auth-form .alert { border-radius: var(--n-radius-sm); font-size: .88rem; }

/* ---------------------------------------------------------------- Status da SEFAZ */
.sefaz-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--n-slate-light); margin-right: .4rem; }
.sefaz-dot.sefaz-online { background: #12B76A; animation: sefaz-pulse 2s infinite; }
.sefaz-dot.sefaz-instavel { background: #F79009; }
.sefaz-dot.sefaz-erro { background: #F04438; }
.sefaz-dot.sefaz-loading { background: var(--n-primary); animation: sefaz-pulse 1s infinite; }
@keyframes sefaz-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.55); } 70% { box-shadow: 0 0 0 9px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
.sefaz-tile { border: 1px solid var(--n-border); border-left: 4px solid var(--n-slate-light); border-radius: var(--n-radius-md); padding: 1rem 1.1rem; background: #fff; }
.sefaz-tile.sefaz-online { border-left-color: #12B76A; background: #F6FEF9; }
.sefaz-tile.sefaz-instavel { border-left-color: #F79009; background: #FFFCF5; }
.sefaz-tile.sefaz-offline, .sefaz-tile.sefaz-erro { border-left-color: #F04438; background: #FFFBFA; }

/* ---------------------------------------------------------------- Paineis: controles compactos, filtros e botoes
   O custom.css (site) define padding grande em .form-control/.form-select e sobrescrevia o tamanho -sm do Bootstrap. */
body.panel .form-control-sm, body.panel .form-select-sm { min-height: 2.25rem; padding: .35rem .75rem; font-size: .85rem; background-color: #fff; }
body.panel .form-select-sm { padding-right: 2.25rem; }
body.panel .form-control:not(.form-control-sm):not(textarea), body.panel .form-select:not(.form-select-sm) { min-height: 2.5rem; padding: .5rem .9rem; font-size: .9rem; background-color: #fff; }
body.panel textarea.form-control { padding: .6rem .9rem; font-size: .9rem; background-color: #fff; }
body.panel .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.5rem; line-height: 1.25; }
body.panel .btn-sm { min-height: 2.25rem; }
body.panel .btn .bi { line-height: 1; }
body.panel .btn-primary:hover { transform: none; }
body.panel td .btn { white-space: nowrap; }

/* Formularios de filtro (GET): mesma altura, alinhados e quebrando em linhas */
body.panel form[method="get"].d-flex { align-items: center; }
body.panel form[method="get"].d-flex > .form-control, body.panel form[method="get"].d-flex > .form-select { flex: 1 1 170px; width: auto !important; max-width: 280px; min-width: 0; }
body.panel form[method="get"].d-flex > input[type="date"], body.panel form[method="get"].d-flex > input[type="month"] { flex: 0 1 165px; }
body.panel form[method="get"] .row .btn { width: 100%; }
body.panel .d-flex.flex-wrap.justify-content-between { align-items: center; }
body.panel .d-flex.flex-wrap.justify-content-between > form[method="get"].d-flex { flex: 1 1 auto; }
body.panel .btn-sm.btn-primary, body.panel .btn-sm.btn-success { box-shadow: none; }

@media (max-width: 575.98px) {
  body.panel form[method="get"].d-flex > .form-control, body.panel form[method="get"].d-flex > .form-select { flex: 1 1 100%; max-width: none; }
  body.panel form[method="get"].d-flex > input[type="date"] { flex: 1 1 40%; }
  body.panel form[method="get"].d-flex > .btn { flex: 1 1 auto; }
  body.panel form[method="get"].d-flex { width: 100%; }
  body.panel .d-flex.flex-wrap.justify-content-between > .btn { flex: 1 1 100%; }
  body.panel .card-header.d-flex { flex-wrap: wrap; gap: .5rem; }
  body.panel .card-header form.d-flex { flex-wrap: wrap; width: 100%; }
  body.panel .card-header form.d-flex .form-control, body.panel .card-header form.d-flex .form-select { flex: 1 1 100%; width: auto !important; }
}

/* Campos seguros (iframes) do Mercado Pago no formulario de cartao */
body.panel .mp-field { height: 2.5rem; padding: 0 .5rem; display: flex; align-items: center; overflow: hidden; }
body.panel .mp-field iframe { height: 2.2rem !important; }

/* ---------------------------------------------------------------- SweetAlert2 (alertas do sistema) */
.swal2-container { z-index: 2000; }
.swal-emissor { border-radius: var(--n-radius-md, 16px); font-family: var(--n-font-body, inherit); padding: 1.5rem 1.25rem; }
.swal-emissor .swal2-title { font-family: var(--n-font-display, inherit); font-weight: 700; font-size: 1.25rem; color: var(--n-navy, #101828); }
.swal-emissor-msg { font-size: .95rem; color: var(--n-slate, #475467); line-height: 1.5; word-break: break-word; }
.swal-emissor .swal2-styled { border-radius: var(--n-radius-sm, 10px); font-family: var(--n-font-display, inherit); font-weight: 600; font-size: .9rem; padding: .6rem 1.25rem; box-shadow: none; }
.swal-emissor .swal2-styled:focus { box-shadow: 0 0 0 .2rem rgba(21,94,239,.25); }
.swal-emissor-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: var(--n-bg, #F8FAFC); border: 1px solid var(--n-border, #E4E7EC); border-radius: 10px; padding: .75rem; word-break: break-all; user-select: all; text-align: left; }
.swal-emissor-toast { border-radius: 12px; font-family: var(--n-font-body, inherit); }

/* ---------------------------------------------------------------- Responsividade do site publico (home, docs, contato, termos, login/cadastro) */
.site img, .site svg, .site video, .site iframe { max-width: 100%; }
.site img { height: auto; }
.site .row > *, .site .card, .site .doc-card { min-width: 0; }
.site pre, .site .code { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: pre-wrap; word-break: break-word; }
.site code { word-break: break-word; }
.site .badge { white-space: normal; text-align: left; line-height: 1.35; }
.site .eyebrow { max-width: 100%; flex-wrap: wrap; justify-content: center; text-align: center; line-height: 1.4; }
.site .eyebrow::before { flex: 0 0 6px; }
.site .doc-endpoint { flex-wrap: wrap; gap: .5rem; }
.site .doc-endpoint .path { word-break: break-all; min-width: 0; }
.site .doc-endpoint .ms-auto { margin-left: 0 !important; }
.site .doc-card { overflow-wrap: anywhere; }
.site .table-responsive { -webkit-overflow-scrolling: touch; }
.site .table { min-width: 480px; }

@media (max-width: 991.98px) {
  .site .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; }
  .site .navbar .nav-link { padding: .75rem .5rem; min-height: 44px; display: flex; align-items: center; }
  .site .navbar .btn { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .site .docs-nav { display: none; }
}
@media (max-width: 767.98px) {
  .site .hero .d-flex.flex-wrap > .btn { flex: 1 1 100%; justify-content: center; }
  .site .btn-lg-custom { width: 100%; justify-content: center; text-align: center; }
  .site .footer-nexora a { display: inline-block; padding: .35rem 0; min-height: 32px; }
  .site .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .site .pricing-card { padding: 1.5rem 1.25rem; }
  .site .docs-header h1 { font-size: 1.6rem; }
  .site .doc-card { padding: 1rem; }
  .site .method { margin-right: .25rem; }
}
@media (max-width: 575.98px) {
  .site .container { padding-left: 1rem; padding-right: 1rem; }
  .site .hero { padding-top: 6rem; }
  .site .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.1rem); }
  .site .hero .fs-5 { font-size: 1.05rem !important; }
  .site .eyebrow { font-size: .68rem; letter-spacing: .06em; padding: .4rem .8rem; }
  .site .code-window pre { font-size: .72rem; }
}
/* gutters largos (g-5 = 3rem) estouravam a largura util em telas pequenas: a linha tinha margem negativa maior que o padding do container */
@media (max-width: 991.98px) {
  .site .row.g-5, .site .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .site .row.g-5, .site .row.gy-5 { --bs-gutter-y: 2rem; }
}
@media (max-width: 767.98px) {
  .site main li > a, .site main li > i + a { display: inline-block; padding: .4rem 0; }
}
/* Telas de login/cadastro: alvos de toque confortaveis e sem estouro lateral */
body.auth .auth-top a, body.auth .auth-form a { display: inline-block; padding: .45rem 0; min-height: 36px; }
body.auth .auth-form, body.auth .auth-body { min-width: 0; }
body.auth img, body.auth iframe { max-width: 100%; }
@media (max-width: 575.98px) { body.auth .auth-main { padding-left: 1rem; padding-right: 1rem; } }

/* ---------------------------------------------------------------- Botao flutuante do WhatsApp (numero configurado no admin) e modal de status */
.whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #fff !important; font-weight: 700; font-size: .95rem;
  padding: .75rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(37,211,102,.4); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.5); color: #fff; }
.whatsapp-float i { font-size: 1.5rem; line-height: 1; }
.back-to-top { bottom: 5.5rem; }
@media (max-width: 575.98px) { .whatsapp-float { right: .9rem; bottom: .9rem; padding: .8rem; } .whatsapp-float-txt { display: none; } .back-to-top { bottom: 5rem; } }
#statusModal .modal-content { border-radius: var(--n-radius-md, 14px); }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; font-weight: 600; }
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }

/* Busca (documentacao, FAQ e menu) */
/* --nav-h = altura real do menu fixo (definida em busca.js): barra de busca e menu lateral ficam sempre visiveis, logo abaixo dele */
.doc-search { position: sticky; top: var(--nav-h, 72px); z-index: 20; background: var(--n-bg-alt, #f6f8fb); padding: .6rem 0 .6rem; border-bottom: 1px solid var(--n-border, #e5e7eb); margin-bottom: 1rem; }
.docs-side { position: sticky; top: calc(var(--nav-h, 72px) + .75rem); z-index: 10; }
.docs-side .docs-nav { max-height: calc(100vh - var(--nav-h, 72px) - 1.5rem); }
.doc-card { scroll-margin-top: calc(var(--nav-h, 72px) + 120px); }
.doc-search .input-group-text { background: #fff; }
.doc-search .form-control:focus { box-shadow: none; border-color: var(--n-primary); }
.doc-search kbd { font-size: .72rem; }
.site-search { position: relative; }
.site-search input { min-width: 170px; padding-right: 2rem; }
.site-search button { position: absolute; right: .15rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: inherit; padding: .2rem .45rem; opacity: .7; }
[hidden] { display: none !important; }
@media (max-width: 991.98px) { .site-search input { width: 100%; } }

/* Menu do site no celular: painel branco opaco (antes ficava transparente sobre o hero e o texto se misturava) */
@media (max-width: 991.98px) {
  body.site .navbar-nexora.menu-aberto { background: #fff; backdrop-filter: none; box-shadow: 0 8px 24px rgba(16,24,40,.12); }
  body.site .navbar-nexora .navbar-collapse { background: #fff; margin: .5rem 0 0; padding: .5rem 0 1rem; border-top: 1px solid var(--n-border, #e4e7ec); max-height: calc(100vh - 80px); overflow-y: auto; }
  body.site .navbar-nexora .site-search { margin: .25rem 0 .5rem !important; }
  body.site .navbar-nexora .site-search input { width: 100%; background: var(--n-bg-alt, #f6f8fb); }
  body.site .navbar-nexora .navbar-nav { gap: 0 !important; }
  body.site .navbar-nexora .navbar-nav > .nav-item { border-bottom: 1px solid var(--n-border, #eef0f4); }
  body.site .navbar-nexora .navbar-nav > .nav-item:last-child { border-bottom: 0; }
  body.site .navbar-nexora .navbar-nav > .nav-item:has(.btn) { border-bottom: 0; }
  body.site .navbar-nexora .nav-link { padding: .8rem .25rem; font-size: 1rem; }
}

/* Menu lateral por categorias (dropdown recolhivel) */
.sidebar .side-group-toggle { width: 100%; display: flex; align-items: center; gap: .6rem; background: transparent; border: 0; color: rgba(255,255,255,.55); font-family: var(--n-font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .6rem .75rem; border-radius: var(--n-radius-sm); text-align: left; }
.sidebar .side-group-toggle:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .side-group.has-active > .side-group-toggle { color: #fff; }
.sidebar .side-group-toggle > span { flex: 1; }
.sidebar .side-chevron { font-size: .7rem; transition: transform .2s ease; }
.sidebar .side-group-toggle:not(.collapsed) .side-chevron { transform: rotate(180deg); }
.sidebar .side-sub { margin: .15rem 0 .4rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.12); margin-left: .9rem; }
.sidebar .side-sub .nav-link { font-size: .85rem; padding: .5rem .7rem; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; } }
.sidebar .side-group-toggle:not(.collapsed) .side-dot { display: none; }
