/* Inventory-style category / grade / subtype tabs on clan warehouse lists.
 * Restricted to this page; the character inventory and all game mechanics stay unchanged.
 */
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters {
  --l2-char-inv-tab-text: #b8b0a4;
  --l2-char-inv-tab-text-hover: #d4c8b8;
  --l2-char-inv-tab-text-active: #f2ead8;
  --l2-char-inv-tab-sep: rgba(255, 186, 0, 0.42);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 5px 0 10px;
  padding: 0 1px 6px;
  border: 0;
  border-bottom: 1px solid rgba(172, 139, 90, 0.28);
  background: transparent;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filter-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-cats-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-cats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  width: 100%;
  min-width: 0;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-all-host {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-all-host::after {
  content: '|';
  margin: 0 6px;
  color: var(--l2-char-inv-tab-sep);
  pointer-events: none;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tablist {
  display: flex !important;
  justify-content: center !important;
  justify-content: safe center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tablist--grades,
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tablist--weapon-kind {
  width: 100% !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tablist[hidden] {
  display: none !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tab,
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-all-items-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  justify-content: safe center !important;
  gap: 4px;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 3px 2px !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  color: var(--l2-char-inv-tab-text) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-cats-row .l2-drops-shop-tab,
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-all-items-btn {
  font-size: 12px !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-cat-tab__ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tab + .l2-drops-shop-tab::before {
  content: '|';
  margin: 0 6px;
  color: var(--l2-char-inv-tab-sep);
  font-weight: 400;
  pointer-events: none;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tab:hover,
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-all-items-btn:hover,
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tab:focus-visible,
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-all-items-btn:focus-visible {
  color: var(--l2-char-inv-tab-text-hover) !important;
  outline: none;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-drops-shop-tab--active,
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters .l2-char-inv-all-items-btn--active {
  color: var(--l2-char-inv-tab-text-active) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-wh-cat="weapon"] { color: #ffba00 !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-wh-cat="shield"] { color: #8eb8e8 !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-wh-cat="armor"] { color: #d4b878 !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-wh-cat="accessor"] { color: #d8a8ff !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-wh-cat="consumable"] { color: #8fd4a0 !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-grade="NG"] { color: var(--l2-item-grade-ng, #ddd2bb) !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-grade="D"] { color: var(--l2-item-grade-d, #c9d0d8) !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-grade="C"] { color: var(--l2-item-grade-c, #a4c9ff) !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-grade="B"] { color: var(--l2-item-grade-b, #edb3ee) !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-grade="A"] { color: var(--l2-item-grade-a, #eebd78) !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filters [data-grade="S"] { color: var(--l2-item-grade-s, #edcf74) !important; }
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-filter-empty {
  margin: 12px 0;
  color: #a9a094;
  font-size: 12px;
  text-align: center;
}


/* Clan warehouse pagination — chat's compact Mammon button language.
 * Five page numbers + previous/next group, never the browser default buttons.
 */
body.l2-app-l2-chrome.l2-page-clan-warehouse nav.l2-clan-wh-pagination {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  margin: 9px 0 11px !important;
  padding: 0 2px !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse nav.l2-clan-wh-pagination[hidden] {
  display: none !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-pagination .l2-clan-wh-pagination__btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 1px solid #6b543f !important;
  border-radius: 3px !important;
  border-image: none !important;
  background: linear-gradient(180deg, #4a4034 0%, #2e2820 55%, #1f1a14 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  font-family: var(--l2-font-display, inherit) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  color: #e8ddca !important;
  text-shadow: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-pagination .l2-clan-wh-pagination__btn--active {
  background: linear-gradient(180deg, #6a5231 0%, #49341e 100%) !important;
  border-color: #b18a45 !important;
  color: #ffdc87 !important;
  box-shadow: inset 0 1px 0 rgba(255, 229, 155, 0.16) !important;
  cursor: default !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-pagination .l2-clan-wh-pagination__btn:hover:not(:disabled),
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-pagination .l2-clan-wh-pagination__btn:focus-visible {
  border-color: #a78958 !important;
  color: #fff1c6 !important;
  filter: brightness(1.1) !important;
  outline: none !important;
}
body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-pagination .l2-clan-wh-pagination__btn--move {
  padding: 0 9px !important;
}
@media (max-width: 350px) {
  body.l2-app-l2-chrome.l2-page-clan-warehouse nav.l2-clan-wh-pagination {
    gap: 2px;
    padding: 0 !important;
  }
  body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-pagination .l2-clan-wh-pagination__btn {
    min-width: 24px !important;
    height: 25px !important;
    min-height: 25px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
  }
  body.l2-app-l2-chrome.l2-page-clan-warehouse .l2-clan-wh-pagination .l2-clan-wh-pagination__btn--move {
    padding: 0 5px !important;
  }
}
