/* ============================================================
   SGCE - Tabs (Bootstrap 5 Compatível)
   ============================================================ */

/* Tab navigation - compatível com Bootstrap 5 nav-tabs */
ul.tabs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #dee2e6;
  gap: 2px;
}

ul.tabs li {
  margin: 0;
  padding: 0;
}

ul.tabs li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s;
  background: #f8f9fa;
}

ul.tabs li a:hover {
  color: #3498db;
  background: #e9ecef;
}

ul.tabs li.active a,
ul.tabs li.active a:hover {
  color: #2c3e50;
  background: #fff;
  border-color: #dee2e6;
  border-bottom-color: #fff;
  margin-bottom: -2px;
}

/* Tab content container */
.tab_container {
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 20px;
  overflow: auto;
}

/* Tab content panels */
.tab_content {
  padding: 10px 0;
}

.tab_content h2 {
  font-weight: 600;
  font-size: 1.2rem;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 1px dashed #dee2e6;
  margin-bottom: 16px;
}

.tab_content h3 a {
  color: #3498db;
  text-decoration: none;
}

.tab_content h3 a:hover {
  text-decoration: underline;
}

/* Tab container (largura) */
.container {
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
}

/* Responsive */
@media (max-width: 768px) {
  ul.tabs {
    flex-direction: column;
  }

  ul.tabs li a {
    border-radius: 0;
    border-bottom: 1px solid #dee2e6;
  }

  ul.tabs li.active a {
    margin-bottom: 0;
    border-bottom-color: #dee2e6;
    border-left: 3px solid #3498db;
  }
}
