/* Commission Table Styles */
.commission-table-container {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #f26419;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  color: white;
  backdrop-filter: blur(10px);
}

.commission-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.commission-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  min-width: 800px; /* Ensure table doesn't get too compressed */
}

.commission-table__header {
  background: rgba(242, 100, 25, 0.2);
  padding: 16px 12px;
  text-align: left;
  border-bottom: 2px solid #f26419;
  font-weight: 600;
  font-size: 14px;
  color: #f26419;
  position: sticky;
  top: 0;
  z-index: 10;
}

.commission-table__header i {
  margin-right: 8px;
  font-size: 16px;
}

.commission-table__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.commission-table__row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.commission-table__cell {
  padding: 16px 12px;
  vertical-align: top;
}

.commission-table__cell--category {
  min-width: 200px;
}

.commission-table__cell--rate {
  min-width: 150px;
}

.commission-table__cell--minimum {
  min-width: 120px;
}

.commission-table__cell--tier {
  min-width: 150px;
}

.commission-table__cell--cap {
  min-width: 120px;
}

/* Commission Category */
.commission-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.commission-category__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f26419 0%, #f7931e 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.commission-category__info {
  flex: 1;
}

.commission-category__name {
  font-weight: 600;
  font-size: 16px;
  color: white;
  margin-bottom: 4px;
}

.commission-category__description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Commission Rate */
.commission-rate {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.commission-rate__percentage {
  font-size: 20px;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.commission-rate__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.commission-rate__threshold {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Commission Minimum */
.commission-minimum {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.commission-minimum__value {
  font-size: 16px;
  font-weight: 600;
  color: #fbbf24;
  line-height: 1;
}

.commission-minimum__bonus {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

/* Commission Tier */
.commission-tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.commission-tier__percentage {
  font-size: 16px;
  font-weight: 600;
  color: #8b5cf6;
  line-height: 1;
}

.commission-tier__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.commission-tier__note {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  line-height: 1.2;
}

.commission-tier--none {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Commission Cap */
.commission-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.commission-cap__value {
  font-size: 16px;
  font-weight: 600;
  color: #ef4444;
  line-height: 1;
}

.commission-cap__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

/* Commission Table Summary */
.commission-table-summary {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 8px;
  gap: 16px;
}

.commission-summary__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.commission-summary__item i {
  font-size: 16px;
  color: #10b981;
}

.commission-summary__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.commission-summary__value {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
}

/* Mobile Card Layout */
.commission-mobile-cards {
  display: none;
}

.commission-mobile-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.commission-mobile-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f26419;
  transform: translateY(-2px);
}

.commission-mobile-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.commission-mobile-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f26419 0%, #f7931e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.commission-mobile-card__title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.commission-mobile-card__description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.commission-mobile-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.commission-mobile-card__detail {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.commission-mobile-card__detail-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.commission-mobile-card__detail-value {
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.commission-mobile-card__detail-value--rate {
  color: #10b981;
}

.commission-mobile-card__detail-value--minimum {
  color: #fbbf24;
}

.commission-mobile-card__detail-value--tier {
  color: #8b5cf6;
}

.commission-mobile-card__detail-value--cap {
  color: #ef4444;
}

.commission-mobile-card__full-width {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
}

.commission-mobile-card__full-width-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.commission-mobile-card__full-width-value {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .commission-table-container {
    padding: 16px;
    margin: 16px 0;
  }
  
  /* Hide table on mobile, show cards */
  .commission-table-wrapper {
    display: none;
  }
  
  .commission-mobile-cards {
    display: block;
  }
  
  .commission-table-summary {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  
  .commission-summary__item {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .commission-table-container {
    padding: 12px;
  }
  
  .commission-mobile-card {
    padding: 16px;
  }
  
  .commission-mobile-card__details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .commission-mobile-card__icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .commission-mobile-card__title {
    font-size: 16px;
  }
  
  .commission-mobile-card__description {
    font-size: 12px;
  }
}
/* ============================================
   LIGHT MODE SUPPORT
   ============================================ */
[data-theme="light"] .commission-table-container {
  background: rgba(0, 0, 0, 0.03);
  border: 2px solid #f26419;
  color: #1a1a1a;
}

[data-theme="light"] .commission-table {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .commission-table__header {
  background: rgba(242, 100, 25, 0.1);
  color: #f26419;
}

[data-theme="light"] .commission-table__row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .commission-table__row:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .commission-category__name {
  color: #1a1a1a;
}

[data-theme="light"] .commission-category__description {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .commission-rate__label {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .commission-rate__threshold {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .commission-minimum__bonus {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .commission-tier__label {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .commission-tier__note {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .commission-tier--none {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .commission-cap__label {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .commission-table-summary {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid #059669;
}

[data-theme="light"] .commission-summary__label {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .commission-summary__value {
  color: #059669;
}

[data-theme="light"] .commission-summary__item i {
  color: #059669;
}

/* Mobile Cards Light Mode */
[data-theme="light"] .commission-mobile-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .commission-mobile-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #f26419;
}

[data-theme="light"] .commission-mobile-card__header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .commission-mobile-card__title {
  color: #1a1a1a;
}

[data-theme="light"] .commission-mobile-card__description {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .commission-mobile-card__detail {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .commission-mobile-card__detail-label {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .commission-mobile-card__detail-value {
  color: #1a1a1a;
}

[data-theme="light"] .commission-mobile-card__full-width {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .commission-mobile-card__full-width-label {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .commission-mobile-card__full-width-value {
  color: #059669;
}
