/* Historico de vendas (/history) — docs/marketplace-sales-history.md.
   Pele H51/F27 da rede: dourado #d8b36a, fita chanfrada nos CTAs, hairlines douradas,
   radius 0-2px, titulos TLHeader em caixa alta. Escopo .mkh-* (o CSS legado do template
   NFT segue intacto). Fundo da pagina (template): #020219. */

/* ---------- transicao banner -> conteudo ---------- */
/* O banner de video terminava num corte seco sobre o fundo #020219; o degrade
   ocupa o terco inferior do banner e o conteudo comeca colado nele. */
.nft-top-banner--mkh { background: #020219 !important; }
.nft-top-banner--mkh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, rgba(2, 2, 25, 0) 0%, rgba(2, 2, 25, .35) 40%, rgba(2, 2, 25, .82) 75%, #020219 100%); pointer-events: none; z-index: 2; }
.nft-top-banner--mkh .subnav { z-index: 4; }
.nft-top-banner--mkh .nft-top-banner__inner { z-index: 3; }

.nft-history .section__inner,
.nft-history .theme--light { background: transparent !important; }
.nft-history { width: auto !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; left: auto !important; transform: none !important; overflow-x: hidden; background: #020219 !important; }
.nft-history .section { width: auto !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 0 48px !important; left: auto !important; transform: none !important; }
/* Container da secao: fluido ate 1232px (1200 de conteudo + 16px de respiro de cada
   lado). Medido em viewport de 390px: .mkh = 358px, sem rolagem horizontal (capturas
   do Edge --window-size mentem: a janela tem largura minima maior que 390). */
.nft-history .section__inner { width: auto !important; max-width: 1232px !important; min-width: 0 !important; margin: 0 auto !important; padding: 0 16px !important; left: auto !important; transform: none !important; box-sizing: border-box !important; }

.mkh { color: #ece8e1; font-size: 14px; line-height: 1.5; padding-top: 4px; }
.mkh *, .mkh *::before, .mkh *::after { box-sizing: border-box; }
.mkh a { color: inherit; }
.mkh__link { color: #d8b36a !important; text-decoration: underline; font-size: 12.5px; white-space: nowrap; }
.mkh__link:hover { color: #f0d69a !important; }

/* ---------- cabecalho (sem bloco de numeros/tiles — pedido do gestor 2026-08-30) ---------- */
.mkh__head { margin: 0 0 22px; }
.mkh__intro { min-width: 0; }
.mkh__title { margin: 0; font-family: 'TLHeader', serif; font-weight: 400; font-size: 30px; letter-spacing: 1.8px; text-transform: uppercase; color: #e8dfc8; line-height: 1.1; }
.mkh__sub { margin: 8px 0 0; color: #b9b2a3; font-size: 14px; max-width: 720px; }
.mkh__sub strong { color: #d8b36a; font-weight: 700; }

/* ---------- filtros ---------- */
.mkh__filters { margin: 0 0 22px; padding: 18px 18px 16px; border: 1px solid rgba(216, 179, 106, .3); background: linear-gradient(180deg, rgba(216, 179, 106, .07), rgba(216, 179, 106, .02)), #06061c; }
.mkh__filters-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 14px; align-items: end; }
.mkh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mkh-field__label { font-family: 'TL', serif; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #b9b2a3; }
.mkh-field__input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid rgba(216, 179, 106, .35); border-radius: 0; background: #020219; color: #ece8e1; font: inherit; font-size: 13.5px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.mkh-field__input { padding-right: 30px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d8b36a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.mkh-field__input:focus { border-color: #d8b36a; box-shadow: 0 0 0 1px rgba(216, 179, 106, .35); }
.mkh-field__input:disabled { opacity: .45; cursor: not-allowed; }
.mkh-field__input::placeholder { color: #6f6a60; }
.mkh-field__row { display: flex; align-items: center; gap: 6px; }
.mkh-field__sep { color: #b9b2a3; }
.mkh-field--submit { justify-content: flex-end; }
.mkh-field--submit .mkh-btn { width: 100%; height: 44px; }
.mkh__filters-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin-top: 12px; }

/* seletor com imagem (jogo / classe) */
.mkh-select { position: relative; min-width: 0; }
.mkh-select__btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(216, 179, 106, .35); border-radius: 0; background: #020219; color: #ece8e1; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mkh-select__btn:hover, .mkh-select.is-open .mkh-select__btn { border-color: #d8b36a; }
.mkh-select.is-open .mkh-select__btn { box-shadow: 0 0 0 1px rgba(216, 179, 106, .35); }
.mkh-select__btn:disabled, .mkh-select.is-disabled .mkh-select__btn { opacity: .45; cursor: not-allowed; }
.mkh-select__icon { flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; overflow: hidden; }
.mkh-select__icon img { width: 28px; height: 28px; object-fit: contain; display: block; }
.mkh-select__icon--all { color: #d8b36a; font-size: 16px; border: 1px solid rgba(216, 179, 106, .35); }
.mkh-select__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkh-select__caret { flex: 0 0 auto; width: 8px; height: 8px; border-right: 1.6px solid #d8b36a; border-bottom: 1.6px solid #d8b36a; transform: rotate(45deg); margin: -4px 2px 0 0; transition: transform .15s; }
.mkh-select.is-open .mkh-select__caret { transform: rotate(225deg); margin-top: 4px; }
.mkh-select__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 320px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; border: 1px solid rgba(216, 179, 106, .55); background: #06061c; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.mkh-select__opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #d9d3c5; font-size: 13.5px; cursor: pointer; transition: background .12s, color .12s; }
.mkh-select__opt:hover { background: rgba(216, 179, 106, .12); color: #fff; }
.mkh-select__opt.is-selected { color: #d8b36a; background: rgba(216, 179, 106, .08); }
.mkh-select__opt[hidden] { display: none; }

/* CTA: fita dourada chanfrada do padrao da rede */
.mkh-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px 10px 25px; border: 0; border-radius: 0; background: linear-gradient(100deg, #e8cd8f 0%, #d8b36a 40%, #a8834a 100%); clip-path: polygon(13px 0, 100% 0, 100% 100%, 0 100%); color: #181206 !important; font-family: 'TL', serif; font-weight: 700; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s; }
.mkh-btn::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: rgba(24, 18, 6, .35); transform: skewX(-16deg); }
.mkh-btn:hover { filter: brightness(1.08); }
.mkh-btn--sm { padding: 8px 12px 7px 18px; font-size: 10.5px; letter-spacing: 1.6px; }
.mkh-btn--lg { padding: 0 26px 0 34px; font-size: 13.5px; letter-spacing: 2.6px; background: linear-gradient(100deg, #f1dba3 0%, #d8b36a 45%, #b08a4d 100%); clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
.mkh-btn--lg::before { left: 6px; width: 3px; }
.mkh-btn--lg:hover { filter: brightness(1.1); }
.mkh-btn__glyph { font-size: 17px; line-height: 1; transform: rotate(-45deg) translateY(-1px); }
.mkh-btn--ghost { background: transparent; clip-path: none; border: 1px solid rgba(255, 255, 255, .25); color: #f0ead9 !important; padding: 10px 14px 9px; }
.mkh-btn--ghost::before { display: none; }
.mkh-btn--ghost:hover { filter: none; border-color: #d8b36a; color: #fff !important; }

/* ---------- abas com costura na base (B35) ---------- */
.mkh__tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(216, 179, 106, .35); margin: 0 0 14px; overflow-x: auto; }
.mkh__tab { position: relative; flex: 0 0 auto; margin: 0 0 -1px; padding: 12px 18px 11px; border: 1px solid transparent; border-bottom: 0; background: transparent; color: #b9b2a3; font-family: 'TL', serif; font-weight: 700; font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; cursor: pointer; transition: color .15s; }
.mkh__tab:hover { color: #f0e6cf; }
.mkh__tab.is-active { color: #d8b36a; border-color: rgba(216, 179, 106, .35); border-bottom: 1px solid #020219; background: #020219; }
.mkh__tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; border-top: 1px dashed rgba(216, 179, 106, .7); }
.mkh__tab-count { display: inline-block; margin-left: 6px; padding: 2px 7px; border: 1px solid rgba(216, 179, 106, .35); font-size: 10.5px; letter-spacing: .5px; color: #d8b36a; }

/* ---------- lista ---------- */
.mkh__summary { margin: 0 0 10px; font-size: 13px; color: #b9b2a3; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.mkh__summary strong { color: #f0e6cf; }
.mkh__list { display: flex; flex-direction: column; gap: 6px; }
.mkh-row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 150px 120px; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid rgba(216, 179, 106, .18); background: rgba(10, 10, 31, .85); transition: border-color .15s, background .15s; }
.mkh-row--rank { grid-template-columns: 54px 120px minmax(0, 1fr) 150px 150px 120px; }
.mkh-row--link { border-color: rgba(216, 179, 106, .45); }
.mkh-row--link:hover { border-color: #d8b36a; background: rgba(216, 179, 106, .08); }
.mkh-row__cover { position: absolute; inset: 0; z-index: 2; }
.mkh-row--head { padding: 4px 14px; border: 0; background: transparent; font-family: 'TL', serif; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #8f897c; }
.mkh-row__rank { font-family: 'TLHeader', serif; font-size: 20px; line-height: 1; color: rgba(216, 179, 106, .55); letter-spacing: .5px; }
.mkh-row__rank--1 { color: #e8cd8f; text-shadow: 0 0 12px rgba(232, 205, 143, .45); }
.mkh-row__rank--2 { color: #cfd0d8; }
.mkh-row__rank--3 { color: #c98a5a; }
.mkh-row__game { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: #b9b2a3; }
.mkh-row__game img { width: 30px; height: 30px; object-fit: contain; border-radius: 2px; flex: 0 0 auto; }
.mkh-row__who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mkh-row__name { font-family: 'TLHeader', serif; font-weight: 400; font-size: 16px; letter-spacing: .8px; text-transform: uppercase; color: #f0e6cf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkh-row__meta { font-size: 12px; color: #d8b36a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.mkh-row__meta--muted { color: #8f897c; }
.mkh-row__class { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.mkh-row__price { font-size: 16px; color: #f0e6cf; white-space: nowrap; }
.mkh-row--link .mkh-row__price { color: #d8b36a; }
.mkh-row__date { font-size: 12.5px; color: #b9b2a3; white-space: nowrap; }
.mkh-row__act { display: flex; justify-content: flex-end; min-height: 1px; }

/* badges da aba de itens (mesma paleta .imk- da vitrine) */
.mkh-badge { font-size: 9px; font-weight: 800; letter-spacing: .5px; padding: 3px 6px; border-radius: 2px; line-height: 1; border: 1px solid transparent; white-space: nowrap; }
.mkh-badge--exc { background: rgba(39, 234, 132, .18); border-color: rgba(39, 234, 132, .55); color: #6dff9c; }
.mkh-badge--luck { background: rgba(255, 215, 0, .15); border-color: rgba(255, 215, 0, .5); color: #ffd700; }
.mkh-badge--skill { background: rgba(255, 138, 128, .15); border-color: rgba(255, 138, 128, .5); color: #ff9a8c; }
.mkh-badge--anc { background: rgba(79, 195, 247, .15); border-color: rgba(79, 195, 247, .5); color: #7fd1ff; }

/* ---------- vazio / avisos / paginacao ---------- */
.mkh__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 20px; border: 1px dashed rgba(216, 179, 106, .35); color: #b9b2a3; }
.mkh__empty strong { color: #f0e6cf; font-size: 15px; }
.mkh__notice { padding: 10px 14px; border: 1px solid rgba(255, 75, 95, .45); color: #ffb3bb; margin: 0 0 12px; font-size: 13px; }
.mkh__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; }
.mkh__page { min-width: 36px; padding: 8px 10px; border: 1px solid rgba(216, 179, 106, .3); color: #d9d3c5 !important; text-align: center; font-size: 12.5px; text-decoration: none; transition: border-color .15s, color .15s; }
.mkh__page:hover { border-color: #d8b36a; color: #fff !important; }
.mkh__page.is-current { background: linear-gradient(100deg, #e8cd8f 0%, #d8b36a 40%, #a8834a 100%); border-color: transparent; color: #181206 !important; font-weight: 700; }
.mkh__page.is-disabled { opacity: .35; pointer-events: none; }
.mkh__page--gap { border-color: transparent; }

/* ---------- escada responsiva ---------- */
@media (max-width: 1100px) {
	.mkh__filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mkh-row { grid-template-columns: 100px minmax(0, 1fr) 130px 130px 110px; }
	.mkh-row--rank { grid-template-columns: 44px 100px minmax(0, 1fr) 130px 130px 110px; }
}
@media (max-width: 800px) {
	.mkh__title { font-size: 24px; }
	.mkh__filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkh-row--head { display: none; }
	.mkh-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "game who price" "game date act"; row-gap: 4px; padding: 10px 12px; }
	.mkh-row--rank { grid-template-columns: 34px 44px minmax(0, 1fr) auto; grid-template-areas: "rank game who price" "rank game date act"; }
	.mkh-row__rank { grid-area: rank; font-size: 16px; }
	.mkh-row__game { grid-area: game; }
	.mkh-row__game span { display: none; }
	.mkh-row__who { grid-area: who; }
	.mkh-row__price { grid-area: price; justify-self: end; font-size: 15px; }
	.mkh-row__date { grid-area: date; }
	.mkh-row__act { grid-area: act; }
}
@media (max-width: 520px) {
	.mkh { font-size: 13px; }
	.mkh__filters { padding: 14px 12px 12px; }
	.mkh__filters-grid { grid-template-columns: minmax(0, 1fr); }
	.mkh-row { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "game who" "game price" "game date" "game act"; }
	.mkh-row--rank { grid-template-columns: 30px 36px minmax(0, 1fr); grid-template-areas: "rank game who" "rank game price" "rank game date" "rank game act"; }
	.mkh-row__game img { width: 28px; height: 28px; }
	.mkh-row__price, .mkh-row__act { justify-self: start; }
}
