/* ==========================================================================
   TIPOGRAFIA UNIFICADA (moderna / harmonica)
   - Cole no FINAL do app-layout_overrides.css
   ========================================================================== */

/* 1) Uma fonte principal (moderna, nativa) */
:root{
  --k-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --k-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 2) Escala tipografica (simples e consistente) */
  --k-text-xs: 12px;
  --k-text-sm: 13px;
  --k-text-md: 14px;   /* base */
  --k-text-lg: 16px;
  --k-text-xl: 18px;
  --k-text-2xl: 22px;

  --k-line: 1.35;
  --k-weight-regular: 400;
  --k-weight-medium: 500;
  --k-weight-semibold: 600;
  --k-weight-bold: 700;
}

/* 3) Forçar tudo a herdar a mesma fonte e base */
html, body{
  font-family: var(--k-font) !important;
  font-size: var(--k-text-md) !important;
  line-height: var(--k-line) !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4) Reset em elementos comuns (evita “fontes saltando”) */
*{
  font-family: inherit;
}
/* Inputs, labels, botões, menus, tabelas */
.p-inputtext,
.p-button,
.p-menubutton,
.p-menu,
.p-menubar,
.p-panel,
.p-card,
.p-datatable,
.p-dialog,
.p-toast,
.p-tabview,
.p-breadcrumb,
.p-dropdown,
.p-multiselect,
.p-calendar input,
.p-inputnumber input,
.p-password input{
  font-family: var(--k-font) !important;
  font-size: var(--k-text-md);
}

/* 7) Ajuste fino: botões pequenos e labels */
.p-button.p-button-sm{
  font-size: var(--k-text-sm);
}
.p-button .p-button-label{
  font-weight: var(--k-weight-medium);
}

/* 8) Labels e textos auxiliares */
label,
.p-outputlabel,
.text-sm{ font-size: var(--k-text-sm) !important; }

.small, .help-text, .muted, .text-600{
  font-size: var(--k-text-sm);
}

/* 9) Títulos consistentes */
h1{ font-size: var(--k-text-2xl); font-weight: var(--k-weight-bold); letter-spacing: -.2px; }
h2{ font-size: var(--k-text-xl);  font-weight: var(--k-weight-bold); letter-spacing: -.2px; }
h3{ font-size: var(--k-text-lg);  font-weight: var(--k-weight-semibold); }
h4{ font-size: var(--k-text-md);  font-weight: var(--k-weight-semibold); }

/* 10) Seu logo (garante harmonia) */
.kds-logo-text__title{
  font-family: var(--k-font) !important;
  font-weight: 800;
  letter-spacing: -.2px;
}
.kds-logo-text__subtitle{
  font-family: var(--k-font) !important;
  font-weight: var(--k-weight-regular);
}

/* 11) Números/IDs podem ficar melhores em mono (opcional) */
.kds-mono,
.code,
pre, code{
  font-family: var(--k-mono) !important;
  font-size: 13px;
}

/* 12) Dark mode tipografia (igual, só cores mudam) */
body.dark, body.dark .ui-widget, body.dark .p-component{
  font-family: var(--k-font) !important;
}

/* PrimeIcons */
.pi, .pi:before{
  font-family: "primeicons" !important;
}

/* Font Awesome (ajuste conforme teu pack) */
.fa, .fas, .far, .fal, .fab,
.fa:before, .fas:before, .far:before, .fal:before, .fab:before{
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}
.fab, .fab:before{
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}
