/* Site Fênix Sorriso em /fenix (carregado depois de style.css). Tudo sob .fx-* para não afetar os painéis do Acesso do Cliente. */
:root {
  --fx-bg: #312e29;
  --fx-header: #33302c;
  --fx-surface: #45423e;
  --fx-cream: #e7e1d8;
  --fx-ink: #463939;
  --fx-wine: #6f1a21;
  --fx-gold: #c99a3a;
  --fx-line: #86827c;
  --fx-border: #756e68;
  --fx-meta: #836859;
  --fx-grad-card: linear-gradient(135deg, #3f2a27 0%, #6c1c21 100%);
  --fx-h-header: 80px;
  --fx-font-title: "Montserrat", system-ui, sans-serif;
  --fx-font-body: "Quicksand", system-ui, sans-serif;
}

body.fx-body {
  background: var(--fx-bg);
  color: var(--fx-cream);
  font-family: var(--fx-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
body.fx-lock { overflow: hidden; }
.fx-body .bg-gradient { display: none; }
.fx-body img { max-width: 100%; display: block; }
.fx-body a { color: inherit; }

.fx-main { padding-top: var(--fx-h-header); min-height: 70vh; }
.fx-container { width: 100%; max-width: 1150px; margin: 0 auto; padding: 0 22px; }
.fx-container--acesso { max-width: 1280px; }
.fx-center { text-align: center; }

/* ---------- botões ---------- */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px; border: 0; border-radius: 10px;
  font-family: var(--fx-font-title); font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: filter .15s, transform .15s; text-align: center;
}
.fx-btn--cream { background: var(--fx-cream); color: var(--fx-ink) !important; }
.fx-btn--wine { background: var(--fx-wine); color: var(--fx-cream) !important; }
.fx-btn--wide { min-width: 255px; }
.fx-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fx-body a:focus-visible, .fx-body button:focus-visible, .fx-body input:focus-visible,
.fx-body select:focus-visible { outline: 2px solid var(--fx-gold); outline-offset: 3px; }

/* ---------- header ---------- */
.fx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--fx-h-header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px;
  background: var(--fx-header); box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.fx-brand img { width: 76px; height: 52px; object-fit: contain; }
.fx-nav { display: flex; align-items: center; gap: 50px; }
.fx-nav a {
  font-family: var(--fx-font-title); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; color: var(--fx-cream); white-space: nowrap;
  padding-bottom: 8px; border-bottom: 2px solid transparent; margin-bottom: -10px;
}
.fx-nav a:hover { opacity: .75; }
.fx-nav a[aria-current="page"] { border-bottom-color: var(--fx-cream); }
.fx-nav a.fx-nav__acesso {
  border: 1.5px solid var(--fx-cream); border-radius: 8px; padding: 8px 14px; margin-bottom: 0;
}
.fx-nav a.fx-nav__acesso[aria-current="page"] { background: var(--fx-cream); color: var(--fx-ink); }
.fx-header__right { display: flex; align-items: center; gap: 18px; }
.fx-social { display: flex; align-items: center; gap: 18px; }
.fx-social a { color: var(--fx-cream); display: inline-flex; }
.fx-social svg { width: 20px; height: 20px; }
.fx-social a:hover { opacity: .75; }
.fx-social--lg svg { width: 28px; height: 28px; }

.fx-user { position: relative; padding-left: 18px; border-left: 1px solid var(--fx-border); }
.fx-user__btn {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: var(--fx-cream); font: 600 13px var(--fx-font-body);
}
.fx-user__email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-user__drop {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 180px; padding: 8px;
  background: var(--fx-header); border: 1px solid var(--fx-border); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4); display: flex; flex-direction: column;
}
.fx-user__drop a, .fx-user__drop button {
  padding: 8px 10px; font: 600 12px var(--fx-font-body); color: var(--fx-cream); text-decoration: none;
  background: none; border: 0; text-align: left; cursor: pointer; border-radius: 6px;
}
.fx-user__drop a:hover, .fx-user__drop button:hover { background: rgba(255, 255, 255, .08); }

.fx-burger { display: none; background: none; border: 0; color: var(--fx-cream); cursor: pointer; padding: 6px; }

/* ---------- gaveta ---------- */
.fx-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .55); }
.fx-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(100%, 420px);
  background: var(--fx-bg); padding: 12px 22px 24px; overflow-y: auto; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.fx-drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.fx-drawer__top { display: flex; justify-content: flex-end; }
.fx-drawer__close { background: none; border: 0; color: var(--fx-cream); cursor: pointer; padding: 6px; }
.fx-drawer__acesso { width: 100%; margin: 8px 0 12px; }
.fx-drawer__nav a {
  display: block; padding: 16px 0; font: 600 18px var(--fx-font-title); text-decoration: none;
  color: var(--fx-cream); border-bottom: 1px solid var(--fx-border);
}
.fx-drawer__nav a[aria-current="page"] { color: var(--fx-gold); }
.fx-drawer__bottom { margin-top: auto; padding-top: 28px; display: grid; gap: 20px; }
.fx-drawer__user { display: grid; gap: 10px; font-size: 14px; }
.fx-drawer__user a, .fx-drawer__user button {
  background: none; border: 0; padding: 0; text-align: left; font: 600 14px var(--fx-font-body);
  color: var(--fx-cream); text-decoration: none; cursor: pointer;
}
.fx-only-admin { display: none !important; }
body.is-admin .fx-only-admin { display: inline !important; }

