/* Gestão de Férias — Folha de estilo principal
   Reconstruído do zero seguindo fielmente o site de referência (Obra Viva):
   sidebar escura sólida, cor de destaque única (dourado), cantos arredondados
   (8-12px), sombras reais com brilho colorido, badges em pílula. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }

/* ═══ Barra de rolagem estilizada (fina, nas cores do site) ═══ */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, .page-header h1, .auth-panel-title, .sidebar-brand-name, .modal-header h3, .stat-value {
  font-family: 'Sora', 'Inter', sans-serif;
}
.form-label, .sidebar-group-label, .stat-label { letter-spacing: 0.3px; }
.hidden { display: none !important; }
.screen { min-height: 100vh; }

/* ═══ Acessibilidade — foco visível ao navegar por teclado ═══ */
a:focus-visible, button:focus-visible, .btn:focus-visible, .icon-btn:focus-visible,
.nav-item:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.calendar-day:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm);
}
.sidebar a:focus-visible, .sidebar button:focus-visible { outline-color: var(--highlight); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 500; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ═══ Autenticação ═══ */
.auth-layout--split {
  display: grid; grid-template-columns: minmax(380px, 42%) 1fr; min-height: 100vh; width: 100%;
}

/* Painel de imagem/marca (azul, com padrão decorativo simulando foto) */
.auth-photo-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-start; padding: 48px; padding-top: 44px; min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    linear-gradient(155deg, var(--accent) 0%, var(--accent-hover) 65%, #0d1f4d 100%);
}
.auth-photo-overlay {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, transparent 1px, transparent 26px);
}
.auth-illustration {
  position: absolute; right: -40px; bottom: -30px; width: 380px; height: 380px;
  opacity: .16; pointer-events: none; color: #fff;
}
.auth-illustration.top-variant { right: auto; left: -60px; top: -50px; bottom: auto; width: 320px; height: 320px; }
.auth-photo-caption { position: relative; z-index: 1; }
.auth-photo-caption h2 { font-size: 27px; font-weight: 800; color: #fff; line-height: 1.32; letter-spacing: -0.5px; max-width: 420px; }
.auth-photo-caption h2 .hl { color: var(--highlight); }
.auth-photo-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 340px; margin: 18px 0 22px; }
.auth-mini-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.auth-mini-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.auth-mini-feature-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--highlight-light); color: var(--highlight); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-mini-feature-icon svg { width: 12px; height: 12px; }
.auth-carousel-dots { display: flex; gap: 8px; margin-top: 28px; }
.auth-carousel-dots .dot { width: 28px; height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,0.4); }
.auth-carousel-dots .dot.active { background: var(--highlight); width: 36px; }

