.content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 40px;
}

.header-dashboard h1 {
  display: flex;
  align-items: center;
  gap: 12px;
}

#btn-ajuda {
  font-size: 1.2rem;
  color: #3498db;
  cursor: pointer;
  transition: transform 0.2s;
}

#btn-ajuda:hover {
  transform: scale(1.2);
  color: #2980b9;
}

.header-controls-main {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: flex-end;
  background: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.monitoramento-grid-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  flex-grow: 1;
  overflow: hidden;
}

.search-bar {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 10px;
  background: #ebedef;
  padding: 10px;
  border-radius: 8px;
}

.search-bar select {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
}

.scroll-tabelas {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.monitoramento-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  position: sticky;
  top: 0;
  background: #34495e;
  color: white;
  padding: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  z-index: 10;
}

td {
  padding: 12px;
  border-bottom: 1px solid #f1f1f1;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.2;
}

.td-linhas {
  text-align: left !important;
  padding-left: 20px;
  font-weight: bold;
  white-space: nowrap;
  color: #2c3e50;
}

.td-linhas span {
  display: block;
  font-size: 0.65rem;
  color: #3498db;
  font-weight: normal;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Estilo para as viagens e veículos dentro das células */
.info-viagens {
  display: block;
  font-weight: bold;
  color: #333;
}

.info-veiculos {
  display: block;
  font-size: 0.75rem;
  color: #85c1e9; /* Azul claro da imagem */
  margin-top: 2px;
}

.btn-generate {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-confirm {
  background: #27ae60;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-left: auto;
}

.btn-clear-db {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

/* Modal de Instruções */
.modal-instrucoes {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  width: 60%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f1f1;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.modal-header h2 {
  font-size: 1.3rem;
  color: #2c3e50;
}

.close-modal {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #7f8c8d;
}

.close-modal:hover { color: #c0392b; }

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step {
  padding: 10px;
  border-left: 4px solid #3498db;
  background: #f8f9fa;
  border-radius: 4px;
}

.step-num {
  font-weight: 800;
  color: #3498db;
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  line-height: 1.4;
  color: #2c3e50;
  font-size: 0.95rem;
}

/* Estilos de Prévia */
.previa-container {
  background: #fffbe6;
  border: 2px dashed #f1c40f;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.previa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.resumo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 150px;
  overflow-y: auto;
}

.card-previa {
  background: white;
  padding: 8px;
  border: 1px solid #ffe58f;
  font-size: 0.75rem;
  line-height: 1.4;
}