﻿.itemdb-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,250,243,.92), rgba(255,250,243,.98)),
    url("t_login.jpg") center/cover fixed;
}
.itemdb-hero {
  padding: 92px 32px 34px;
  max-width: 1180px;
  margin: 0 auto;
}
.itemdb-hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 1;
  color: var(--accent-dark);
}
.itemdb-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #5f4a3a;
  font-size: 18px;
}
.itemdb-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 70px;
  padding: 22px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(213, 155, 61, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.itemdb-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(180px, .8fr) auto;
  gap: 12px;
  align-items: end;
}
.itemdb-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.itemdb-filter input,
.itemdb-filter select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fffaf4;
  color: var(--ink);
  font: inherit;
}
.itemdb-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
  color: var(--muted);
}
.itemdb-summary strong { color: var(--accent-dark); }
.item-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.item-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}
.item-table th,
.item-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0e4d8;
  text-align: left;
  vertical-align: top;
}
.item-table th {
  background: #7e2118;
  color: #fff7e8;
  font-size: 13px;
  position: static;
}
.item-table th:first-child { border-top-left-radius: 8px; }
.item-table th:last-child { border-top-right-radius: 8px; }
.item-table td:first-child,
.item-table th:first-child { width: 58px; text-align: center; }
.item-table td:nth-child(2),
.item-table th:nth-child(2) { width: 72px; }
.item-table td:nth-child(3),
.item-table th:nth-child(3) { width: 230px; }
.item-table td:nth-child(4),
.item-table th:nth-child(4) { width: 250px; }
.item-table td:nth-child(5),
.item-table th:nth-child(5) { width: 110px; }
.item-table td:nth-child(6),
.item-table th:nth-child(6),
.item-table td:nth-child(7),
.item-table th:nth-child(7) { width: 92px; }
.item-table td:nth-child(9),
.item-table th:nth-child(9) { width: 130px; }
.item-table tbody tr:hover { background: #fff8ee; }
.item-icon-cell { vertical-align: middle; }
.item-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: auto;
  border-radius: 8px;
  background: #fff8ee;
  border: 1px solid #f0e4d8;
  padding: 4px;
}
.mono { font-family: Consolas, "Courier New", monospace; }
.type-pill,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.type-pill { background: #fff0d5; color: #895518; }
.source-pill { background: #eef7f2; color: #176647; }
.item-detail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: #5d4a3e;
}
.item-detail span {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f8efe5;
  font-size: 12px;
  font-weight: 700;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 36px !important;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.pagination a,
.pagination span {
  min-width: 92px;
  text-align: center;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffaf3;
  font-weight: 800;
}
.pagination a:not(.disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .disabled {
  pointer-events: none;
  opacity: .45;
}
@media (max-width: 860px) {
  .itemdb-filter { grid-template-columns: 1fr; }
  .itemdb-panel { padding: 14px; }
  .itemdb-hero { padding-top: 64px; }
}

.itemdb-page { background: #fffaf3; }
.itemdb-panel {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(7px);
}
.item-table-wrap { background: rgba(255,255,255,.88); }