/* Variante "institucional" do painel (usada no cadastro) */
.auth-brand-panel { justify-content: flex-start; padding-top: 44px; }
.auth-brand-content { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.auth-logo-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.auth-logo span { font-size: 17px; font-weight: 700; color: #fff; }
.auth-brand-title { font-size: 27px; font-weight: 800; color: #fff; line-height: 1.28; letter-spacing: -0.5px; margin-bottom: 18px; }
.auth-title-bar { width: 60px; height: 4px; background: var(--highlight); border-radius: var(--r-pill); margin-top: 12px; }
.auth-brand-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 320px; margin-bottom: 30px; }
.auth-brand-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-highlight { background: var(--highlight); color: #241a00; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.btn-highlight:hover { filter: brightness(1.06); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

/* Lado do formulário */
.auth-form-side { background: var(--bg-surface); display: flex; align-items: center; justify-content: center; padding: 48px 44px; overflow-y: auto; min-height: 100vh; }
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-form-wrap.auth-form-wrap-lg { max-width: 460px; }
.auth-section-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin: 18px 0 4px; }
.auth-section-label:first-child { margin-top: 4px; }
.auth-title { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: var(--accent); margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 16px; flex-wrap: wrap; gap: 8px; }
.auth-link-strong { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.auth-switch-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.auth-switch-text a { color: var(--accent); }
.auth-mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 26px; font-weight: 700; font-size: 18px; color: var(--text-primary); font-family: 'Sora', sans-serif; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-muted); margin: 12px 0; }
.checkbox-row a { color: var(--accent); font-weight: 600; }

/* Reutilizado pelas páginas de recuperação de senha (cartão simples, fora do layout dividido) */
.auth-form-header { margin-bottom: 22px; }
.auth-form-header h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; color: var(--text-primary); }
.auth-form-header p { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

@media (max-width: 860px) {
  .auth-layout--split { display: flex; align-items: center; justify-content: center; }
  .auth-photo-panel { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-form-side { padding: 32px 20px; width: 100%; max-width: 460px; min-height: auto; }
}

.input-icon-wrap { position: relative; }
.senha-toggle-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px; border-radius: var(--r-sm); color: var(--text-faint); display: flex;
}
.senha-toggle-btn:hover { color: var(--text-secondary); background: var(--bg-hover); }
.form-control.has-icon.has-toggle { padding-right: 38px; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.form-control.has-icon { padding-left: 40px; }
.input-inline-icon { position: absolute; left: 12px; top: 11px; color: var(--text-faint); }

/* ═══ Topbar ═══ */
.topbar {
  background: var(--bg-topbar); border-bottom: 1px solid var(--border); height: 58px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 var(--border); flex-shrink: 0; gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar-separator { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }
.topbar-page-title { font-size: 14px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-btn {
  display: none; width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--highlight); color: #241a00; display: flex; align-items: center; justify-content: center;
  transition: filter .14s, transform .1s; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.theme-btn:hover { filter: brightness(1.08); }
.theme-btn:active { transform: scale(0.94); }

.cmdk-trigger {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: var(--r-pill);
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px;
}
.cmdk-trigger:hover { border-color: var(--accent); color: var(--text-primary); }
.cmdk-trigger-label { display: none; }
@media (min-width: 620px) { .cmdk-trigger-label { display: inline; } }
.cmdk-trigger-kbd { font-size: 10.5px; font-weight: 700; background: var(--bg-card); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text-faint); display: none; }
@media (min-width: 620px) { .cmdk-trigger-kbd { display: inline; } }

.bell-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; flex-shrink: 0; transition: filter .14s, transform .1s; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.bell-btn:hover { filter: brightness(1.1); }
.bell-btn:active { transform: scale(0.94); }
.bell-badge { position: absolute; top: -3px; right: -3px; background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 100px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--bg-topbar); }

.user-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--r-pill); }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; box-shadow: 0 0 0 2px var(--highlight); }
.user-info { line-height: 1.25; }
.user-info .name { font-size: 12.5px; font-weight: 700; }
.role-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.role-label.role-admin { color: var(--danger); }
.role-label.role-funcionario { color: var(--success); }

/* ═══ App shell ═══ */
.app-body { display: flex; flex: 1; overflow: hidden; min-height: calc(100vh - 58px); }