/* ---------- blocos comuns ---------- */
.fx-sec { padding: 96px 0; }
.fx-sec--tight { padding: 48px 0; }
.fx-sec--20anos { padding: 150px 0; }
.fx-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fx-eyebrow { font: 600 16px var(--fx-font-title); letter-spacing: .1em; margin-bottom: 8px; }
.fx-h2, .fx-contato-bloco h2 {
  font: 700 40px/1.2 var(--fx-font-title); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 40px;
}
.fx-h3-lg { font: 700 20px/1.4 var(--fx-font-title); letter-spacing: .05em; margin-bottom: 20px; }
.fx-h3-md { font: 700 24px/1.35 var(--fx-font-title); margin-top: 20px; }
.fx-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fx-card { background: var(--fx-grad-card); border: 1px solid var(--fx-border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.fx-card h3 { font: 700 24px/1.25 var(--fx-font-title); text-transform: uppercase; }
.fx-card--serv img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; filter: grayscale(1); }
.fx-card--serv:hover img { filter: none; }
.fx-card__link { margin-top: auto; font: 700 18px var(--fx-font-title); text-decoration: none; }
.fx-card__link:hover { text-decoration: underline; }
.fx-card--mvv h3 { font-size: 32px; }

/* hero */
.fx-hero-home {
  min-height: 560px; height: calc(100vh - var(--fx-h-header));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; text-align: center; padding: 40px 22px;
  background: var(--fx-bg) url("/static/img/fenix/bg-hero-home.png") center / cover no-repeat;
}
.fx-hero-home__logo { width: 608px; max-width: 80vw; }
.fx-hero-home__txt { font: 500 22px/1.5 var(--fx-font-title); letter-spacing: .12em; max-width: 860px; text-align: center; }
.fx-hero-home .fx-btn { width: 270px; height: 55px; }

.fx-hero-int {
  min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 32px 22px; background: var(--fx-bg) url("/static/img/fenix/bg-hero-interna.png") center / cover no-repeat;
}
.fx-hero-int h1 { font: 700 36px/1.2 var(--fx-font-title); letter-spacing: .1em; }
.fx-hero-int p { font: 500 16px/1.5 var(--fx-font-title); letter-spacing: .15em; max-width: 860px; }

.fx-20anos__logo img { width: 476px; max-width: 100%; margin: 0 auto; }
.fx-20anos__txt { text-align: center; opacity: .95; }
.fx-20anos__txt p { margin-bottom: 16px; opacity: .85; }
.fx-20anos__txt .fx-btn { margin-top: 16px; }

/* banner */
.fx-banner { position: relative; height: 360px; overflow: hidden; background: linear-gradient(90deg, #6a4d1c 0%, #3c1213 100%); }
.fx-banner__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-banner__shade { position: absolute; inset: 0; background: rgba(30, 14, 14, .45); }
.fx-banner__txt {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 24px 22px;
}
.fx-banner__txt h2 { font: 700 40px/1.2 var(--fx-font-title); letter-spacing: .05em; }
.fx-banner__txt p { font: 500 16px/1.5 var(--fx-font-title); letter-spacing: .15em; max-width: 900px; }

/* sobre */
.fx-sobre-top { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; justify-content: center; }
.fx-sobre-top__foto { width: 393px; }
.fx-sobre-top__txt img { width: 498px; max-width: 100%; }
.fx-timeline {
  max-width: 1050px; margin: 0 auto; padding: 56px 24px 0; border-radius: 16px;
  background: linear-gradient(180deg, var(--fx-surface), var(--fx-bg));
}
.fx-tl__item { display: grid; grid-template-columns: 220px 10px minmax(0, 460px); column-gap: 28px; justify-content: center; padding-bottom: 60px; }
.fx-tl__ano { font: 700 32px/1.1 var(--fx-font-title); text-align: right; }
.fx-tl__dot { position: relative; margin-bottom: -60px; }
.fx-tl__dot::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--fx-gold); }
.fx-tl__dot::after { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--fx-gold); }
.fx-tl__item:last-child .fx-tl__dot { margin-bottom: 0; }
.fx-tl__item:last-child .fx-tl__dot::before { bottom: auto; height: 16px; }
.fx-tl__txt p { margin-bottom: 14px; }
.fx-valores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fx-valores ul { list-style: none; display: grid; gap: 14px; align-content: start; }
.fx-card--mvv .fx-valores li { font-size: 14px; }
.fx-faixa {
  min-height: 367px; display: flex; align-items: center; justify-content: center; padding: 40px 22px; text-align: center;
  background: var(--fx-bg) url("/static/img/fenix/pattern-chumbo.png") center / cover;
}
.fx-faixa p { font: 700 28px/1.35 var(--fx-font-title); max-width: 900px; }

/* serviços */
.fx-sec--serv { display: grid; gap: 80px; padding: 80px 0; overflow: hidden; }
.fx-serv { display: flex; align-items: center; gap: 60px; }
.fx-serv img { flex: 0 0 min(580px, 46%); width: min(580px, 46%); aspect-ratio: 580 / 381; object-fit: cover; border-radius: 0 16px 16px 0; }
.fx-serv__txt { flex: 1; box-sizing: content-box; max-width: 540px; padding-right: max(22px, calc((100vw - 1150px) / 2)); }
.fx-serv--inv { flex-direction: row-reverse; }
.fx-serv--inv img { border-radius: 16px 0 0 16px; }
.fx-serv--inv .fx-serv__txt { padding-right: 0; padding-left: max(22px, calc((100vw - 1150px) / 2)); margin-left: auto; }
.fx-serv__txt h3 { font: 700 28px/1.25 var(--fx-font-title); text-transform: uppercase; margin-bottom: 16px; }
.fx-serv__txt p { margin-bottom: 14px; }
.fx-serv { scroll-margin-top: 96px; }

/* contato */
.fx-contato3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.fx-contato3__col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fx-contato3__col h3 { font: 700 24px/1.25 var(--fx-font-title); }
.fx-ico { width: 28px; height: 28px; }

