/* Table Card Styles */

.card-table {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  grid-column: 1 / -1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-table-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-table-header h1 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-table-nav {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.tab-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--accent-primary);
}

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-view-container {
  position: relative;
}

.tab-view {
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.tab-view:not(.active) {
  opacity: 0;
  visibility: hidden;
  display: none;
  position: absolute;
}

.tab-view.active {
  opacity: 1;
  visibility: visible;
  display: block;
  position: static;
}

.table-scroll-container {
  overflow-x: auto;
}

.offer-table {
  width: 100%;
  text-align: left;
  min-width: 640px;
}

.offer-table.min-w-500 {
  min-width: 500px;
}

.offer-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding-bottom: 0.75rem;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-main);
}

.offer-table th:first-child {
  padding-left: 0;
}

.offer-table th:last-child {
  padding-right: 0;
  text-align: right;
}

.offer-table td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-main);
  white-space: nowrap;
}

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

.offer-table td:first-child {
  padding-left: 0;
  font-weight: 500;
  color: var(--text-main);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.scroll-toolkit-container {
  width: 100%;
  height: 4px;
  background-color: var(--sidebar-active-bg);
  border-radius: 9999px;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity 0.5s;
}

.scroll-toolkit-bar {
  height: 4px;
  background-color: var(--accent-primary);
  border-radius: 9999px;
  transition: width 0.1s ease, margin-left 0.1s ease;
}

.card-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.card-table-footer-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card-table-footer-actions {
  display: flex;
  gap: 0.75rem;
}
