/* ===================================================
 * LAYOUT DA APLICAÇÃO
 * Sidebar (slim + flyout), navbar e área de conteúdo.
 * Cores sempre via tokens --app-*: o modo escuro só os redefine.
 * =================================================== */

/* ===================================================
 * VARIÁVEIS E REGRAS BASE (DESKTOP)
 * =================================================== */
:root {
  --slim-width-collapsed: 70px;
  --slim-width-expanded: 240px;
  --flyout-width: 230px;
  --navbar-height: 64px;
  --transition-speed: 0.25s;
  --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);

  /* Tokens de cor (modo claro) */
  --app-bg: #f6f8fc;
  --app-surface: #ffffff;
  --app-border: #e2e8f0;
  --app-text: #0f172a;
  --app-text-2: #475569;
  --app-muted: #64748b;
  --app-subtle: #94a3b8;
  --app-hover: #f8fafc;
  --app-active: #f1f5f9;
  --app-scroll: #cbd5e1;
  --app-primary: #2563eb;
  --app-primary-soft: color-mix(in srgb, var(--app-primary) 11%, var(--app-surface));
  --app-on-primary: #ffffff;
  --app-info: #3b82f6;
  --app-success: #10b981;
  --app-danger: #ef4444;
}

/* Tokens de cor (modo escuro) — activado por data-bs-theme="dark" no <html> */
:root[data-bs-theme="dark"] {
  --app-bg: #0b1120;
  --app-surface: #111827;
  --app-border: #1f2a3c;
  --app-text: #e5e7eb;
  --app-text-2: #cbd5e1;
  --app-muted: #94a3b8;
  --app-subtle: #64748b;
  --app-hover: #172033;
  --app-active: #1c2840;
  --app-scroll: #334155;
  --app-primary: #4f8cff;
  --app-primary-soft: color-mix(in srgb, var(--app-primary) 18%, var(--app-surface));
  --app-on-primary: #0b1120;
}

body {
  background-color: var(--app-bg);
  color: var(--app-text-2);
}

.sidebar-slim {
  background-color: var(--app-surface);
}

body {
  overflow-x: hidden;
}

/* ===================================================
 * 1. BARRA PRINCIPAL (SLIM)
 * =================================================== */
.sidebar-slim {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--slim-width-collapsed);
  z-index: 1045;
  
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  
  white-space: nowrap;
  border-right: 0.1rem solid var(--app-border) !important;
  transition: width var(--transition-speed) var(--transition-curve), left var(--transition-speed) var(--transition-curve);
  box-shadow: 1px 0 0 var(--app-hover);
}

@media (min-width: 992px) {
  .sidebar-slim:hover,
  body.sidebar-expanded .sidebar-slim {
    width: var(--slim-width-expanded);
  }
}

/* BRAND CONTAINER (FIXO NO TOPO) */
.sidebar-slim .brand-container {
  height: 64px;
  padding: 0 0.6rem;
  display: flex;
  align-items: center;
  flex-shrink: 0 !important;
  background-color: inherit;
  z-index: 10;
}

.sidebar-slim .brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sidebar-slim .brand-wrapper {
  min-width: 0;
}

/* Logo do colégio: quadrado branco em ambos os temas (as cores do logo precisam de fundo claro) */
.sidebar-slim .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;
}

.sidebar-slim .brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-slim .brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-slim .brand-title {
  overflow: hidden;
  color: var(--app-primary);
  font-weight: 700;
  font-size: 1rem;
  text-overflow: ellipsis;
}

.sidebar-slim .brand-sub {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  .sidebar-slim:hover .brand-text,
  body.sidebar-expanded .brand-text {
    opacity: 1;
  }
}