/* bloco de contato / formulário */
.fx-contato-bloco { padding: 60px 0; background: linear-gradient(180deg, var(--fx-surface), var(--fx-bg)); }
.fx-contato-bloco__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.fx-contato-bloco h2 { font-size: 36px; margin-bottom: 18px; }
.fx-gold { display: block; width: 50px; height: 3px; background: var(--fx-gold); margin-bottom: 20px; }
.fx-contato-bloco__txt p { font: 500 16px/1.5 var(--fx-font-title); letter-spacing: .15em; }
.fx-form { display: grid; gap: 18px; }
.fx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fx-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-field label { font: 600 12px var(--fx-font-body); text-transform: uppercase; letter-spacing: .05em; }
.fx-field input[type="text"], .fx-field input[type="email"], .fx-field input[type="tel"], .fx-field select {
  height: 40px; width: 100%; background: transparent; color: var(--fx-cream); border: 0;
  border-bottom: 2px solid var(--fx-line); border-radius: 0; font: 500 16px var(--fx-font-body); padding: 0 2px;
}
.fx-field select option { color: var(--fx-ink); background: var(--fx-cream); }
.fx-field input:focus, .fx-field select:focus { outline: none; border-bottom-color: var(--fx-gold); }
.fx-field.has-error input, .fx-field.has-error select { border-bottom-color: #e58a8a; }
.fx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; }
.fx-check input { margin-top: 3px; accent-color: var(--fx-gold); flex: none; }
.fx-err { font-size: 12px; color: #f0a0a0; min-height: 0; }
.fx-form__ok { font-size: 14px; color: var(--fx-cream); }

/* ---------- Acesso do Cliente ---------- */
.fx-page--acesso { background: var(--fx-bg); padding-bottom: 48px; }
.fx-acesso-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 24px 0 16px; }
.fx-acesso-bar h1 { font: 700 24px var(--fx-font-title); }
.fx-acesso-bar p { font-size: 14px; opacity: .75; }
.fx-acesso-bar__comp { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0; background: none; border: 0; }
.fx-acesso-bar__comp .panel-hint { margin: 0; color: var(--fx-cream); }
.fx-subtabs-wrap { position: relative; margin-bottom: 20px; }
.fx-subtabs { display: flex; gap: 8px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fx-subtabs .tab-btn {
  flex: none; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--fx-border);
  color: var(--fx-cream); opacity: .75; font-family: var(--fx-font-body); font-weight: 600; scroll-snap-align: start; white-space: nowrap;
}
.fx-subtabs .tab-btn:hover { opacity: 1; color: var(--fx-cream); }
.fx-subtabs .tab-btn.is-active { background: var(--fx-cream); color: var(--fx-ink); border-color: var(--fx-cream); opacity: 1; }

