/* Shared styles for diamond size charts */
:root {
  --primary-color: #002540;
  --background-color: #f9f9f9;
  --card-background: #fff;
  --border-color: #e0e0e0;
  --text-color: #333;
  --header-color: var(--primary-color);
  --table-header-bg: var(--primary-color);
  --table-header-color: #fff;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  padding: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h2, h3 {
  text-align: center;
  color: var(--header-color);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.section {
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.table-container {
  overflow-x: auto;
  background: var(--card-background);
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow-color);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  margin-bottom: 0;
}

th, td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

th {
  background-color: var(--table-header-bg);
  color: var(--table-header-color);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.note, .footer {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
  body {
    padding: 0.75rem;
  }
  
  .table-container {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  h2, h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 8px 12px;
  }

  h2, h3 {
    font-size: 1.1rem;
  }

  .table-container {
    padding: 0.75rem;
    border-radius: 8px;
  }

  .note, .footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 6px 8px;
  }

  h2, h3 {
    font-size: 1rem;
  }

  .table-container {
    padding: 0.5rem;
    margin: 0.75rem 0;
  }
}

/* Print styles */
@media print {
  body {
    padding: 0;
    background: white;
  }

  .table-container {
    box-shadow: none;
    padding: 0;
  }

  table {
    font-size: 8pt;
  }

  th {
    background-color: #eee !important;
    color: black !important;
  }
} 