.sidebar {
  width: 250px; background: var(--bg-sidebar); border-right: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0; height: calc(100vh - 58px); position: sticky; top: 58px;
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-header { padding: 16px 16px 14px; border-bottom: 1px solid var(--sidebar-line); flex-shrink: 0; background: var(--sidebar-hover); position: relative; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; }
.sidebar-brand-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-brand-name { font-size: 13.5px; font-weight: 800; color: #fff; letter-spacing: -0.2px; line-height: 1.2; }
.sidebar-brand-name span { color: var(--brand-alt); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-section { margin-bottom: 0; }
.sidebar-group-header { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 20px 20px 4px; cursor: pointer; }
.sidebar-group-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(180,205,235,0.40); }
.sidebar-group-chevron { color: rgba(180,205,235,0.30); display: flex; transition: transform .15s; }
.sidebar-group-chevron.is-collapsed { transform: rotate(-90deg); }
.sidebar-group-body-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .18s ease; }
.sidebar-group-body-wrap.collapsed { grid-template-rows: 0fr; }
.sidebar-group-body { overflow: hidden; min-height: 0; }

.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; margin: 1px 7px;
  border-radius: var(--r-sm); color: var(--text-sidebar); font-size: 13px; font-weight: 500;
  position: relative; border: none; text-decoration: none;
}
.nav-item:hover { background: var(--sidebar-active); color: #fff; }
.nav-item.active { background: var(--brand-tint-hi); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,0.3); position: relative; }
.nav-item.active::before { content: ''; position: absolute; left: -7px; top: 6px; bottom: 6px; width: 3px; border-radius: var(--r-pill); background: var(--highlight); }
.nav-icon { display: flex; align-items: center; flex-shrink: 0; width: 18px; height: 18px; color: rgba(150,180,220,0.80); }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { color: var(--sidebar-hi); }
.nav-item .nav-label { flex: 1; }
.nav-item.active::before { display: none; }

.sidebar-footer { flex-shrink: 0; padding: 0 0 6px; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.09); margin: 6px 7px; }
.nav-logout { color: var(--logout); margin: 0 7px 3px; }
.nav-logout .nav-icon { color: var(--logout); }
.nav-logout:hover { background: rgba(220,60,60,0.15); color: var(--logout-hi); }
.nav-logout:hover .nav-icon { color: var(--logout-hi); }
.sidebar-user-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; margin: 3px 7px 2px; border-radius: var(--r-sm); background: rgba(255,255,255,0.06); border: 1px solid var(--sidebar-line); }
.sidebar-user-avatar { width: 28px; height: 28px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; box-shadow: 0 0 0 2px var(--highlight); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 1px; color: var(--brand-alt); }
.sidebar-user-settings { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--r-sm); color: rgba(255,255,255,0.25); flex-shrink: 0; }
.sidebar-user-settings:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 45; backdrop-filter: blur(2px); }
.sidebar-overlay.show { display: block; }

.main-content { flex: 1; overflow-y: auto; height: calc(100vh - 58px); padding: 24px 28px; background: var(--bg-primary); }
.main-content > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.dev-credit { text-align: center; font-size: 10.5px; color: var(--text-faint); margin-top: 32px; }
.dev-credit-brand { font-weight: 700; color: var(--accent); }

@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .sidebar { position: fixed; top: 58px; left: 0; z-index: 46; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { padding: 16px; }
}

/* ═══ Página / cabeçalhos ═══ */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-header h1, .page-header-row h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; position: relative; padding-left: 14px; }
.page-header h1::before, .page-header-row h1::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: var(--r-pill); background: var(--highlight);
}
.page-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.font-medium { font-weight: 600; }

/* ═══ Cards ═══ */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; transition: box-shadow .18s; }
.card:hover { box-shadow: var(--shadow-md); }
.table-card { padding: 0; overflow: hidden; border-top: 3px solid var(--highlight); }

/* ═══ Estatísticas ═══ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }

/* ═══ Gráficos (Chart.js) ═══ */
.chart-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card h3 { font-size: 14px; margin: 0; }
.chart-canvas-wrap { position: relative; height: 240px; }
.chart-canvas-wrap-sm { height: 220px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stat-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-grid, .stat-grid-4 { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.stat-blue::before, .stat-navy::before { background: var(--accent); }
.stat-green::before, .stat-emerald::before { background: var(--success); }
.stat-yellow::before { background: var(--highlight); }
.stat-pink::before, .stat-orange::before { background: var(--highlight); }
.stat-danger::before { background: var(--danger); }
.stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; display: block; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--text-primary); }

