/* Lighter, higher-contrast tables & TOC */
:root {
  --tbl-surface: #222850;
  --tbl-surface-alt: #2a3158;
  --tbl-header: #343d6e;
  --tbl-border: #4a5588;
  --tbl-text: #dce2f4;
  --tbl-text-muted: #b8c0dc;
  --tbl-heading: #ffffff;
  --toc-surface: #1e2448;
  --toc-surface-head: #282f5c;
  --toc-item: #2a3260;
  --toc-item-hover: #353f72;
}

/* Tables */
.v-f2755e19 table,
.v-cda5686c__table table,
.v-cda5686c table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--tbl-border);
}

.data-table-wrap {
  margin: 28px 0 36px;
  border-radius: var(--r-lg);
  background: var(--tbl-surface);
  border: 1px solid var(--tbl-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.data-table-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #11ec95, #e5b84e, #11ec95);
  z-index: 1;
}

.data-table-wrap table {
  margin: 0;
  min-width: 520px;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.v-f2755e19 table thead tr th,
.v-cda5686c__table table thead tr th,
.v-cda5686c table thead tr th,
.data-table-wrap table thead tr th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--tbl-heading) !important;
  background: var(--tbl-header) !important;
  border-bottom: 2px solid #e5b84e;
  border-right: 1px solid var(--tbl-border);
}

.v-f2755e19 table thead tr th:last-child,
.v-cda5686c__table table thead tr th:last-child,
.data-table-wrap table thead tr th:last-child {
  border-right: none;
}

.v-f2755e19 table tbody tr td,
.v-cda5686c__table table tbody tr td,
.v-cda5686c table tbody tr td,
.data-table-wrap table tbody tr td {
  padding: 15px 20px;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
  color: var(--tbl-text) !important;
  background: var(--tbl-surface-alt) !important;
  border-bottom: 1px solid var(--tbl-border);
  border-right: 1px solid rgba(74, 85, 136, 0.5);
  transition: background 0.2s ease;
}

.v-f2755e19 table tbody tr td:last-child,
.v-cda5686c__table table tbody tr td:last-child,
.data-table-wrap table tbody tr td:last-child {
  border-right: none;
}

.v-f2755e19 table tbody tr td:first-child,
.v-cda5686c__table table tbody tr td:first-child,
.data-table-wrap table tbody tr td:first-child {
  font-weight: 600;
  color: var(--tbl-heading) !important;
}

.v-f2755e19 table tbody tr:hover td,
.v-cda5686c__table table tbody tr:hover td,
.data-table-wrap table tbody tr:hover td {
  background: #3a4478 !important;
}

.v-f2755e19 table tr:nth-child(even) td,
.v-cda5686c__table table tr:nth-child(even) td,
.data-table-wrap table tr:nth-child(even) td {
  background: var(--tbl-surface) !important;
}

.v-f2755e19 table tbody tr:hover:nth-child(even) td,
.v-cda5686c__table table tbody tr:hover:nth-child(even) td,
.data-table-wrap table tbody tr:hover:nth-child(even) td {
  background: #3a4478 !important;
}

.v-f2755e19 table tbody tr:last-child td,
.v-cda5686c__table table tbody tr:last-child td,
.data-table-wrap table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 767px) {
  .data-table-wrap {
    margin: 20px 0 28px;
  }

  .v-f2755e19 table thead tr th,
  .v-cda5686c__table table thead tr th,
  .data-table-wrap table thead tr th {
    padding: 12px 14px;
    font-size: 12px;
  }

  .v-f2755e19 table tbody tr td,
  .v-cda5686c__table table tbody tr td,
  .data-table-wrap table tbody tr td {
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* Table of Contents */
.page-toc {
  border: 1px solid var(--tbl-border) !important;
  background: var(--toc-surface) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.page-toc::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #11ec95, #e5b84e, #11ec95);
}

.page-toc .v-0c1eff33__head {
  height: auto;
  min-height: 72px;
  padding: 18px 28px;
  background: var(--toc-surface-head) !important;
  border-bottom: 1px solid var(--tbl-border) !important;
  gap: 16px;
}

.page-toc__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.page-toc__title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.page-toc__subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--tbl-text-muted) !important;
  opacity: 1;
}

.page-toc__toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(17, 236, 149, 0.2);
  border: 1px solid rgba(17, 236, 149, 0.45);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}

.page-toc .v-0c1eff33__head.v-d1a1e314 .page-toc__toggle {
  transform: rotate(180deg);
  background: rgba(229, 184, 78, 0.25);
  border-color: rgba(229, 184, 78, 0.55);
}

.page-toc__toggle svg {
  width: 22px;
  height: 22px;
  color: #11ec95;
  stroke: #11ec95;
}

.page-toc .v-0c1eff33__list {
  counter-reset: toc-item;
  padding: 16px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  background: var(--toc-surface) !important;
}

.page-toc .v-0c1eff33__list.v-8ca554e7 {
  display: none;
}

.page-toc .v-0c1eff33__list li {
  margin: 0;
}

.page-toc .v-0c1eff33__list li a {
  counter-increment: toc-item;
  padding: 14px 16px 14px 54px;
  border-radius: var(--r-sm);
  border-left: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tbl-text) !important;
  background: var(--toc-item);
  position: relative;
  min-height: 48px;
}

.page-toc .v-0c1eff33__list li a::before {
  content: counter(toc-item, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #11ec95;
  background: rgba(17, 236, 149, 0.2);
  border: 1px solid rgba(17, 236, 149, 0.4);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-toc .v-0c1eff33__list li a.is-active,
.page-toc .v-0c1eff33__list li a:hover {
  color: #ffffff !important;
  background: var(--toc-item-hover) !important;
}

.page-toc .v-0c1eff33__list li a.is-active::before,
.page-toc .v-0c1eff33__list li a:hover::before {
  color: #05060f;
  background: linear-gradient(135deg, #f0d060, #2ef5a8);
  border-color: transparent;
}

@media (max-width: 900px) {
  .page-toc .v-0c1eff33__list {
    grid-template-columns: 1fr;
    padding: 12px 16px 20px;
  }
}

@media (max-width: 767px) {
  .page-toc .v-0c1eff33__head {
    padding: 14px 16px;
    min-height: 60px;
  }

  .page-toc__title {
    font-size: 17px;
  }

  .page-toc .v-0c1eff33__list li a {
    padding: 12px 14px 12px 50px;
    font-size: 14px;
  }
}
