.comparison-help {
  font-size: 12px;
  color: #738075;
  margin: 14px 0 8px;
}
.comparison {
  min-width: 1030px;
  table-layout: fixed;
}
.comparison th:nth-child(1) {
  width: 64px;
}
.comparison th:nth-child(2) {
  width: 220px;
}
.comparison th:nth-child(3) {
  width: 115px;
}
.comparison th:nth-child(4) {
  width: 150px;
}
.comparison th:nth-child(5) {
  width: 100px;
}
.comparison th:nth-child(6) {
  width: 65px;
}
.comparison th:nth-child(7) {
  width: 190px;
}
.comparison th:nth-child(8) {
  width: 110px;
}
.comparison td {
  height: 78px;
  white-space: normal;
  vertical-align: middle;
  padding: 8px;
}
.comparison .product-image {
  width: 44px;
  height: 56px;
  background: #f0f1eb;
  border-radius: 3px;
}
.comparison td strong {
  font-size: 13px;
}
.comparison td span:not(.badge) {
  display: block;
  font-size: 12px;
}
.comparison th button {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
}
.comparison th[aria-sort="ascending"],
.comparison th[aria-sort="descending"] {
  background: #dcebdc;
}
.comparison .numeric {
  text-align: right;
}
.comparison th {
  position: sticky;
  top: 0;
}
.comparison td small {
  font-size: 10px;
}
.admin-nav {
  width: 195px;
}
.admin-main {
  margin-left: 195px;
}
.admin-nav a {
  font-size: 13px;
  padding: 7px 5px;
  margin: 8px 0;
}
.management-filters {
  display: flex;
  gap: 14px;
  align-items: end;
  margin: 18px 0;
}
.management-filters label {
  min-width: 180px;
}
.management-filters input,
.management-filters select {
  margin-bottom: 0;
}
.master-table {
  white-space: normal;
  min-width: 1050px;
}
.master-table td {
  max-width: 290px;
  vertical-align: top;
}
.master-table .links a {
  display: block;
}
.master-table .links {
  min-width: 110px;
}
.master-table small {
  font-size: 11px;
}
.master-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
}
.master-form .wide {
  grid-column: 1/-1;
}
.master-form textarea {
  min-height: 90px;
  width: 100%;
}
.collect-panel {
  max-width: 850px;
  background: white;
  border: 1px solid #dce2d9;
  border-radius: 7px;
  padding: 22px;
  margin: 20px 0;
}
.collect-panel label {
  margin: 8px 0;
}
.collect-panel .condition-line {
  padding: 14px;
  background: #edf2e9;
  margin: 18px 0;
  font-weight: 600;
}
.collection-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.collection-summary span {
  padding: 8px 13px;
  background: #edf2e9;
  border-radius: 4px;
}
.history-detail {
  margin: 18px 0;
  padding: 20px;
  background: white;
  border: 1px solid #dce2d9;
}
.history-detail pre {
  white-space: pre-wrap;
  font-size: 12px;
  word-break: break-all;
  max-height: 350px;
  overflow: auto;
}
.history-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.status-failed,
.status-partial {
  color: #a34e20;
}
.source-panel {
  border-top: 1px solid #dce2d9;
  margin: 15px 0;
  padding-top: 16px;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.source-image {
  border: 1px solid #dce2d9;
  padding: 8px;
  border-radius: 5px;
  overflow: hidden;
}
.source-image img {
  width: 100%;
  height: 145px;
  object-fit: contain;
}
.source-image small {
  display: block;
  word-break: break-all;
  font-size: 10px;
}
.source-panel pre {
  white-space: pre-wrap;
  word-break: break-word;
  font:
    12px/1.7 "Meiryo",
    sans-serif;
  max-height: 450px;
  overflow: auto;
  background: #f6f8f3;
  padding: 12px;
}
.source-panel details {
  margin: 10px 0;
}
.source-panel .source-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.source-warning {
  padding: 10px;
  background: #fff4da;
  color: #866b30;
}
.source-label {
  font-size: 12px;
  color: #738075;
}
.report-empty {
  padding: 35px;
  color: #738075;
}
.master-tag {
  display: inline-block;
  padding: 2px 5px;
  margin: 2px;
  background: #edf2e9;
  font-size: 11px;
}
@media (max-width: 650px) {
  .admin-main {
    margin-left: 0;
  }
  .master-form {
    grid-template-columns: 1fr;
  }
  .source-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .management-filters {
    flex-wrap: wrap;
  }
  .comparison {
    min-width: 1020px;
  }
  .collect-panel {
    padding: 14px;
  }
}
