/* THRS V14.19 — Leave pagination: compact, premium, responsive, route-scoped. */
html[data-theme="light"] .thrs-page-leaves {
  --lv19-surface: #f8fafd;
  --lv19-paper: #fff;
  --lv19-ink: #17324b;
  --lv19-muted: #61788d;
  --lv19-stroke: #dbe5ee;
  --lv19-gold: #b98748;
  --lv19-shadow: 0 4px 13px rgba(14,46,76,.07);
}
html[data-theme="dark"] .thrs-page-leaves {
  --lv19-surface: #1a3954;
  --lv19-paper: #143049;
  --lv19-ink: #f0f6fd;
  --lv19-muted: #c3d3e2;
  --lv19-stroke: #3a5d79;
  --lv19-gold: #eac589;
  --lv19-shadow: 0 6px 15px rgba(0,9,24,.24);
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-hidden {
  display: none !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 17px;
  padding: 16px 16px 2px;
  border-top: 1px solid var(--lv19-stroke);
  background: linear-gradient(130deg,var(--lv19-paper),var(--lv19-surface));
  border-radius: 0 0 12px 12px;
  color: var(--lv19-ink);
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination[hidden] {
  display: none !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-count {
  color: var(--lv19-ink);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-position {
  color: var(--lv19-muted);
  font-size: 11px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 17px;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-wrap,
html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation,
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-group,
html[data-theme] .thrs-page-leaves .thrs-leaves-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-wrap {
  gap: 9px;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-label {
  color: var(--lv19-muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-group {
  background: var(--lv19-surface);
  border: 1px solid var(--lv19-stroke);
  padding: 3px;
  border-radius: 10px;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 31px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--lv19-ink);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 11px;
  font-weight: 790;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background .16s,border-color .16s,box-shadow .16s;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-button:hover:not(:disabled):not(.is-current):not(.is-selected) {
  background: var(--lv19-surface);
  border-color: var(--lv19-stroke);
  box-shadow: 0 3px 8px rgba(15,46,75,.05);
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-button.is-current {
  background: linear-gradient(132deg,#1f506f,#0a304d);
  border-color: #bd965d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(8,43,71,.17);
  font-weight: 900;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-button.is-size.is-selected {
  background: linear-gradient(132deg,#f2d9ae,#deb57c);
  border-color: #cfa56c;
  color: #173049;
  box-shadow: 0 2px 7px rgba(139,91,29,.11);
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-button.is-edge {
  min-width: 61px;
  border-color: var(--lv19-stroke);
  background: var(--lv19-paper);
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-button:disabled {
  color: var(--lv19-muted);
  opacity: .45;
  cursor: not-allowed;
  background: var(--lv19-surface);
  box-shadow: none;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-button:focus-visible {
  outline: 2px solid var(--lv19-gold);
  outline-offset: 2px;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  color: var(--lv19-muted);
  font-weight: 850;
}
@media (max-width: 900px) {
  html[data-theme] .thrs-page-leaves .thrs-leaves-pagination {
    padding-inline: 10px;
  }
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-tools {
    justify-content: flex-start;
  }
}
@media (max-width: 620px) {
  html[data-theme] .thrs-page-leaves .thrs-leaves-pagination,
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-tools {
    flex-direction: column;
    align-items: stretch;
  }
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-meta {
    align-items: center;
    text-align: center;
  }
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-wrap,
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation {
    justify-content: center;
  }
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation {
    flex-wrap: wrap;
  }
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] .thrs-page-leaves .thrs-leaves-page-button {
    transition: none;
  }
}
html[data-theme] .thrs-page-leaves > .thrs-card:has(>div .thrs-leaves-pagination) {
  scroll-margin-top: 86px;
}