/* Menu de módulos (Início | Relatórios | Fiscal | Parametrização empresa), acima das abas. */
.fx-modulos { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fx-modulo {
  flex: 1 1 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 18px; text-align: left;
  border: 1px solid var(--fx-border); border-radius: 12px; background: var(--fx-surface); color: var(--fx-cream); opacity: .8;
  font-family: var(--fx-font-body); cursor: pointer; transition: opacity .15s, border-color .15s, background .15s;
}
.fx-modulo:hover { opacity: 1; border-color: var(--fx-gold); }
.fx-modulo.is-active { opacity: 1; background: var(--fx-grad-card); border-color: var(--fx-gold); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.fx-modulo__nome { font: 700 17px var(--fx-font-title); letter-spacing: .02em; }
.fx-modulo__desc { font-size: 13px; opacity: .75; }
.fx-modulo.is-active .fx-modulo__desc { opacity: .9; }

/* Aba Empresas · bloco "Cadastro fiscal e certificado (NFS-e)" (conteúdo montado pelo fenix-nfse-cadastro.js) */
.fx-cadastro-fiscal { margin-top: 1.5rem; padding: 0 1rem 1rem; border: 1px solid var(--fx-border); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.fx-cadastro-fiscal > summary { cursor: pointer; padding: .9rem 0; font: 600 1rem var(--fx-font-title); color: var(--fx-cream); list-style: none; display: flex; align-items: center; gap: .6rem; }
.fx-cadastro-fiscal > summary::-webkit-details-marker { display: none; }
.fx-cadastro-fiscal > summary::before { content: "▸"; font-size: .9em; color: var(--fx-gold); transition: transform .15s; }
.fx-cadastro-fiscal[open] > summary::before { transform: rotate(90deg); }
.fx-cadastro-fiscal > .panel-hint { margin-top: 0; }
.fx-cadastro-fiscal .fx-nfse-cadastro__form + .fx-nfse-cadastro__form { margin-top: 1.25rem; }

/* Módulo Fiscal · Emissor de NFS-e (layout) */
.fx-nfse-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.fx-nfse-titulo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fx-nfse-titulo h2 { margin: 0; }
.fx-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12px var(--fx-font-body); letter-spacing: .03em; text-transform: uppercase; }
.fx-badge--warn { background: rgba(201, 154, 58, .18); color: var(--fx-gold); border: 1px solid rgba(201, 154, 58, .5); }
.fx-nfse { max-width: none; }
.fx-nfse .form-row + .form-row { margin-top: 1rem; }
.fx-nfse .form-section-title { margin-top: 1.5rem; }
.fx-nfse .form-section-title:first-child { margin-top: .5rem; }
.fx-nfse .form-row > .form-group { min-width: 0; }
.fx-nfse-col2 { grid-column: span 2; }
.fx-nfse-check { justify-content: end; }
.fx-nfse-check__rotulo { font-size: .9rem; color: var(--text-muted); }
.fx-nfse-retencoes { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fx-nfse-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 1.25rem; }
.fx-nfse-acoes .btn-primary, .fx-nfse-acoes .btn-secondary { width: auto; margin: 0; }
.fx-nfse-aviso { flex: 1 1 100%; font-size: .85rem; color: var(--fx-gold); }
.fx-nfse-aviso--real { color: #ff8a80; font-weight: 700; }
.fx-nfse-lado { display: grid; gap: 20px; position: sticky; top: calc(var(--fx-h-header) + 16px); }
.fx-nfse-resumo__lista { margin: 0; display: grid; gap: 8px; }
.fx-nfse-resumo__lista > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--fx-border); }
.fx-nfse-resumo__lista dt { margin: 0; font-size: .9rem; color: var(--text-muted); }
.fx-nfse-resumo__lista dt small { font-size: .8em; opacity: .8; }
.fx-nfse-resumo__lista dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.fx-nfse-resumo__total { border-bottom: 0 !important; margin-top: 4px; padding-top: 10px !important; border-top: 1px solid var(--fx-gold); }
.fx-nfse-resumo__total dt, .fx-nfse-resumo__total dd { font-size: 1.05rem; color: var(--fx-cream); }
.fx-nfse-resumo__total dd { color: var(--fx-gold); }
.fx-nfse-preview__bloco { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--fx-border); }
.fx-nfse-preview__bloco h3 { margin: 0 0 6px; font-size: .95rem; }
.fx-nfse-preview__bloco p { margin: 2px 0; font-size: .9rem; }
.fx-nfse-preview__bloco p span { color: var(--text-muted); }
.fx-nfse-preview__discr { white-space: pre-wrap; }
/* Campos da DPS v1.01: grupos condicionais, validação e conferência técnica. */
.fx-nfse [hidden] { display: none !important; }
.fx-nfse .form-checkbox { margin-top: .75rem; }
.fx-nfse-grupo { margin-top: .75rem; padding: 12px 14px; border: 1px dashed var(--fx-border); border-radius: 10px; }
.fx-nfse-grupo h4 { margin: 0 0 .5rem; font-size: .95rem; color: var(--fx-cream); }
.fx-nfse-maiusc { text-transform: uppercase; }
.fx-nfse .fx-nfse-invalido { border-color: #e06c6c !important; box-shadow: 0 0 0 1px rgba(224, 108, 108, .45); }
.fx-nfse-msgs { margin: 6px 0 0; padding-left: 1.1rem; display: grid; gap: 4px; font-size: .88rem; }
.fx-nfse-msgs code { font-size: .78rem; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.fx-nfse-avisos { border: 1px solid rgba(201, 154, 58, .5); background: rgba(201, 154, 58, .1); color: var(--fx-gold); }
.fx-nfse-avisos--info { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: var(--fx-cream); }
.fx-nfse-preview__tecnico { margin-top: 12px; font-size: .85rem; }
.fx-nfse-preview__tecnico summary { cursor: pointer; color: var(--text-muted); }
/* Cadastro fiscal + certificado (fenix-nfse-cadastro.js) e resumo do prestador lido do cadastro. */
.fx-nfse-cadastro { margin-bottom: 20px; }
.fx-nfse-cadastro > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.fx-nfse-cadastro > summary::-webkit-details-marker { display: none; }
.fx-nfse-cadastro > summary h2 { margin: 0; }
.fx-nfse-cadastro > summary::before { content: "▸"; color: var(--fx-gold); }
.fx-nfse-cadastro[open] > summary::before { content: "▾"; }
.fx-nfse-cadastro__form { margin-top: 12px; }
.fx-nfse-cadastro__form .btn-primary, .fx-nfse-cadastro__form .btn-secondary { width: auto !important; margin-top: 1rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.fx-nfse-ambiente { margin: 0 0 .75rem; font-size: .9rem; color: var(--fx-gold); }
.fx-nfse-cert p { margin: 2px 0; font-size: .9rem; }
.fx-nfse-cert__alerta { color: #e06c6c; font-weight: 600; }
.fx-nfse-prestador__lista { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
.fx-nfse-prestador__lista dt { margin: 0; font-size: .8rem; color: var(--text-muted); }
.fx-nfse-prestador__lista dd { margin: 0; font-size: .92rem; }
/* Busca de município por nome (fenix-municipios.js): combobox com lista filtrada. */
/* combobox de código por busca (fenix-busca-codigo.js): município, cTribNac e NBS */
.fx-busca { position: relative; }
.fx-busca__linha { display: flex; gap: 6px; }
.fx-busca__texto { flex: 1 1 auto; min-width: 0; }
.fx-busca__filtro { flex: 0 0 78px; padding-left: 8px; padding-right: 4px; }
.fx-busca__lista { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 260px; overflow: auto; background: var(--fx-surface, #1f2430); border: 1px solid var(--fx-gold); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.fx-busca__opcao { padding: 7px 12px; cursor: pointer; font-size: .92rem; }
.fx-busca__opcao[aria-selected="true"], .fx-busca__opcao:hover { background: rgba(201, 154, 58, .22); color: var(--fx-cream); }
.fx-busca__secao { padding: 6px 12px 3px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fx-gold); cursor: default; }
.fx-busca__status:empty { display: none; }
.fx-nfse-cadastro__leitura { margin-top: 12px; }
.fx-nfse-preview__tecnico pre { margin: 6px 0 0; max-height: 320px; overflow: auto; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-size: .78rem; white-space: pre; }
/* Emissor em etapas (1.14.5): usa a largura do computador só quando a aba Emissor está aberta. */
.fx-container--acesso:has(> #painel-nfse:not([hidden])), .fx-container--acesso:has(> #painel-nfsedocs:not([hidden])) { max-width: 1840px; }
/* Fiscal · NFS-e emitidas e recebidas (fenix-nfse-docs.js) */
.fx-nd__barra { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: .6rem 0 .3rem; }
.fx-nd__barra .form-group { min-width: 320px; }
.fx-nd__resumo { margin: .8rem 0; font-weight: 600; color: var(--fx-cream); }
.fx-nd__arvore { display: grid; gap: 12px; }
.fx-nd__ano, .fx-nd__mes { border: 1px solid var(--fx-border); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.fx-nd__ano > summary, .fx-nd__mes > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.fx-nd__ano > summary::-webkit-details-marker, .fx-nd__mes > summary::-webkit-details-marker { display: none; }
.fx-nd__ano > summary::before, .fx-nd__mes > summary::before { content: "▸"; color: var(--fx-gold); transition: transform .15s; }
.fx-nd__ano[open] > summary::before, .fx-nd__mes[open] > summary::before { transform: rotate(90deg); }
.fx-nd__ano > summary .fx-nd__titulo { font: 700 1.15rem var(--fx-font-title); color: var(--fx-cream); }
.fx-nd__mes { margin: 0 14px 12px; }
.fx-nd__mes > summary .fx-nd__titulo { font-weight: 600; color: var(--fx-cream); }
.fx-nd__conta { font-size: .85rem; color: var(--text-muted); }
.fx-nd__pacote { margin-left: auto; display: inline-flex; gap: 6px; }
.fx-nd__papeis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 16px 16px; }
.fx-nd__papel { border: 1px solid var(--fx-border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.fx-nd__papel--emitida { border-top: 3px solid var(--fx-gold); }
.fx-nd__papel--tomada { border-top: 3px solid #6fa8dc; }
.fx-nd__papel-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fx-nd__papel-cab h4 { margin: 0; font-size: 1rem; }
.fx-nd__tabela td, .fx-nd__tabela th { padding: 6px 8px; font-size: .9rem; }
.fx-nd__valor { white-space: nowrap; text-align: right; }
.fx-nd__acoes { white-space: normal; }
.fx-nd__acoes-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-nd__aviso { margin: 6px 0 0; color: var(--fx-gold); }
@media (max-width: 1440px) { .fx-nd__papeis { grid-template-columns: minmax(0, 1fr); } }
.fx-nfse-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.fx-nfse-principal { display: grid; gap: 20px; min-width: 0; }
.fx-nfse-principal > .fx-nfse { display: grid; gap: 20px; }
.fx-nfse-topo { padding-bottom: 1.25rem; position: sticky; top: var(--fx-h-header); z-index: 20; }
.fx-nfse-topo .panel-hint { margin: .35rem 0 .9rem; }
.fx-badge--real { background: rgba(224, 108, 108, .2); color: #ff8a80; border-color: rgba(224, 108, 108, .6); }
.fx-nfse-passos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-nfse-passos__btn { width: 100%; cursor: pointer; font-family: inherit; text-align: left; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--fx-border); border-radius: 10px; color: var(--fx-cream); text-decoration: none; font-weight: 600; font-size: .93rem; background: rgba(255, 255, 255, .02); }
.fx-nfse-passos__btn:hover, .fx-nfse-passos__btn:focus-visible { border-color: var(--fx-gold); outline: none; }
.fx-nfse-passos__num, .fx-nfse-etapa__num { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--fx-gold); color: #1b1b1b; font-weight: 700; font-size: .9rem; }
.fx-nfse-passos__pend { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e06c6c; color: #fff; font-size: .78rem; text-align: center; }
.fx-nfse-passos__item--erro { border-color: rgba(224, 108, 108, .7) !important; }
.fx-nfse-etapa { scroll-margin-top: calc(var(--fx-h-header) + 170px); }
.fx-nfse-etapa--erro { border-color: rgba(224, 108, 108, .7); }
.fx-nfse-etapa__cab { display: flex; align-items: flex-start; gap: 12px; padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px solid var(--fx-border); }
.fx-nfse-etapa__num { width: 34px; height: 34px; font-size: 1rem; }
.fx-nfse-etapa__cab h2 { margin: 0; font-size: 1.2rem; }
.fx-nfse-etapa__dica { margin: .2rem 0 0; font-size: .85rem; color: var(--text-muted); }
.fx-nfse-etapa__pend { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: rgba(224, 108, 108, .18); color: #ff8a80; border: 1px solid rgba(224, 108, 108, .55); font: 600 .8rem var(--fx-font-body); white-space: nowrap; }
.fx-nfse-etapa__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 44px; align-items: start; }
.fx-nfse-etapa__cols--uma { grid-template-columns: minmax(0, 1fr); }
.fx-nfse-etapa__col { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.fx-nfse-etapa__col > .form-section-title:first-child { margin-top: .5rem; }
.fx-nfse-ambiente-faixa { margin: .4rem 0 .2rem; padding: 12px 16px; border-radius: 10px; font-weight: 700; border: 1px solid rgba(201, 154, 58, .6); background: rgba(201, 154, 58, .12); color: var(--fx-gold); }
.fx-nfse-ambiente-faixa--real { border-color: rgba(224, 108, 108, .75); background: rgba(224, 108, 108, .14); color: #ff8a80; font-size: 1.05rem; }
.fx-nfse-etapa .fx-nfse-acoes { margin-top: .4rem; }
@media (max-width: 1500px) {
  .fx-nfse-etapa__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 900px) {
  .fx-nfse-topo { position: static; }
  .fx-nfse-etapa { scroll-margin-top: calc(var(--fx-h-header) + 12px); }
}
@media (max-width: 1100px) {
  .fx-nfse-grid { grid-template-columns: 1fr; }
  .fx-nfse-lado { position: static; }
  .fx-nfse-topo { position: static; }
}
@media (max-width: 760px) {
  .fx-nfse-passos ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fx-nfse-col2 { grid-column: auto; }
}

/* ---------- Emissor de NFS-e: grade alinhada da Etapa 2 (06/11/2026) ----------
   Pedido do usuário: campos da mesma linha com altura única e linhas alinhadas; só layout.
   - .form-group é grid: numa linha ele esticava até o vizinho mais alto e o campo ia junto (o "Código de
     tributação municipal" virava uma caixa enorme; o select "Local" ficava mais alto) → align-content: start.
   - input e select com a mesma altura em todas as etapas (o select tinha padding diferente do input).
   - Na Etapa 2 as linhas têm colunas fixas (.fx-nfse-l--*) em vez do auto-fit; no celular viram 1 coluna.
   - Subgrid: rótulo / campo / ajuda de todos os grupos da linha caem nas mesmas faixas — rótulo de 2 linhas
     (ex.: ART/RRT) não desalinha o campo do vizinho. Sem suporte, fica a grade comum.
   - Ajudas curtas em 1 linha; o detalhe vai no ícone "i" (.fx-ajuda: tooltip no hover/foco, acima do campo,
     limitado à largura da linha). */
.fx-nfse-etapa .form-group { align-content: start; }
.fx-nfse-etapa .form-row, .fx-nfse-etapa__col { position: relative; } /* referência do tooltip (.fx-ajuda::after) */
.fx-nfse-etapa .form-group > label { line-height: 1.3; }
.fx-nfse-etapa input.form-input, .fx-nfse-etapa select.form-input { height: 46px; padding-top: 0; padding-bottom: 0; }
.fx-nfse-etapa .form-row { align-items: start; }
.fx-nfse-etapa .field-hint, .fx-nfse-etapa .fx-busca__status { line-height: 1.35; }
@supports (grid-template-rows: subgrid) {
  #nfse-etapa-2 .form-row > .form-group { grid-row: span 3; grid-template-rows: subgrid; row-gap: .45rem; }
}
.fx-nfse-l--local { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.fx-nfse-l--codigos { grid-template-columns: minmax(0, 1fr) 150px; }
.fx-nfse-l--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-nfse-l--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-ajuda {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%;
  border: 1px solid var(--fx-gold); color: var(--fx-gold); font: 700 .66rem/1 var(--fx-font-body);
  vertical-align: text-bottom; cursor: help;
}
.fx-ajuda:focus-visible { outline: 2px solid var(--fx-gold); outline-offset: 1px; }
.fx-ajuda::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 40;
  width: max-content; max-width: min(380px, 100%); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--fx-gold);
  background: var(--fx-surface, #1f2430); color: var(--fx-cream); font: 400 .8rem/1.35 var(--fx-font-body);
  text-align: left; white-space: normal; box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s;
}
.fx-ajuda:hover::after, .fx-ajuda:focus-visible::after { opacity: 1; visibility: visible; }
@media (max-width: 600px) {
  .fx-nfse-l { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- rodapé e botão flutuante ---------- */
.fx-footer { background: var(--fx-header); }
.fx-footer__top { padding: 48px 0; }
.fx-footer__grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.fx-footer__grid img { width: 172px; height: 62px; object-fit: contain; }
.fx-footer__end { text-align: right; font: 600 16px var(--fx-font-body); }
.fx-footer__end a { text-decoration: none; }
.fx-footer__bottom { border-top: 2px solid #7c7770; padding: 16px 0; font-size: 12px; }
.fx-footer__line { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body[data-rota="acesso"] .fx-footer__top, body[data-rota="acesso"] .fx-wpp-float { display: none; }
.fx-body .fx-wpp-float {
  position: fixed; right: 40px; bottom: 40px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--fx-cream); color: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.fx-wpp-float svg { width: 32px; height: 32px; }

/* ---------- animações de entrada (efeitos do site original) ----------
   O fenix-site.js liga .fx-anim-on (só sem prefers-reduced-motion), marca .is-in quando o elemento
   entra na tela e troca por .is-done no fim, devolvendo transform/transition ao estilo normal (hover dos botões).
   Os keyframes só têm "from": o fim é o próprio estilo do elemento (ex.: a opacidade .85 dos parágrafos). */
.fx-anim-on [data-anim]:not(.is-in):not(.is-done) { opacity: 0; }
[data-anim].is-in {
  animation: var(--fx-kf) var(--fx-dur, .75s) cubic-bezier(.2, .7, .3, 1) var(--fx-delay, 0s) both;
}
[data-anim="fade"] { --fx-kf: fx-fade; }
[data-anim="zoom"] { --fx-kf: fx-zoom; }
[data-anim="rise"] { --fx-kf: fx-rise; }
[data-anim="flip"] { --fx-kf: fx-flip; }
[data-anim="flip-y"] { --fx-kf: fx-flip-y; }
[data-anim="bounce"] { --fx-kf: fx-bounce; }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(calc(1 - .2 * var(--fx-int, 1))); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes fx-flip { from { opacity: 0; transform: perspective(800px) rotateX(calc(80deg * var(--fx-int, 1))); } }
@keyframes fx-flip-y { from { opacity: 0; transform: perspective(800px) rotateY(calc(80deg * var(--fx-int, 1))); } }
@keyframes fx-bounce {
  0% { opacity: 0; transform: scale(calc(1 - 2.5 * var(--fx-int, .2))); }
  55% { opacity: 1; transform: scale(calc(1 + .4 * var(--fx-int, .2))); }
  80% { transform: scale(calc(1 - .15 * var(--fx-int, .2))); }
  100% { transform: none; }
}
/* Na impressão sai tudo, inclusive o que ainda não foi rolado até a tela. */
@media print {
  .fx-anim-on [data-anim] { opacity: 1 !important; animation: none !important; }
}

/* ---------- celular / tablet ---------- */
@media (max-width: 1100px) {
  .fx-nav { gap: 28px; }
  .fx-header__right .fx-social { display: none; }
}
@media (max-width: 900px) {
  :root { --fx-h-header: 64px; }
  .fx-header { padding: 0 16px; }
  .fx-brand img { width: 56px; height: 38px; }
  .fx-nav, .fx-header__right { display: none; }
  .fx-burger { display: block; }
  .fx-container { padding: 0 16px; }
  .fx-sec { padding: 56px 0; }
  .fx-sec--20anos { padding: 56px 0; }
  .fx-cols2, .fx-sobre-top, .fx-cards3, .fx-contato3, .fx-contato-bloco__grid, .fx-form__row { grid-template-columns: 1fr; }
  .fx-contato3 { gap: 32px; }
  .fx-h2 { font-size: 28px; }
  .fx-hero-home__txt { font-size: 16px; }
  .fx-hero-int { min-height: 220px; }
  .fx-hero-int h1 { font-size: 26px; }
  .fx-banner__txt h2 { font-size: 26px; }
  .fx-sobre-top__foto { width: 80%; margin: 0 auto; }
  .fx-sobre-top__txt img { margin: 0 auto; }
  .fx-timeline { padding: 32px 16px 0; }
  .fx-tl__item { grid-template-columns: 16px 1fr; grid-template-areas: "dot ano" "dot txt"; column-gap: 16px; padding-bottom: 36px; }
  .fx-tl__ano { grid-area: ano; text-align: left; margin-bottom: 8px; }
  .fx-tl__dot { grid-area: dot; margin-bottom: -36px; }
  .fx-tl__txt { grid-area: txt; }
  .fx-faixa { min-height: 240px; }
  .fx-faixa p { font-size: 20px; }
  .fx-sec--serv { gap: 48px; padding: 48px 0; }
  .fx-serv, .fx-serv--inv { flex-direction: column; align-items: stretch; gap: 20px; padding: 0 16px; }
  .fx-serv img, .fx-serv--inv img { flex: none; width: 100%; height: 220px; aspect-ratio: auto; border-radius: 16px; }
  .fx-serv__txt, .fx-serv--inv .fx-serv__txt { padding: 0; max-width: none; margin: 0; }
  .fx-contato-bloco { padding: 40px 0; }
  .fx-contato-bloco h2 { font-size: 28px; }
  .fx-acesso-bar { flex-direction: column; align-items: stretch; }
  .fx-acesso-bar__comp { width: 100%; flex-wrap: wrap; }
  .fx-acesso-bar__comp select { flex: 1; min-width: 0; }
  .fx-subtabs-wrap::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 24px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--fx-bg));
  }
  .fx-footer__grid, .fx-footer__line { flex-direction: column; text-align: center; }
  .fx-footer__end { text-align: center; }
  .fx-wpp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .fx-wpp-float svg { width: 28px; height: 28px; }
}

/* ---------- Tela inicial da área do cliente (06/11/2026) ---------- */
.fx-inicio__resumo { margin: 12px 0 6px; font-weight: 600; color: var(--fx-cream); }
.fx-inicio__empresas { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-inicio__empresa { padding: 4px 12px; border: 1px solid var(--fx-border); border-radius: 999px; font-size: 13px; }
.fx-inicio__atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.fx-inicio__atalhos[hidden] { display: none; }
.fx-inicio__secao { margin: 24px 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fx-cream); opacity: .7; }
.fx-inicio__atalho {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--fx-border); border-radius: 12px;
  background: var(--fx-surface); color: var(--fx-cream); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.fx-inicio__atalho:hover, .fx-inicio__atalho:focus-visible { border-color: var(--fx-gold); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); text-decoration: none; }
.fx-inicio__atalho strong { font: 700 17px var(--fx-font-title); }
.fx-inicio__atalho span { font-size: 13px; opacity: .8; }

/* ---------- Emissor · NOVA NOTA: campos travados até iniciar a nota (06/11/2026) ---------- */
.fx-nfse-nova { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.fx-nfse--travada .fx-nfse-etapa:not([data-etapa="1"]) { opacity: .55; }
.fx-nfse--travada .fx-nfse-etapa[data-etapa="1"] .form-group:has(:disabled) { opacity: .6; }

/* ---------- Cancelamento de NFS-e (fenix-nfse-cancelar.js, 1.17.0) ---------- */
.fx-selo { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 700 .72rem var(--fx-font-title); letter-spacing: .04em; vertical-align: middle; }
.fx-selo--cancelada { border: 1px solid #e06c6c; color: #ff8a80; background: rgba(224, 108, 108, .12); }
.fx-nfse-linha--cancelada td, .fx-nd__linha--cancelada td { color: var(--text-muted); }
.fx-nd__linha--cancelada .fx-nd__valor { text-decoration: line-through; }
.fx-nd__cancelar { border-color: rgba(224, 108, 108, .6); color: #ff8a80; }
.fx-canc { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; border: 1px solid var(--fx-border); border-radius: 14px; background: var(--fx-bg); color: var(--fx-cream); font-family: var(--fx-font-body); }
.fx-canc::backdrop { background: rgba(0, 0, 0, .6); }
.fx-canc h3 { margin: 0 0 .6rem; font-family: var(--fx-font-title); }
.fx-canc [hidden] { display: none !important; }
.fx-canc__etapa { margin: -.35rem 0 .6rem; font-size: .82rem; color: var(--text-muted); letter-spacing: .02em; }
.fx-canc__contador--erro { color: var(--fx-gold); font-weight: 600; }
.fx-canc-recusa { margin-top: 4px; }
.fx-canc-recusa__curto { margin: 0; }
.fx-canc-recusa__curto--municipio { color: var(--fx-gold); font-weight: 600; }
.fx-canc-recusa__detalhes summary { cursor: pointer; font-size: .8rem; color: var(--text-muted); }
.fx-canc-recusa__detalhes p { margin: 4px 0 0; white-space: pre-line; }
.fx-canc__faixa { margin: 0 0 .9rem; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: .85rem; text-align: center; letter-spacing: .03em; }
.fx-canc__faixa--teste { border: 1px solid rgba(201, 154, 58, .6); background: rgba(201, 154, 58, .12); color: var(--fx-gold); }
.fx-canc__faixa--real { border: 1px solid #e06c6c; background: var(--fx-wine); color: #fff; }
.fx-canc__dados { margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.fx-canc__dados dt { margin: 0; font-size: .78rem; color: var(--text-muted); }
.fx-canc__dados dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.fx-canc__chave { grid-column: 1 / -1; }
.fx-canc__chave dd { font-family: ui-monospace, monospace; font-size: .8rem; }
.fx-canc .form-group { margin-bottom: .8rem; }
.fx-canc textarea { resize: vertical; min-height: 4.5rem; }
.fx-canc__aviso { margin: .5rem 0; font-size: .85rem; color: var(--fx-gold); }
.fx-canc__aviso--controles { color: var(--fx-cream); opacity: .85; }
.fx-canc__resumo { margin: 0 0 .8rem; font-size: .9rem; overflow-wrap: anywhere; }
.fx-canc__resultado ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: 4px; font-size: .88rem; }
.fx-canc__acoes { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.fx-canc__acoes .btn-primary, .fx-canc__acoes .btn-secondary { width: auto; margin: 0; padding-left: 1.25rem; padding-right: 1.25rem; }
.fx-canc__perigo { background: #b3261e; border-color: #b3261e; }
.fx-canc button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 520px) {
  .fx-canc__dados { grid-template-columns: minmax(0, 1fr); }
  .fx-canc__acoes { flex-direction: column-reverse; position: sticky; bottom: -1.5rem; z-index: 1; margin: 1rem -1.5rem -1.5rem; padding: .75rem 1.5rem 1.5rem; background: var(--fx-bg); border-top: 1px solid var(--fx-border); }
  .fx-canc__acoes .btn-primary, .fx-canc__acoes .btn-secondary { width: 100%; }
}

/* ---------- Segurança: monitoramento de logins (fenix-seguranca.js, 1.18.0; revisão do Pincel) ---------- */
.fx-sg [hidden] { display: none !important; }
.fx-sg__filtros { margin-top: .75rem; }
.fx-sg__principal { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; gap: 12px 16px; align-items: end; }
.fx-sg__principal .form-group, .fx-sg__extras .form-group { min-width: 0; margin: 0; }
.fx-sg__principal .form-input { min-width: 0; width: 100%; }
.fx-sg__acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-sg__acoes .btn-primary, .fx-sg__acoes .btn-secondary { width: auto; margin: 0; padding-left: 1.25rem; padding-right: 1.25rem; }
.fx-sg__mais { margin-top: .9rem; }
.fx-sg__mais > summary { cursor: pointer; font-size: .9rem; color: var(--fx-gold); width: max-content; }
.fx-sg__extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; margin-top: .6rem; }
.fx-sg__faixa--neutra { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: var(--fx-cream); }
.fx-sg__faixa--aviso { border: 1px solid rgba(201, 154, 58, .5); background: rgba(201, 154, 58, .1); color: var(--fx-gold); }
.fx-sg__veredito { margin: .25rem 0 1rem; font-weight: 600; }
.fx-sg__ver { margin-left: 6px; }
.fx-sg__cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: .5rem 0 1rem; }
.fx-sg__cartao { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--fx-border); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.fx-sg__cartao--erro { border-color: #e06c6c; background: rgba(224, 108, 108, .1); }
.fx-sg__cartao--aviso { border-color: rgba(201, 154, 58, .7); background: rgba(201, 154, 58, .08); }
.fx-sg__cartao-valor { font: 700 1.4rem var(--fx-font-title); color: var(--fx-cream); font-variant-numeric: tabular-nums; }
.fx-sg__cartao-rotulo { font-size: .82rem; color: var(--text-muted); }
.fx-sg__cartao-dica { font-size: .74rem; color: var(--text-muted); opacity: .85; }
.fx-sg__resumo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-sg__bloco { min-width: 0; }
.fx-sg__bloco h4 { margin: 0 0 6px; font-size: 1rem; }
.fx-sg__rolagem { max-height: 320px; overflow-y: auto; }
.fx-sg__mini td, .fx-sg__mini th, .fx-sg__tabela td, .fx-sg__tabela th { padding: 6px 8px; font-size: .88rem; }
.fx-sg__abas { margin-bottom: .75rem; }
.fx-sg__filtro-ip { margin: 0 0 .5rem; font-size: .9rem; color: var(--fx-gold); }
.fx-sg__barra { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: .5rem; }
.fx-sg__barra .form-input--compact { width: auto; }
.fx-sg__paginacao { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: .75rem; }
.fx-sg__paginacao .btn-secondary { width: auto; margin: 0; }
.fx-sg__paginacao .btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.fx-sg__ip { font-family: ui-monospace, monospace; font-size: .82rem; white-space: nowrap; }
.fx-sg__quando { white-space: nowrap; }
.fx-sg__usuario { max-width: 34ch; overflow-wrap: break-word; word-break: normal; }  /* quebra no @ (<wbr>); sem encolher a coluna */
.fx-sg__detalhe { overflow-wrap: anywhere; max-width: 32ch; }
.fx-sg__num { text-align: right; font-variant-numeric: tabular-nums; }
.fx-sg__sev--1 { color: var(--fx-gold); }
.fx-sg__sev--2 { color: #ff8a80; font-weight: 700; }
.fx-sg__alto td { background: rgba(224, 108, 108, .08); }
.fx-sg__selo { border: 1px solid rgba(201, 154, 58, .6); color: var(--fx-gold); background: rgba(201, 154, 58, .12); }
@media (max-width: 900px) {
  .fx-sg__resumo { grid-template-columns: minmax(0, 1fr); }
  .fx-sg__principal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-sg__principal > .form-group:not(.fx-sg__data), .fx-sg__acoes { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .fx-sg__col-origem { display: none; }  /* o Tipo já diz SSH:/Site:/fail2ban: e o IP cabe */
  .fx-sg__paginacao .fx-sg__pagina-info { order: 3; flex-basis: 100%; text-align: center; }
  .fx-sg__usuario { max-width: 22ch; }
}
@media (max-width: 380px) {
  .fx-sg__principal { grid-template-columns: minmax(0, 1fr); }
}
