/* ============================================================
   GESTÃO PROFISSIONAL — Estilos (SaaS claro, pt-BR)
   Paleta: verde-água (#0d9488), azul (#0ea5e9), roxo (#8b5cf6)
   ============================================================ */

:root {
  /* v1.55.0: identidade Fakt — fundo branco, letras pretas, botões vermelhos */
  --gc-teal: #d32f2f;
  --gc-blue: #b71c1c;
  --gc-purple: #ef5350;
  --gc-grad: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  --gc-fundo: #ffffff;
  --gc-card: #ffffff;
  --gc-texto: #000000;
  --gc-texto-suave: #444444;
  --gc-borda: #e2e8f0;
  --gc-sombra: 0 4px 16px rgba(0, 0, 0, .08);
  --gc-sombra-hover: 0 8px 24px rgba(0, 0, 0, .12);
  --gc-raio: 16px;
  --gc-trial: #d32f2f;
}

/* ---------- Container raiz ---------- */
#gc-app-root { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--gc-texto); }
#gc-app-root *, #gc-app-root *::before, #gc-app-root *::after { box-sizing: border-box; }

.gc-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; gap: 16px; color: var(--gc-texto-suave); }
.gc-spinner { width: 44px; height: 44px; border: 4px solid var(--gc-borda); border-top-color: var(--gc-teal); border-radius: 50%; animation: gc-giro 0.8s linear infinite; }
@keyframes gc-giro { to { transform: rotate(360deg); } }

/* ---------- LOGIN ---------- */
.gc-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #ffffff; padding: 16px; }
.gc-login-wrap .gc-login-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.gc-login-card { background: var(--gc-card); border-radius: 24px; box-shadow: var(--gc-sombra-hover); padding: 32px 40px; width: 100%; max-width: 640px; text-align: center; }
.gc-login-logo { width: 72px; height: 72px; margin: 0 auto 16px; background: var(--gc-grad); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.gc-login-logo-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; margin-bottom: 10px; }
.gc-landing-card .gc-login-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; margin-bottom: 10px; }
.gc-login-card h2 { margin: 0 0 4px; font-size: 22px; }
.gc-login-sub { color: var(--gc-texto-suave); margin: 0 0 24px; font-size: 14px; }
.gc-login-card form { text-align: left; }
.gc-login-card label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.gc-login-card .gc-senha-wrap { margin-bottom: 16px; }
.gc-login-links { margin-top: 18px; font-size: 13px; }
.gc-login-links a { color: var(--gc-teal); text-decoration: none; font-weight: 600; }
.gc-senha-wrap { position: relative; }
.gc-olho { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; opacity: .6; }

/* ---------- BARRA DE TRIAL (v1.55.0) — rodapé vermelho ---------- */
.gc-trial-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #d32f2f; color: #fff; font-size: 13px; font-weight: 700; padding: 10px 16px; text-align: center; box-shadow: 0 -4px 12px rgba(0,0,0,.15); }
.gc-main { padding-bottom: 56px; }

