/* ---------- Registros page ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rarity-common {
  color: #a29bb8;
}

.rarity-common::before {
  background: #a29bb8;
  color: #a29bb8;
}

/* Hero (reusa .hero / .hero-logo da home) */

.registros-hero {
  min-height: 0;
  margin: 0 0 8px;
  padding: 28px 0 8px;
}

.registros-hero .hero-logo {
  width: min(100%, 420px);
  margin-bottom: 12px;
}

.registros-hero p {
  margin-top: 10px;
  max-width: none;
}

/* Tabs */

.registros-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.registros-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  height: 43px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent url("../assets/btn/botao2.png") center / 100% 100% no-repeat;
  color: #9a94a8;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  box-shadow: none;
  transition: color 0.2s, filter 0.2s;
}

.registros-tab:hover {
  color: #d8d2e4;
  filter: brightness(1.08);
}

.registros-tab.is-active {
  background-image: url("../assets/btn/botao1.png");
  color: #fff;
  filter: none;
  text-shadow:
    0 0 8px rgba(160, 90, 255, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

.registros-tab.is-active:hover {
  color: #fff;
  filter: brightness(1.05);
}

.registros-tab.is-disabled,
.registros-tab:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.registros-tab.is-disabled:hover,
.registros-tab:disabled:hover {
  color: #9a94a8;
  filter: grayscale(0.35);
}

.registros-tab-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  background: currentColor;
  opacity: 0.85;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}

.registros-tab.is-active .registros-tab-icon {
  opacity: 1;
  color: #e8c76a;
}

.registros-tab-icon--drops {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 7h10v3H7V7Zm0 5h10v7H7v-7ZM10 4h4v3h-4V4Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 7h10v3H7V7Zm0 5h10v7H7v-7ZM10 4h4v3h-4V4Z'/%3E%3C/svg%3E");
}

.registros-tab-icon--aging {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 13.8 8.2 20 10l-6.2 1.8L12 18l-1.8-6.2L4 10l6.2-1.8L12 2Zm5.5 11.5.9 3.1 3.1.9-3.1.9-.9 3.1-.9-3.1-3.1-.9 3.1-.9.9-3.1Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 13.8 8.2 20 10l-6.2 1.8L12 18l-1.8-6.2L4 10l6.2-1.8L12 2Zm5.5 11.5.9 3.1 3.1.9-3.1.9-.9 3.1-.9-3.1-3.1-.9 3.1-.9.9-3.1Z'/%3E%3C/svg%3E");
}

.registros-tab-icon--craft {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.5 5.5a3.5 3.5 0 0 0 4 4L11 17l-4 1 1-4 7.5-8.5Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.5 5.5a3.5 3.5 0 0 0 4 4L11 17l-4 1 1-4 7.5-8.5Z'/%3E%3C/svg%3E");
}

.registros-tab-icon--roll {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 5h14v14H5V5Zm4 4h.01M15 4h.01M9 15h.01M15 15h.01M12 12h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 5h14v14H5V5Zm4 4h.01M15 4h.01M9 15h.01M15 15h.01M12 12h.01'/%3E%3C/svg%3E");
}

/* Toolbar + date picker */

.registros-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}

