/* Auction house of the Auktionator (ui/auction.js): head strip, pages Kaufen / Verkaufen / Abholfach */
#auction .win-body { padding: 4px; }
#auction .ah-tabs { margin-bottom: 3px; }
.ah-page { display: flex; gap: 4px; height: 198px; min-height: 0; }
.ah-help { margin-top: 3px; min-height: 8px; line-height: 8px; padding: 0 2px; }
/* the yang coin next to prices */
.ah-yang i, .ah-rp i, .ah-ha i { flex: none; width: 8px; height: 8px; background: var(--ic-coin) center / 8px 8px no-repeat; }

/* ---------- head: a village of the original artwork, the own yang ---------- */
.ah-head { position: relative; height: 20px; margin-bottom: 3px; overflow: hidden; background: #0f0c0a no-repeat 0 -72px; background-size: 400px 258px;
  box-shadow: inset 0 0 0 1px var(--bronze), 0 0 0 1px var(--edge); }
.ah-shade { position: absolute; inset: 1px; background: linear-gradient(90deg, rgba(10, 7, 6, .35), rgba(10, 7, 6, .1) 50%, rgba(10, 7, 6, .55)); }
.ah-yang { position: absolute; right: 4px; top: 4px; height: 12px; display: flex; align-items: center; gap: 3px; padding: 0 5px; font-size: 8px; color: var(--gold);
  background: rgba(10, 7, 6, .82); box-shadow: inset 0 0 0 1px var(--bronze-d); cursor: help; }

