@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =============================================
   S&L MANAGEMENT — ENTERPRISE DESIGN SYSTEM
   ============================================= */

:root {
  --bg-base: #09090b;
  --bg-surface: #18181b;
  --bg-surface-hover: #27272a;
  --border: #27272a;
  --text-primary: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #3b82f6; /* Azul corporativo */
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   MENU LATERAL (Sóbrio e Fixo)
   ============================================= */
.sidebar {
  width: 260px;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  z-index: 100;
}

.sidebar.fechada { width: 68px; }

.sidebar-logo {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.logo-menu {
  max-width: 130px;
  height: auto;
  transition: opacity 0.2s;
}

.sidebar.fechada .logo-menu { opacity: 0; }

.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  flex: 1;
}

.sidebar-menu li { margin-bottom: 2px; }

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}

.sidebar-menu a:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.sidebar-menu a.ativo {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.sidebar-menu .icone-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar-menu .icone-menu svg { width: 18px; height: 18px; stroke-width: 1.5; }

.sidebar.fechada .sidebar-menu a span:not(.icone-menu) { display: none; }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.btn-sair {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sair:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.sidebar.fechada .btn-sair span:not(.icone-menu) { display: none; }

/* =============================================
   TOP BAR (Limpa, com bordas finas)
   ============================================= */
.top-bar {
  position: fixed;
  top: 0; left: 260px; right: 0;
  height: 64px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 90;
  transition: left 0.2s ease;
}

.sidebar.fechada ~ .top-bar { left: 68px; }

.top-bar-esquerda { display: flex; align-items: center; gap: 16px; }

.hamburger-top {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; padding: 4px; border-radius: 4px;
}
.hamburger-top:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.top-bar-titulo { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); }

.top-bar-direita { display: flex; align-items: center; gap: 12px; }

.btn-pesquisa-top {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: inherit; font-size: 0.8rem;
  cursor: pointer; transition: border-color 0.15s;
}
.btn-pesquisa-top:hover { border-color: var(--text-muted); }

.btn-icon-top {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 6px; border-radius: var(--radius); display: flex; align-items: center;
}
.btn-icon-top:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.perfil-utilizador {
  display: flex; align-items: center; gap: 10px;
  padding-left: 12px; border-left: 1px solid var(--border);
}

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.75rem;
  border: 1px solid var(--border);
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.8rem; font-weight: 500; }
.user-role { font-size: 0.7rem; color: var(--text-muted); }

/* =============================================
   CONTEÚDO PRINCIPAL E GRELHAS
   ============================================= */
.conteudo-principal {
  margin-left: 260px;
  flex: 1;
  padding: 88px 32px 40px;
  transition: margin-left 0.2s ease;
  max-width: 1600px;
}

.sidebar.fechada ~ .conteudo-principal { margin-left: 68px; }

.cabecalho-pagina {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}

.cabecalho-pagina h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }

/* =============================================
   CARDS DO DASHBOARD (Flat Design)
   ============================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--text-muted); }

.card-icone { color: var(--text-muted); margin-bottom: 12px; }
.card-icone svg { width: 20px; height: 20px; stroke-width: 1.5; }

.card h3 {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}

.card-numero { font-size: 1.8rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }

/* =============================================
   TABELAS (Estilo Base de Dados)
   ============================================= */
table {
  width: 100%; background: var(--bg-surface);
  border-collapse: collapse; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}

th {
  background: var(--bg-base); color: var(--text-muted);
  padding: 12px 16px; text-align: left; font-size: 0.75rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-primary); vertical-align: middle;
}

tbody tr:hover { background: var(--bg-surface-hover); }
tbody tr:last-child td { border-bottom: none; }

code {
  background: var(--bg-base); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--border);
}

/* =============================================
   BADSGES (Etiquetas de Estado)
   ============================================= */
