.content {
  margin-left: 250px;
  padding: 20px 40px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #f0f2f5;
}

/* Cabeçalho Padronizado (Igual ao Mapa) */
.header-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-shrink: 0;
}
.header-dashboard h1 {
  font-size: 1.8rem;
  text-align: center;
  width: 100%;
  margin: 0;
  font-weight: bold;
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.filter-group label {
  font-size: 0.8rem;
  font-weight: bold;
  color: #000;
}
.filter-group select,
.filter-group input {
  border: 1px solid #ddd;
  padding: 4px;
  border-radius: 4px;
  outline: none;
  font-size: 0.85rem;
  text-align: center;
}

.filter-group-visible {
  display: flex;
  gap: 10px;
  background: white;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  align-items: center;
}
.check-item {
  font-size: 0.8rem;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.check-item input {
  cursor: pointer;
  accent-color: #3498db;
  width: 15px;
  height: 15px;
}

/* Grid de Tabelas */
.escala-grid-6-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 50px;
  padding-right: 5px;
}
.escala-grid-6-columns::-webkit-scrollbar {
  width: 8px;
}
.escala-grid-6-columns::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.tabela-individual-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 10px;
}
.box-nome-func {
  border: 1.5px solid black;
  background: #ffffcc;
  text-align: center;
  padding: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.tabela-jornada {
  border-collapse: collapse;
  width: 100%;
  border: 1.5px solid black;
  background: white;
  table-layout: fixed;
}
.tabela-jornada th,
.tabela-jornada td {
  border: 1px solid black;
  padding: 2px;
  font-size: 0.6rem;
  text-align: center;
  height: 22px;
  vertical-align: middle;
}
.tabela-jornada thead th {
  background: #f2f2f2;
  font-weight: bold;
}

/* Cores de Linha */
.row-feriado {
  background-color: #ebfbee !important;
}
.row-sabado {
  background-color: #fff4e6 !important;
}
.row-domingo {
  background-color: #e7f5ff !important;
}

/* Mesclagens */
.celula-ferias-mesclada {
  background-color: #f3e5f5 !important;
  font-weight: bold;
  text-transform: uppercase;
}
.celula-outros-mesclada {
  background-color: #fff3e0 !important;
  font-weight: bold;
  text-transform: uppercase;
}
.celula-falta-mesclada {
  background-color: #ffcccc !important;
  color: #cc0000 !important;
  font-weight: bold;
  text-transform: uppercase;
}
.celula-demitido-mesclada {
  background-color: #000 !important;
  color: #fff !important;
  font-weight: bold;
  text-transform: uppercase;
}

/* Folgas */
.folga-pedida {
  color: #e74c3c !important;
  font-weight: bold;
}
.folga-marcada {
  color: #000 !important;
  font-weight: bold;
  font-style: italic;
}
.folga-programada {
  color: #000 !important;
  font-weight: bold;
}
.folga-escala {
  color: #000 !important;
  font-weight: bold;
}

.footer-total {
  background: #bfbfbf;
  font-weight: bold;
}

.cabecalho-equipe-master {
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: #2c3e50;
}

.btn-print-red {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 5mm;
  }
  .sidebar,
  .header-controls,
  .header-dashboard,
  .no-print {
    display: none !important;
  }
  .content {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .escala-grid-6-columns {
    display: block;
    overflow: visible;
  }
  .tabela-individual-wrapper {
    page-break-inside: avoid;
    margin-bottom: 20px;
    width: 32%;
    display: inline-block;
    vertical-align: top;
    margin-right: 1%;
  }
}