/* ---------- LANDING "Conhecer o sistema" (v1.52.0) ---------- */
.gc-land-nova { min-height: 100vh; display: flex; flex-direction: column; background: #f8f9fa; padding: 0; gap: 0; flex-wrap: nowrap; overflow: visible; }
.gc-land-topo { display: flex; align-items: center; padding: 14px 28px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.gc-land-logo img { height: 64px; width: auto; display: block; }
.gc-land-logo:hover { opacity: .85; }
.gc-land-corpo { flex: 1; min-height: 0; display: flex; flex-direction: row; align-items: stretch; justify-content: stretch; gap: 0; padding: 0; flex-wrap: nowrap; }
.gc-land-rodape { text-align: center; padding: 10px; color: #64748b; font-size: 12px; }
.gc-landing-esq { flex: 1.1 1 0; min-width: 0; max-width: none; background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 55%, #e53935 100%); color: #fff; padding: 32px 48px; display: flex; flex-direction: column; justify-content: center; align-self: stretch; overflow-y: auto; }
.gc-land-chip { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.35); }
.gc-landing-esq h1 { font-size: 32px; line-height: 1.12; margin: 0 0 10px; letter-spacing: -.5px; color: #fff; }
.gc-landing-esq h1 em { font-style: normal; color: #ffcdd2; }
.gc-land-lead { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); margin: 0 0 20px; }
.gc-landing-esq .gc-hero-lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .gc-landing-esq .gc-hero-lista { grid-template-columns: 1fr 1fr; } }
.gc-landing-esq .gc-hero-lista li { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.22) !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 12px; padding: 10px 14px; list-style: none; }
.gc-land-ic { font-size: 20px; background: rgba(255,255,255,.2); border-radius: 10px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gc-landing-esq .gc-hero-lista strong { display: block; font-size: 14px; color: #ffffff !important; }
.gc-landing-esq .gc-hero-lista small { font-size: 12.5px; color: rgba(255,255,255,.92) !important; }
.gc-landing-card { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; background: #fff; border-radius: 0; box-shadow: none; padding: 32px 56px 40px; align-self: stretch; max-height: none; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-start; }
/* v1.84.2: centralização segura — margens auto em vez de justify-content:center,
   que cortava o fim do formulário (botão Entrar/Criar conta) quando o conteúdo
   ficava mais alto que a tela; com margens auto a rolagem alcança tudo. */
.gc-landing-card > .gc-land-card-topo { margin-top: auto; }
.gc-landing-card > .gc-login-links { margin-bottom: auto; }
#gc-lead-form label { margin-top: 10px; }
#gc-lead-form button[type=submit] { margin-top: 16px; }
.gc-land-card-topo { display: flex; justify-content: flex-start; margin-bottom: 8px; }
.gc-land-preco { background: #d32f2f; color: #fff; font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 10px; display: inline-flex; align-items: baseline; gap: 6px; }
.gc-land-preco span { font-size: 12px; font-weight: 600; opacity: .9; }
.gc-land-nova .gc-login-logo { display: none; }
.gc-land-nova .gc-landing-img { display: none; }
.gc-landing-esq { flex: 1.1; min-width: 320px; max-width: 560px; }
.gc-landing-img { width: 42%; max-width: 200px; display: block; margin: 0 auto 14px; border-radius: 12px; box-shadow: var(--gc-sombra); }
.gc-landing-esq h1 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.4px; color: #000; }
.gc-landing-esq p { font-size: 15px; line-height: 1.6; color: #444; margin: 0 0 20px; }
.gc-landing-esq .gc-hero-lista { display: flex; flex-direction: column; gap: 8px; }
.gc-landing-esq .gc-hero-lista li { background: #fafafa; border: 1px solid var(--gc-borda); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: #000; list-style: none; }
.gc-landing-hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.5px; }
.gc-landing-hero p { font-size: 16px; line-height: 1.6; opacity: .92; margin: 0 0 28px; max-width: 520px; }
.gc-landing-voltar { margin-top: 28px; }
.gc-landing-voltar a { color: #fff; font-weight: 600; text-decoration: underline; opacity: .85; }
.gc-landing-card { background: var(--gc-card); border-radius: 24px; box-shadow: var(--gc-sombra-hover); padding: 32px 40px; width: 100%; max-width: 640px; text-align: center; margin: 0; align-self: center; flex: 1.2; min-width: 340px; max-height: none; overflow-y: visible; }
/* v1.84.3: card da landing como coluna flex — a rolagem interna alcança o botão
   mesmo com senha+confirmação; margens auto centralizam sem cortar o conteúdo. */
.gc-landing-card { display: flex; flex-direction: column; justify-content: flex-start; }
.gc-landing-card > .gc-land-card-topo { margin-top: auto; }
.gc-landing-card > .gc-login-links { margin-bottom: auto; }
.gc-landing-card form { text-align: left; }
.gc-landing-card textarea { width: 100%; border: 1px solid var(--gc-borda); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; }
.gc-landing-card textarea:focus { outline: 2px solid var(--gc-teal); border-color: transparent; }
.gc-landing-ok { max-width: 480px; }
.gc-landing-ok .gc-login-sub { line-height: 1.6; }

/* ---------- Abas da tela de login ---------- */
.gc-tabs-login { display: flex; gap: 8px; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.gc-tab-login { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--gc-texto-suave); transition: all .15s; font-family: inherit; }
.gc-tab-login.gc-tab-ativo { background: var(--gc-grad); color: #fff; box-shadow: var(--gc-sombra); }
.gc-login-card form label small { font-weight: 400; color: var(--gc-texto-suave); }

/* ---------- SHELL (sidebar + main) ---------- */
.gc-shell { display: flex; min-height: 100vh; height: 100vh; background: var(--gc-fundo); overflow: hidden; }
.gc-main-wrap { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; margin-left: 240px; transition: margin-left .2s ease; }
.gc-shell.gc-recolhida .gc-main-wrap { margin-left: 72px; }
.gc-sidebar { width: 240px; background: var(--gc-card); border-right: 1px solid var(--gc-borda); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; transition: transform .25s ease, width .2s ease; }
.gc-sidebar.gc-colapsada { width: 72px; }
.gc-sidebar.gc-colapsada .gc-nav-label, .gc-sidebar.gc-colapsada .gc-user-chip, .gc-sidebar.gc-colapsada .gc-brand-logo { display: none; }
.gc-sidebar.gc-colapsada .gc-nav-item { justify-content: center; padding: 12px 8px; }
.gc-sidebar.gc-colapsada .gc-sidebar-brand { text-align: center; padding: 16px 8px; }
.gc-sidebar.gc-colapsada .gc-sidebar-foot { padding: 12px 8px; }
.gc-sidebar-toggle { position: absolute; top: 18px; right: -13px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gc-borda); background: #fff; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 41; color: #000; padding: 0; }
.gc-sidebar-toggle:hover { background: var(--gc-grad); color: #fff; border-color: transparent; }

.gc-sidebar-brand { padding: 16px 20px; background: #ffffff; border-bottom: 1px solid var(--gc-borda); border-radius: 0 0 20px 0; display: flex; justify-content: center; align-items: center; }
.gc-brand-logo { height: 40px; width: auto; display: block; }
.gc-brand-logo:hover { opacity: .85; }
.gc-sidebar nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.gc-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--gc-texto-suave); text-decoration: none; font-size: 14px; font-weight: 600; transition: all .15s; }
.gc-nav-item:hover { background: #f0fdfa; color: var(--gc-teal); }
.gc-nav-item.gc-ativo { background: var(--gc-grad); color: #fff; box-shadow: var(--gc-sombra); }
.gc-nav-icone { font-size: 18px; }
.gc-app-topbar { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: flex-end; padding: 0 28px; background: var(--gc-fundo); border-bottom: 1px solid var(--gc-borda); position: sticky; top: 0; z-index: 20; }
.gc-btn-sair-topo { min-width: 82px; padding: 9px 18px; font-weight: 700; }
.gc-sidebar-foot { padding: 16px; border-top: 1px solid var(--gc-borda); }
.gc-user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.gc-user-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gc-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.gc-user-nome { font-size: 13px; font-weight: 700; }
.gc-user-nivel { font-size: 11px; color: var(--gc-texto-suave); }
.gc-hamburger { display: none; position: fixed; top: 14px; left: 14px; z-index: 50; background: var(--gc-card); border: 1px solid var(--gc-borda); border-radius: 10px; font-size: 20px; padding: 8px 12px; cursor: pointer; box-shadow: var(--gc-sombra); }
.gc-main { flex: 1; padding: 32px 40px 56px; max-width: none; width: 100%; min-height: 100%; }

/* ---------- Títulos e topbar ---------- */
.gc-titulo { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.gc-sub { color: var(--gc-texto-suave); font-size: 14px; margin: 0 0 20px; }
.gc-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.gc-card { background: var(--gc-card); border-radius: var(--gc-raio); box-shadow: var(--gc-sombra); padding: 20px 24px; margin-bottom: 16px; }
.gc-card h3 { margin: 0 0 16px; font-size: 15px; color: var(--gc-texto); }
.gc-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.gc-card-kpi { padding: 14px 18px !important; margin-bottom: 0 !important; display: flex; align-items: center; gap: 14px; margin-bottom: 0; color: #fff; border: none; }
.gc-kpi-icone { font-size: 22px; background: rgba(255,255,255,.2); border-radius: 10px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gc-kpi-valor { font-size: 20px; font-weight: 800; line-height: 1.2; }
.gc-kpi-titulo { font-size: 12px; opacity: .85; }
.grad1 { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.grad2 { background: linear-gradient(135deg, #059669, #10b981); }
.grad3 { background: linear-gradient(135deg, #d97706, #f59e0b); }
.grad4 { background: linear-gradient(135deg, #dc2626, #ef4444); }
.grad5 { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.grad6 { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.gc-charts-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.gc-erro-card { border-left: 4px solid #ef4444; }

/* ---------- Botões ---------- */
.gc-btn { border: none; border-radius: 12px; padding: 11px 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s; font-family: inherit; }
.gc-btn-primary { background: var(--gc-grad); color: #fff; box-shadow: var(--gc-sombra); }
.gc-btn-primary:hover { transform: translateY(-1px); box-shadow: var(--gc-sombra-hover); }
.gc-btn-sec { background: #f1f5f9; color: var(--gc-texto); }
.gc-btn-sec:hover { background: #e2e8f0; }
.gc-btn-danger { background: #ef4444; color: #fff; }
.gc-btn-block { width: 100%; }
.gc-btn-mini { background: #f1f5f9; border: none; border-radius: 8px; padding: 6px 9px; cursor: pointer; font-size: 13px; transition: background .15s; }
.gc-btn-mini:hover { background: #e2e8f0; }
.gc-btn-danger-mini:hover { background: #fee2e2; }

/* ---------- Inputs ---------- */
.gc-input { width: 100%; padding: 14px 14px; border: 1.5px solid var(--gc-borda); border-radius: 12px; font-size: 14px; font-family: inherit; transition: border-color .15s; background: #fff; }
.gc-login-card .gc-senha-wrap input, .gc-login-card > form > input[type="email"], .gc-login-card > form > input[type="password"], .gc-login-card > form > input[type="text"] { padding: 15px 14px; }
.gc-input:focus { outline: none; border-color: var(--gc-teal); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
#gc-app-root label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.gc-busca { max-width: 420px; margin-bottom: 16px; }

/* ---------- Tabela ---------- */
.gc-tabela-wrap { overflow-x: auto; }
.gc-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.gc-tabela th { text-align: left; padding: 10px 12px; color: var(--gc-texto-suave); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--gc-borda); }
.gc-tabela td { padding: 12px; border-bottom: 1px solid var(--gc-borda); vertical-align: top; }
.gc-tabela tr:hover td { background: #f8fafc; }
.gc-vazio { text-align: center; color: var(--gc-texto-suave); padding: 32px !important; }
.gc-acoes { white-space: nowrap; }
.gc-vencido td { background: #fff7ed !important; }

/* ---------- Status / badges ---------- */
.gc-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.st-ag { background: #dbeafe; color: #1d4ed8; }
.st-conf { background: #d1fae5; color: #059669; }
.st-ok { background: #ede9fe; color: #6d28d9; }
.st-cancel { background: #fee2e2; color: #dc2626; }
.gc-badge-menor { display: inline-block; margin-left: 8px; padding: 3px 10px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; letter-spacing: .05em; }
.gc-badge-menor-pulsante { display: block; margin: 8px 0; padding: 8px 14px; font-size: 12px; animation: gc-pulso 1.2s ease-in-out infinite; }
@keyframes gc-pulso { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .75; transform: scale(1.02); } }
.gc-badge-vencido { display: inline-block; margin-top: 4px; padding: 2px 8px; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; }

/* ---------- Modal ---------- */
.gc-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.gc-modal { background: var(--gc-card); border-radius: 20px; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; box-shadow: var(--gc-sombra-hover); animation: gc-sobe .2s ease; }
@keyframes gc-sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.gc-modal-head h3 { margin: 0; font-size: 17px; }
.gc-fechar { background: none; border: none; font-size: 16px; cursor: pointer; opacity: .5; }
.gc-fechar:hover { opacity: 1; }
.gc-modal-body { padding: 8px 24px 16px; }
.gc-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 20px; }
.gc-modal-foot .gc-btn { margin-top: 12px; }
.gc-callout-info { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #1e40af; margin-top: 14px; }

/* ---------- Prontuário: entradas do histórico ---------- */
.gc-pr-entrada { border: 1px solid var(--gc-borda); border-left: 4px solid var(--gc-teal); border-radius: 12px; padding: 14px 18px; margin: 12px 0; background: #f8fafc; }
.gc-pr-data { font-size: 13px; font-weight: 800; color: var(--gc-teal); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.gc-pr-texto { font-size: 14px; line-height: 1.6; color: var(--gc-texto); white-space: pre-wrap; }
.gc-doc-linha { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gc-borda); font-size: 14px; }
.gc-doc-linha:last-child { border-bottom: none; }
.gc-doc-linha small { color: var(--gc-texto-suave); }
.gc-link-hist { color: var(--gc-teal); font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--gc-teal); }
.gc-link-hist:hover { color: var(--gc-purple); border-bottom-color: var(--gc-purple); }
.gc-badge-pago { display: inline-block; margin-top: 4px; padding: 2px 8px; background: #d1fae5; color: #059669; font-size: 10px; font-weight: 800; border-radius: 999px; }
.gc-badge-nao-pago { display: inline-block; margin-top: 4px; padding: 2px 8px; background: #fee2e2; color: #dc2626; font-size: 10px; font-weight: 800; border-radius: 999px; }
.gc-tag-lote { display: inline-block; background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; margin: 2px 4px 2px 0; }

/* ---------- Toasts ---------- */
.gc-toast { position: fixed; bottom: 24px; right: 24px; background: var(--gc-texto); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--gc-sombra-hover); opacity: 0; transform: translateY(12px); transition: all .3s; z-index: 200; max-width: 340px; }
.gc-toast.gc-show { opacity: 1; transform: none; }
.gc-toast-ok { background: #059669; }
.gc-toast-erro { background: #dc2626; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .gc-charts-grid { grid-template-columns: 1fr; }
  .gc-sidebar { transform: translateX(-100%); }
  .gc-sidebar.gc-aberta { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .gc-hamburger { display: block; }
  .gc-main-wrap { margin-left: 0 !important; }
  .gc-main { padding: 70px 16px 24px; }
  .gc-app-topbar { height: 58px; flex-basis: 58px; padding: 0 16px 0 64px; }
  .gc-btn-sair-topo { min-width: 76px; padding: 8px 14px; }
  .gc-shell { height: auto; overflow: visible; }
  .gc-main-wrap { height: auto; overflow: visible; }
}

@media (max-width: 600px) {
  .gc-cards-grid { grid-template-columns: 1fr 1fr; }
  .gc-land-nova { flex-direction: column; height: auto; overflow: visible; }
  .gc-land-corpo { flex-direction: column; }
  .gc-landing-esq { padding: 28px 24px; }
  .gc-landing-esq .gc-hero-lista { grid-template-columns: 1fr 1fr; }
  .gc-landing-card { padding: 24px 20px; }
  .gc-landing-card { margin: 24px; padding: 28px 20px; }
  .gc-login-card { padding: 28px 20px; }
  .gc-modal { max-height: 95vh; }
}

/* Botão ▶️ Iniciar atendimento (agenda) */
.gc-btn-iniciar {
  background: linear-gradient(135deg, #0d9488, #6366f1);
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 10px;
  margin-top: 4px;
}
.gc-btn-iniciar:hover { opacity: 0.85; }

/* ---------- FAQ / Ajuda v2 (dropdowns accordion, à prova de tradutor) ---------- */
.gc-faq-topico {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.gc-faq-cabeca {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdfa, #eef2ff);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
}
.gc-faq-titulo-topico { display: inline-flex; align-items: center; gap: 8px; }
.gc-faq-icone { font-size: 18px; }
/* Seta do tópico: triângulo CSS puro (sem caractere que o tradutor mexa) */
.gc-faq-seta {
  width: 0; height: 0; flex: 0 0 auto;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #0d9488;
  transition: transform 0.2s;
}
.gc-faq-cabeca.gc-faq-aberto .gc-faq-seta { transform: rotate(180deg); }
.gc-faq-corpo { display: none; padding: 4px 12px 12px; }
.gc-faq-item { border-bottom: 1px solid #f1f5f9; }
.gc-faq-item:last-child { border-bottom: none; }
.gc-faq-pergunta {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: block;
}
.gc-faq-texto { display: inline; }
/* Sinal +/− da pergunta: pseudo-elemento com border (não é texto, tradutor não toca) */
.gc-faq-pergunta { position: relative; padding-right: 36px; }
.gc-faq-pergunta::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 14px; height: 3px;
  background: #0d9488;
  transform: translateY(-50%);
}
.gc-faq-pergunta::before {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  width: 3px; height: 14px;
  background: #0d9488;
  transform: translateY(-50%);
  transition: opacity 0.15s;
}
.gc-faq-pergunta.gc-faq-aberta::before { opacity: 0; }
.gc-faq-pergunta:hover { color: #0d9488; }
.gc-faq-pergunta:hover::after, .gc-faq-pergunta:hover::before { background: #0d9488; }
.gc-faq-resposta { display: none; padding: 0 8px 14px 8px; }
.gc-faq-resposta p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #475569; }

/* Cards do dashboard clicáveis (detalhamento financeiro) */
.card-fin-recebido, .card-fin-a-receber, .card-fin-inadimplente,
.card-fin-futuras, .card-fin-projecao, .card-fin-mes { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.card-fin-recebido:hover, .card-fin-a-receber:hover, .card-fin-inadimplente:hover,
.card-fin-futuras:hover, .card-fin-projecao:hover, .card-fin-mes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

/* ============================================================
   v1.89.0 — RESPONSIVIDADE FINAL: celular e tablet
   Última camada para vencer regras antigas/duplicadas do tema e do plugin.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }
.gc-shell, .gc-main-wrap, .gc-main, .gc-card, .gc-modal-overlay, .gc-modal,
.gc-login, .gc-login-card, .gc-landing, .gc-land-nova, .gc-land-corpo,
.gc-landing-esq, .gc-landing-card { min-width: 0; }
.gc-titulo, .gc-sub, .gc-card, .gc-modal, .gc-faq-corpo, .gc-pr-texto,
.gc-tabela td, .gc-tabela th { overflow-wrap: anywhere; }
.gc-tabela-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gc-tabela { min-width: 680px; }
.gc-modal-overlay { padding: 12px; }
.gc-modal { width: min(100%, 540px); max-height: calc(100dvh - 24px); }
.gc-main { width: 100%; max-width: 100%; }
.gc-topbar { min-width: 0; flex-wrap: wrap; gap: 10px; }
.gc-topbar > * { min-width: 0; }
.gc-btn, .gc-btn-mini { max-width: 100%; white-space: normal; }
.gc-acoes { white-space: nowrap; }

@media (max-width: 900px) {
  .gc-login, .gc-login-page { min-height: 100dvh; height: auto; padding: 16px; align-items: flex-start; overflow-y: auto; }
  .gc-login-card { width: min(100%, 640px); max-width: 100%; padding: 24px 20px; margin: auto; }
  .gc-main { padding-left: 14px; padding-right: 14px; }
  .gc-cards-grid, .gc-charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-dashboard, .gc-grid, .gc-form-grid { min-width: 0; }
  .gc-land-corpo { min-width: 0; }
  .gc-landing-esq, .gc-landing-card { min-width: 0; width: 100%; max-width: 100%; }
}

@media (max-width: 700px) {
  .gc-cards-grid, .gc-charts-grid { grid-template-columns: 1fr; }
  .gc-main { padding: 68px 12px 24px; }
  .gc-app-topbar { padding-left: 58px; padding-right: 10px; }
  .gc-app-topbar .gc-btn { padding: 8px 10px; min-width: 0; }
  .gc-topbar { align-items: stretch; }
  .gc-topbar .gc-titulo { width: 100%; font-size: 22px; }
  .gc-topbar > div { width: 100%; }
  .gc-topbar .gc-btn { flex: 1 1 auto; }
  .gc-login-card { border-radius: 16px; padding: 20px 16px; }
  .gc-tabs-login { gap: 4px; }
  .gc-tab-login { padding: 9px 5px; font-size: 13px; }
  .gc-modal-overlay { align-items: flex-start; padding: 8px; }
  .gc-modal { border-radius: 14px; max-height: calc(100dvh - 16px); }
  .gc-modal-foot { flex-wrap: wrap; gap: 8px; }
  .gc-modal-foot .gc-btn { flex: 1 1 140px; }
  .gc-land-topo { padding: 10px 16px; }
  .gc-land-logo img { height: 48px; max-width: 160px; }
  .gc-landing-esq { padding: 24px 18px; }
  .gc-landing-esq h1 { font-size: clamp(24px, 8vw, 32px); }
  .gc-landing-esq .gc-hero-lista { grid-template-columns: 1fr; }
  .gc-landing-card { margin: 0; padding: 22px 16px 28px; }
  .gc-landing-card form, .gc-landing-card input, .gc-landing-card select, .gc-landing-card textarea { width: 100%; }
  .gc-land-nova { min-height: 100dvh; }
}

@media (max-width: 420px) {
  .gc-main { padding-left: 8px; padding-right: 8px; }
  .gc-login { padding: 8px; }
  .gc-login-card { padding: 18px 12px; }
  .gc-kpi-card { padding: 12px; }
  .gc-btn { font-size: 13px; }
  .gc-topbar .gc-btn { width: 100%; }
}

/* v1.89.2: telefone clicável em celular */
.gc-link-telefone, .gc-link-whatsapp { display:inline-block; margin:2px 6px 2px 0; text-decoration:none; }
.gc-link-telefone { color:#2563eb; }
.gc-link-whatsapp { color:#16a34a; font-weight:600; }
@media (min-width:701px) { .gc-link-whatsapp { display:none; } }

/* v1.91.0: botão Agendar na lista de clientes */
.gc-btn-agendar { margin-top: 6px; font-size: 12px; padding: 5px 12px; }

/* v1.92.9: registro profissional no formato de cada conselho + caixa auxiliar */
.gc-reg-wrap { margin-top: 4px; }
.gc-reg-titulo { display: block; }
.gc-reg-linha { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.gc-reg-sigla { flex: 0 0 auto; align-self: flex-end; padding: 0 12px; height: 44px; line-height: 44px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b71c1c; font-weight: 800; letter-spacing: .5px; margin-bottom: 10px; }
.gc-reg-campo { flex: 1 1 120px; min-width: 110px; }
.gc-reg-campo small { display: block; font-size: 12px; color: var(--gc-texto-suave); margin-bottom: 2px; }
.gc-reg-campo .gc-input { width: 100%; box-sizing: border-box; }
.gc-reg-ajuda { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #1e3a8a; line-height: 1.55; margin: 2px 0 12px; }
.gc-reg-ajuda code { background: #fff; border: 1px solid #dbeafe; border-radius: 6px; padding: 1px 6px; font-size: 12.5px; color: #0f172a; white-space: nowrap; }
.gc-reg-ajuda-topo { font-weight: 700; margin-bottom: 4px; }
.gc-reg-dica { color: #334155; margin-top: 4px; }
.gc-reg-legado { margin-top: 6px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 8px; }
.gc-reg-previa { margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px dashed #bfdbfe; color: #475569; }
.gc-reg-previa.gc-reg-ok { border: 1px solid #86efac; background: #f0fdf4; color: #166534; }
.gc-reg-previa.gc-reg-pendente { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
.gc-reg-consulta { margin-top: 6px; font-size: 12px; color: #475569; }
.gc-reg-consulta a { color: #1d4ed8; font-weight: 600; }
@media (max-width: 520px) { .gc-reg-campo { flex-basis: 100%; } .gc-reg-sigla { display: none; } }
.gc-reg-consulta-obs { color: #64748b; }
