/* THRS V14.20 — Leave Luxury Finishing & Executive Pagination Deck
 * Visual-only; preserves React rows, page controls, actions, filtering, layout
 * and source of truth. Focus: the data table's lower section and pagination. */
html[data-theme="light"] .thrs-page-leaves {
  --lv20-deck-top:#183f5e;
  --lv20-deck-bottom:#08243d;
  --lv20-deck-border:rgba(235,198,138,.46);
  --lv20-deck-muted:#bbcbda;
  --lv20-deck-text:#f5f8fd;
  --lv20-deck-gold:#e7bd80;
  --lv20-control:rgba(255,255,255,.085);
  --lv20-control-line:rgba(199,219,236,.21);
  --lv20-control-hover:rgba(242,218,172,.17);
  --lv20-deck-shadow:0 12px 30px rgba(7,38,69,.19);
}
html[data-theme="dark"] .thrs-page-leaves {
  --lv20-deck-top:#183b5b;
  --lv20-deck-bottom:#071c30;
  --lv20-deck-border:rgba(234,193,123,.50);
  --lv20-deck-muted:#cbdaea;
  --lv20-deck-text:#f5f8fd;
  --lv20-deck-gold:#f1cf95;
  --lv20-control:rgba(255,255,255,.105);
  --lv20-control-line:rgba(199,219,236,.24);
  --lv20-control-hover:rgba(242,218,172,.19);
  --lv20-deck-shadow:0 14px 36px rgba(0,7,19,.30);
}
/* Treat the last section as a single finished executive data table. */
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination){
  border:1px solid color-mix(in srgb,var(--lv18-gold) 22%,var(--lv18-border)) !important;
  border-radius:20px !important;
  box-shadow:0 4px 12px rgba(12,48,75,.035),0 18px 44px rgba(8,38,67,.11) !important;
  background:var(--lv18-paper) !important;
  overflow:hidden !important;
}
html[data-theme="dark"] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination){
  box-shadow:0 4px 16px rgba(0,7,21,.14),0 20px 48px rgba(0,7,21,.28) !important;
}
/* A restrained golden underline reinforces the section title. */
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination) > .thrs-card-header{
  border-bottom:1px solid var(--lv18-border) !important;
  background:radial-gradient(ellipse at 92% 0%,color-mix(in srgb,var(--lv18-gold) 8%,transparent),transparent 55%),
    linear-gradient(140deg,var(--lv18-paper),var(--lv18-soft)) !important;
}
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination) > .thrs-card-header h3{
  color:var(--lv18-ink) !important;
  font-weight:920 !important;
  letter-spacing:-.025em !important;
}
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination) .modern-table-wrap{
  border-color:var(--lv18-border) !important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--lv18-paper) 90%,transparent) !important;
}
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination) table th{
  color:var(--lv18-muted) !important;
  font-size:11px !important;
  font-weight:875 !important;
  letter-spacing:.005em !important;
  background:var(--lv18-soft) !important;
  border-bottom:1px solid color-mix(in srgb,var(--lv18-gold) 22%,var(--lv18-border)) !important;
}
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination) table td{
  font-size:12px !important;
  line-height:1.55 !important;
  border-bottom:1px solid var(--lv18-hair) !important;
}
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination) table tbody tr:last-child td{
  border-bottom-color:transparent !important;
}
html[data-theme] .thrs-page-leaves > .thrs-card:has(.thrs-leaves-pagination) table tbody tr:hover td{
  background:color-mix(in srgb,var(--lv18-gold) 7%,var(--lv18-soft)) !important;
}
/* Final table footer: layered dark ink with luminous gold top rule, same
   original controls, number ordering and click/keyboard behavior. */
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination:not([hidden]){
  position:relative !important;
  isolation:isolate;
  display:flex !important;
  gap:15px 24px !important;
  align-items:center !important;
  justify-content:space-between !important;
  margin-top:20px !important;
  padding:20px 22px !important;
  min-height:92px !important;
  background:
    radial-gradient(ellipse at 83% -23%,rgba(236,192,126,.17),transparent 45%),
    linear-gradient(118deg,var(--lv20-deck-top),var(--lv20-deck-bottom)) !important;
  border:1px solid rgba(21,65,99,.18) !important;
  border-top:3px solid var(--lv20-deck-gold) !important;
  border-radius:15px !important;
  color:var(--lv20-deck-text) !important;
  box-shadow:var(--lv20-deck-shadow),inset 0 1px 0 rgba(255,255,255,.08) !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination:not([hidden])::before {
  content:"";
  position:absolute;inset:3px 1px auto;
  height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(251,224,175,.35),transparent);
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-meta{
  gap:7px !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-count{
  font-size:13px !important;
  font-weight:880 !important;
  letter-spacing:-.012em !important;
  color:#f7f9ff !important;
  text-shadow:0 1px 1px rgba(4,18,38,.12) !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-position{
  font-size:11px !important;
  font-weight:740 !important;
  letter-spacing:.003em;
  color:var(--lv20-deck-muted) !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-tools{
  gap:16px 20px !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-wrap{
  gap:11px !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-label{
  font-size:11px !important;
  color:var(--lv20-deck-muted) !important;
  font-weight:760 !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-group{
  padding:4px !important;
  background:rgba(2,21,41,.25) !important;
  border:1px solid var(--lv20-control-line) !important;
  border-radius:12px !important;
  box-shadow:inset 0 2px 5px rgba(0,13,30,.13) !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation{
  gap:9px !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-numbers{
  gap:5px !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button{
  min-width:36px !important;
  min-height:36px !important;
  padding:7px 10px !important;
  border-radius:10px !important;
  font-size:12px !important;
  font-weight:800 !important;
  border:1px solid transparent !important;
  background:transparent !important;
  color:var(--lv20-deck-text) !important;
  text-shadow:none !important;
  box-shadow:none !important;
  transition:border-color .18s,background .18s,transform .18s,box-shadow .18s !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button:not(:disabled):hover{
  background:var(--lv20-control-hover) !important;
  color:#fff !important;
  border-color:var(--lv20-deck-border) !important;
  transform:translateY(-1px);
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button.is-size.is-selected{
  background:linear-gradient(136deg,#f6dfb4,#d9ab6b) !important;
  color:#173047 !important;
  border:1px solid #e6c18c !important;
  font-weight:920 !important;
  box-shadow:0 3px 10px rgba(0,12,29,.16),inset 0 1px 0 rgba(255,255,255,.43) !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button.is-current{
  background:linear-gradient(138deg,#f6dfb4,#d9ab6b) !important;
  color:#173047 !important;
  border:1px solid #e6c18c !important;
  font-weight:920 !important;
  box-shadow:0 4px 12px rgba(0,9,24,.17),inset 0 1px 0 rgba(255,255,255,.42) !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button.is-current:not(:disabled):hover,
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button.is-size.is-selected:not(:disabled):hover{
  background:linear-gradient(138deg,#ffe9c3,#e5bb7e) !important;
  color:#112d45 !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button.is-edge{
  min-width:67px !important;
  background:var(--lv20-control) !important;
  border:1px solid var(--lv20-control-line) !important;
  font-weight:850 !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button:disabled{
  background:rgba(4,24,43,.21) !important;
  border:1px solid rgba(182,204,223,.13) !important;
  color:var(--lv20-deck-muted) !important;
  opacity:.65 !important;
  cursor:not-allowed !important;
  transform:none !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button:focus-visible{
  outline:2px solid #f5dba9 !important;
  outline-offset:3px !important;
}
html[data-theme] .thrs-page-leaves .thrs-leaves-page-dots{
  min-width:20px !important;
  color:var(--lv20-deck-muted) !important;
  font-size:15px !important;
}
/* No pager when the result count is <=10, as before. */
html[data-theme] .thrs-page-leaves .thrs-leaves-pagination[hidden]{
  display:none !important;
}
@media(max-width:1100px){
 html[data-theme] .thrs-page-leaves .thrs-leaves-pagination:not([hidden]){
  gap:16px !important;padding:17px !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-tools{
  justify-content:flex-start !important;
 }
}
@media(max-width:680px){
 html[data-theme] .thrs-page-leaves .thrs-leaves-pagination:not([hidden]){
  padding:17px 12px 18px !important;
  gap:18px !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-meta{
  align-items:center !important;
  text-align:center !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-tools{
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-size-wrap,
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation{
  justify-content:center !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation{
  gap:6px !important;
  flex-wrap:wrap !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-numbers{
  gap:2px !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button{
  min-width:34px !important;
  min-height:35px !important;
  padding:7px 8px !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button.is-edge{
  min-width:60px !important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] .thrs-page-leaves .thrs-leaves-pagination .thrs-leaves-page-button{
  transition:none !important;
  transform:none !important;
 }
}
/* Balanced mobile pagination: page numbers on the upper line and exactly
   two equally sized previous/next actions beneath. No orphaned Next button. */
@media(max-width:680px){
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:9px !important;
  width:100% !important;
  max-width:100% !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-numbers{
  grid-column:1 / -1 !important;
  grid-row:1 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:4px !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation > .thrs-leaves-page-button.is-edge:first-child{
  grid-column:1 !important;
  grid-row:2 !important;
  width:100% !important;
 }
 html[data-theme] .thrs-page-leaves .thrs-leaves-page-navigation > .thrs-leaves-page-button.is-edge:last-child{
  grid-column:2 !important;
  grid-row:2 !important;
  width:100% !important;
 }
}
