.checkbox-container {
    display: inline-block;
    padding: 5px;
}

.checkbox-container label {
    margin-right: 10px;
}

.checkbox-container.duplicate {
    border: 2px solid red;
    border-radius: 4px;
    padding: 3px;
}

select.duplicate {
    border: 2px solid red !important;
    color: red !important;
}

.duplicate-container.duplicate .choices__inner {
    border: 2px solid red !important;
    color: red !important;
}

select.duplicate {
    border: 2px solid red !important;
    color: red !important;
}

/* Estilo para destacar duplicatas em vermelho */
.choices__inner.duplicate {
    border: 2px solid red !important;
    color: red !important;
}

.choices__list--multiple .choices__item--selectable.duplicate {
    background-color: #ffcccc !important;
    color: red !important;
    border: 1px solid red !important;
}

/* Estilo geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1e3a8a;
	/*background-color: #e6f0fa;*/
    padding: 20px 0; /* Removido padding lateral para alinhar à esquerda */
}

.container {
    max-width: 100%; /* Ocupa toda a largura disponível */
    margin: 0; /* Removido centralização */
    background-color: #fff;
    padding: 20px;
    border-radius: 0; /* Opcional: remove bordas arredondadas para melhor aproveitamento */
    box-shadow: none; /* Opcional: remove sombra para um visual mais limpo */
}

h1 {
    text-align: left; /* Alinha o título à esquerda */
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-left: 20px; /* Adiciona um pequeno padding para consistência */
}

h4 {
    text-align: left; /* Alinha o título à esquerda */
    color: #1e3a80;
    margin-bottom: 20px;
    padding-left: 20px; 	/* Adiciona um pequeno padding para consistência */
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-left: 20px;
    align-items: center;
}

.filters select, .filters button {
    padding: 10px;
    border: 1px solid #60a5fa;
    border-radius: 5px;
    background-color: #f0f7ff;
    min-width: 150px;
    height: 40px;
}

.filters button {
    background-color: #2563eb;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filters button:hover {
    background-color: #1e40af;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters select, .filters button {
        width: 100%;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: auto; /* Permite que as colunas se ajustem ao conteúdo */
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #93c5fd;
    white-space: nowrap; /* Evita quebras de linha desnecessárias */
}

/* Estilo para colunas somente leitura (Data, Dia, Culto) */
td:nth-child(1), td:nth-child(2), td:nth-child(3) {
    background-color: #f0f0f0; /* Fundo cinza claro para indicar que não é editável */
    cursor: default; /* Remove o cursor de edição */
}

th {
    background-color: #1e3a8a;
    color: white;
}

tr:nth-child(even) {
    background-color: #dbeafe;
}

tr:nth-child(odd) {
    background-color: #dbeafe;
}

tr.morning {
    background-color: #dbeafe;
}

tr.night {
    background-color: #dbeafe;
}

td:hover {
    background-color: #bfdbfe;
    cursor: pointer;
}

/* Evitar o hover nas colunas somente leitura */
td:nth-child(1):hover, td:nth-child(2):hover, td:nth-child(3):hover {
    background-color: #f0f0f0; /* Mantém o fundo cinza claro */
    cursor: default;
}

select {
    padding: 5px;
    border: 1px solid #60a5fa;
    border-radius: 5px;
    background-color: #f0f7ff;
    width: auto; /* Ajusta a largura ao conteúdo */
    min-width: 100px; /* Garante um tamanho mínimo */
}

/* Estilizar o Choices.js */
.choices {
    width: auto; /* Ajusta a largura ao conteúdo */
    min-width: 150px; /* Garante um tamanho mínimo */
    display: inline-block; /* Permite que o contêiner se ajuste ao conteúdo */
}

.choices__inner {
    padding: 5px;
    border: 1px solid #60a5fa;
    border-radius: 5px;
    background-color: #f0f7ff;
    min-height: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: auto; /* Ajusta a largura ao conteúdo */
}

.choices__list--multiple .choices__item {
    background-color: #3b82f6;
    color: white;
    border: 1px solid #2563eb;
    border-radius: 3px;
    padding: 2px 5px;
    margin: 2px;
    white-space: nowrap; /* Evita quebras nos chips */
}

.choices__list--multiple .choices__item--selectable {
    padding-right: 20px;
}

.choices__list--dropdown {
    border: 1px solid #60a5fa;
    border-radius: 5px;
    background-color: #fff;
    z-index: 1000;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #bfdbfe;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* Alinha os botões à esquerda */
    padding-left: 20px; /* Adiciona um pequeno padding para consistência */
}

