:root {
  --bg: #1A1A1A;
  --text: #FFFFFF;
  --primary: #FF5733;
  --primary-300: #ff713f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: 1.5rem;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  background: #f9f9f9;
  color: #111;
  border-radius: 12px;
  padding: 1.75rem 2rem 2rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.08);
}

header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 3px solid var(--primary-300);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.logo-wrap img {
  height: 70px;
  width: auto;
  display: block;
}

.brand-title {
  flex: 1;
}

.brand-title h1 {
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.brand-title p {
  font-size: 0.9rem;
  color: #444;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: #111;
}

p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.note {
  font-size: 0.8rem;
  color: #555;
}

.section-header {
  margin-bottom: 0.6rem;
  border-left: 4px solid var(--primary-300);
  padding-left: 0.6rem;
}

.download-btn {
  background: var(--primary-300);
  color: #fff;
  border: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  opacity: .95;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  min-width: 640px;
}

thead {
  background: #eee;
}

thead th {
  text-align: center;
  vertical-align: middle;
  padding: 0.45rem 0.35rem;
  font-weight: 700;
  color: #111;
  border-bottom: none;
}

thead th:first-child,
thead th:nth-child(2) {
  text-align: left;
}

th,
td {
  padding: 0.35rem 0.35rem;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

th {
  font-weight: 600;
  color: #111;
  text-align: left;
}

tbody td {
  text-align: left;
}

.num {
  text-align: right;
}

tbody tr:nth-child(even) {
  background: #fafafa;
}

.highlight-row {
  background: rgb(243, 216, 210);
}
tbody tr.highlight-row td {
  background: rgb(243, 216, 210);
}

.section-break td {
  border-top: 2px solid #ccc;
}

.subhead {
  font-size: 0.75rem;
  color: #444;
  padding: 0.35rem 0.35rem;
  font-weight: 600;
}

.subhead.num {
  text-align: right;
}

.price {
  white-space: nowrap;
  font-weight: 600;
}

.footer-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #555;
  text-align: right;
}

thead th:first-child {
  position: sticky;
  left: 0;
  background: #eee;
  z-index: 3; /* keep above body cells */
  box-shadow: 6px 0 12px rgba(0,0,0,0.05);
}

tbody td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 6px 0 12px rgba(0,0,0,0.04);
}

tbody tr:nth-child(even) td:first-child {
  background: #fafafa;
}

tbody tr.highlight-row td:first-child {
  background: rgb(243, 216, 210);
}

.table-wrapper::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 60%);
}

@media (max-width: 900px) {
  body {
    padding: 1rem;
  }
  .page {
    padding: 1.5rem;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-title h1 {
    font-size: 1.4rem;
  }
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .page {
    box-shadow: none;
    border: none;
    color: #000;
  }
  header {
    border-bottom-color: #000;
  }
  .table-wrapper::before {
    display: none;
  }
  thead th:first-child,
  tbody td:first-child {
    position: static;
    left: auto;
    z-index: auto;
  }
}