/* ═══ Alertas ═══ */
.alert-card { margin-bottom: 22px; }
.alert-orange { background: var(--warning-soft); border-color: var(--warning); }
.flex-start { display: flex; align-items: flex-start; gap: 12px; }
.alert-icon { color: var(--warning); flex-shrink: 0; }
.alert-orange h3 { color: var(--warning); }
.alert-orange p { color: var(--text-secondary); font-size: 13.5px; }

/* ═══ Quick links ═══ */
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .quick-links { grid-template-columns: 1fr; } }
.quick-link { text-align: center; transition: border-color .18s, box-shadow .18s, transform .18s; }
.quick-link:hover { border-color: var(--highlight); box-shadow: 0 4px 16px rgba(234,179,8,0.22); transform: translateY(-2px); }
.quick-link-icon { color: var(--accent); display: flex; justify-content: center; margin-bottom: 10px; }

/* ═══ Gráficos simples ═══ */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar-value { font-size: 11px; font-weight: 700; }
.bar-fill { width: 100%; background: var(--bg-hover); border-radius: 4px 4px 0 0; min-height: 4px; }
.bar-fill-on { background: var(--accent); }
.bar-label { font-size: 10.5px; color: var(--text-muted); }
.progress-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.progress-row-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.progress-track { background: var(--bg-hover); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); }

/* ═══ Formulários ═══ */
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-primary); font-size: 13.5px; outline: none;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
textarea.form-control { min-height: 80px; resize: vertical; line-height: 1.6; }
.form-control:hover:not(:disabled):not(:focus) { border-color: var(--border-strong); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); background: var(--bg-card); }
.form-control-sm { padding: 7px 10px; font-size: 13px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: end; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; } }
.flex-end { display: flex; align-items: flex-end; }
.flex-inline { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ═══ Botões ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8.5px 16px; border: none;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: filter .14s, transform .08s, box-shadow .14s, background .14s; white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.07); }
.btn:active:not(:disabled) { transform: scale(0.975); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 3px var(--accent-glow); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 3px 10px var(--accent-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); filter: none; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 1px 3px rgba(192,57,43,0.2); }
.btn-full, .btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn-sm { padding: 6px 11px; font-size: 12px; }

.icon-btn { background: none; border: 1px solid transparent; padding: 7px; border-radius: var(--r-sm); color: var(--text-secondary); display: inline-flex; }
.icon-btn:hover { background: var(--bg-hover); border-color: var(--border); }
.icon-btn-success { color: var(--success); background: var(--success-bg); }
.icon-btn-success:hover { background: var(--success-soft); }
.icon-btn-danger { color: var(--danger); background: var(--danger-bg); }
.icon-btn-danger:hover { background: var(--danger-soft); }
.icon-btn-secondary { color: var(--text-muted); background: var(--bg-input); }
.link-with-icon { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13.5px; font-weight: 600; border: none; background: none; padding: 0; cursor: pointer; }
.link-with-icon:hover { color: var(--accent-hover); text-decoration: underline; }

/* ═══ Badges — pílula ═══ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-gray    { background: var(--bg-hover); color: var(--text-muted); }
.badge-gold    { background: var(--highlight-light); color: var(--highlight-hover); }
.badge-forest  { background: var(--success-bg); color: var(--success); }
.badge-terracotta { background: var(--highlight-light); color: var(--highlight-hover); }
.badge-navy    { background: var(--accent-light); color: var(--accent-hover); }

/* ═══ Tabelas ═══ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-input); }
th { text-align: left; padding: 10px 14px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.th-sortable { cursor: pointer; user-select: none; }
.th-sortable:hover { color: var(--accent); }
td { padding: 11px 14px; font-size: 13px; color: var(--text-primary); border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
.actions-cell { display: flex; gap: 4px; white-space: nowrap; }

/* ═══ Estados vazios ═══ */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state svg { color: var(--text-faint); margin-bottom: 10px; }