.actions button {
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.actions button:hover {
    background-color: #1e40af;
}

/* Responsividade */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #93c5fd;
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #dbeafe;
        align-items: center;
    }

    td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #1e3a8a;
        width: 40%;
    }

    select, .choices {
        width: 55%;
        min-width: 0; /* Remove o tamanho mínimo em telas pequenas */
    }

    .filters {
        flex-direction: column;
    }

    .actions {
        flex-direction: column;
    }

    /* Ajustar o estilo de colunas somente leitura em telas pequenas */
    td:nth-child(1), td:nth-child(2), td:nth-child(3) {
        background-color: #f0f0f0;
        cursor: default;
    }
	
	/* Verde claro para células com seleção */
	.selected {
    background-color: #90EE90; /* Verde claro */
	}

	/* Verde escuro para linhas completas */
	.complete {
    background-color: #32CD32; /* Verde mais escuro */
	}
}	
	
	@media (max-width: 768px) {
		/* Melhorar espaçamento geral */
		body {
			padding: 10px;
		}
		
		.container {
			padding: 10px;
		}
		
		h1 {
			font-size: 1.5rem;
			padding-left: 10px;
		}
		
		/* Ajustar filtros */
		.filters {
			flex-direction: column;
			gap: 8px;
			padding-left: 10px;
		}
		
		.filters select {
			width: 100%;
			padding: 10px;
		}
		
		/* Ajustar botões */
		.actions {
			flex-direction: row;
			flex-wrap: wrap;
			padding-left: 10px;
		}
		
		.actions button {
			flex: 1 1 45%;
			min-width: 120px;
			margin-bottom: 8px;
			padding: 12px;
			font-size: 0.9rem;
		}
	}
	
	@media (max-width: 768px) {
		/* Transformar tabela em cards */
		table {
			border: none;
			background: transparent;
		}
		
		thead {
			display: none;
		}
		
		tr {
			display: block;
			margin-bottom: 20px;
			background: white;
			border-radius: 8px;
			box-shadow: 0 2px 5px rgba(0,0,0,0.1);
			overflow: hidden;
		}
		
		td {
			display: flex;
			flex-wrap: wrap;
			padding: 12px 15px;
			border: none;
			border-bottom: 1px solid #e0e0e0;
		}
		
		/* Adicionar labels antes de cada célula */
		td:before {
			content: attr(data-label);
			font-weight: bold;
			color: #1e3a8a;
			width: 100%;
			margin-bottom: 5px;
			font-size: 0.9rem;
		}
		
		/* Estilizar células especiais */
		td:nth-child(1):before,
		td:nth-child(2):before,
		td:nth-child(3):before {
			color: #1e3a8a;
		}
		
		/* Ajustar selects e checkboxes */
		select, .choices {
			width: 100%;
			min-width: 0;
		}
		
		.checkbox-container {
			width: 100%;
		}
		
		/* Destacar cabeçalho do card (data e culto) */
		td:nth-child(1),
		td:nth-child(3) {
			background-color: #f0f7ff;
			font-weight: bold;
		}
		
		td:nth-child(1):before,
		td:nth-child(3):before {
			display: none;
		}
		
		/* Remover borda da última célula */
		td:last-child {
			border-bottom: none;
		}
		
		/* Ajustar classes de horário */
		tr.morning td:nth-child(1),
		tr.morning td:nth-child(3) {
			background-color: #bfdbfe;
		}
		
		tr.night td:nth-child(1),
		tr.night td:nth-child(3) {
			background-color: #93c5fd;
		}
	}
	
	@media (max-width: 768px) {
		/* Melhorar visualização de checkboxes */
		.checkbox-container label {
			display: flex;
			align-items: center;
			margin-right: 15px;
		}
		
		.checkbox-container input[type="checkbox"] {
			margin-right: 8px;
			transform: scale(1.2);
		}
		
		/* Melhorar visual de selects */
		select {
			padding: 10px;
			font-size: 0.9rem;
		}
		
		/* Ajustar espaçamento entre linhas */
		tr {
			margin-bottom: 25px;
		}
		
		/* Destacar linhas completas */
		.complete {
			box-shadow: 0 0 0 2px #32CD32;
		}
		
		/* Feedback visual ao tocar */
		td:active {
			background-color: #e0e0e0;
		}
	}
	
	@media (max-width: 768px) {
    /* Adicionar rolagem horizontal para tabelas muito largas */
    .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fixar cabeçalho ao rolar */
    thead {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

/* Estilos específicos para o Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card.wide {
    grid-column: span 2;
}

.dashboard-card h2 {
    color: #1e3a8a;
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.chart-container {
  position: relative !important;
  width: 100% !important;
  height: 300px !important;
  min-height: 300px !important;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card.wide {
        grid-column: span 1;
    }
    
    .chart-container {
        height: 250px;
    }
}

	.kpi-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kpi {
    background: white;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kpi-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1e3a8a;
    display: block;
}

.kpi-label {
    font-size: 0.9rem;
    color: #666;
}
	
	/* Adicione isso ao seu styles.css */
.btn-dashboard {
    padding: 10px 20px;
    background-color: #4f46e5; /* Roxo diferente para diferenciar */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-dashboard:hover {
    background-color: #4338ca;
}

/* Para versão mobile */
@media (max-width: 768px) {
    .btn-dashboard {
        flex: 1 1 45%;
        min-width: 120px;
        margin-bottom: 8px;
        padding: 12px;
    }
}

/* Estilos para a navegação */
.main-nav {
    background-color: #1e3a8a;
    color: white;
    padding: 15px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #3b82f6;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 10px;
    }
    
    .nav-links a {
        margin: 0 5px;
    }
}

.nav-links a.active {
    background-color: #3b82f6;
    font-weight: bold;
}

/* Loading indicator */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
    font-style: italic;
}