/* NAVEGAÇÃO SLIM (FLUIDA COM SCROLL À ESQUERDA — PerfectScrollbar) */
.slim-menu-nav {
  position: relative;
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;

  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* Barra de scroll do PerfectScrollbar na esquerda
   (!important porque a lib escreve a posição em linha a partir da direita) */
.slim-menu-nav > .ps__rail-y {
  right: auto !important;
  left: 0 !important;
}

.slim-item {
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--app-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}

.slim-item i {
  font-size: 1.3rem;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slim-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 0.85rem;
  text-align: left;
  flex: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slim-arrow {
  font-size: 1rem;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (min-width: 992px) {
  .sidebar-slim:hover .slim-label,
  .sidebar-slim:hover .slim-arrow,
  body.sidebar-expanded .slim-label,
  body.sidebar-expanded .slim-arrow {
    opacity: 1;
  }
}

.slim-item:hover {
  color: var(--app-subtle);
  background-color: var(--app-hover);
}

.slim-item.active {
  background-color: var(--app-hover);
  color: var(--app-primary);
}

.slim-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background-color: var(--app-primary);
  border-radius: 0 4px 4px 0;
}

/* ===================================================
 * SEÇÃO FIXA INFERIOR (SLIM FOOTER)
 * =================================================== */
.slim-footer {
  flex-shrink: 0 !important;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--app-hover);
  background-color: inherit;
}

.slim-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--app-primary);
  color: var(--app-on-primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===================================================
 * 2. BARRA SECUNDÁRIA (FLYOUT)
 * =================================================== */
.sidebar-flyout {
  position: fixed;
  top: 0;
  left: var(--slim-width-collapsed);
  bottom: 0;
  width: var(--flyout-width);
  background-color: var(--app-surface);
  border-right: 1px solid var(--app-border);
  z-index: 1040;
  
  display: flex;
  flex-direction: column;
  overflow: hidden; 
  transition: left var(--transition-speed) var(--transition-curve);
}

@media (min-width: 992px) {
  .sidebar-slim:hover + .sidebar-flyout,
  body.sidebar-expanded .sidebar-flyout {
    left: var(--slim-width-expanded);
  }
}

.flyout-panel {
  display: none; 
  height: 100%;
  flex-direction: column;
}

.flyout-panel.active {
  display: flex;
}

.flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.1rem solid var(--app-border);
  box-sizing: border-box;
  height: 64px;
  padding: 0 1rem;
  flex-shrink: 0;
  background-color: var(--app-surface);
}

.flyout-header h5 {
  font-weight: 700;
  color: var(--app-text);
  margin: 0;
  font-size: 1.1rem;
}

.btn-close-flyout-mobile {
  display: none;
  background: none;
  border: none;
  color: var(--app-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

.flyout-panel .flyout-body {
  position: relative;
  padding: 1.5rem 1rem;
  flex: 1 1 auto;
  min-height: 0;
}


.flyout-section-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--app-subtle);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.flyout-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.flyout-links li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  color: var(--app-text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.flyout-links li a:hover {
  color: var(--app-primary);
  background-color: var(--app-hover);
}

.flyout-links li.active a {
  color: var(--app-primary);
  background-color: var(--app-active);
  font-weight: 600;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot.orange { background-color: var(--dot-1, var(--app-primary)); }
.dot.blue { background-color: var(--dot-2, var(--app-info)); }
.dot.green { background-color: var(--dot-3, var(--app-success)); }

/* ===================================================
 * 3. NAVBAR E CONTEÚDO PRINCIPAL
 * =================================================== */
.layout-navbar.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--navbar-height);
  max-width: none;
  margin: 0;
  padding: 0 1.5rem;
  background-color: var(--app-surface) !important;
  border-bottom: 1px solid var(--app-border);
  box-shadow: none;
}

.app-navbar .navbar-start,
.app-navbar .navbar-end {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-navbar .navbar-start {
  flex: 1 1 auto;
  gap: 0.75rem;
  min-width: 0;
}

/* Botões de ícone */
.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--app-text-2);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-icon-btn:hover {
  background-color: var(--app-active);
  color: var(--app-text);
}

.nav-icon-btn .notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--app-danger);
  box-shadow: 0 0 0 2px var(--app-surface);
}