/* ═══ Calendário ═══ */
.calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.legend-dot { width: 13px; height: 13px; border-radius: 4px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 10px 14px; margin-bottom: 16px; }
.calendar-nav button { background: none; border: none; padding: 8px; border-radius: var(--r-sm); color: var(--text-secondary); }
.calendar-nav button:hover { background: var(--bg-hover); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-weekday { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-faint); padding: 6px 0; text-transform: uppercase; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); transition: box-shadow .14s, transform .1s; }
.calendar-day:hover:not(.day-disabled) { box-shadow: 0 0 0 2px var(--accent-glow); transform: translateY(-1px); }
.calendar-day.day-empty { visibility: hidden; }
.calendar-day.day-selecionado, .calendar-day.day-aprovado { background: var(--success); color: #fff; border-color: var(--success); box-shadow: var(--shadow-sm); }
.calendar-day.day-pendente { background: var(--highlight); color: #3a2e0a; border-color: var(--highlight); box-shadow: var(--shadow-sm); }
.calendar-day.day-ocupado { background: var(--bg-hover); color: var(--text-faint); cursor: not-allowed; }
.calendar-day.day-bloqueado { background: var(--border-strong); color: var(--bg-card); cursor: not-allowed; }
.calendar-day.day-feriado { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.calendar-day.day-facultativo { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.calendar-day.day-aniversario { box-shadow: 0 0 0 2px var(--info); }
.day-disabled { cursor: not-allowed; }

.admin-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.admin-cal-cell { min-height: 84px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-card); padding: 6px; cursor: pointer; }
.admin-cal-cell:hover { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.admin-cal-cell.empty { visibility: hidden; }
.admin-cal-cell.cell-feriado { background: var(--danger-bg); }
.admin-cal-cell.cell-facultativo { background: var(--warning-bg); }
.admin-cal-cell.cell-bloqueado { background: var(--bg-hover); }
.admin-cal-cell.cell-hoje { box-shadow: inset 0 0 0 2px var(--accent); }
.admin-cal-cell.cell-aprovado, .admin-cal-cell.cell-selecionado { background: var(--success-bg); }
.admin-cal-cell.cell-pendente { background: var(--highlight-light); }
.admin-cal-cell.cell-ocupado { background: var(--bg-hover); opacity: .65; cursor: not-allowed; }
.admin-cal-cell.cell-disabled { cursor: not-allowed; }
.admin-cal-cell.cell-aniversario { box-shadow: inset 0 0 0 2px var(--info); }
.admin-cal-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cell-day { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.cell-feriado-label { font-size: 9.5px; color: var(--danger); margin-bottom: 2px; font-weight: 600; }
.cell-feriado-label.facultativo { color: var(--warning); }
.cell-tag { font-size: 9.5px; padding: 1px 5px; border-radius: var(--r-pill); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cell-tag-aprovado { background: var(--success-bg); color: var(--success); }
.cell-tag-pendente { background: var(--highlight-light); color: var(--highlight-hover); }
.cell-tag-feriado { background: var(--danger-bg); color: var(--danger); }
.cell-tag-facultativo { background: var(--warning-bg); color: var(--warning); }
.detail-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; background: var(--bg-input); border-radius: var(--r-sm); padding: 10px 12px; }

/* ═══ Notificações ═══ */
.notif-tabs { display: flex; gap: 4px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px; margin-bottom: 16px; max-width: 360px; }
.notif-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-muted); border: none; background: none; }
.notif-tab.active { background: var(--bg-card); color: var(--accent); box-shadow: var(--shadow-xs); }
.notif-tab-count { background: var(--bg-hover); color: var(--text-muted); font-size: 10.5px; font-weight: 700; border-radius: var(--r-pill); padding: 1px 7px; }
.notif-tab.active .notif-tab-count { background: var(--accent-light); color: var(--accent-hover); }

/* ═══ Alternador de visão genérico (ex.: Lista/Catálogo) ═══ */
.view-toggle { display: flex; gap: 4px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px; }
.view-toggle-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-muted); border: none; background: none; white-space: nowrap; }
.view-toggle-btn:hover { color: var(--text-primary); }
.view-toggle-btn.active { background: var(--bg-card); color: var(--accent); box-shadow: var(--shadow-xs); }
.view-toggle-btn svg { width: 15px; height: 15px; }
.notif-toolbar { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); padding: 14px; margin-bottom: 8px; }
.notif-item.unread { border-color: var(--accent); background: var(--accent-light); }
.notif-checkbox { margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; }
.notif-icon { font-size: 18px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 700; font-size: 13.5px; }
.notif-message { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.notif-date { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.notif-actions { display: flex; gap: 2px; flex-shrink: 0; }

/* ═══ Perfil ═══ */
.profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-light); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-edit-btn {
  position: absolute; bottom: -2px; right: -2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 2px solid var(--bg-card); display: flex; align-items: center; justify-content: center;
}
.profile-avatar-edit-btn:hover { background: var(--accent-hover); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-field { background: var(--bg-input); border-radius: var(--r-sm); padding: 11px 13px; }
.profile-field .label { font-size: 11px; color: var(--text-faint); }
.profile-field p { font-size: 13.5px; font-weight: 600; margin-top: 3px; }

/* ═══ Modais ═══ */
.modal-overlay { position: fixed; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--highlight); border-radius: var(--r-xl); max-width: 460px; width: 100%; padding: 22px; box-shadow: var(--shadow-xl); animation: modalIn .22s cubic-bezier(.16,.85,.3,1) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-header h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; }
.modal-message { font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.modal-date-chip { display: flex; align-items: center; gap: 10px; background: var(--accent-light); color: var(--accent-hover); border-radius: var(--r-sm); padding: 11px 13px; margin-bottom: 14px; font-weight: 700; font-size: 13.5px; }

/* ═══ Command palette ═══ */
.cmdk-overlay { position: fixed; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(4px); z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.cmdk-box { width: 100%; max-width: 560px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl); border-top: 3px solid var(--accent); animation: modalIn .18s ease both; }
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-faint); }
.cmdk-input { flex: 1; border: none; outline: none; font-size: 15px; background: none; color: var(--text-primary); }
.cmdk-esc { font-size: 11px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.cmdk-list { max-height: 340px; overflow-y: auto; padding: 8px; }
.cmdk-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); background: none; border: none; text-align: left; cursor: pointer; font-size: 13.5px; color: var(--text-primary); }
.cmdk-item.active { background: var(--bg-hover); }
.cmdk-item-icon { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--accent-light); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmdk-item-label { flex: 1; }
.cmdk-item-hint { font-size: 11px; color: var(--text-faint); }
.cmdk-empty { padding: 24px 16px; text-align: center; color: var(--text-faint); font-size: 13.5px; }