/* ---------- Kaufen: search and categories on the left ---------- */
.ah-side { flex: none; width: 84px; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.ah-search { display: flex; gap: 2px; height: 12px; }
#ui .ah-search input { flex: 1; min-width: 0; width: 0; height: 12px; font-size: 7px; }
.ah-sic { flex: none; width: 12px; height: 12px; background: #2a2018 var(--ic-search) center / 12px 12px no-repeat; box-shadow: inset 0 0 0 1px var(--bronze); }
.ah-cats { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 1px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-cat { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 10px; padding: 0 3px 0 4px; font-size: 7px; line-height: 10px;
  color: var(--text); cursor: pointer; }
.ah-cat:hover { background: #241c15; color: #fff; }
.ah-cat.none { color: var(--dim); }
.ah-cat.picked { color: var(--gold); background: #33281b; box-shadow: inset 1px 0 0 var(--gold); }
.ah-cn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-cc { flex: none; font-size: 6px; color: var(--gold-d); }
.ah-check { display: flex; align-items: center; gap: 3px; height: 10px; font-size: 7px; line-height: 10px; color: var(--dim); cursor: pointer; white-space: nowrap; overflow: hidden; }
.ah-check input { flex: none; }
.ah-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Kaufen: filter, columns, offers, the bar ---------- */
.ah-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.ah-filter { display: flex; align-items: center; gap: 3px; height: 12px; margin-bottom: 3px; font-size: 7px; }
#ui .ah-lv-in { width: 20px; height: 12px; padding: 1px 2px; font-size: 7px; text-align: center; }
.ah-found { flex: 1; min-width: 0; text-align: right; font-size: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-filter .ah-sort { flex: none; width: 64px; }
.ah-cols { display: flex; align-items: center; height: 10px; padding: 0 4px 0 25px; font-size: 6px; line-height: 10px; color: var(--gold-d);
  background: #1d1712; box-shadow: inset 0 0 0 1px #3a2d20; }
.ah-cols .c-it { flex: 1; min-width: 0; }
.ah-cols .c-lv { flex: none; width: 22px; text-align: center; }
.ah-cols .c-pr { flex: none; width: 64px; text-align: right; }
.ah-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 1px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-row { display: flex; align-items: center; gap: 3px; height: 21px; padding: 0 3px 0 2px; border-bottom: 1px solid #221a14; cursor: pointer; }
.ah-row:hover { background: #241c15; }
.ah-row.picked { background: #33281b; box-shadow: inset 1px 0 0 var(--gold); }
.ah-olist .ah-row { cursor: default; }
.ah-ic { flex: none; }
.ah-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-rn { font-size: 7px; line-height: 8px; color: #f2e7c1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-rn.special { color: #ffc800; }
.ah-rs { font-size: 6px; line-height: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-row.own .ah-rs { color: #9fd6ff; }
.ah-rl { flex: none; width: 22px; text-align: center; font-size: 7px; }
.ah-rl.red { color: #ff7a6a; }
.ah-rp { flex: none; width: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 7px; color: var(--gold); white-space: nowrap; }
.ah-empty { padding: 28px 8px; text-align: center; font-size: 7px; line-height: 9px; }
.ah-bar { flex: none; display: flex; align-items: center; gap: 4px; height: 26px; margin-top: 3px; padding: 0 3px; background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); }
.ah-bar-empty { flex: 1; min-width: 0; font-size: 7px; line-height: 8px; }
.ah-bar-it { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; cursor: help; }
.ah-bar-t { min-width: 0; display: flex; flex-direction: column; }
.ah-bar-n { flex: none; display: flex; align-items: center; gap: 2px; font-size: 7px; white-space: nowrap; }
#ui .ah-n-in { width: 26px; height: 12px; padding: 1px 2px; font-size: 7px; text-align: right; }
.ah-bar-sum { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 6px; line-height: 7px; white-space: nowrap; }
.ah-total { font-size: 8px; line-height: 9px; color: var(--gold); }
.ah-total.red { color: #ff7a6a; }
#auction .ah-buy-btn { flex: none; min-width: 48px; }

/* ---------- Verkaufen ---------- */
.ah-new, .ah-own, .ah-collect, .ah-hist { display: flex; flex-direction: column; gap: 3px; min-height: 0; padding: 3px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px #2e251c; }
.ah-new { flex: none; width: 162px; }
.ah-own, .ah-hist { flex: 1; min-width: 0; }
.ah-sec { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 4px; height: 11px; padding: 0 1px; font-size: 8px; line-height: 10px;
  color: var(--gold); border-bottom: 1px solid #3a2e22; white-space: nowrap; }
.ah-sec .dim { font-size: 7px; }
.ah-pick { flex: none; display: flex; align-items: center; gap: 4px; min-height: 30px; }
.ah-drop { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: #0f0c0a;
  box-shadow: inset 0 0 0 1px var(--bronze); }
.ah-drop.empty { box-shadow: inset 0 0 0 1px #4a3b2b; }
.ah-drop.empty::after { content: '+'; font-size: 10px; line-height: 10px; color: #6a5638; }
.ah-drop-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 7px; line-height: 8px; }
.ah-drop-t > .dim { white-space: normal; }
.ah-form { flex: none; display: flex; flex-direction: column; gap: 3px; }
.ah-fr { display: flex; align-items: center; gap: 4px; height: 12px; }
.ah-fr.off { opacity: .55; }
.ah-fl { flex: none; width: 46px; font-size: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-fc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; font-size: 7px; white-space: nowrap; }
#ui .ah-price-in { width: 72px; height: 12px; padding: 1px 3px; font-size: 7px; text-align: right; }
.ah-fc .ah-days { width: 72px; }
.ah-sum { flex: none; display: flex; flex-direction: column; padding: 2px 3px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-sr { display: flex; justify-content: space-between; gap: 4px; font-size: 7px; line-height: 9px; white-space: nowrap; }
.ah-note { font-size: 6px; line-height: 7px; margin-top: 1px; }
.ah-sum .ah-note { min-height: 14px; }
.ah-btns { margin-top: auto; }
.ah-olist, .ah-hlist { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
#auction .ah-back { flex: none; }

/* ---------- Abholfach ---------- */
.ah-collect { flex: none; width: 150px; }
.ah-gold { flex: none; display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 3px; font-size: 9px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-gold i { flex: none; width: 16px; height: 16px; background: var(--ic-coin) center / 16px 16px no-repeat; }
.ah-bitems { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 1px; overflow-y: auto; overflow-x: hidden; padding: 1px;
  background: #0d0a08; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-bitems .ah-empty { width: 100%; padding: 14px 4px; }
.ah-hr { display: flex; align-items: center; gap: 3px; min-height: 19px; padding: 1px 2px; border-bottom: 1px solid #221a14; }
.ah-hic { flex: none; width: 16px; height: 16px; }
.ah-hic img { width: 16px; height: 16px; object-fit: contain; display: block; }
.ah-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-hx { font-size: 7px; line-height: 8px; overflow-wrap: anywhere; }
.ah-hd { font-size: 6px; line-height: 7px; }
.ah-ha { flex: none; display: flex; align-items: center; gap: 2px; font-size: 7px; white-space: nowrap; }

/* the item chosen for the page Verkaufen in the inventory / special inventory */
.inv-item.ah-mark::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px var(--gold); background: rgba(242, 196, 90, .14); }
