/*
 * LC Solutions 7.17.7 — Tipografia Global Definitiva
 *
 * Esta folha deve ser carregada POR ÚLTIMO, após os CSS específicos
 * de cada módulo. O objetivo é estabelecer um piso real de legibilidade
 * sem alterar regras de negócio, banco, JavaScript ou integrações.
 */

:root{
  --lc-type-base:16px;
  --lc-type-body:15px;
  --lc-type-ui:14px;
  --lc-type-small:14px;
  --lc-type-nav:14px;
  --lc-type-h1:28px;
  --lc-type-h2:22px;
  --lc-type-h3:18px;
  --lc-type-h4:16px;
}

html{
  font-size:16px !important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  font-size:var(--lc-type-base) !important;
  line-height:1.5 !important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

/* =========================================================
   1. TEXTO NORMAL / OPERACIONAL
   ========================================================= */
body p,
body li,
body dd,
body dt,
body blockquote,
body address,
body legend,
body .description,
body .subtitle,
body .text,
body .content-text{
  font-size:var(--lc-type-body) !important;
  line-height:1.5 !important;
}

/* =========================================================
   2. TEXTO SECUNDÁRIO — NUNCA MICROSCÓPICO
   ========================================================= */
body small,
body .small,
body .muted,
body .text-muted,
body .help,
body .hint,
body .caption,
body .meta,
body .eyebrow,
body .subtext,
body .micro,
body .note-text,
body .helper,
body .helper-text,
body [class*="subtitle"],
body [class*="meta"],
body [class*="caption"]{
  font-size:var(--lc-type-small) !important;
  line-height:1.4 !important;
}

/* =========================================================
   3. CABEÇALHO / NAVEGAÇÃO
   ========================================================= */
body .lc627-nav>a,
body .lc627-menu-link,
body .lc627-menu-dropdown>a,
body nav a,
body .nav a,
body .navbar a,
body .menu a,
body .sidebar a,
body .dropdown-menu a,
body .dropdown-item,
body .tabs a,
body .tab,
body .nav-link,
body .lc627-tools .text,
body .who b,
body .who small{
  font-size:var(--lc-type-nav) !important;
  line-height:1.35 !important;
}

/* =========================================================
   4. BOTÕES E CAMPOS
   ========================================================= */
body label,
body .form-label,
body button,
body .btn,
body .button,
body input[type="button"],
body input[type="submit"],
body input[type="reset"]{
  font-size:var(--lc-type-ui) !important;
  line-height:1.35 !important;
}

body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body select,
body textarea{
  font-size:15px !important;
  line-height:1.4 !important;
}

body ::placeholder{
  font-size:14px !important;
  opacity:.78;
}

/* =========================================================
   5. TABELAS / LISTAGENS
   ========================================================= */
body table,
body .table{
  font-size:var(--lc-type-ui) !important;
}

body table th,
body table td,
body .table th,
body .table td,
body [class*="table"] th,
body [class*="table"] td{
  font-size:var(--lc-type-ui) !important;
  line-height:1.4 !important;
}

body table th,
body .table th,
body [class*="table"] th{
  font-weight:700 !important;
}

/* =========================================================
   6. CARDS / KPIs / RESUMOS / LISTAS
   Cobertura propositalmente ampla para os módulos legados,
   que usam muitos nomes próprios de classe.
   ========================================================= */
body [class*="card"] p,
body [class*="card"] small,
body [class*="card"] span,
body [class*="kpi"] small,
body [class*="kpi"] span,
body [class*="stat"] small,
body [class*="stat"] span,
body [class*="summary"] small,
body [class*="summary"] span,
body [class*="list"] small,
body [class*="list"] span,
body [class*="row"] small,
body [class*="quick"] small,
body [class*="quick"] span,
body [class*="strip"] small,
body [class*="strip"] span{
  font-size:var(--lc-type-small) !important;
  line-height:1.4 !important;
}

/* Links e ações dentro de cards/listagens */
body [class*="card"] a,
body [class*="list"] a,
body [class*="quick"] a,
body [class*="strip"] a,
body .bottomlink,
body .manage{
  font-size:var(--lc-type-ui) !important;
}

/* Badges/status legíveis sem ficarem gigantes */
body .badge,
body .pill,
body .tag,
body .status,
body [class*="badge"],
body [class*="pill"],
body [class*="status"]{
  font-size:13px !important;
  line-height:1.2 !important;
}

/* =========================================================
   7. TÍTULOS — HIERARQUIA CONSISTENTE
   ========================================================= */
body h1{
  font-size:var(--lc-type-h1) !important;
  line-height:1.18 !important;
}
body h2{
  font-size:var(--lc-type-h2) !important;
  line-height:1.25 !important;
}
body h3{
  font-size:var(--lc-type-h3) !important;
  line-height:1.3 !important;
}
body h4{
  font-size:var(--lc-type-h4) !important;
  line-height:1.35 !important;
}
body h5,
body h6{
  font-size:15px !important;
  line-height:1.4 !important;
}

/* =========================================================
   8. DASHBOARD EXECUTIVO 6.34.4
   Regras específicas para corrigir o que ainda ficou pequeno.
   ========================================================= */
body .lc6344-welcome span,
body .lc6344-welcome p,
body .lc6344-health small,
body .lc6344-health span,
body .lc6344-kpi span,
body .lc6344-kpi small,
body .lc6344-strip span,
body .lc6344-strip small,
body .lc6344-card header span,
body .lc6344-card header>a,
body .lc6344-card header>strong small,
body .lc6344-months span,
body .lc6344-summary span,
body .lc6344-list strong,
body .lc6344-list small,
body .lc6344-empty,
body .lc6344-shortcuts strong,
body .lc6344-shortcuts span{
  font-size:14px !important;
  line-height:1.4 !important;
}

body .lc6344-card header h3,
body .lc6344-card header>strong,
body .lc6344-summary strong{
  font-size:15px !important;
}

body .lc6344-orders td,
body .lc6344-orders th{
  font-size:14px !important;
}

body .lc6344-badge{
  font-size:13px !important;
}

/* =========================================================
   9. INTERFACE LC627 — elimina textos residuais de 9/10/11px
   ========================================================= */
body .lc627-page-title small,
body .lc627-page-title p,
body .lc627-welcome p,
body .lc627-kpi small,
body .lc627-kpi em,
body .lc627-card>header a,
body .lc627-card .select,
body .months,
body .orderitem p,
body .finance4 small,
body .lc627-footer,
body .lc627-alert b,
body .lc627-alert p,
body .lc627-alert a,
body .service-name b,
body .simple-row b,
body .service-name small,
body .simple-row small,
body .lc627-quickstrip b,
body .lc627-quickstrip small,
body .empty{
  font-size:14px !important;
}

/* =========================================================
   10. NÃO INTERFERIR EM ÍCONES / GRÁFICOS
   ========================================================= */
body svg,
body i,
body .icon,
body .ic,
body .fa,
body .fas,
body .far,
body .fab,
body .bi,
body [class^="icon-"],
body [class*=" icon-"]{
  /* sem font-size forçado */
}

body code,
body pre,
body kbd,
body samp{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace !important;
}

/* =========================================================
   11. MOBILE
   ========================================================= */
@media(max-width:767px){
  html{font-size:16px !important;}
  body{font-size:16px !important;}

  body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  body select,
  body textarea{
    font-size:16px !important;
  }

  body h1{font-size:24px !important;}
  body h2{font-size:21px !important;}
  body h3{font-size:18px !important;}
}
