/* CV Oficial - sincronizacao privada por vaga. */
.job-analysis-actions .job-analysis-sync {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 8px 13px;
  color: #382600;
  background: linear-gradient(135deg, #ffd95a 0%, #e8b316 100%);
  box-shadow: 0 5px 12px rgba(155, 111, 0, 0.2);
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.job-analysis-actions .job-analysis-sync:hover:not(:disabled),
.job-analysis-actions .job-analysis-sync:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #ffe276 0%, #f0bd1c 100%);
  transform: translateY(-1px);
}

.job-analysis-actions .job-analysis-sync:disabled {
  color: #6e6653;
  background: #e7e2d5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.78;
}

.cv-vacancy-sync-reason {
  width: 100%;
  margin: 1px 0 8px;
  color: #665930;
  font: 700 10.5px/1.35 system-ui, sans-serif;
  letter-spacing: 0;
}

.cv-vacancy-brief {
  display: grid;
  gap: 10px;
  color: #10294d;
  font-family: Arial, sans-serif;
}

.cv-vacancy-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #b9cbe4;
  border-radius: 7px;
  background: #fff;
}

.cv-vacancy-brief-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.cv-vacancy-brief-head small {
  display: block;
  margin-top: 3px;
  color: #536783;
  font-size: 10.5px;
  line-height: 1.35;
}

.cv-vacancy-brief-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #d8a814;
  border-radius: 999px;
  color: #674700;
  background: #fff4c6;
  font-size: 9.5px;
  font-weight: 800;
}

.cv-vacancy-brief-state[data-state="ready"] {
  border-color: #5eab7e;
  color: #185d39;
  background: #ecfbf2;
}

.cv-vacancy-brief-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
  border: 1px solid #b9cbe4;
  border-radius: 7px;
  background: #edf5ff;
}

.cv-vacancy-brief-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #203d66;
  font-size: 10.5px;
  font-weight: 800;
}

.cv-vacancy-brief-field.is-wide {
  grid-column: 1 / -1;
}

.cv-vacancy-brief-field input,
.cv-vacancy-brief-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #9fb5d4;
  border-radius: 6px;
  padding: 8px 9px;
  color: #10294d;
  background: #fff;
  font: 500 11.5px/1.4 Arial, sans-serif;
  letter-spacing: 0;
  resize: vertical;
}

.cv-vacancy-brief-field textarea {
  min-height: 68px;
  max-height: 160px;
}

.cv-vacancy-brief-details {
  border: 1px solid #c8d5e7;
  border-radius: 6px;
  background: #fff;
}

.cv-vacancy-brief-details summary {
  padding: 8px 10px;
  color: #445a78;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.cv-vacancy-brief-details p {
  margin: 0;
  padding: 0 10px 10px;
  color: #5e6f87;
  font-size: 10.5px;
  line-height: 1.45;
}

.cv-vacancy-brief-confirm {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: #173f83;
  box-shadow: 0 5px 12px rgba(23, 63, 131, 0.2);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.cv-targeted-overlay[hidden] {
  display: none !important;
}

.cv-targeted-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000070;
  display: grid;
  place-items: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(8, 22, 45, 0.68);
  backdrop-filter: blur(3px);
}

.cv-targeted-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, calc(100vw - 36px));
  max-height: min(92dvh, 940px);
  overflow: hidden;
  border: 1px solid #9fb3d0;
  border-radius: 8px;
  background: #eaf3ff;
  box-shadow: 0 24px 70px rgba(5, 18, 40, 0.34);
}

.cv-targeted-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-bottom: 1px solid #b7c8df;
  background: #fff;
}

.cv-targeted-header h2 {
  margin: 0;
  color: #0b2e62;
  font: 800 17px/1.2 Arial, sans-serif;
  letter-spacing: 0;
}

.cv-targeted-header p {
  margin: 3px 0 0;
  color: #52667f;
  font: 600 11px/1.35 Arial, sans-serif;
}

.cv-targeted-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d1dbe9;
  border-radius: 50%;
  color: #173b72;
  background: #f7faff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cv-targeted-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.cv-targeted-paper {
  justify-self: center;
  width: min(100%, 760px);
  min-height: 980px;
  box-sizing: border-box;
  padding: 46px 52px;
  border: 1px solid #b7bec9;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 48, 72, 0.14);
  color: #111;
  font: 12px/1.42 Arial, sans-serif;
}

.cv-targeted-paper-section {
  margin-bottom: 16px;
}

.cv-targeted-paper-section h3 {
  margin: 0 0 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid #102f62;
  color: #102f62;
  font: 800 12.5px/1.2 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cv-targeted-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.cv-targeted-field {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #526174;
  font-size: 9px;
  font-weight: 700;
}

.cv-targeted-field.is-wide {
  grid-column: 1 / -1;
}

.cv-targeted-field input,
.cv-targeted-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d2d8e1;
  border-radius: 3px;
  padding: 6px 7px;
  color: #111;
  background: #fff;
  font: 11px/1.4 Arial, sans-serif;
  letter-spacing: 0;
  resize: vertical;
}

.cv-targeted-field textarea {
  min-height: 56px;
}

.cv-targeted-insights {
  align-self: start;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cv-targeted-insight {
  padding: 11px;
  border: 1px solid #b8c9e0;
  border-radius: 7px;
  background: #fff;
}

.cv-targeted-insight h3 {
  margin: 0 0 7px;
  color: #173f7c;
  font: 800 12px/1.2 Arial, sans-serif;
}

.cv-targeted-insight ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #3f526c;
  font: 500 10.5px/1.4 Arial, sans-serif;
}

.cv-targeted-confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #173f7c;
  font: 800 11px/1.3 Arial, sans-serif;
}

.cv-targeted-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  box-sizing: border-box;
  border-top: 1px solid #b7c8df;
  background: #fff;
}

.cv-targeted-footer-status {
  min-width: 0;
  color: #52667f;
  font: 700 10.5px/1.35 Arial, sans-serif;
}

.cv-targeted-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cv-targeted-action {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  background: #586a82;
  font: 800 10.5px/1 system-ui, sans-serif;
  cursor: pointer;
}

.cv-targeted-action.is-improve {
  color: #4a3200;
  background: #f0c438;
}

.cv-targeted-action.is-apply {
  background: #17663d;
}

.cv-targeted-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

html body.cvx-on #cvHistoryPanel .cv-history-section[data-history-model-group="targeted"] > .cv-history-model-toggle {
  border-color: #c69a17 !important;
  background: #fff4c6 !important;
  color: #624500 !important;
}

html body.cvx-on #cvHistoryPanel .cv-history-section[data-history-model-group="targeted"].is-open > .cv-history-model-body {
  border-color: #d2b458 !important;
  background: #f7f0dc !important;
}

@media (max-width: 780px) {
  .cv-vacancy-brief-fields,
  .cv-targeted-item {
    grid-template-columns: 1fr;
  }

  .cv-targeted-body {
    display: block;
  }

  .cv-targeted-overlay {
    padding: 8px;
  }

  .cv-targeted-dialog {
    width: calc(100vw - 16px);
    max-height: 96dvh;
  }

  .cv-targeted-body {
    padding: 9px;
  }

  .cv-targeted-paper {
    height: max-content;
    min-height: max-content;
    padding: 28px 22px;
  }

  .cv-targeted-insights {
    margin-top: 10px;
  }

  .cv-targeted-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-targeted-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cv-targeted-action {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }
}

@media print {
  .cv-targeted-overlay,
  .cv-vacancy-sync-reason {
    display: none !important;
  }
}