.registros-toolbar-left {
  justify-self: start;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.registros-toolbar-left .registros-per-page {
  margin: 0;
  flex: 0 0 auto;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.registros-toolbar-left .registros-per-page select {
  height: 32px;
  padding: 0 26px 0 8px;
  font-size: 0.72rem;
}

.registros-toolbar-left .registros-per-page__suffix {
  color: inherit;
}

.registros-item-filter {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 180px;
  margin: 0;
}

.registros-item-filter select {
  display: block;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background-color: rgba(6, 8, 18, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 10px;
  color: inherit;
  padding: 0 28px 0 10px;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
}

.registros-result-filter {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.registros-result-filter[hidden] {
  display: none !important;
}

.registros-result-filter__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft, #d4af37);
  line-height: 1.2;
  white-space: nowrap;
}

.registros-result-filter__opts {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(6, 8, 18, 0.95);
  overflow: hidden;
}

.registros-result-filter__btn {
  appearance: none;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid rgba(212, 175, 55, 0.18);
  background: transparent;
  color: rgba(243, 240, 250, 0.45);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.registros-result-filter__btn:last-child {
  border-right: 0;
}

.registros-result-filter__btn:hover {
  color: rgba(243, 240, 250, 0.78);
  background: rgba(123, 60, 255, 0.08);
}

.registros-result-filter__btn.is-active {
  color: var(--gold-bright, #f0d878);
  background: rgba(212, 175, 55, 0.12);
}

.registros-date-picker {
  position: relative;
  z-index: 2;
  justify-self: center;
}

.registros-date-picker:has(.registros-calendar:not([hidden])) {
  z-index: 30;
}

.registros-toolbar-right {
  justify-self: end;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.registros-toolbar-right .registros-item-filter {
  flex: 0 1 180px;
  max-width: 180px;
}

.registros-toolbar-right .registros-search {
  width: 100%;
  max-width: 220px;
  min-width: 0;
  flex: 1 1 160px;
  margin: 0;
}

.registros-toolbar-right .registros-search input {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.registros-date-control {
  display: inline-flex;
  align-items: stretch;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(6, 8, 18, 0.95);
  overflow: hidden;
}

.registros-date-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(243, 240, 250, 0.75);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.registros-date-arrow:hover:not(:disabled) {
  color: var(--gold-bright);
  background: rgba(123, 60, 255, 0.12);
}

.registros-date-arrow:disabled {
  color: rgba(162, 155, 184, 0.35);
  cursor: not-allowed;
}

.registros-date-arrow svg {
  width: 14px;
  height: 14px;
}

.registros-date-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 2px 14px;
  border: 0;
  border-left: 1px solid rgba(212, 175, 55, 0.18);
  border-right: 1px solid rgba(212, 175, 55, 0.18);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.registros-date-trigger:hover,
.registros-date-trigger[aria-expanded="true"] {
  background: rgba(123, 60, 255, 0.1);
}

.registros-date-trigger time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.15;
  text-align: center;
}

.registros-date-weekday {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.registros-date-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.registros-calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  width: 280px;
  margin-inline: auto;
  padding: 14px 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: #080a16;
  background-clip: padding-box;
  isolation: isolate;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(123, 60, 255, 0.12);
}

.registros-calendar[hidden] {
  display: none;
}

.registros-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.registros-calendar-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  text-transform: lowercase;
  line-height: 1.2;
}

.registros-calendar-nav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.registros-calendar-nav:hover:not(:disabled) {
  color: var(--gold-bright);
  background: rgba(123, 60, 255, 0.15);
}

.registros-calendar-nav:disabled {
  color: rgba(162, 155, 184, 0.35);
  cursor: not-allowed;
}

.registros-calendar-nav svg {
  width: 14px;
  height: 14px;
}

.registros-calendar-weekdays,
.registros-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.registros-calendar-weekdays {
  margin-bottom: 6px;
}

.registros-calendar-weekdays span {
  display: block;
  min-width: 0;
  height: 28px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0;
  color: #c4bdd4;
  text-align: center;
  text-transform: lowercase;
  text-shadow: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.registros-calendar-day {
  display: grid;
  place-items: center;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.registros-calendar-day:hover:not(:disabled) {
  background: rgba(123, 60, 255, 0.2);
}

.registros-calendar-day.is-outside {
  color: rgba(162, 155, 184, 0.4);
}

.registros-calendar-day.is-disabled,
.registros-calendar-day:disabled {
  color: rgba(162, 155, 184, 0.32);
  cursor: not-allowed;
}

.registros-calendar-day.is-disabled:hover,
.registros-calendar-day:disabled:hover {
  background: transparent;
}

.registros-calendar-day.is-selected {
  background: var(--gold-bright);
  color: #1a1200;
  font-weight: 700;
}

.registros-calendar-day.is-selected:hover {
  background: var(--gold);
  color: #1a1200;
}

/* Layout */

.registros-layout {
  display: block;
  padding: 0 50px;
}

.registros-main {
  min-width: 0;
}

/* Table panel */

.registros-table-panel {
  overflow: visible;
  padding: 18px 18px 14px;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.12),
    0 0 28px rgba(123, 60, 255, 0.12),
    inset 0 0 50px rgba(123, 60, 255, 0.05);
}

.registros-table-panel:has(.registros-calendar:not([hidden])) {
  z-index: 20;
}

.registros-per-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.registros-per-page select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 26px 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background-color: rgba(6, 8, 18, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' stroke='%23d4af37' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.registros-search {
  position: relative;
  min-width: min(100%, 260px);
  flex: 1 1 220px;
  max-width: 320px;
}

.registros-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.registros-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(6, 8, 18, 0.95);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.registros-search input::placeholder {
  color: rgba(162, 155, 184, 0.75);
}

.registros-search input:focus {
  border-color: rgba(123, 60, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(123, 60, 255, 0.18);
}

.registros-table {
  width: 100%;
}

.registros-table thead th {
  padding: 12px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.registros-table tbody td {
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(123, 60, 255, 0.08);
  color: var(--text);
}

.registros-table tbody tr {
  position: relative;
  z-index: 0;
  transition: background 0.15s, box-shadow 0.15s;
}

.registros-table tbody tr:hover {
  background: rgba(123, 60, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.18);
}

.registros-table .text-end,
.registros-col-time {
  text-align: end;
}

.registros-col-num {
  width: 2.5rem;
  min-width: 2.5rem;
  padding-inline: 8px;
  text-align: center;
}

.registros-table thead .registros-col-num {
  color: var(--gold-soft);
}

.registros-table .registros-td-class {
  width: 52px;
  text-align: center;
  vertical-align: middle;
}

.registros-table .registros-td-nick {
  min-width: 140px;
}

.registros-class-icon {
  margin-inline: auto;
}

.registros-table .home-drop-time.registros-time {
  font-variant-numeric: tabular-nums;
  color: rgba(210, 204, 228, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
}

.registros-player {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.registros-table .home-player.registros-player strong {
  color: #eee9f7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.registros-table .home-player .home-drop-rel {
  color: #817b8e;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.registros-result {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.registros-result--success {
  color: #7ddea8;
}

.registros-result--attempt {
  color: #c4b5fd;
}

.registros-level {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.registros-roll {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* Item cell: thumb + nome reutilizam .home-drop-item / .home-drop-thumb / .home-drop-item-name (style.css) */
.registros-item-cell {
  gap: 9px;
}

.registros-item-stats {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.55;
  transition: color 0.15s, opacity 0.15s, background 0.15s;
}

.registros-item-stats:hover,
.registros-item-stats:focus-visible {
  color: var(--gold-soft);
  opacity: 1;
  background: rgba(196, 120, 120, 0.12);
  outline: none;
}

.registros-item-stats svg {
  width: 14px;
  height: 14px;
}

/* Modal de atributos — tooltip compacto de item (referência Fenix) */
.registros-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.registros-stats-modal[hidden] {
  display: none;
}

.registros-stats-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 8, 0.72);
  border: 0;
  cursor: pointer;
}

.registros-stats-dialog {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: min(100%, 280px);
  outline: none;
}

.registros-stats-close {
  position: absolute;
  right: 0.15rem;
  top: 0.1rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: rgba(200, 184, 174, 0.4);
  cursor: pointer;
}

.registros-stats-close:hover,
.registros-stats-close:focus-visible {
  color: #f0e6e0;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.registros-stats-close svg {
  width: 0.8rem;
  height: 0.8rem;
}

/* ItemSlot TooltipContent: bg-secondary border-[#5a2a2a] max-w p-2 */
.registros-stats-modal .pt-item-card {
  position: relative;
  max-width: 280px;
  padding: 0.5rem;
  overflow: hidden;
  border: 1px solid #5a2a2a;
  border-radius: 0.375rem;
  background: #1c1917;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  color: #e7e5e4;
  font-size: 0.875rem;
  line-height: 1.25;
}

.registros-stats-modal .pt-item-tt__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.registros-stats-modal .pt-item-card__status {
  margin: 0;
  padding: 0.65rem 1rem 0.65rem 0.15rem;
  text-align: left;
  color: rgba(200, 184, 174, 0.7);
  font-size: 0.75rem;
}

.registros-stats-modal .pt-item-card__status.is-error {
  color: #f0a0a0;
}

.registros-stats-modal .pt-item-card__body {
  padding: 0;
  padding-right: 0.7rem;
}

/* space-y-0.5 fenix-num */
.registros-stats-modal .pt-item-tt {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-variant-numeric: tabular-nums;
}

.registros-stats-modal .pt-item-tt__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  word-break: break-word;
}

.registros-stats-modal .pt-item-tt__code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: rgba(163, 163, 163, 0.95);
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__mix {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__mix-type {
  margin: 0.25rem 0 0;
  font-size: 10px;
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__aging {
  padding-top: 0.125rem;
}

.registros-stats-modal .pt-item-tt__aging-label {
  display: flex;
  align-items: center;
  font-size: 10px;
  margin-bottom: 0.125rem;
}

.registros-stats-modal .pt-item-tt__aging-label span {
  color: #fcd34d;
  font-weight: 600;
}

.registros-stats-modal .pt-item-tt__aging-bar {
  position: relative;
  height: 4px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(120, 53, 15, 0.6);
}

.registros-stats-modal .pt-item-tt__aging-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
  animation: pt-item-aging-pulse 1.6s ease-in-out infinite;
}

@keyframes pt-item-aging-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.registros-stats-modal .pt-item-tt__stat {
  margin: 0;
  font-size: 0.75rem;
  color: #e5e7eb;
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__req {
  margin: 0;
  font-size: 0.75rem;
  color: #e1a36b;
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__spec {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #166534;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.registros-stats-modal .pt-item-tt__special {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #4b5563;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.registros-stats-modal .pt-item-tt__special-title {
  margin: 0 0 0.125rem;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__class {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #facc15;
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__bonus {
  margin: 0;
  font-size: 0.75rem;
  color: #4ade80;
  line-height: 1.3;
}

.registros-stats-modal .pt-item-tt__opt {
  margin: 0;
  font-size: 0.75rem;
  color: #fcd34d;
  line-height: 1.3;
}

body.registros-stats-open {
  overflow: hidden;
}

.registros-map {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: rgba(168, 160, 190, 0.78);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registros-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.registros-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.registros-empty td {
  padding-block: 28px;
  color: var(--muted);
  text-align: center;
}

.registros-pagination {
  display: inline-flex;
  gap: 6px;
}

.registros-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(8, 10, 22, 0.9);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.registros-page-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(123, 60, 255, 0.5);
}

.registros-page-btn.is-active {
  color: #fff;
  border-color: rgba(123, 60, 255, 0.8);
  background: rgba(123, 60, 255, 0.35);
}

.registros-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Responsive */

@media (max-width: 980px) {
  .registros-toolbar {
    grid-template-columns: 1fr;
  }

  .registros-date-picker {
    order: 1;
    justify-self: stretch;
  }

  .registros-toolbar-right {
    order: 2;
    justify-self: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .registros-toolbar-right .registros-search {
    flex: 1 1 100%;
    max-width: none;
    order: 1;
  }

  .registros-toolbar-right .registros-item-filter {
    order: 2;
    flex: 1 1 100%;
    max-width: none;
  }

  .registros-toolbar-left {
    order: 3;
    justify-self: stretch;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .registros-toolbar-left .registros-per-page {
    white-space: normal;
  }

  .registros-item-filter select {
    width: 100%;
    max-width: none;
  }

  .registros-result-filter {
    width: 100%;
    flex: 1 1 100%;
  }

  .registros-result-filter__opts {
    width: 100%;
    flex-wrap: nowrap;
  }

  .registros-result-filter__btn {
    flex: 1 1 0;
    text-align: center;
  }

  .registros-search {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .registros-hero {
    padding: 20px 0 4px;
  }

  .registros-hero .hero-logo {
    width: min(100%, 300px);
  }

  .registros-tabs {
    gap: 6px;
  }

  .registros-tab {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    font-size: 0.65rem;
  }

  .registros-date-control {
    width: 100%;
  }

  .registros-date-trigger {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .registros-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .registros-pagination {
    justify-content: center;
  }
}
