/* ONLY affects .box-details in GovernmentTradingDynamic */
body.gov-page .box-details {
  margin-top: -4rem;
  margin-bottom: 3rem;
}

.gov-trade-container {
  margin-top: 40px;
  width: 100%;
  padding: 20px;
  background-color: #1a1a1a;
  border-radius: 12px;
  box-sizing: border-box;
}

.gov-trade-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.gov-trade-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
}

.gov-trade-table th,
.gov-trade-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #333;
  text-align: left;
  font-size: 0.95rem;
}

.gov-trade-table th {
  background-color: #222;
  font-weight: 600;
}

.tracker-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
}

.tracker-form button {
  z-index: 2; /* 🔼 ensure button is clickable */
}

.tracker-form input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #2b2b2b;
  color: white;
  flex: 1;
  min-width: 280px;
  max-width: 100%;
}

.chamber-options {
  display: flex;
  gap: 16px;
  color: white;
}

.chamber-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chamber-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: white;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #444;
  border-radius: 34px;
  transition: 0.3s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .slider {
  background-color: #444
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(24px);
}

#label-senate,
#label-house {
  transition: opacity 0.3s ease;
  color: white;
}

#chamber-switch:not(:checked) ~ #label-senate {
  opacity: 0.5;
}
#chamber-switch:checked ~ #label-house {
  opacity: 0.5;
}

.section-title {
  margin-top: 0.5rem;   /* ↓ from default */
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.buy-cell {
  color: #00ff918e; /* lime green */
  font-weight: 600;
}

.sell-cell {
  color: #ff4d4d7d; /* soft red */
  font-weight: 600;
}

