/* The recruiter's screens in the recruitOS web app (app.recruitos.com), framed in a browser window.
   The Submit People cards copy SmartSearch.RecruitOS wwwroot/css/submit-people.css; the applicant
   table follows ClientApp/src/components/JobApplicants (WorkflowTabs, columns). */
.browser {
  --color-brand-pink: #ef118e;
  --color-brand-gradient: linear-gradient(to right, #ef118e 0%, #5a29a9 100%);
  --color-primary: #5a29a9;
  --color-white: #fff;
  --color-gray-150: #efefef;
  --color-gray-200: #e2e8f0;
  --color-text-primary: #1e293b;
  --color-text-tertiary: #6b7280;
  --submit-people-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --submit-people-card-width: 325px;
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  color: var(--color-text-primary);
  font-family: 'Poppins', Arial, sans-serif;
}
.browserBar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #e9e7ee;
}
.browserBar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browserBar i:nth-child(2) { background: #febc2e; }
.browserBar i:nth-child(3) { background: #28c840; }
.browserBar span {
  flex: 1;
  margin-left: 14px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
}
.appHeader {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  background: #420a4d;
  border-bottom: 5px solid transparent;
  border-image: var(--color-brand-gradient) 1;
}
.appHeader img { height: 24px; }
.appPage { flex: 1; overflow: hidden; padding: 18px 22px; }
.appPage h2 { margin: 0; font-size: 20px; font-weight: 600; }
.jobMeta { margin: 2px 0 14px; color: var(--color-text-tertiary); font-size: 13px; }

/* Applicant table */
.sourcesLayer .browser { left: 44%; right: 3%; top: 9vh; bottom: 16vh; }
.sourcesLayer .rc-applicants__card { margin-top: 10px; }
.sourcesLayer .colStar { width: 34px; }
.sourcesLayer .colPerson { width: 34%; }
.sourcesLayer .colSource { width: 16%; }
.sourcesLayer .rc-applicants__table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.applicantRow { opacity: 0; transform: translateX(-14px); transition: opacity 0.35s ease, transform 0.35s ease; }
.applicantRow.isIn { opacity: 1; transform: none; }
/* StarToggle, as the table shows it: grey outline off, primary purple filled on. */
.starToggle { color: #b9b4ab; font-size: 13px; transition: color 0.2s ease, transform 0.2s ease; }
.starToggle.isOn { color: #5a29a9; transform: scale(1.15); }

/* Submit People */
.cardsLayer .browser { left: 50%; transform: translateX(-50%); width: min(1120px, 94vw); top: 6vh; bottom: 13vh; }
.backLink { margin: 0 0 4px; color: #793187; font-size: 13px; }
.submitHeader { display: flex; align-items: center; justify-content: space-between; }
.ssBtn.primBtn { padding: 7px 16px; border-radius: 5px; background: #188dd8; color: #fff; font-size: 13px; font-weight: 500; }
#submitInfoRow { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 14px; font-size: 13px; }
.submitInfo {
  display: flex;
  flex-direction: column;
  padding: 9px 14px;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  background: #fff;
}
.submitInfo span { color: var(--color-text-tertiary); font-size: 12px; }
.peopleList { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }

.submitCard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--submit-people-card-width);
  padding: 17px 16px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--submit-people-card-shadow);
  color: var(--color-text-primary);
}
.submitCard .gradHdr { position: absolute; top: 0; left: 0; right: 0; height: 5px; background-image: var(--color-brand-gradient); }
.submitCard > span { font-size: 11px; font-weight: 600; color: var(--color-text-tertiary); }
.submitCard h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.submitCard .candidateTitle, .submitCard .candidateCompany { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.submitCard .candidateTitle { font-weight: 700; }
.submitCard .inlineFieldGroup { margin: 11px 0 0; padding-top: 4px; border-top: 1px solid var(--color-gray-200); }
.submitCard .inlineField { margin: 7px 0; font-size: 12px; }
.submitCard .inlineField .fieldLabel { color: var(--color-text-tertiary); font-weight: 600; }
.submitCard .ctaAddData { font-size: 12px; font-weight: 600; color: var(--color-brand-pink); }
.submitCard .inlineField .fieldValue, .submitCard .inlineField.isFilled .ctaAddData { display: none; }
.submitCard .inlineField.isFilled .fieldValue { display: inline; }
.submitCard .formBox { margin: 0; padding-top: 10px; border-top: 1px solid var(--color-gray-200); font-size: 12px; }
.submitCard .formBox label { display: block; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--color-text-tertiary); }
.submitCard .scrollTest { min-height: 120px; max-height: 150px; overflow: hidden; }
.submitCard .highlightContent ul { margin: 0; padding-left: 18px; list-style: disc; }
.submitCard .highlightContent li { margin: 4px 0; font-size: 12px; }
.submitCard .formBox.radioGroup { margin-top: auto; padding-top: 12px; border-top: 0; }
.submitCard .resumeCheckBox { padding: 9px 12px; background: var(--color-gray-150); border-radius: 6px; font-size: 12px; }
.submitCard .resumeCheckBox p { margin: 0 0 5px; font-size: 11px; color: var(--color-text-tertiary); }
.submitCard .resumeCheckBox > div { display: flex; align-items: center; gap: 7px; }
.submitCard input[type='checkbox'] { accent-color: var(--color-primary); margin: 0; }

@media (max-width: 900px) {
  .sourcesLayer .browser { left: var(--gutter); right: var(--gutter); top: 34vh; bottom: 14vh; }
  .sourcesLayer .colPerson { width: auto; }
  .rc-applicants__table th:nth-child(3), .rc-applicants__table td:nth-child(3),
  .rc-applicants__table th:nth-child(4), .rc-applicants__table td:nth-child(4) { display: none; }
  .rc-applicants__tab-label { display: none; }
  .peopleList { justify-content: flex-start; transform: translateX(calc(var(--active-card, 0) * -298px)); transition: transform 0.5s ease; }
  .submitCard { flex: 0 0 280px; width: 280px; }
  .cardsLayer .appPage { overflow: hidden; }
}

/* Speed Capture in the recruitOS Chrome extension's side panel (RecruitOS.Extension: CaptureHero,
   SavedScreen; header and base text from src/styles/layout.css). */
.capturePanel {
  position: absolute;
  left: 29%;
  top: 50%;
  width: 230px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #1e293b;
  font: 12px 'Poppins', Arial, sans-serif;
  opacity: 0;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.capturePanel.isIn { opacity: 1; transform: translateY(-50%); }
.capturePanel__header {
  display: flex;
  align-items: center;
  height: 35px;
  padding: 0 10px;
  background: #420a4d;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(to right, #ef118e, #5a29a9) 1;
}
.capturePanel__header img { height: 18px; }
.capturePanel__body { padding: 14px 12px 16px; }
.captureState { display: none; text-align: center; }
.capturePanel[data-state='ready'] .captureState--ready,
.capturePanel[data-state='busy'] .captureState--busy,
.capturePanel[data-state='saved'] .captureState--saved { display: block; }
.captureBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  border: 1px solid #5a29a9;
  border-radius: 5px;
  background: #fff;
  color: #5a29a9;
  font-weight: 500;
}
.captureBtn.isBusy { opacity: 0.6; }
.x-capture-glyph { width: 18px; height: 14px; }
.captureMeta { margin: 8px 0 0; color: #6b7280; font-size: 11px; }
.captureSuccess { color: #16a34a; font-size: 30px; }
.captureState--saved h3 { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
@media (max-width: 900px) {
  .capturePanel { display: none; }
}

/* The job page once the decisions are back (the last scene), laid out like the candidates scene. */
.syncedLayer .browser { left: 36%; right: 3%; top: 8vh; bottom: 16vh; }
.syncedLayer .rc-applicants__tab { cursor: pointer; }
.syncedLayer .rc-applicants__table td { vertical-align: top; }
.returnExpansion > td { padding: 6px 12px 16px 48px; background: #f9fafb; }
.returnExpansion .rc-applicants__journey { max-width: 440px; }
.returnEmpty { margin: 0; padding: 22px 12px; text-align: center; }

/* The recruiter's inbox: a plain mail app, newest message on top, the open one on the right. */
.inboxLayer .mailWindow { left: 50%; width: min(1100px, 92vw); top: 6vh; bottom: 14vh; transform: translateX(-50%); background: #fff; }
.mailBody { flex: 1; display: grid; grid-template-columns: minmax(220px, 32%) 1fr; min-height: 0; }
.mailList {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
  list-style: none;
}
.mailList li { opacity: 0; transform: translateY(-10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.mailList li.isIn { opacity: 1; transform: none; }
.mailList li:not(.isIn) { pointer-events: none; }
.mailItem {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: none;
  color: #1e293b;
  font: 400 12px 'Poppins', Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.mailItem.isOpen { background: #ede7f8; box-shadow: inset 3px 0 0 #5a29a9; }
.mailItem__from { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; }
.mailItem__from time { color: #6b7280; font-weight: 400; font-size: 11px; }
.mailItem__subject { display: block; margin-top: 2px; font-weight: 500; }
.mailItem__preview {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: #6b7280;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mailReader { overflow-y: auto; padding: 18px 22px; background: #fff; }
.mailHeader h3 { margin: 0; color: #1e293b; font-size: 17px; }
.mailHeader p { display: flex; gap: 6px; margin: 4px 0 0; color: #6b7280; font-size: 12px; }
.mailHeader time { margin-left: auto; }
.mailReader > table { margin-top: 18px !important; }
@media (max-width: 900px) {
  /* Room underneath for the caption, the next-scene hint and the ending's buttons. */
  .syncedLayer .browser { left: var(--gutter); right: var(--gutter); top: 30vh; bottom: 24vh; }
  .syncedLayer .rc-applicants__table { table-layout: auto; }
  .syncedLayer .rc-applicants__table th:not(:first-child),
  .syncedLayer .applicantRow td:not(:first-child) { display: none; }
  .returnExpansion > td { padding-left: 12px; }
  /* Only the open email on a phone: the list would leave the message no room. */
  .inboxLayer .mailWindow { top: 8vh; bottom: 22vh; }
  .mailBody { grid-template-columns: 1fr; }
  .mailList { display: none; }
  .mailReader { padding: 14px; }
  .mailReader > table { width: 100% !important; }
}