/* Pesquisa global */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 380px;
  height: 40px;
  padding: 0 0.5rem 0 0.75rem;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background-color: var(--app-surface);
  color: var(--app-muted);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-search:focus-within {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-soft);
}

.nav-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--app-text);
  font-size: 0.875rem;
}

.nav-search input::placeholder {
  color: var(--app-subtle);
}

.nav-search kbd {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background-color: var(--app-hover);
  color: var(--app-muted);
  font-size: 0.7rem;
  font-family: inherit;
  box-shadow: none;
  white-space: nowrap;
}

/* Botão do assistente */
/* Selector da unidade (Colégio / Centro Infantil) */
.nav-unit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  margin-right: 0.5rem;
  padding: 0 0.7rem 0 0.85rem;
  border: 0;
  border-radius: 10px;
  background-color: var(--app-primary-soft);
  color: var(--app-primary);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.nav-unit-btn:hover {
  filter: brightness(0.97);
}

.nav-unit-btn:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

.nav-unit-caret {
  font-size: 1rem;
  opacity: 0.8;
}

/* Separador antes do utilizador */
.nav-divider {
  width: 1px;
  height: 24px;
  margin: 0 0.75rem;
  background-color: var(--app-border);
}

/* Utilizador: apenas a inicial (nome e cargo no title/aria-label) */
.nav-user {
  display: inline-flex;
  border-radius: 50%;
  text-decoration: none;
}

.nav-user:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--app-primary);
  color: var(--app-on-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: filter 0.15s ease;
}

.nav-user:hover .nav-user-avatar {
  filter: brightness(1.08);
}

@media (max-width: 991.98px) {
  .layout-navbar.app-navbar {
    padding: 0 1rem;
  }

  .nav-search kbd,
  .navbar-end .nav-optional {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .nav-search {
    display: none;
  }
}

/* A página não usa o scroll da janela: a .layout-page é a área de scroll
   (PerfectScrollbar, ver "SCROLL" mais abaixo) e o navbar fica sticky dentro dela */
html,
body {
  height: 100%;
  overflow: hidden;
}

.layout-page {
  position: relative;
  margin-left: calc(var(--slim-width-collapsed) + var(--flyout-width)) !important;
  transition: margin-left var(--transition-speed) var(--transition-curve);
  height: 100vh;
  height: 100dvh;
}

/* O tema deixa o content-wrapper encolher e ter scroll próprio; aqui ele cresce
   com o conteúdo e quem faz scroll é a .layout-page */
.layout-page > .content-wrapper {
  display: block;
  flex: 1 0 auto;
  height: auto;
  overflow: visible;
}

@media (min-width: 992px) {
  .sidebar-slim:hover ~ .layout-page,
  body.sidebar-expanded .layout-page {
    margin-left: calc(var(--slim-width-expanded) + var(--flyout-width)) !important;
  }
}

body.flyout-closed .sidebar-flyout {
  left: -300px !important;
}

body.flyout-closed .layout-page {
  margin-left: var(--slim-width-collapsed) !important;
}

@media (min-width: 992px) {
  body.flyout-closed.sidebar-expanded .layout-page,
  body.flyout-closed .sidebar-slim:hover ~ .layout-page {
    margin-left: var(--slim-width-expanded) !important;
  }
}

.layout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1035;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (max-width: 991.98px) {
  .layout-page {
    margin-left: 0 !important;
  }

  .sidebar-slim {
    left: -300px;
    width: 70px !important;
  }

  .sidebar-flyout {
    left: -300px;
    width: 220px !important;
  }

  .btn-close-flyout-mobile {
    display: block;
  }

  body.mobile-menu-open .sidebar-slim {
    left: 0;
  }

  body.mobile-menu-open .sidebar-flyout {
    left: 70px;
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
  }

  body.mobile-menu-open .layout-overlay {
    display: block;
    opacity: 1;
  }
}

/* Ligação "saltar para o conteúdo" (visível apenas com foco do teclado) */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background-color: var(--app-primary);
  color: var(--app-on-primary);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--app-on-primary);
}

