/* 일반 구성품: 단별 수량·외관 확인 표 */
.part-button .part-sub {
  display: block;
  font-size: 9px;
  color: #a6a8b5;
  line-height: 1.4;
}
.kit-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.kit-guide {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #8b8fa0;
}
.kit-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: white;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
}
.kit-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
}
.kit-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--canvas);
  border-bottom: 1px solid #e5e7ef;
  padding: 9px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: #8b8fa0;
}
.kit-table tbody th,
.kit-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f1f5;
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}
.kit-table tbody tr:last-child th,
.kit-table tbody tr:last-child td {
  border-bottom: 0;
}
.kit-table tbody th b {
  font-weight: 600;
  color: var(--ink);
}
.kit-table tbody th small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #9a9dab;
}
.kit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.kit-tag,
.kit-note {
  font-size: 9px;
  border-radius: 4px;
  padding: 2px 6px;
}
.kit-tag {
  background: var(--tint);
  color: var(--accent-strong);
}
.kit-note {
  background: #f3f4f8;
  color: #6f7385;
}
.kit-table .num {
  width: 92px;
  text-align: right;
}
.kit-table .center {
  width: 56px;
  text-align: center;
}
.kit-table input[type='number'],
.kit-table input[type='text'] {
  height: 30px;
  border: 1px solid #dfe2ea;
  border-radius: 6px;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  background: white;
}
.kit-table input[type='number'] {
  width: 68px;
  text-align: right;
}
.kit-table input[type='text'] {
  width: 100%;
  min-width: 140px;
}
.kit-table input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 0;
  border-color: var(--accent);
}
.kit-table input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.kit-table .diff-text {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #a26a00;
}
.kit-table tr.qty-diff input[type='number'] {
  border-color: #e0a100;
  background: #fff8e6;
}
.kit-table tr.has-issue {
  background: #fff5f3;
}
.kit-table input[required]:placeholder-shown {
  border-color: #e69491;
}
.report-head span,
.report-head b {
  font-size: 10px;
  color: #a0a3b1;
  font-weight: 500;
}
.report-line small {
  color: #a0a3b1;
}
@media (max-width: 999px), (max-height: 599px) {
  .kit-table-wrap {
    max-height: 70vh;
  }
}

/* 품목 사진: 표에는 작게, 누르면 대화상자에서 크게 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.kit-table .kit-photo {
  width: 56px;
  padding-right: 0;
}
.kit-photo button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 2px;
  background: white;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}
.kit-photo button:hover,
.kit-photo button:focus-visible {
  border-color: var(--accent);
}
.kit-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kit-photo-dialog {
  width: min(360px, calc(100vw - 32px));
}
.kit-photo-dialog img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  margin: 12px auto 0;
  object-fit: contain;
}
.kit-photo-dialog p {
  text-align: center;
}
