/*
 * Fonte do sistema: Google Sans Flex (Google, licença SIL Open Font License 1.1, uso comercial livre).
 * Arquivos em public/assets/fonts/google-sans-flex (variável: pesos 100 a 1000). Carregada nas telas com layout próprio
 * e, pelos temas, junto do CSS das telas internas ($legacyCss). Trocar a fonte = mudar --app-font aqui.
 */
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 100 1000;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google-sans-flex/google-sans-flex-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 100 1000;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google-sans-flex/google-sans-flex-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --app-font: 'Google Sans Flex', 'Inter var', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans: var(--app-font); /* o Tailwind dos temas lê esta variável */
}

/* "html body" e os seletores com .legacy-scope ganham dos estilos do tema e do Bootstrap sem precisar de !important. */
html body,
html body .legacy-scope,
html body .legacy-scope :where(input, button, select, textarea, .btn, .form-control, .form-select) {
  font-family: var(--app-font);
}

/* Peso e tamanho (a Google Sans Flex em 400 fica fina em telas pequenas; o ZapSign usa mais firme) */
html body { font-weight: 500; }
html body .legacy-scope { font-weight: 500; }

/* Menu lateral (tema Able): negrito e maior; submenu um pouco mais leve */
html body .pc-sidebar .pc-navbar .pc-link,
html body .pc-sidebar .pc-navbar .pc-mtext { font-size: 16px; font-weight: 700; }
html body .pc-sidebar .pc-navbar .pc-submenu .pc-link { font-size: 15px; font-weight: 600; }
html body .pc-sidebar .pc-caption label { font-weight: 700; letter-spacing: .04em; }
/* Menu lateral do layout de reserva */
html body .sidebar-wrapper .metismenu a { font-size: 16px; font-weight: 700; }
html body .sidebar-wrapper .metismenu ul a { font-size: 15px; font-weight: 600; }

/* Títulos, rótulos, tabelas e botões mais firmes */
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 { font-weight: 700; }
html body .legacy-scope :where(h1, h2, h3, h4, h5, h6, th, .card-header, .form-label, label, .fw-semibold, .btn, strong, b) { font-weight: 700; }
html body .legacy-scope :where(.text-secondary, .small, small, .form-text, .text-muted) { font-weight: 500; }
html body .pc-header .pc-head-link, html body .pc-header .btn { font-weight: 600; }

/* Painel (tema Able) e tamanho base */
html body { font-size: 15px; }
html body .ab-page-title, html body .ab-kpi-value, html body .ab-create-label { font-weight: 700; }
html body .ab-kpi-label, html body .ab-link, html body .ab-badge { font-weight: 600; }
html body .ab-kpi-label { font-size: 15px; }
html body .legacy-scope { font-size: 15px; }