/* Ajustes para tabelas em mobile */
@media screen and (max-width: 768px) {
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }
}

/* Ajuste para gráficos em mobile */
@media screen and (max-width: 480px) {
    .chart-container {
        height: 200px;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
}

.no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
}

/* Garantir que os canvas tenham tamanho */
.chart-container canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-close {
    background: none;
    border: none;
    color: #c62828;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
}
	
	.loading-overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(255, 255, 255, 0.8);
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 10;
	}

/* ===== DASHBOARD SPECIFIC STYLES ===== */
.dashboard {
    padding: 20px;
}

.dashboard .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard .card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard .card-header {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.dashboard .chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.dashboard .chart-container canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.dashboard .kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Responsividade */
@media (max-width: 768px) {
    .dashboard .grid-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard .chart-container {
        height: 250px;
    }
    
    .dashboard .kpi-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard .chart-container canvas {
        height: 100% !important;
    }
}

@media (max-width: 480px) {
    .dashboard .chart-container {
        height: 200px;
    }
}

#funcoesChart, 
#diaschart, 
#topparticipanteschart {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Estilos para o calendário de escalas
#scheduleCalendar {
    padding: 10px;
}

.schedule-calendar {
    width: 100%;
}

.calendar-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 15px;
    text-align: center;
}

.calendar-date {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.date-header {
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 5px;
}

.calendar-event {
    background-color: #f0f7ff;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
 */

/* Calendário */
.calendar-container {
    padding: 15px;
    min-height: 300px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-day-header {
    font-weight: bold;
    background-color: #f0f7ff;
}

.calendar-day-empty {
    background-color: #f5f5f5;
}

.calendar-day-complete {
    background-color: #d1fae5;
    color: #065f46;
}

.calendar-day-incomplete {
    background-color: #fef3c7;
    color: #92400e;
}

.calendar-day-no-schedule {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Status por Função */
.status-container {
    padding: 15px;
}

.status-item {
    margin-bottom: 15px;
}

.status-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}

.status-bar {
    height: 20px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.status-progress {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 10px;
    transition: width 0.3s;
}

/* Gráficos */
.radar-chart-container {
    height: 300px;
}

.chart-placeholder {
  text-align: center;
  color: #666;
  padding: 30px;
  font-style: italic;
}

#dayNumberFilter {
    transition: all 0.3s;
}

#dayNumberFilter:disabled {
    opacity: 0.7;
    background-color: #e9ecef;
    cursor: not-allowed;
}

.escala-tabela-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #1e40af;
  border-radius: 6px;
  padding: 10px;
  background-color: #fff;
}

.escala-tabela-cell:first-child {
  width: 180px; /* largura fixa para a coluna Função */
  flex-shrink: 0;
}

.escala-tabela-cell:last-child {
  flex: 1; /* a coluna de integrantes se ajusta */
  white-space: normal;
  word-break: break-word;
}



/* Botões tag estilo pílula */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tag-button {
    padding: 8px 16px;
    background-color: #e0e7ff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: #1e3a8a;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-button.active {
    background-color: #4338ca;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .tag-selector {
        justify-content: flex-start;
    }

    .tag-button {
        flex: 1 1 48%;
        text-align: center;
    }
}

.clear-btn {
  background-color: #f3f4f6;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.clear-btn:hover {
  background-color: #e5e7eb;
}


