/* ==========================================================
   BNMA ADVOGADOS - TABELAS, MATRIZES & DATAGRIDS
   ========================================================== */

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
  position: relative;
}

.table-responsive::-webkit-scrollbar {
  height: 5px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 9999px;
}

.data-table {
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  white-space: nowrap;
  border-collapse: collapse;
}

.data-table thead th {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  word-break: keep-all;
}

.data-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

/* AGENDA CARD LIST */
.agenda-day-group {
  margin-bottom: 2rem;
}

.agenda-day-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agenda-day-header svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.meeting-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.meeting-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.meeting-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.meeting-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meeting-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* PROGRESS BARS */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent-solid);
  border-radius: var(--radius-full);
  transition: width 0.4s ease-out;
}

/* RESPONSIVIDADE EM TABELAS & AGENDA */
@media (max-width: 768px) {
  .table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-sm);
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 760px;
  }

  .data-table thead th {
    padding: 0.65rem 0.75rem;
    font-size: 0.7rem;
  }
  
  .data-table tbody td {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }

  .meeting-card {
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .meeting-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .meeting-actions .btn {
    min-height: 48px;
    flex: 1 1 auto;
    justify-content: center;
  }
}