.badge {
  padding: 4px 8px; border-radius: 12px; font-size: 0.7rem;
  font-weight: 500; border: 1px solid transparent; display: inline-block;
}
.badge.verde { background: rgba(16, 185, 129, 0.1); color: var(--success); border-color: rgba(16, 185, 129, 0.2); }
.badge.amarelo { background: rgba(245, 158, 11, 0.1); color: var(--warning); border-color: rgba(245, 158, 11, 0.2); }
.badge.azul { background: rgba(59, 130, 246, 0.1); color: var(--accent); border-color: rgba(59, 130, 246, 0.2); }
.badge.laranja { background: rgba(249, 115, 22, 0.1); color: #f97316; border-color: rgba(249, 115, 22, 0.2); }
.badge.vermelho { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
.badge.cinza { background: var(--bg-surface-hover); color: var(--text-muted); border-color: var(--border); }

/* =============================================
   BOTÕES
   ============================================= */
.btn-primario {
  background: var(--text-primary);
  color: var(--bg-base);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primario:hover { opacity: 0.8; }

.btn-secundario {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secundario:hover { background: var(--bg-surface-hover); }

.btn-pequeno {
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-pequeno svg { width: 14px; height: 14px; }
.btn-pequeno:hover { color: var(--text-primary); border-color: var(--text-muted); }
.btn-perigo:hover { color: var(--danger); border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }

/* =============================================
   FORMULÁRIOS
   ============================================= */
.campo { margin-bottom: 16px; flex: 1; }
.campo label {
  display: block; font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}

.campo input, .campo select, .campo textarea {
  width: 100%; padding: 8px 12px;
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 0.85rem; font-family: inherit; transition: border-color 0.15s;
}

.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--accent);
}

.linha { display: flex; gap: 16px; }

/* =============================================
   FILTROS
   ============================================= */
.filtros { display: flex; gap: 12px; margin-bottom: 20px; }
.filtros input, .filtros select {
  padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-surface);
  color: var(--text-primary); font-family: inherit; font-size: 0.85rem;
}
.filtros input:focus, .filtros select:focus { outline: none; border-color: var(--accent); }

/* =============================================
   MODAIS
   ============================================= */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(2px);
  z-index: 1000; justify-content: center; align-items: center;
}
.modal-conteudo {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; width: 100%; max-width: 600px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.modal-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 1.1rem; font-weight: 600; }
.btn-fechar { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.btn-fechar:hover { color: var(--text-primary); }
.modal-conteudo form { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px; }

/* =============================================
   DASHBOARD: TIMELINE E ALERTAS
   ============================================= */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 24px; }
.dashboard-col { display: flex; flex-direction: column; gap: 20px; }

.grafico-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.grafico-box h2 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }

.timeline-item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }

.timeline-data {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 54px; height: 54px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-base); color: var(--text-primary);
}
.timeline-data .dia { font-size: 1.2rem; font-weight: 700; }
.timeline-data .mes { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); }

.timeline-conteudo { flex: 1; }
.timeline-conteudo strong { font-size: 0.9rem; font-weight: 600; }
.timeline-conteudo p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }

