/* ===================== RESET BÁSICO ===================== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff8e1;
  color: #333;
  font-size: 12px;
}

/* ===================== LAYOUT PRINCIPAL ===================== */
.crm-container {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 200px;
  background: #ffca28;
  padding: 1rem 0.8rem;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}
.sidebar h2 {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #333;
}
.sidebar nav ul {
  list-style: none;
  padding: 0;
}
.sidebar nav li {
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
  margin-bottom: 0.4rem;
}
.sidebar nav li:hover { background: #ffe082; }

.main-area {
  flex: 1;
  padding: 1rem;
}

.van-topo {
  background: #fffbe6;
  padding: 0.8rem;
  border-left: 4px solid #ffc107;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  overflow-x: auto;
}
.van-detalhes { display: flex; gap: 0.5rem; flex: 1; min-width: 0; }
.van-box {
  background: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 0.8rem;
  flex: 1 1 130px;
  min-width: 130px;
  word-break: break-word;
}
.van-topo button {
  padding: 5px 10px;
  border-radius: 4px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
}

#conteudoDinamico {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  min-height: 300px;
}

.botaoSelecionar {
  background: #ffc107;
  color: #333;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.botaoSelecionar:hover {
  background: #ffb300;
}

.pax-item {
  background: #fff;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
}
.pax-item:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.pax-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.pax-item button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 0.6rem;
}
.pax-item .btnExcluirPax {
  color: #d32f2f;
}
.pax-item .btnExcluirPax:hover {
  color: #b71c1c;
}
.pax-item .btnEditarEquipe,
.pax-item .btnEditarResp,
.pax-item .btnEditarAny {
  color: #1976d2;
}
.pax-item .btnEditarEquipe:hover,
.pax-item .btnEditarResp:hover,
.pax-item .btnEditarAny:hover {
  color: #0d47a1;
}

.pax-detalhe {
  background: #fff;
  padding: 1.2rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 0.8rem;
}

.school-list {
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}
.school-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 0.7rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  transition: box-shadow 0.2s;
}
.school-list li:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.school-list .school-name { font-weight: 600; }
.school-list .school-date {
  color: #888;
  font-size: 0.75rem;
  margin-left: 1.2rem;
}
.school-list .delete-btn {
  border: none;
  background: transparent;
  color: #d32f2f;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.7rem;
  transition: color 0.2s;
}
.school-list .delete-btn:hover {
  color: #b71c1c;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.modal-content h3 {
  margin-top: 0;
}

/* ===================== ESTILIZAÇÃO GERAL DE FORMULÁRIOS E BOTÕES ===================== */
button, input[type="submit"], input[type="button"] {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}
form input, form select, form textarea {
  margin-top: 0.4rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  font-size: 0.9rem;
}
form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
form legend {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #333;
}
form button[type="submit"] {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
form button[type="submit"]:hover {
  background: #43a047;
}
form button[type="button"] {
  background: #eee;
  color: #333;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.8rem;
  transition: background 0.2s;
}
form button[type="button"]:hover {
  background: #ddd;
}

/* ===================== MÁSCARAS SIMPLES ===================== */
.input-mask { font-family: monospace; }

/* ===================== RESPONSIVIDADE ===================== */
@media (max-width: 768px) {
  .crm-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar nav ul {
    display: flex;
    gap: 0.4rem;
  }
  .main-area { padding: 0.6rem; }
  .van-detalhes, .van-topo { flex-wrap: wrap; }
}

/* ===================== ESTILIZAÇÃO ESPECÍFICA DA TABELA DE IMPORTAÇÃO ===================== */
.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.preview-table th,
.preview-table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
}
.preview-table th {
  background: #0288d1;
  color: white;
  font-weight: 600;
}
.linha-erro {
  background: #ffebee;
}
.linha-alerta {
  background: #fffde7;
}
.resultado-section {
  margin-top: 1.5rem;
}
.resultado-section h4 {
  margin-bottom: 0.5rem;
}
.resultado-linhas li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.oculto {
  display: none;
}

/* styles.css (ao final do arquivo) */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  margin-bottom: 1rem;
}
.card h4 {
  margin-top: 0;
  margin-bottom: .75rem;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: .3rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .5rem;
}
.table th, .table td {
  padding: .5rem;
  border: 1px solid #ddd;
  text-align: left;
}
.btn {
  padding: .5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: .5rem;
}
.btn-primary {
  background: #1976d2;
  color: #fff;
}
.btn-secondary {
  background: #eee;
  color: #333;
}
.input, .textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: .3rem;

}


  body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f7fa;
    margin: 0;
    color: #272525;
  }
  .crm-card, .card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px 16px 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 7px 0 #0001;
    border: none;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  .crm-btn, .btn {
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    padding: .45em 1.2em;
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 2px 7px 0 #0001;
    margin-right: .4em;
  }
  .crm-btn-primary, .btn-primary {
    background: #ffd600;
    color: #222;
    font-weight: bold;
  }
  .crm-btn-primary:hover, .btn-primary:hover {
    background: #ffc107;
    color: #222;
    box-shadow: 0 3px 12px #ffc10733;
  }
  .crm-btn-secondary, .btn-secondary {
    background: #f2f3f7;
    color: #555;
  }
  .crm-btn-secondary:hover, .btn-secondary:hover {
    background: #e3e5ea;
    color: #222;
    box-shadow: 0 2px 8px #f5f9ff99;
  }
  .crm-input, .input, .textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    padding: .32em .6em;
    outline: none;
    background: #f8f8fa;
    color: #262727;
    margin-bottom: .6em;
    box-sizing: border-box;
  }
  .crm-input:focus, .input:focus, .textarea:focus {
    border: 1.5px solid #ffd600;
    background: #fffde7;
  }
  .table {
    width: 100%;
    border-collapse: collapse;
    font-size: .99em;
    margin-top: .8em;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
  }
  .table th, .table td {
    padding: .55em .6em;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }
  .table th {
    background: #f5f9ff;
    color: #333;
    font-weight: 600;
  }
  .table tr:last-child td { border-bottom: none; }
  ul, li {
    margin: 0; padding: 0; list-style: none;
  }



