* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #121212;
  color: #fff;
  padding: 20px;
  max-width: 450px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 20px;
}

.btn-nav {
  display: block;
  text-align: center;
  background-color: #2c2c2e;
  color: #0a84ff;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 10px;
}

.container-centro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn-power {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  background-color: #30d158; 
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(48, 209, 88, 0.4);
}

.btn-power:active {
  transform: scale(0.95);
}

.area-ativa {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card-cronometro {
  background: #1c1c1e;
  width: 100%;
  padding: 30px 10px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 25px;
}

.display-tempo {
  font-size: 3rem;
  font-family: monospace;
  font-weight: bold;
  color: #0a84ff;
}

.controlo-botoes {
  display: flex;
  gap: 15px;
  width: 100%;
}

.btn-acao {
  flex: 1;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.btn-pausa { background-color: #ff9f0a; color: #fff; } 
.btn-resume { background-color: #30d158; color: #fff; }
.btn-parar { background-color: #ff453a; color: #fff; } 



.card-filtro {
  background-color: #1c1c1e;
  border: 1px solid #2c2c2e;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.grupo-datas {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.grupo-datas div {
  flex: 1;
}

.card-filtro label {
  display: block;
  font-size: 0.8rem;
  color: #8e8e93;
  margin-bottom: 4px;
}

.card-filtro input[type="date"] {
  width: 100%;
  padding: 10px;
  background-color: #2c2c2e;
  border: 1px solid #3a3a3c;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  color-scheme: dark; 
}

.botoes-filtro {
  display: flex;
  gap: 10px;
}

.btn-acao-filtro {
  flex: 1;
  padding: 10px;
  background-color: #0a84ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
}

.btn-limpar-filtro {
  flex: 1;
  padding: 10px;
  background-color: #3a3a3c;
  color: #fff;
  border: none;
  border-radius: 8px;
}

.bloco-semana {
  margin-bottom: 24px;
}

.cabecalho-semana {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #2c2c2e;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #0a84ff;
  margin-bottom: 8px;
}

.total-semana {
  color: #30d158;
}

.lista-dias {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



.bloco-semana {
  margin-bottom: 20px;
  background-color: #1c1c1e;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2c2c2e;
}

.cabecalho-semana {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: #2c2c2e;
  font-size: 0.9rem;
  font-weight: bold;
  color: #0a84ff;
  border-bottom: 1px solid #3a3a3c;
}

.total-semana {
  color: #30d158;
  font-family: monospace;
  font-size: 1rem;
}
.lista-dias {
  display: flex;
  flex-direction: column;
}

.linha-registo {
  display: grid;
  grid-template-columns: 1fr auto auto; 
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #2c2c2e;
}

.linha-registo:last-child {
  border-bottom: none; 
}


.col-data {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  font-family: monospace;
}


.col-dia-semana {
  font-size: 0.8rem;
  color: #8e8e93;
  text-transform: uppercase;
  margin-right: 15px;
  background: #2c2c2e;
  padding: 2px 6px;
  border-radius: 4px;
}


.col-horas {
  font-size: 1.05rem;
  font-weight: bold;
  color: #0a84ff;
  text-align: right;
  font-family: monospace;
}

.col-horas span {
  font-size: 0.8rem;
  font-weight: normal;
  color: #8e8e93;
}




.linha-registo {
  display: grid;
  grid-template-columns: 1fr auto auto auto; 
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #2c2c2e;
}


.btn-apagar {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.btn-apagar:active {
  background-color: rgba(255, 69, 58, 0.2); 
}

.nav-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.card-formulario {
  background-color: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 12px;
  padding: 20px;
}

.seccao-bloco {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2c2c2e;
}

.seccao-bloco h3 {
  font-size: 1rem;
  color: #0a84ff;
  margin-bottom: 12px;
}

.campo-grupo {
  margin-bottom: 12px;
}

.campo-grupo label {
  display: block;
  font-size: 0.85rem;
  color: #8e8e93;
  margin-bottom: 6px;
}

.campo-grupo input[type="date"],
.campo-grupo input[type="time"] {
  width: 100%;
  padding: 12px;
  background-color: #2c2c2e;
  border: 1px solid #3a3a3c;
  color: #ffffff;
  border-radius: 8px;
  font-size: 1rem;
  color-scheme: dark; /* Ativa calendário e relógio nativos em Dark Mode */
  box-sizing: border-box;
}

/* Painel de Pré-visualização das Horas */
.card-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c2c2e;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card-preview span {
  color: #8e8e93;
  font-size: 0.9rem;
}

.card-preview strong {
  color: #30d158;
  font-size: 1.2rem;
  font-family: monospace;
}

/* Mensagem de Erro de Validação */
.msg-erro {
  background-color: rgba(255, 69, 58, 0.15);
  border: 1px solid #ff453a;
  color: #ff453a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
}

.btn-guardar {
  width: 100%;
  padding: 14px;
  background-color: #30d158;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.btn-guardar:disabled {
  background-color: #3a3a3c;
  color: #8e8e93;
}
.nav-bar {
  display: flex;
  gap: 8px;
}

.btn-nav {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  background-color: #2c2c2e;
  color: #8e8e93;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.btn-nav.active,
.btn-nav:hover {
  background-color: #0a84ff;
  color: #ffffff;
}
.registo-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Esquerda flexível, Centro justo, Direita flexível */
  align-items: center;
  background-color: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  gap: 12px;
}

/* Coluna Esquerda: Data em cima, Hora Início - Hora Fim em baixo */
.registo-col-esquerda {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.registo-data {
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffffff;
}

.registo-horas-turno {
  font-size: 0.8rem;
  color: #8e8e93;
}

/* Coluna Central: Valor do Bónus Noturno */
.registo-col-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(48, 209, 88, 0.1); /* Fundo verde discreto */
  border: 1px solid rgba(48, 209, 88, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
}

.bonus-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #8e8e93;
  letter-spacing: 0.5px;
}

.bonus-valor {
  font-size: 0.9rem;
  font-weight: 600;
  color: #30d158; /* Verde para destacar o bónus */
}

/* Coluna Direita: Alinhada à direita como já tinhas */
.registo-col-direita {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

:root {
  --bg-body: #1c1c1e;
  --bg-card: #2c2c2e;
  --accent: #0a84ff;
  --text: #ffffff;
  --text-muted: #8e8e93;
  --danger: #ff453a;
  --success: #30d158;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text);
  padding: 20px;
  min-height: 100vh;
}

/* Layout do Login (index.html) */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 380px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.login-card h1 {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1c1c1e;
  color: #fff;
  font-size: 1em;
  outline: none;
}

input:focus {
  border-color: var(--accent);
}

button.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

button.btn-primary:active {
  opacity: 0.8;
}

#mensagem-erro {
  color: var(--danger);
  font-size: 0.85em;
  text-align: center;
  margin-top: 12px;
  display: none;
}

/* Layout do Painel de Início (inicio.html) */
.container-inicio {
  max-width: 800px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  font-size: 1.1em;
}

.btn-logout {
  background: rgba(255, 69, 58, 0.2);
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.grid-opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.card-opcao {
  background: var(--bg-card);
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, background 0.2s;
  width: 45%;
  align-items: center;
}

.card-opcao:hover {
  transform: translateY(-3px);
  background: #3a3a3c;
}

.icon {
  font-size: 2em;
}

.titulo-opcao {
  font-weight: 600;
  font-size: 1.1em;
}

.desc-opcao {
  color: var(--text-muted);
  font-size: 0.85em;
}
#notas,
#manual-notas {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  background-color: #2c2c2e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  resize: vertical; /* Permite redimensionar apenas na vertical */
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Estado de Foco (quando o utilizador clica para escrever) */
#notas:focus,
#manual-notas:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

/* Cor do Texto de Exemplo (Placeholder) */
#notas::placeholder,
#manual-notas::placeholder {
  color: #8e8e93;
  font-style: italic;
  font-size: 0.9rem;
}

/* Label acima do campo de notas */
label[for="notas"],
label[for="manual-notas"] {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #8e8e93;
  margin-bottom: 6px;
}

.turno-badge{
  width: 100%;
  border-bottom: #ffffff 1px solid;
    padding-bottom: 10px;
    margin-bottom: 0px;
}

.card-stats {
  background-color: var(--bg-card, #1c1c1e);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-card, 16px);
  padding: 18px;
  margin-bottom: 0px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-stats h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #e5e5ea;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.6rem;
  color: var(--texto-secundario, #8e8e93);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-item strong {
  font-size: 1rem;
  color: var(--cor-accent, #0a84ff);
}

.stat-bonus {
  font-size: 0.8rem;
  color: var(--cor-sucesso, #30d158);
}

@media (max-width: 380px) {
  .grid-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CARROSSEL DIÁRIO DE RELATÓRIOS
   ========================================== */
.carrossel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.carrossel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px 0;
  width: 100%;
}

.carrossel-track::-webkit-scrollbar {
  display: none;
}
.carrossel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Card Individual de Cada Dia */
.card-dia-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background-color: var(--bg-card, #1c1c1e);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-card, 16px);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.card-dia-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
  padding-bottom: 10px;
  margin-bottom: 5px;
}

.card-dia-header h3 {
  font-size: 1.25rem;
  color: var(--texto-principal, #ffffff);
}

.card-dia-header span {
  font-size: 0.9rem;
  color: var(--texto-secundario, #8e8e93);
}

/* Setas Desktop */
.seta-carrossel {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(44, 44, 46, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, opacity 0.2s;
  backdrop-filter: blur(8px);
}

.seta-carrossel:hover {
  background: var(--cor-accent, #0a84ff);
}

.seta-esq { left: -50px; }
.seta-dir { right: -50px; }

@media (min-width: 600px) {
  .seta-carrossel {
    display: flex;
    justify-content: center;
  }
}

/* Pontos de Paginação */
.carrossel-pontos {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
}

.ponto-indicador {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.ponto-indicador.ativo {
  width: 22px;
  border-radius: 6px;
  background: var(--cor-accent, #0a84ff);
}

/* ==========================================
   ESTILOS ESPECÍFICOS PARA A FOLHA ARBEITSSTUNDEN
   ========================================== */
.folha-a4-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  overflow-x: auto;
  background: #2c2c2e;
  padding: 20px;
  border-radius: 12px;
}

.folha-a4 {
  background: #ffffff !important;
  color: #000000 !important;
  width: 210mm;
  min-height: 297mm;
  padding: 12mm 10mm 10mm 10mm;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 8pt;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.folha-a4 * {
  box-sizing: border-box;
  color: #000000;
}

.doc-header {
  width: 100%;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 9pt;
  margin-bottom: 4px;
}

.doc-subheader {
  display: flex;
  justify-content: space-between;
  font-size: 8pt;
  margin-bottom: 6px;
  padding: 0 4px;
}

.legenda-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.box-sonntag { width: 10px; height: 10px; background: #e0e0e0; border: 1px solid #888; }
.box-feiertag { width: 10px; height: 10px; background: #f8cbad; border: 1px solid #888; }

.nome-funcionario {
  font-size: 11pt;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Grelha dos 3 Meses */
.tabela-meses-container {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tabela-mes-coluna {
  flex: 1;
}

.tabela-mes {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5pt;
  text-align: right;
}

.tabela-mes th, 
.tabela-mes td {
  border: 1px solid #000000;
  padding: 1.5px 2px;
  height: 14px;
}

.tabela-mes th {
  background: #f2f2f2;
  font-weight: bold;
  text-align: center;
}

.tabela-mes td.col-dia {
  text-align: center;
  font-weight: bold;
  width: 18px;
}

.tabela-mes .bg-sonntag {
  background: #e8e8e8 !important;
}

.tabela-mes .bg-feiertag {
  background: #fce4d6 !important;
}

.rodape-mes-total {
  font-weight: bold;
  background: #ffffff;
}

/* Aviso Lateral */
.aviso-stunden {
  font-size: 7pt;
  line-height: 1.2;
  margin-top: 8px;
  font-weight: bold;
}

/* Tabela Inferior de Saldos (Stundenkonto) */
.tabela-resumo-baixo {
  margin-top: 15px;
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5pt;
  text-align: right;
}

.tabela-resumo-baixo th, 
.tabela-resumo-baixo td {
  border: 1px solid #000000;
  padding: 2px 4px;
  height: 15px;
}

.tabela-resumo-baixo th {
  background: #f2f2f2;
  text-align: center;
  font-weight: bold;
}

.destaque-amarelo {
  background: #ffff00 !important;
  font-weight: bold;
}

/* Regras de Impressão */
@media print {
  body {
    background: transparent !important;
    padding: 0 !important;
  }
  .no-print, .nav-bar, h1 {
    display: none !important;
  }
  .folha-a4-container {
    padding: 0 !important;
    background: transparent !important;
  }
  .folha-a4 {
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
  }
}

.tabela-mes th, 
.tabela-mes td {
  border: 1px solid #000000;
  padding: 1.5px 2px;
  height: 14px;
}

.tabela-mes td.col-dia,
.tabela-mes th.col-dia {
  width: 18px;
  text-align: center;
  font-weight: bold;
}

.tabela-mes td:nth-child(2),
.tabela-mes td:nth-child(3),
.tabela-mes td:nth-child(4),
.tabela-mes td:nth-child(5) {
  text-align: right;
  width: calc((100% - 18px) / 4);
}

.option2{
    gap: 30px;
    display: flex;
    flex: auto;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
}

.filtros-card {
  padding: 14px 18px !important;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.filtros-resumo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cor-accent, #0a84ff);
  list-style: none; /* Remove o marcador padrão do browser */
}

/* Remove a seta predefinida do <summary> no Chrome/Safari */
.filtros-resumo::-webkit-details-marker {
  display: none;
}

.seta-toggle {
  font-size: 0.75rem;
  color: var(--texto-secundario, #8e8e93);
  transition: transform 0.25s ease;
}

/* Roda a seta quando o menu está aberto */
details[open] .seta-toggle {
  transform: rotate(180deg);
}

details[open] {
  padding-bottom: 18px !important;
}

.filtros-conteudo {
  cursor: default; /* Volta ao cursor normal dentro dos campos */
}

.btn-download-wrapper {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  pointer-events: none;
  margin-left: 0;
  transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              margin-left 0.45s ease;
  white-space: nowrap;
}

.btn-download-wrapper.visivel {
  max-width: 220px; /* Largura suficiente para o botão expandir */
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  margin-left: 10px;
}

#btn-download-pdf {
  width: 100%;
}
.btn-tab {
  flex: 1;
  padding: 10px 12px;
  background-color: var(--bg-input, #2c2c2e);
  color: var(--texto-secundario, #8e8e93);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-input, 10px);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tab.active {
  background-color: var(--cor-accent, #0a84ff);
  color: #ffffff;
  border-color: var(--cor-accent, #0a84ff);
}