.escala-tabela-row {
  display: flex;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.escala-tabela-cell {
  flex: 1;
  padding: 10px;
}

.escala-tabela-header {
  background-color: #1e3a8a;
  color: white;
  font-weight: bold;
}
.repertorio-container {
    padding: 20px;
    background-color: #e0f2fe; /* azul claro leve */
    border-radius: 8px;
    border: 1px solid #93c5fd;
    margin-bottom: 20px;
    max-width: 700px;
}

.repertorio-container h3 {
    margin-bottom: 10px;
    color: #1e3a8a;
    font-size: 1.1rem;
    border-bottom: 1px solid #93c5fd;
    padding-bottom: 5px;
}

.repertorio-textarea {
    width: 100%;
    height: 160px;
    padding: 12px;
    border: 1px solid #60a5fa;
    border-radius: 6px;
    background-color: #dbeafe;
    resize: vertical;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #000000;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
/*
@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding: 10px;
  }

  td {
    position: relative;
    padding-left: 50%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
    min-height: 40px;
  }

  td:before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 10px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
  }

  .repertorio-textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    margin-top: 5px;
  }

  .checkbox-container label {
    display: inline-block;
    margin: 4px 6px 4px 0;
    font-size: 14px;
  }
}
*/

#integranteSelect {
  padding: 8px;
  font-size: 16px;
  margin: 10px 0;
  max-width: 300px;
}

#resumoIntegrante table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#resumoIntegrante th, #resumoIntegrante td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

#resumoIntegrante th {
  background-color: #1e3a8a;
}

#graficoParticipacoes {
  width: 40% !important;
  height: 300px !important;
}

#grafico-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

canvas#graficoParticipacoes {
  /*width: 30% !important;*/
  height: 400px !important;
}

/* NOVO */
/* Garante que a tabela seja rolável horizontalmente */
.table-wrapper {
  overflow-x: auto;
}

/* Aplica ao container da tabela */
#tabelaEscalaDetalhada, #tabelaRepertorio {
  width: 100%;
  border-collapse: collapse;
}

#tabelaEscalaDetalhada th,
#tabelaEscalaDetalhada td,
#tabelaRepertorio th,
#tabelaRepertorio td {
  padding: 10px;
  text-align: left;
  white-space: nowrap; /* Impede quebra no texto das células */
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  #tabelaEscalaDetalhada thead,
  #tabelaRepertorio thead {
    display: table-header-group !important; /* Garante que <thead> apareça */
  }

  #tabelaEscalaDetalhada th,
  #tabelaRepertorio th {
    font-size: 16px;
    background: #1e3a8a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  #tabelaEscalaDetalhada td,
  #tabelaRepertorio td {
    font-size: 14px;
  }

  /* Ajusta largura da tabela no mobile */
  #tabelaEscalaDetalhada, #tabelaRepertorio {
    min-width: 500px;
  }
}

@media (max-width: 768px) {
  #tabelaEscalaDetalhada thead,
  #tabelaRepertorio thead {
    display: table-header-group !important;
  }

  #tabelaEscalaDetalhada th,
  #tabelaRepertorio th {
    font-size: 16px;
    background: #1e3a8a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  #tabelaEscalaDetalhada td,
  #tabelaRepertorio td {
    font-size: 14px;
  }

  #tabelaEscalaDetalhada, #tabelaRepertorio {
    min-width: 500px;
  }
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.responsive-table th,
.responsive-table td {
  text-align: left;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 15px;
}

/* Corrigir quebra de linha no mobile */
@media screen and (max-width: 768px) {
  .responsive-table thead {
    display: table-header-group;
  }

  .responsive-table th {
    background-color: #1e3a8a;
    color: #fff;
    font-weight: bold;
	white-space: nowrap;
  }

  .responsive-table td {
    white-space: normal;
    font-size: 14px;
  }

  .table-wrapper {
    overflow-x: auto;
  }
}
/* THE END */


tr.especial {
	background-color: #fff8dc;  tom suave de amarelo */
}

@media (max-width: 768px) {
  tr.expandable td:first-child {
    font-weight: bold;
    background-color: #e0f2fe;
    color: #1e3a8a;
    position: relative;
  }

  tr.expandable td:first-child::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #1e3a8a;
  }

  tr.expandable.expanded td:first-child::after {
    content: '▲';
  }
}


.user-info {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

/*
.user-info {
  background-color: #f5f5f5;
  padding: 10px 20px;
  font-size: 16px;
  color: #333;
  text-align: right;
}
*/
