/* Admin-specific styles */

/* Expandable carrier row styles */
.carrier-summary-row {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.carrier-summary-row td {
  padding: 0;
  border: none;
}

.carrier-summary-content {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.carrier-summary-content .grid {
  grid-template-columns: 3fr 3fr 4fr !important;
}

.expand-icon {
  transition: transform 0.2s ease-in-out;
}

.expand-icon.rotate-180 {
  transform: rotate(180deg);
}

.summary-section-header {
  font-weight: 600;
  font-size: 1.125rem;
  color: #111827;
  text-align: center;
  border-bottom: 2px solid;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.summary-section-header.network-fit {
  border-color: #10b981;
}

.summary-section-header.services {
  border-color: #3b82f6;
}

.summary-section-header.surcharges {
  border-color: #f59e0b;
}

.summary-section-header.savings {
  border-color: #8b5cf6;
}

.summary-data-row {
  padding: 0.25rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.summary-data-row:last-child {
  border-bottom: none;
}

.summary-data-label {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.875rem;
}

.summary-data-value {
  color: #111827;
  font-size: 0.875rem;
}

.savings-summary-table {
  width: 100%;
  min-width: 300px;
}

.savings-summary-table.two-column .savings-summary-header,
.savings-summary-table.two-column .savings-summary-row {
  grid-template-columns: 1fr 1fr;
}

.savings-summary-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.5rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.savings-summary-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.savings-summary-row:last-child {
  border-bottom: none;
}

.savings-summary-total {
  font-weight: 600;
  background-color: #f3f4f6;
  border-radius: 0.25rem;
  padding: 0.25rem 0;
}

.savings-summary-cell {
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.savings-summary-cell:first-child {
  text-align: left;
  white-space: normal;
  line-height: 1.3;
  min-width: 0;
}

@media (max-width: 1024px) {
  .carrier-summary-content .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .savings-summary-header,
  .savings-summary-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.25rem;
    font-size: 0.7rem;
  }

  .savings-summary-cell {
    text-align: left;
  }

  .savings-summary-cell:not(:first-child) {
    text-align: center;
  }
}
