.view-inspection-list {
  background: #f2f2f7;
}

.insp-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}

.insp-title { font-size: 17px; font-weight: 700; color: #1c1c1e; }

.insp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
}

.insp-tab-bar {
  display: flex;
  background: #e3e3e8;
  margin: 12px;
  padding: 4px;
  border-radius: 12px;
}

.insp-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px 4px;
  font-size: 12px;
  color: #8e8e93;
  font-weight: 600;
  cursor: pointer;
}

.insp-tab.on {
  background: #fff;
  color: #1c1c1e;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.insp-filter-panel {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}

.insp-filter-panel[hidden] { display: none !important; }

.insp-search {
  width: 100%;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.insp-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.insp-date-row input {
  flex: 1;
  min-width: 120px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
}

.insp-tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

.insp-type-tag {
  padding: 7px 12px;
  background: #f2f2f7;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  color: #3a3a3c;
  cursor: pointer;
}

.insp-type-tag.on { background: #34c759; color: #fff; font-weight: 700; }

.insp-list { padding: 0 12px; }

.insp-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  cursor: pointer;
}

.insp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.insp-car { font-size: 16px; font-weight: 800; color: #1c1c1e; }

.insp-type-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  flex-shrink: 0;
}

.insp-type-badge.pure { background: #ebf5ff; color: #007aff; }
.insp-type-badge.sourcing { background: #e6f9eb; color: #34c759; }

.insp-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.insp-status-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  flex-shrink: 0;
}

.insp-status-badge.cancelled { background: #fff0f0; color: #ff3b30; }
.insp-status-badge.rejected { background: #fff4e5; color: #ff9500; }
.insp-status-badge.reject-req { background: #fff4e5; color: #ff9500; }

.insp-type-tag.cancelled-tab.on { background: #ff3b30; color: #fff; }

.insp-cancel-reason {
  margin-top: 4px;
  color: #ff3b30;
  font-weight: 600;
}

.insp-reject-reason {
  margin-top: 4px;
  color: #ff9500;
  font-weight: 600;
}

.insp-meta { font-size: 12px; color: #8e8e93; line-height: 1.5; }
.insp-meta .hl { color: #007aff; font-weight: 600; }

.insp-card-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f2f2f7;
  font-size: 11px;
  color: #c7c7cc;
  text-align: right;
}

.insp-empty, .insp-loading {
  padding: 48px 16px;
  text-align: center;
  color: #aeaeb2;
  font-size: 14px;
}

.insp-legacy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.insp-legacy-overlay[hidden] { display: none !important; }

.insp-legacy-sheet {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}

.insp-legacy-head {
  padding: 16px;
  border-bottom: 1px solid #f2f2f7;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.insp-legacy-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.insp-legacy-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f9f9f9;
  font-size: 13px;
}

.insp-legacy-row .l { color: #8e8e93; }
.insp-legacy-row .r { color: #1c1c1e; font-weight: 600; text-align: right; max-width: 60%; word-break: break-all; }

.insp-legacy-close {
  margin: 12px 16px 16px;
  border: none;
  background: #007aff;
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
}

.insp-card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.insp-reassign-btn {
  border: 1px solid #007aff;
  background: #ebf5ff;
  color: #007aff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.insp-reject-btn {
  border: 1px solid #ff3b30;
  background: #fff1f0;
  color: #ff3b30;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.insp-reject-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.insp-reassign-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.insp-reassign-overlay[hidden] { display: none !important; }

.insp-reassign-sheet {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}

.insp-reassign-head {
  padding: 16px;
  border-bottom: 1px solid #f2f2f7;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.insp-reassign-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.insp-reassign-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}

.insp-reassign-row .l { color: #8e8e93; flex-shrink: 0; }
.insp-reassign-row .r { color: #1c1c1e; font-weight: 600; text-align: right; }

.insp-reassign-label {
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3a3a3c;
}

.insp-reassign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insp-inspector-option {
  border: 1px solid #e5e5ea;
  background: #f9f9fb;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  cursor: pointer;
}

.insp-inspector-option.on {
  border-color: #007aff;
  background: #ebf5ff;
  color: #007aff;
}

.insp-reassign-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
}

.insp-reassign-cancel,
.insp-reassign-confirm {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
}

.insp-reassign-cancel { background: #f2f2f7; color: #3a3a3c; }
.insp-reassign-confirm { background: #007aff; color: #fff; }
.insp-reassign-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

.insp-reassign-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #8e8e93;
  cursor: pointer;
}
