/* The reference state is kept as a lightweight entry preview while the CRM shell remains available below it. */
.interview-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  min-width: 960px;
  overflow: hidden;
  border-left: 8px solid #17395f;
  background: #eef3f8;
  color: #183b67;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.interview-preview-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px 9px 18px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid #d8e2ee;
}

.interview-preview-identity,
.interview-preview-actions,
.interview-preview-tabs {
  display: flex;
  align-items: center;
}

.interview-preview-identity { min-width: 0; gap: 7px; }
.interview-preview-identity > strong { flex: 0 0 auto; color: #0d2d50; font-size: 20px; line-height: 1; }
.interview-preview-gender { flex: 0 0 auto; color: #367bdc; font-size: 20px; line-height: 1; }

.interview-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid #cbdced;
  border-radius: 6px;
  background: #f4f8fd;
  color: #4b6684;
  font-size: 12px;
  white-space: nowrap;
}
.interview-preview-chip-warm { border-color: #ebd6b7; background: #fffaf1; color: #a36a24; }
.interview-preview-chip-purple { border-color: #d3cfea; background: #f8f6ff; color: #665ca1; }
.interview-preview-chip-green { border-color: #c7e3d9; background: #f3fbf7; color: #3f806c; }

.interview-preview-actions { flex: 0 0 auto; gap: 8px; }
.interview-preview button {
  border: 1px solid #d3e0ed;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #315b86;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.interview-preview button:hover { border-color: #8eb5e8; background: #f7fbff; }
.interview-preview button.is-primary { border-color: #3475eb; background: #3475eb; color: #fff; }

.interview-preview-main {
  flex: 0 0 251px;
  height: 251px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(24, 48, 80, .08);
}

.interview-preview-tabs {
  height: 66px;
  gap: 8px;
  padding: 16px 14px 10px 34px;
  border-bottom: 1px solid #edf1f6;
}
.interview-preview-tabs button { min-width: 88px; border-radius: 20px; padding: 9px 15px; color: #5d718a; }
.interview-preview-tabs button.is-active { border-color: #3475eb; background: #3475eb; color: #fff; }

.interview-preview-section { padding: 12px 16px 0 34px; }
.interview-preview-section-head {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9eef5;
}
.interview-preview-section-head h1 { margin: 0; color: #1657b5; font-size: 16px; font-weight: 700; }
.interview-preview-section-head button { padding: 9px 13px; }

.interview-preview-table-wrap { padding-top: 11px; }
.interview-preview-table-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #49627f; font-size: 13px; }
.interview-preview-table-wrap th {
  height: 39px;
  padding: 0 8px;
  background: #f5f8fc;
  border-bottom: 1px solid #ccdced;
  text-align: left;
  font-weight: 600;
}
.interview-preview-table-wrap th:nth-child(1) { width: 10%; }
.interview-preview-table-wrap th:nth-child(2) { width: 21%; }
.interview-preview-table-wrap th:nth-child(3) { width: 15%; }
.interview-preview-table-wrap th:nth-child(4) { width: 15%; }
.interview-preview-table-wrap th:nth-child(5) { width: 15%; }
.interview-preview-table-wrap th:nth-child(6) { width: 18%; }
.interview-preview-table-wrap th:nth-child(7) { width: 6%; text-align: center; }
.interview-preview-table-wrap td { height: 57px; padding: 0 8px; border: 1px dashed #cdddeb; border-top: 0; }
.interview-preview-table-wrap tr.is-empty td { color: #526b88; text-align: center; }

.interview-preview-toast {
  position: fixed;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  min-width: 488px;
  padding: 11px 16px;
  border-radius: 22px;
  background: #172e47;
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 42, 68, .2);
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .interview-preview { min-width: 0; overflow-x: auto; }
  .interview-preview-header { align-items: stretch; flex-direction: column; gap: 8px; }
  .interview-preview-identity { flex-wrap: wrap; }
  .interview-preview-actions { flex-wrap: wrap; justify-content: flex-start; }
}