.alerta-item {
  display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; background: var(--bg-base);
}
.alerta-icone { color: var(--text-muted); }
.alerta-texto strong { font-size: 0.8rem; display: block; }
.alerta-texto span { font-size: 0.8rem; color: var(--text-muted); }
.alerta-texto small { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* =============================================
   MODAL CUSTOMIZADO DE ELIMINAÇÃO
   ============================================= */
.modal-overlay-custom {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(2px);
  display: flex; justify-content: center; align-items: center; z-index: 10000;
}
.modal-caixa-custom {
  background: var(--bg-surface); padding: 24px; border-radius: 8px;
  max-width: 400px; width: 90%; text-align: center; border: 1px solid var(--border);
}
.modal-icone-perigo {
  background: rgba(239, 68, 68, 0.1); color: var(--danger);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.modal-caixa-custom h2 { font-size: 1.1rem; margin-bottom: 8px; }
.modal-caixa-custom p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; line-height: 1.5; }
.modal-botoes-custom { display: flex; gap: 12px; }
.btn-cancelar-custom { flex: 1; padding: 10px; background: transparent; border: 1px solid var(--border); color: var(--text-primary); border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.btn-confirmar-custom { flex: 1; padding: 10px; background: var(--danger); border: none; color: white; border-radius: var(--radius); cursor: pointer; font-weight: 500; }

.qr-cell { width: 60px; text-align: center; }
.qr-mini img, .qr-mini canvas { width: 40px !important; height: 40px !important; display: block; border-radius: 2px; }
/* =============================================
   CORREÇÃO DO DROPDOWN DE NOTIFICAÇÕES
   ============================================= */
.notificacoes-wrapper { 
  position: relative; 
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: white;
  font-size: 0.55rem;
  font-weight: bold;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
}

.notif-dropdown {
  position: absolute;
  top: 40px;
  right: -10px;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.notif-dropdown.ativo { 
  display: flex; 
}

.notif-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item:hover { 
  background: var(--bg-surface-hover); 
}

.notif-item:last-child { 
  border-bottom: none; 
}

.notif-item strong { 
  font-size: 0.8rem; 
  color: var(--text-primary); 
  display: block;
}

.notif-item small { 
  color: var(--text-muted); 
  font-size: 0.75rem; 
  display: block;
  margin-top: 2px;
}

.notif-ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.notif-ponto.azul { background: var(--accent); }
.notif-ponto.laranja { background: #f97316; }
.notif-ponto.verde { background: var(--success); }
/* =============================================
   ANIMAÇÕES E TRANSIÇÕES (Enterprise)
   ============================================= */

/* 1. Aparecer a página suavemente */
body {
  animation: fadeInPage 0.4s ease-out forwards;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 2. Animação para as linhas das tabelas (efeito cascata) */
.animar-linha {
  animation: slideUpRow 0.3s ease-out forwards;
  opacity: 0;
}

@keyframes slideUpRow {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 3. Modais a aparecer (fundo escuro e caixa de cima para baixo) */
.modal-overlay {
  animation: fadeInOverlay 0.2s ease-out forwards;
}

.modal-conteudo, 
.modal-caixa-custom {
  animation: slideUpModal 0.3s ease-out forwards;
}

@keyframes fadeInOverlay {
  from { background: rgba(9, 9, 11, 0); backdrop-filter: blur(0px); }
  to { background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(2px); }
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 4. Spinner de Carregamento (Loading) */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 12px;
}

/* 5. Efeito de desvanecer (Fade Out) para quando apagas algo */
.fade-out {
  animation: fadeOutRow 0.3s ease-in forwards;
}

@keyframes fadeOutRow {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}
/* Forçar a limpeza visual de todos os links do menu */
.sidebar-menu a,
.sidebar-menu a:visited,
.sidebar-menu a:hover,
.sidebar-menu a:active {
  text-decoration: none !important;
  color: var(--text-muted);
}

.sidebar-menu a.ativo {
  color: var(--accent) !important;
}
/* =============================================
   TÉCNICOS: ESCALA DE EVENTOS
   ============================================= */
.bloco-secao { margin-bottom: 36px; }

.titulo-secao {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.escalas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.escala-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.escala-topo { display: flex; gap: 14px; align-items: flex-start; }

.escala-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.escala-info strong { font-size: 0.9rem; }
.escala-info span { font-size: 0.8rem; color: var(--text-muted); }

.escala-equipa { display: flex; flex-wrap: wrap; gap: 6px; }

.chip-tecnico {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.chip-tecnico.chefe {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--accent);
}

.sem-equipa { font-size: 0.8rem; color: var(--warning); }

.vazio { color: var(--text-muted); font-size: 0.85rem; padding: 10px 0; }

/* Modal de atribuição */
.info-ordem { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }

.linha-selecao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-base);
}

.linha-selecao.indisponivel { opacity: 0.55; }

.selecao-nome { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; flex: 1; }
.selecao-nome input { margin-top: 3px; width: 16px; height: 16px; }
.selecao-nome strong { display: block; font-size: 0.85rem; }
.selecao-nome small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.selecao-nome .aviso-conflito { color: var(--warning); }

.sel-funcao {
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .escalas-grid { grid-template-columns: 1fr; }
  .linha-selecao { flex-direction: column; align-items: stretch; }
}
/* =============================================
   TELEMÓVEL E TABLET
   ============================================= */
@media (max-width: 900px) {
  /* Menu escondido; abre com o botão das três barras */
  .sidebar,
  .sidebar.fechada {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.aberta-mobile {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
  }

  .sidebar.fechada .logo-menu { opacity: 1; }
  .sidebar.fechada .sidebar-menu a span:not(.icone-menu),
  .sidebar.fechada .btn-sair span:not(.icone-menu) { display: inline; }

  /* Barra superior e conteúdo a toda a largura */
  .top-bar,
  .sidebar.fechada ~ .top-bar {
    left: 0;
    padding: 0 14px;
  }

  .conteudo-principal,
  .sidebar.fechada ~ .conteudo-principal {
    margin-left: 0;
    padding: 80px 14px 32px;
    max-width: 100%;
  }

  .btn-pesquisa-top span,
  .user-info { display: none; }

  .perfil-utilizador { padding-left: 8px; }

  /* Cabeçalhos e grelhas */
  .cabecalho-pagina {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cabecalho-pagina h1 { font-size: 1.25rem; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 14px; }
  .card-numero { font-size: 1.4rem; }

  .dashboard-grid { grid-template-columns: 1fr; }

  /* Filtros e formulários empilhados */
  .filtros { flex-direction: column; }
  .filtros input,
  .filtros select { width: 100%; }

  .linha { flex-direction: column; gap: 0; }

  /* Tabelas deslizam na horizontal */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Modais ocupam o ecrã */
  .modal-conteudo { max-height: 95vh; margin: 0 10px; }

  .notif-dropdown { width: 280px; right: -50px; }

  /* Modo Técnico: botões grandes para o polegar */
  .caixa-ordem {
    flex-direction: column;
    align-items: stretch;
  }

  .caixa-ordem .btn-primario {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}
/* =============================================
   MENU NO TELEMÓVEL (fundo escuro + camadas)
   ============================================= */
.menu-fundo { display: none; }

@media (max-width: 900px) {
  .sidebar { z-index: 300; }

  .menu-fundo {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 250;
  }

  body.menu-aberto .menu-fundo { display: block; }
  body.menu-aberto { overflow: hidden; }

  /* Área de toque maior no botão das três barras */
  .hamburger-top { padding: 8px; }
}

/* =============================================
   PESQUISA CTRL+K (repor estilos)
   ============================================= */
.cmd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(2px);
  z-index: 2000;
  justify-content: center;
  padding: 15vh 12px 0;
}

.cmd-overlay.ativo { display: flex; }

.cmd-box {
  width: 100%;
  max-width: 540px;
  height: fit-content;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.cmd-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.cmd-input-area input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.cmd-resultados { max-height: 340px; overflow-y: auto; padding: 6px; }

.cmd-seccao {
  padding: 8px 10px 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.cmd-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-primary);
  text-align: left;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}
/* =============================================
   LOGO NO FUNDO DO MENU (junto ao botão Sair)
   ============================================= */

/* 1. Menu de navegação passa para o topo */
.sidebar .sidebar-menu {
  order: 1;
  padding-top: 20px;
  overflow-y: auto; /* evita cortes em ecrãs baixos */
}

/* 2. Logo desce para o fundo, por cima do Sair */
.sidebar .sidebar-logo {
  order: 2;
  height: auto;
  min-height: 0;
  padding: 16px 20px 12px;
  border-bottom: none;
  border-top: 1px solid var(--border);
  justify-content: center;
}

.sidebar .logo-menu {
  width: 100%;
  max-width: 170px;
  height: auto;
  border-radius: 6px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.sidebar .logo-menu:hover { opacity: 1; }

/* 3. Botão Sair fica no fim */
.sidebar .sidebar-footer {
  order: 3;
  border-top: none;
  padding-top: 0;
}

/* Com o menu recolhido, a logo esconde-se */
.sidebar.fechada .sidebar-logo { display: none; }
.cmd-item:hover { background: var(--bg-surface-hover); }
/* =============================================
   SAUDAÇÃO DO DASHBOARD
   ============================================= */
.saudacao-etiqueta {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

#saudacao {
  animation: saudacaoEntrada 0.5s ease-out;
}

@keyframes saudacaoEntrada {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   ECRÃ DE CARREGAMENTO ENTRE PÁGINAS
   ============================================= */
.ecra-carregamento {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.ecra-carregamento.ativo {
  opacity: 1;
  visibility: visible;
}

/* Barra fina no topo com as cores da logo */
.barra-carregamento {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #168dff, #d019e8);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.ecra-carregamento.ativo .barra-carregamento {
  animation: barraAvanca 0.38s ease-out forwards;
}

@keyframes barraAvanca {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}

.carregamento-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: scale(0.96);
  transition: transform 0.15s ease;
}

.ecra-carregamento.ativo .carregamento-centro { transform: scale(1); }

.carregamento-anel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: #168dff;
  border-right-color: #d019e8;
  animation: anelRoda 0.7s linear infinite;
}

@keyframes anelRoda {
  to { transform: rotate(360deg); }
}

/* Utilizadores com animações reduzidas no sistema */
@media (prefers-reduced-motion: reduce) {
  .ecra-carregamento,
  .carregamento-centro,
  #saudacao { transition: none; animation: none; }
  .carregamento-anel { animation-duration: 1.5s; }
}

/* Tema claro: logo numa caixa escura */
[data-tema="claro"] .cabecalho-logo {
  background: #09090b;
  border-radius: 10px;
  padding: 6px 14px;
}

[data-tema="claro"] .cabecalho-logo img { mix-blend-mode: normal; }

@media (max-width: 1200px) {
  .cabecalho-logo img { height: 70px; }
}

/* Telemóvel: empilhado e sem logo (já está no menu) */
@media (max-width: 900px) {
  .cabecalho-dashboard {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cabecalho-dashboard .data-hoje {
    justify-self: start;
    text-align: left;
  }
  .cabecalho-logo { display: none; }
}
/* =============================================
   LINHAS DO ORÇAMENTO (com seleção de equipamento)
   ============================================= */
.linha-orcamento {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-base);
  margin-bottom: 10px;
}

.linha-orc-grid {
  display: grid;
  grid-template-columns: 2.4fr 0.7fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.linha-orc-grid label { font-size: 0.7rem; }

.linha-orc-grid .btn-remover-linha { height: 36px; width: 36px; }

.lin-desc-livre {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
}

.lin-desc-livre:focus { outline: none; border-color: var(--accent); }

.lin-info {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lin-info.aviso { color: var(--warning); }

.lin-item optgroup { font-weight: 600; }

@media (max-width: 700px) {
  .linha-orc-grid { grid-template-columns: 1fr 1fr; }
  .linha-orc-grid .campo:first-child { grid-column: 1 / -1; }
  .linha-orc-grid .btn-remover-linha { width: 100%; }
}
/* =============================================
   PÁGINA DE SUPORTE
   ============================================= */
.suporte-resumo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.suporte-valor { font-size: 0.95rem; font-weight: 600; }

.suporte-detalhe {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.suporte-estado {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.ponto-estado {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
}

.suporte-estado.ok .ponto-estado {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.suporte-estado.erro .ponto-estado {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-base);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

.suporte-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}

.sup-contador {
  display: block;
  text-align: right;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sup-feedback {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.sup-feedback.sucesso { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.sup-feedback.erro { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

#lista-pedidos { max-height: 520px; overflow-y: auto; }

.pedido-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-base);
  margin-bottom: 10px;
}

.pedido-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pedido-topo strong { font-size: 0.85rem; }

.pedido-meta {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pedido-mensagem {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  display: -webkit-box;
  -line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pedido-resposta {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(59, 130, 246, 0.06);
  border-radius: 4px;
}

.pedido-resposta span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.pedido-resposta p { margin-top: 4px; font-size: 0.82rem; white-space: pre-wrap; }

/* Perguntas frequentes */
.faq-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.faq-cabecalho input {
  width: 280px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
}

.faq-cabecalho input:focus { outline: none; border-color: var(--accent); }

.faq-lista { display: grid; gap: 8px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  transition: border-color 0.15s;
}

.faq-item[open] { border-color: var(--text-muted); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 16px 14px;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  .suporte-resumo,
  .suporte-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .faq-cabecalho { flex-direction: column; align-items: stretch; }
  .faq-cabecalho input { width: 100%; }
}
/* =============================================
   TEMA CLARO
   ============================================= */
:root { color-scheme: dark; }

[data-tema="claro"] {
  color-scheme: light;
  --bg-base: #f4f4f5;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f0f0f2;
  --border: #e4e4e7;
  --text-primary: #18181b;
  --text-muted: #71717a;
}

[data-tema="claro"] .card,
[data-tema="claro"] .grafico-box,
[data-tema="claro"] table {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body,
.sidebar,
.top-bar,
.card,
.grafico-box,
table,
td,
th {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

#icone-tema { display: flex; align-items: center; }

/* =============================================
   PESQUISA GLOBAL (Ctrl+K)
   ============================================= */
.cmd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  padding: 15vh 12px 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(2px);
}

.cmd-overlay.ativo { display: flex; }

.cmd-box {
  width: 100%;
  max-width: 540px;
  height: fit-content;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: slideUpModal 0.2s ease-out;
}

.cmd-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.cmd-input-area input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.cmd-resultados { max-height: 340px; overflow-y: auto; padding: 6px; }

.cmd-seccao {
  padding: 8px 10px 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
}

.cmd-item small { color: var(--text-muted); font-size: 0.75rem; }

.cmd-item:hover { background: var(--bg-surface-hover); }
/* =============================================
   BOTÃO "INSTALAR APLICAÇÃO"
   ============================================= */
.btn-instalar-app {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 4px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius);
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-instalar-app:hover { background: rgba(59, 130, 246, 0.16); }

.sidebar.fechada .texto-instalar { display: none; }

/* Em páginas sem menu, o botão flutua no canto */
.btn-instalar-app.flutuante {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: auto;
  z-index: 500;
  background: #18181b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Quando aberta como aplicação, respeitar o "notch" dos telemóveis */
@media (display-mode: standalone) {
  .top-bar { padding-top: env(safe-area-inset-top); }
}
/* Confirmação de ações (não destrutivas) */
.modal-icone-confirmar {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.btn-confirmar-custom.azul { background: var(--accent); }
.btn-confirmar-custom.azul:hover { background: var(--accent-hover); } 
/* =============================================
   PEDIDOS DE ORÇAMENTO
   ============================================= */
.pedidos-caixa {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
}

.pedidos-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pedidos-topo h2 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pedidos-topo p { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.pedidos-contador {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#lista-pedidos-orc { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; }

.pedido-orc {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-base);
}

.pedido-orc.novo { border-left-color: var(--accent); }

.pedido-orc-info { flex: 1; min-width: 0; }

.pedido-orc-titulo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.88rem; }
.pedido-orc-titulo span:not(.badge) { color: var(--text-muted); }

.pedido-orc-info small { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--text-muted); }

.pedido-orc-info p {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pedido-orc-acoes { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

.pedido-det {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}

.pedido-det span { color: var(--text-muted); }

.pedido-det-msg {
  margin: 14px 0 20px !important;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-base);
  color: var(--text-primary) !important;
  white-space: pre-wrap;
  text-align: left;
}

@media (max-width: 700px) {
  .pedido-orc { flex-direction: column; }
  .pedido-orc-acoes { flex-direction: row; flex-wrap: wrap; }
}
/* =============================================
   MENU DO PERFIL
   ============================================= */
.sidebar-footer .btn-sair { display: none; } /* o Sair passa para o perfil */

.perfil-utilizador {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 6px 8px 6px 12px;
  transition: background 0.15s;
  user-select: none;
}

.perfil-utilizador:hover,
.perfil-utilizador.aberto { background: var(--bg-surface-hover); }

.perfil-utilizador:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.perfil-seta { color: var(--text-muted); transition: transform 0.2s; }
.perfil-utilizador.aberto .perfil-seta { transform: rotate(180deg); }

.perfil-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  cursor: default;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.perfil-utilizador.aberto .perfil-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.perfil-menu-topo {
  padding: 10px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.perfil-menu-topo strong { display: block; font-size: 0.9rem; }

.perfil-menu-topo span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perfil-menu-topo .pm-papel { color: var(--accent); margin-top: 6px; }

.pm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.pm-item svg { color: var(--text-muted); flex-shrink: 0; }
.pm-item:hover { background: var(--bg-surface-hover); }

.pm-item.perigo { color: var(--danger); }
.pm-item.perigo svg { color: var(--danger); }
.pm-item.perigo:hover { background: rgba(239, 68, 68, 0.1); }

.pm-separador { height: 1px; margin: 6px 0; background: var(--border); }

@media (max-width: 900px) {
  .perfil-utilizador { padding: 4px; }
  .perfil-seta { display: none; }
}
/* =============================================
   TIPOGRAFIA
   ============================================= */
:root {
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--fonte);
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.006em;
}

button, input, select, textarea { font-family: inherit; }

h1, h2, .top-bar-titulo { letter-spacing: -0.02em; }

/* Números alinhados (cards, tabelas, valores) */
.card-numero, td, .timeline-data .dia { font-variant-numeric: tabular-nums; }

/* Componentes criados por JavaScript também usam a nova letra */
.slia-botao, .slia-painel, .slia-painel button, .slia-painel textarea,
.btn-instalar-app, .sl-texto, .cmd-box, .modal-caixa-custom {
  font-family: var(--fonte) !important;
}
/* =============================================
   REGISTO POR FOTOGRAFIA
   ============================================= */
.foto-etiqueta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px dashed rgba(59, 130, 246, 0.45);
  border-radius: var(--radius);
  background: rgba(59, 130, 246, 0.06);
}

.foto-etiqueta strong { display: block; font-size: 0.85rem; }
.foto-etiqueta span { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--text-muted); }
.foto-etiqueta label { margin: 0; cursor: pointer; white-space: nowrap; }

.foto-estado { margin-bottom: 14px; padding: 8px 12px; border-radius: var(--radius); font-size: 0.8rem; }
.foto-estado.a-ler { color: var(--text-muted); background: var(--bg-base); }
.foto-estado.sucesso { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.foto-estado.aviso { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.foto-estado.erro { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

.campo-ia { animation: campoIA 1.6s ease-out; }

@keyframes campoIA {
  0% { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25); }
}

@media (max-width: 600px) {
  .foto-etiqueta { flex-direction: column; align-items: stretch; }
}
/* =============================================
   SELETOR DE TEMA (menu do perfil)
   ============================================= */
.pm-temas { padding: 8px 10px; }
.pm-temas-titulo { display: block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }

.pm-temas-opcoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 6px;
  background: var(--bg-base);
}

.pm-temas-opcoes button {
  padding: 6px 4px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
}

.pm-temas-opcoes button.ativo {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  font-weight: 600;
}

/* =============================================
   MODO BASTIDORES (luz vermelha)
   ============================================= */
[data-tema="bastidores"] {
  color-scheme: dark;
  --bg-base: #000000;
  --bg-surface: #0c0101;
  --bg-surface-hover: #1c0404;
  --border: #3d0c0c;
  --text-primary: #ff5a5a;
  --text-muted: #a83232;
  --accent: #ff3b3b;
  --accent-hover: #ff1f1f;
  --success: #ff6b6b;
  --warning: #ff7d7d;
  --danger: #ff2a2a;
}

[data-tema="bastidores"] ::selection { background: #5a1010; color: #ffb3b3; }

/* Logo, gráficos e vídeo em tons de vermelho */
[data-tema="bastidores"] img,
[data-tema="bastidores"] canvas,
[data-tema="bastidores"] video {
  filter: grayscale(1) sepia(1) saturate(8) hue-rotate(-35deg) brightness(0.75);
}

/* Etiquetas de estado: todas vermelhas, mas os alertas mais intensos */
[data-tema="bastidores"] .badge {
  background: rgba(255, 59, 59, 0.08) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255, 59, 59, 0.3) !important;
}

[data-tema="bastidores"] .badge.vermelho,
[data-tema="bastidores"] .badge.laranja {
  background: rgba(255, 59, 59, 0.22) !important;
  font-weight: 700;
}

/* Elementos que tinham cores fixas */
[data-tema="bastidores"] .sidebar-menu a.ativo { background: rgba(255, 59, 59, 0.12); }

[data-tema="bastidores"] .card-icone,
[data-tema="bastidores"] .alerta-icone,
[data-tema="bastidores"] .alerta-icone svg { color: var(--accent) !important; }

[data-tema="bastidores"] .btn-primario {
  background: #2a0606;
  color: var(--text-primary);
  border: 1px solid #6b1717;
}

[data-tema="bastidores"] .btn-instalar-app,
[data-tema="bastidores"] .pedidos-contador,
[data-tema="bastidores"] .notif-badge {
  background: #3a0808 !important;
  color: var(--text-primary) !important;
  border-color: #6b1717 !important;
}

[data-tema="bastidores"] .meteo-chip,
[data-tema="bastidores"] .meteo-chip svg {
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

[data-tema="bastidores"] .avatar { background: #1c0404; color: var(--text-primary); }

/* Planta do palco: todas as peças a vermelho */
[data-tema="bastidores"] .elem,
[data-tema="bastidores"] .pl-item { --cor: #ff4d4d !important; }

[data-tema="bastidores"] .top-bar { box-shadow: inset 0 -1px 0 #5a1010; }
/* Banner da marca no Dashboard */
.hero-marca {
  position: relative;
  min-height: 150px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--bg-base) 30%, color-mix(in srgb, var(--bg-base) 55%, transparent) 60%, transparent),
    url('../img/fundo.jpg') right 65% / cover no-repeat;
}

.hero-marca .data-hoje {
  align-self: flex-end;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .hero-marca { background-position: 70% 65%; }
}
/* ================================================
   S&L MANAGEMENT — MODERNIZAÇÃO VISUAL
   Colar no FINAL do style.css (não substituir nada)
   ================================================ */

/* ---------- NOVA FONTE ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --fonte: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Extras da marca */
  --magenta: #d946ef;
  --magenta-claro: #e879f9;
  --grad-principal: linear-gradient(135deg, #3b82f6 0%, #d946ef 100%);
  --grad-suave: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(217, 70, 239, 0.05));
  --grad-borda: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(217, 70, 239, 0.25));
  --shadow-glow-azul: 0 0 20px rgba(59, 130, 246, 0.12);
  --shadow-glow-magenta: 0 0 20px rgba(217, 70, 239, 0.10);
  --shadow-melhor: 0 2px 12px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.15);
  --radius-md: 8px;
  --radius-lg: 12px;
}

body {
  font-family: var(--fonte);
}

button, input, select, textarea,
.slia-botao, .slia-painel, .slia-painel button,
.slia-painel textarea, .btn-instalar-app,
.sl-texto, .cmd-box, .modal-caixa-custom {
  font-family: var(--fonte) !important;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

/* ---------- SIDEBAR: indicador lateral ---------- */
.sidebar-menu a {
  position: relative;
  border-radius: var(--radius-md);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 55%;
  background: var(--grad-principal);
  border-radius: 0 3px 3px 0;
  transition: transform 0.22s;
}

.sidebar-menu a.ativo::before {
  transform: translateY(-50%) scaleY(1);
}

.sidebar-menu a.ativo {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(217, 70, 239, 0.05));
}

.sidebar-menu a:hover {
  background: var(--bg-surface-hover);
  transform: translateX(2px);
}

.sidebar-menu .icone-menu svg {
  transition: opacity 0.2s;
}

.sidebar-menu a.ativo .icone-menu svg,
.sidebar-menu a:hover .icone-menu svg {
  opacity: 1;
}

/* ---------- TOP BAR: vidro fosco ---------- */
.top-bar {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

/* ---------- CARTÕES DO DASHBOARD ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.9), rgba(15, 15, 18, 0.7));
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-borda);
  webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-glow-azul), var(--shadow-melhor);
}

.card:hover::before {
  opacity: 1;
}

.card-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--grad-suave);
  margin-bottom: 14px;
}

.card-icone svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.card-numero {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* Entrada escalonada dos cartões */
.cards .card:nth-child(1) { animation: entradaCartao 0.4s ease 0.04s both; }
.cards .card:nth-child(2) { animation: entradaCartao 0.4s ease 0.10s both; }
.cards .card:nth-child(3) { animation: entradaCartao 0.4s ease 0.16s both; }
.cards .card:nth-child(4) { animation: entradaCartao 0.4s ease 0.22s both; }
.cards .card:nth-child(5) { animation: entradaCartao 0.4s ease 0.28s both; }

@keyframes entradaCartao {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- BOTÕES ---------- */
.btn-primario {
  background: var(--grad-principal);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-weight: 600;
  transition: all 0.22s;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primario::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primario:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35), 0 4px 16px rgba(217, 70, 239, 0.15);
  filter: brightness(1.06);
}

.btn-primario:hover::after {
  transform: translateX(100%);
}

.btn-secundario {
  border-radius: var(--radius-md);
  transition: all 0.22s;
  font-weight: 500;
}

.btn-secundario:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-pequeno {
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-pequeno:hover {
  transform: translateY(-1px);
}

/* ---------- TABELAS ---------- */
table {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

thead th {
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(24, 24, 27, 0.5) 100%);
  letter-spacing: 0.08em;
}

tbody tr {
  transition: all 0.18s;
}

tbody tr:hover {
  background: var(--bg-surface-hover);
}

/* ---------- FORMULÁRIOS ---------- */
.campo input,
.campo select,
.campo textarea {
  border-radius: var(--radius-md);
  transition: all 0.22s;
  font-size: 0.88rem;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.filtros input,
.filtros select {
  border-radius: var(--radius-md);
  transition: all 0.22s;
}

.filtros input:focus,
.filtros select:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* ---------- MODAIS ---------- */
.modal-overlay,
.modal-overlay-custom {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(9, 9, 11, 0.72);
}

.modal-conteudo {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-caixa-custom {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- GRÁFICOS E SEÇÕES ---------- */
.grafico-box {
  border-radius: var(--radius-lg);
  transition: border-color 0.25s;
}

.grafico-box:hover {
  border-color: var(--text-muted);
}

/* ---------- TIMELINE ---------- */
.timeline-data {
  border-radius: var(--radius-md);
  transition: all 0.22s;
}

.timeline-item:hover .timeline-data {
  border-color: var(--accent);
  background: var(--grad-suave);
}

/* ---------- BADGES: suavemente melhorados ---------- */
.badge {
  letter-spacing: 0.04em;
  transition: all 0.15s;
}

/* ---------- DROPDOWNS ---------- */
.notif-dropdown,
.perfil-menu {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(24, 24, 27, 0.95);
}

.perfil-menu-topo .pm-papel {
  color: var(--accent);
}

/* ---------- COMANDOS (Ctrl+K) ---------- */
.cmd-box {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cmd-item {
  border-radius: var(--radius-md);
  transition: all 0.15s;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--text-muted);
}

/* ---------- PEDIDOS DE ORÇAMENTO ---------- */
.pedido-orc {
  border-radius: var(--radius-md);
  transition: all 0.22s;
}

.pedido-orc:hover {
  border-color: var(--text-muted);
  background: var(--bg-surface);
}

/* ---------- BARRA DE CARREGAMENTO ---------- */
.barra-carregamento {
  background: var(--grad-principal);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), 0 0 20px rgba(217, 70, 239, 0.3);
}

/* ---------- TEMA CLARO: ajustes ---------- */
[data-tema="claro"] .card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f8fa 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-tema="claro"] .card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(59, 130, 246, 0.1);
}

[data-tema="claro"] .top-bar {
  background: rgba(244, 244, 245, 0.85);
}

[data-tema="claro"] .notif-dropdown,
[data-tema="claro"] .perfil-menu {
  background: rgba(255, 255, 255, 0.96);
}

[data-tema="claro"] .modal-conteudo,
[data-tema="claro"] .modal-caixa-custom {
  background: var(--bg-surface);
}

[data-tema="claro"] .card::before {
  opacity: 0 !important;
}

/* ---------- TEMA BASTIDORES: manter vidro ---------- */
[data-tema="bastidores"] .top-bar {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-tema="bastidores"] .notif-dropdown,
[data-tema="bastidores"] .perfil-menu {
  background: rgba(12, 1, 1, 0.95);
}

/* ---------- RESPONSIVO: refinar ---------- */
@media (max-width: 900px) {
  .card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }

  .btn-primario:hover {
    transform: none;
  }

  .sidebar-menu a:hover {
    transform: none;
  }
}

/* ---------- UTILIDADES DE ANIMAÇÃO ---------- */
.anima-subir {
  animation: entradaCartao 0.45s ease both;
}

.anima-fade {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Definições do perfil */
.definicoes-perfil {
  max-width: 700px;
}

.definicoes-avatar-area {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0 25px;
}

.avatar-definicao {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.avatar-definicao img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texto-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.definicoes-acoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.estado-definicoes {
  min-height: 20px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.estado-definicoes.sucesso {
  color: var(--success);
}

.estado-definicoes.erro {
  color: var(--danger);
}
.perfil-utilizador {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.perfil-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  z-index: 1200;
}

.perfil-dropdown.aberto {
  display: block;
}

.perfil-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.perfil-dropdown-info strong {
  font-size: 0.8rem;
}

.perfil-dropdown-info span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.perfil-dropdown-item,
.perfil-dropdown-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 15px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.perfil-dropdown-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.perfil-dropdown-separador {
  height: 1px;
  background: var(--border);
}

.perfil-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}

.perfil-dropdown-icone {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-weight: 700;
}

#user-avatar {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
/* =============================================
   DASHBOARD CLEAN
   ============================================= */

.dashboard-simples {
  max-width: 1500px;
}

.dashboard-simples-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-simples-etiqueta {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.dashboard-simples-topo h1 {
  margin-bottom: 7px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dashboard-simples-topo p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dashboard-simples-data {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Indicadores simples */
.resumo-simples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.resumo-simples article {
  padding: 20px;
  background: var(--bg-surface);
}

.resumo-simples article > span,
.resumo-simples article > strong,
.resumo-simples article > small {
  display: block;
}

.resumo-simples article > span {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.resumo-simples article > strong {
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.resumo-simples article > small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Painéis principais */
.dashboard-simples-grelha {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.painel-simples {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.painel-simples h2 {
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.painel-simples-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.painel-simples-cabecalho a {
  color: var(--accent);
  font-size: 0.75rem;
  text-decoration: none;
}

.dashboard-simples-lateral {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Eventos em lista limpa */
.dashboard-simples .timeline-item {
  display: flex;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-simples .timeline-item:last-child {
  border-bottom: 0;
}

.dashboard-simples .timeline-data {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  background: var(--bg-base);
}

.dashboard-simples .timeline-conteudo p {
  margin-top: 5px;
  font-size: 0.78rem;
}

/* Ações rápidas */
.acoes-simples {
  display: grid;
  gap: 8px;
}

.acoes-simples a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.82rem;
  text-decoration: none;
}

.acoes-simples a:last-child {
  border-bottom: 0;
}

.acoes-simples a span {
  color: var(--accent);
}

.acoes-simples a:hover {
  color: var(--accent);
}

/* Alertas discretos */
.dashboard-simples .alerta-item {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.dashboard-simples .alerta-item:last-child {
  border-bottom: 0;
}

.dashboard-vazio {
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Responsivo */
@media (max-width: 1000px) {
  .resumo-simples {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-simples-grelha {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dashboard-simples-topo {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-simples-data {
    white-space: normal;
  }

  .resumo-simples article {
    padding: 16px;
  }
}