/* Item Caps page */
body.page-item-caps .item-caps-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

body.page-item-caps .item-caps-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

body.page-item-caps .item-caps-search {
  flex: 1 1 14rem;
  min-width: 10rem;
  margin: 0;
}

body.page-item-caps .item-caps-search input,
body.page-item-caps .item-caps-filter select {
  width: 100%;
  background: rgba(7, 10, 15, 0.85);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0.3rem;
  padding: 0.4rem 0.65rem;
}

body.page-item-caps .item-caps-filter {
  flex: 0 1 11rem;
  min-width: 8rem;
  margin: 0;
}

body.page-item-caps .item-caps-count {
  margin-left: auto;
}

body.page-item-caps .item-caps-table-wrap {
  overflow: auto;
  max-height: min(70vh, 720px);
}

body.page-item-caps .item-caps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

body.page-item-caps .item-caps-table th,
body.page-item-caps .item-caps-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

body.page-item-caps .item-caps-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 14, 20, 0.96);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}

body.page-item-caps .item-caps-table tbody tr:hover {
  background: rgba(0, 230, 255, 0.05);
}

body.page-item-caps .item-caps-name {
  font-weight: 600;
}

body.page-item-caps .item-caps-id {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #9aa4b2);
  font-weight: 400;
}

body.page-item-caps .item-caps-badge {
  display: inline-block;
  margin: 0.1rem 0.25rem 0.1rem 0;
  padding: 0.12rem 0.4rem;
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #9fefff;
  background: rgba(0, 230, 255, 0.08);
}

body.page-item-caps .item-caps-badge.is-overcap {
  border-color: rgba(255, 170, 60, 0.55);
  color: #ffd39a;
  background: rgba(255, 140, 0, 0.12);
}

body.page-item-caps .item-caps-notes {
  padding-left: 1.1rem;
}

body.page-item-caps .item-caps-notes li + li {
  margin-top: 0.35rem;
}

@media (max-width: 767.98px) {
  body.page-item-caps .item-caps-table th:nth-child(n + 5),
  body.page-item-caps .item-caps-table td:nth-child(n + 5) {
    display: none;
  }
}
