/* _____________________________________________________________________ RESET E FONTES _____________________________________________________________________ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

::-webkit-scrollbar {
  width: 0px;
}

/* _____________________________________________________________________ SIDEBAR E NAVEGAÇÃO DO PORTAL _____________________________________________________________________ */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  width: 100%;
  background: #229554;
  border-radius: 0 0 24px 24px;
}

.nav-title {
  flex: 1;
  text-align: center;
}

.nav-title h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  margin-left:120px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #955f22;
  position: sticky;
  width: 100%;
  top: 0;
  border-radius: 0 0 24px 24px;
  transition: opacity 0.3s ease;
  z-index: 999;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #229554;
  position: sticky;
  width: 100%;
  top: 0;
  border-radius: 0 0 24px 24px;
}

.logo {
  width: 250px;
  position: absolute;
  top: -4px;
  left: 2px;
  object-fit: cover;
}

.interacaoes {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: #0000004e; 
  width: 50px; 
  height: 45px; 
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.button:hover {
  scale: 0.95;
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.101);
}

.foto {
  width: 50px;
  border-radius: 50%;
  margin-top: 5px;
  margin-right: 10px;
  border: solid 2px #f7f0f0;
  object-fit: cover;
}

.bi {
  color: #fff;
}

#transitionPrev,
#transitionPrev2,
#transitionNext2 {
  display: none;
}

#filtro i {
  font-size: 22px;
  color: white;
}

/* _____________________________________________________________________ DASHBOARD ESTILO MODERNO _____________________________________________________________________ */

body {
  min-height: 100vh;
  background-color: #e8e8e8;
}

.container {
  background: white;
  max-width: 2000px !important;
}

.header {
  color: #032913;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* _____________________________________________________________________ FILTROS _____________________________________________________________________ */

.esconder-filtros {
  padding: 40px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.filter-group {
  position: relative;
}

.filter-label {
  display: block;
  font-weight: 400;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-input,
.filter-select,
select,
input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #333;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #4facfe;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
  transform: translateY(-2px);
}

.filter-input:disabled,
.filter-select:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

/* _____________________________________________________________________ BOTÕES _____________________________________________________________________ */

.buttons-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 150px;
}

.obrigatorio{
  border-color: red;
}

.btn-primary {
  background:  linear-gradient(135deg, #3fd094, #229554 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.filter-tag {
    display: inline-block;
    background: linear-gradient(135deg, #36b37e, #229554);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 400;
}

.segmented-control {
    display: inline-flex;
    background-color: #f0f0f0;
    border-radius: 14px;
    padding: 6px;
    margin: 24px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    font-size: 16px; /* aumento da fonte base */
    gap: 6px;
}

.segmented-control__button {
    padding: 14px 24px; /* aumenta o botão */
    font-size: 16px; /* aumenta a fonte */
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 400;
    color: #444;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    white-space: nowrap;
}

.segmented-control__button:hover {
    color: #229554;
    background-color: rgba(34, 149, 84, 0.1);
}

.segmented-control__button.active {
    background: linear-gradient(135deg, #3fd094, #229554 100%);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.segmented-control__button.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 3px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { width: 0; opacity: 0; }
    to { width: 60%; opacity: 1; }
}

@media (max-width: 768px) {
    .segmented-control {
        flex-wrap: wrap;
        justify-content: center;
    }

    .segmented-control__button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

.disabled-section {
  pointer-events: none;
  opacity: 0.5;
}


/* _____________________________________________________________________ TABELAS _____________________________________________________________________ */

td {
  font-size: 11px; 
}

.simple-table {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    border-collapse: separate; 
    border-spacing: 0;
    overflow: hidden; 
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.simple-table th, 
.simple-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
}

.simple-table th {
    background-color: #2a9e6e;
    color: white;
    text-align: left;
    font-size: 13px; 

}

.simple-table thead tr:first-child th:first-child {
    border-top-left-radius: 15px;
}

.simple-table thead tr:first-child th:last-child {
    border-top-right-radius: 15px;
}

.simple-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.simple-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.parceiro-row {
    font-weight: 400;
    transition: background-color 0.2s;
}

.parceiro-row:hover {
    background-color: #43a47d97;
}

.status-row td:first-child {
    padding-left: 2rem;
}

.status-row td {
    color:#044a22;

}
.expand-icon {
    display: inline-block;
    width: 1rem;
    text-align: center;
    transition: transform 0.2s;
    color: #36b37e; 
}

.parceiro-row.expanded .expand-icon {
    transform: rotate(90deg); 
}

.simple-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid #e2e8f0;
}

.status-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-container h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;      
    font-size: 1.20rem;      
    font-weight: 400;   
}

.results-container h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;      
    font-size: 1.0rem;      
    font-weight: 400;   
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table-card thead {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1;
}

.table-card table {
  max-height: 360px; /* altura suficiente para cerca de 10 linhas */
  overflow-y: auto;
  border-collapse: separate; /* opcional: mantém os cabeçalhos fixos */
}

.table-scroll-wrapper {
  max-height: 360px;
  overflow-y: auto;
}

.table-card {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 7px
}

@media (max-width: 1200px) {
  .grafico-tabelas-container {
    justify-content: flex-start;
  }
  
  .chart-card {
    min-width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .table-card {
    min-width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .table-card {
    min-width: 100%;
  }
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-table th, 
.simple-table td {
  padding: 10px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.simple-table th {
  background-color: #2a9e6e;
  color: white;
}

.carousel0 {
  padding-bottom: 30px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tabela-scroll-wrapper {
  max-height: 400px;
  overflow-y: auto;
}

.ranking-tabela {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
}

.barra {
  height: 16px;
  background-color: #4682B4;
  display: inline-block;
  vertical-align: middle;
}

.barra-propostas {
  background-color: #FFA500;
}

.valor {
  font-weight: bold;
  margin-left: 5px;
}

.table-card-conv thead {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1;
}


/* _____________________________________________________________________ LOADING _____________________________________________________________________ */

.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

.loading-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #229554; /* Cor verde do seu tema */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.loading-text {
    color: #333;
    font-weight: 400;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* _____________________________________________________________________ GRAFICOS  _____________________________________________________________________ */

.grafico-pizza-container {
  max-width: 600px !important;
  max-height: 500px !important;
  margin: 0 auto;
}

.chart-card {
  width: 100%;
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;        
}
.chart-and-tables {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.grafico-tabelas-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}


/* _____________________________________________________________________ CARROUSEL DE EQUIPES  _____________________________________________________________________ */

.carousel-item {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.carousel-item.active {
    display: block;
}

.breadcrumb {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #229554;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.carousel-controls {
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 20px;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: none;
}

.carousel-item.active {
    display: block;
}