/* ═══ Toasts ═══ */
#toastContainer { position: fixed; top: 16px; right: 16px; z-index: 400; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.toast { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .2s ease; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
.toast-out { opacity: 0; transition: opacity .2s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-sm { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-spinner { display: flex; justify-content: center; padding: 64px 0; }

/* ═══ Skeletons de carregamento ═══ */
@keyframes skeletonShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%; animation: skeletonShimmer 1.4s ease-in-out infinite; border-radius: var(--r-sm);
}
.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.skeleton-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.skeleton-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.skeleton-stat-card .skeleton-line:first-child { width: 70%; height: 10px; }
.skeleton-stat-card .skeleton-line:last-child { width: 40%; height: 24px; margin-top: 6px; margin-bottom: 0; }
.skeleton-table-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 14px; border-bottom: 1px solid var(--border); }
.skeleton-table-row:last-child { border-bottom: none; }

/* ═══ Landing / institucional ═══ */
.navbar { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.brand svg { color: var(--accent); }
.hero { text-align: center; padding: 64px 16px 48px; }
.hero h1 { font-size: 34px; line-height: 1.2; }
.hero .accent { color: var(--accent); }
.hero p { max-width: 560px; margin: 16px auto 0; font-size: 15px; color: var(--text-muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 16px 64px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .hero h1 { font-size: 27px; } }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.feature-card svg { color: var(--accent); margin-bottom: 10px; }
.site-footer { border-top: 1px solid var(--border); background: var(--bg-card); padding: 18px 16px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; text-align: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.container-md { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ═══ Ajustes específicos para telas pequenas (celular) ═══ */
@media (max-width: 640px) {
  /* Rede de segurança geral: nada pode criar rolagem horizontal na página,
     não importa o que aconteça em algum componente específico. */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Calendário (admin e funcionário usam a mesma grade): as células ficavam
     altas e vazias num celular, porque o min-height pensado pra tela cheia
     (84px) é grande demais quando as colunas ficam bem estreitas. */
  .admin-cal-grid { gap: 3px; }
  .admin-cal-cell { min-height: 52px; padding: 4px; }
  .cell-day { font-size: 10px; margin-bottom: 2px; }
  .cell-feriado-label { font-size: 7.5px; }
  .cell-tag { font-size: 7.5px; padding: 1px 3px; }
  .calendar-weekday { font-size: 9.5px; padding: 4px 0; }

  /* Barra de ações de notificações: os botões podiam ultrapassar a borda
     da tela — agora quebram linha em vez de vazar pra fora. */
  .notif-toolbar { flex-direction: column; align-items: stretch; }
  .notif-toolbar .flex-inline { flex-wrap: wrap; }
  .notif-toolbar .btn { flex: 1; justify-content: center; }

  /* Componentes de largura fixa (pensados pra desktop) precisam encolher
     junto com a tela, nunca ultrapassar a largura disponível. */
  .modal-box, .cmdk-box { max-width: calc(100vw - 32px) !important; }
  .card, .stat-card, .chart-card { max-width: 100% !important; }
  .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr !important; }
  .quick-links { grid-template-columns: 1fr !important; }
  .chart-canvas-wrap, .chart-canvas-wrap-sm { height: 200px; }

  /* Topbar mais compacto — nome/cargo do usuário ocupava espaço demais. */
  .user-info { display: none; }
  .cmdk-trigger-label, .cmdk-trigger-kbd { display: none; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-page-title { display: none; }
  .main-content { padding: 14px; }

  /* Botões de largura total em vez de flutuarem lado a lado sem espaço. */
  .page-header-row { flex-direction: column; align-items: stretch; }
  .page-header-row .btn { width: 100%; justify-content: center; }
}

/* ═══ Convite de instalar como app (celular) ═══ */
.pwa-install-banner {
  position: fixed; left: 12px; right: 12px; bottom: -120px; z-index: 600;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); padding: 14px; display: flex; align-items: flex-start; gap: 12px;
  transition: bottom .3s cubic-bezier(.16,.85,.3,1);
}
.pwa-install-banner.show { bottom: 12px; }
.pwa-install-icon { width: 42px; height: 42px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.pwa-install-icon img { width: 100%; height: 100%; object-fit: cover; }
.pwa-install-text { flex: 1; min-width: 0; }
.pwa-install-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.pwa-install-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.pwa-install-close { flex-shrink: 0; }
@media (min-width: 480px) { .pwa-install-banner { left: auto; right: 16px; bottom: -120px; width: 360px; } .pwa-install-banner.show { bottom: 16px; } }

/* ═══ Banner de consentimento de cookies (LGPD) ═══ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: -100%; z-index: 700;
  background: var(--bg-card); border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-xl); padding: 18px 20px; transition: bottom .35s cubic-bezier(.16,.85,.3,1);
}
.cookie-banner.show { bottom: 0; }
.cookie-banner-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-banner-icon { color: var(--accent); flex-shrink: 0; display: flex; }
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cookie-banner-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.cookie-banner-desc a { color: var(--accent); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