/* ===================================================
 * SCROLL DO MENU E DA PÁGINA (PerfectScrollbar)
 * Inicializado em layout.js; sem a lib, cai para o scroll nativo.
 * =================================================== */
.slim-menu-nav:not(.ps),
.flyout-panel .flyout-body:not(.ps),
.layout-page:not(.ps) {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scroll da página: barra por cima do navbar sticky */
.layout-page > .ps__rail-y {
  z-index: 1031;
  width: 10px;
  background-color: transparent !important;
}

.layout-page > .ps__rail-y > .ps__thumb-y {
  right: 2px;
  width: 6px;
  border-radius: 10px;
  background-color: var(--app-scroll);
}

.layout-page > .ps__rail-y:hover > .ps__thumb-y,
.layout-page > .ps__rail-y.ps--clicking > .ps__thumb-y {
  width: 8px;
  background-color: var(--app-subtle);
}

.layout-page > .ps__rail-x {
  display: none !important;
}

.sidebar-slim .ps__rail-y,
.sidebar-flyout .ps__rail-y {
  width: 8px;
  background-color: transparent !important;
}

.sidebar-slim .ps__thumb-y,
.sidebar-flyout .ps__thumb-y {
  right: 2px;
  width: 4px;
  border-radius: 10px;
  background-color: var(--app-scroll);
}

.sidebar-slim .ps__rail-y:hover > .ps__thumb-y,
.sidebar-flyout .ps__rail-y:hover > .ps__thumb-y,
.sidebar-slim .ps__rail-y.ps--clicking > .ps__thumb-y,
.sidebar-flyout .ps__rail-y.ps--clicking > .ps__thumb-y {
  width: 6px;
  background-color: var(--app-subtle);
}

.slim-menu-nav > .ps__rail-y > .ps__thumb-y {
  right: auto;
  left: 2px;
}

/* ===================================================
 * APARÊNCIA (definida em Configurações > Aparência)
 * Atributos no <html> aplicados por AppAppearance (layout.js)
 * =================================================== */

/* Cor de destaque: alimenta os tokens da app e os botões Bootstrap */
/* Tema Colégio (predefinição): cores do logótipo
   roxo #4e3372 · verde-azulado #008d95 · laranja #ee7a01 · vermelho #d21b1b */
:root {
  --brand-purple: #4e3372;
  --brand-teal: #008d95;
  --brand-orange: #ee7a01;
  --brand-red: #d21b1b;
}

:root[data-accent="colegio"] {
  --app-primary: var(--brand-purple);
  --bs-primary: #4e3372;
  --bs-primary-rgb: 78, 51, 114;
  --bs-primary-hover: #3f285e;
  --bs-primary-active: #3f285e;

  /* Neutros com um leve tom do roxo do logo */
  --app-bg: #f8f6fb;
  --app-border: #e9e4f0;
  --app-text: #221a2e;
  --app-text-2: #4a4357;
  --app-muted: #6d6680;
  --app-subtle: #9b94aa;
  --app-hover: #faf8fc;
  --app-active: #f2eef8;
  --app-scroll: #d8d0e4;
  --app-info: var(--brand-teal);
  --app-danger: var(--brand-red);

  /* Pontos do menu: laranja e verde-azulado do logo */
  --dot-1: var(--brand-orange);
  --dot-2: var(--brand-teal);
  --dot-3: var(--brand-purple);
}

:root[data-accent="colegio"][data-bs-theme="dark"] {
  --brand-purple: #a68bd3;
  --brand-teal: #3cc4cb;
  --brand-orange: #f6a24a;
  --brand-red: #f06a6a;
  --bs-primary: #a68bd3;
  --bs-primary-rgb: 166, 139, 211;
  --bs-primary-hover: #8f72c2;
  --bs-primary-active: #8f72c2;

  --app-bg: #110d18;
  --app-surface: #19141f;
  --app-border: #2b2337;
  --app-text: #ece8f3;
  --app-text-2: #cfc8db;
  --app-muted: #a097ad;
  --app-subtle: #6f6680;
  --app-hover: #201a29;
  --app-active: #282033;
  --app-scroll: #3d3350;
}

:root[data-accent="indigo"] {
  --app-primary: #4f46e5;
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-primary-hover: #4338ca;
  --bs-primary-active: #4338ca;
}
:root[data-accent="indigo"][data-bs-theme="dark"] {
  --app-primary: #818cf8;
  --bs-primary: #818cf8;
  --bs-primary-rgb: 129, 140, 248;
  --bs-primary-hover: #4f46e5;
  --bs-primary-active: #4f46e5;
}
:root[data-accent="blue"] {
  --app-primary: #2563eb;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-primary-hover: #1d4ed8;
  --bs-primary-active: #1d4ed8;
}
:root[data-accent="blue"][data-bs-theme="dark"] {
  --app-primary: #4f8cff;
  --bs-primary: #4f8cff;
  --bs-primary-rgb: 79, 140, 255;
  --bs-primary-hover: #2563eb;
  --bs-primary-active: #2563eb;
}
:root[data-accent="emerald"] {
  --app-primary: #059669;
  --bs-primary: #059669;
  --bs-primary-rgb: 5, 150, 105;
  --bs-primary-hover: #047857;
  --bs-primary-active: #047857;
}
:root[data-accent="emerald"][data-bs-theme="dark"] {
  --app-primary: #34d399;
  --bs-primary: #34d399;
  --bs-primary-rgb: 52, 211, 153;
  --bs-primary-hover: #059669;
  --bs-primary-active: #059669;
}
:root[data-accent="violet"] {
  --app-primary: #7c3aed;
  --bs-primary: #7c3aed;
  --bs-primary-rgb: 124, 58, 237;
  --bs-primary-hover: #6d28d9;
  --bs-primary-active: #6d28d9;
}
:root[data-accent="violet"][data-bs-theme="dark"] {
  --app-primary: #a78bfa;
  --bs-primary: #a78bfa;
  --bs-primary-rgb: 167, 139, 250;
  --bs-primary-hover: #7c3aed;
  --bs-primary-active: #7c3aed;
}
:root[data-accent="rose"] {
  --app-primary: #e11d48;
  --bs-primary: #e11d48;
  --bs-primary-rgb: 225, 29, 72;
  --bs-primary-hover: #be123c;
  --bs-primary-active: #be123c;
}
:root[data-accent="rose"][data-bs-theme="dark"] {
  --app-primary: #fb7185;
  --bs-primary: #fb7185;
  --bs-primary-rgb: 251, 113, 133;
  --bs-primary-hover: #e11d48;
  --bs-primary-active: #e11d48;
}
:root[data-accent="orange"] {
  --app-primary: #ea580c;
  --bs-primary: #ea580c;
  --bs-primary-rgb: 234, 88, 12;
  --bs-primary-hover: #c2410c;
  --bs-primary-active: #c2410c;
}
:root[data-accent="orange"][data-bs-theme="dark"] {
  --app-primary: #fb923c;
  --bs-primary: #fb923c;
  --bs-primary-rgb: 251, 146, 60;
  --bs-primary-hover: #ea580c;
  --bs-primary-active: #ea580c;
}

/* Texto sobre a cor de destaque (escuro no modo escuro, onde os destaques são claros) */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  color: var(--app-on-primary) !important;
}

/* Cabeçalho fixo (sticky, por defeito) ou estático */
:root[data-header="static"] .layout-navbar.app-navbar {
  position: relative;
}

/* Largura do conteúdo: padrão (container-xxl), total ou estreita */
:root[data-content-width="full"] .content-wrapper > .container-xxl {
  max-width: none;
}

:root[data-content-width="narrow"] .content-wrapper > .container-xxl {
  max-width: 1140px;
}

/* Tamanho do texto */
:root[data-font="sm"] {
  font-size: 93.75%;
}

:root[data-font="lg"] {
  font-size: 106.25%;
}
