/* =========================
   SALES HUNTING JOBS
========================= */

.sales-hunting-jobs-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 4px 0 32px;
  color: #e5edf8;
}

/* =========================
   HEADER
========================= */

.sales-hunting-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(17, 29, 49, 0.98),
      rgba(23, 37, 60, 0.96)
    );

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.14);
}

.sales-hunting-header h1 {
  margin: 6px 0 7px;

  color: #ffffff;

  font-size: clamp(
    26px,
    3vw,
    36px
  );

  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sales-hunting-header p {
  max-width: 720px;
  margin: 0;

  color: #aebcd0;

  font-size: 14px;
  line-height: 1.6;
}

.sales-hunting-header .secondary-button {
  flex-shrink: 0;

  border: 1px solid rgba(148, 163, 184, 0.22);

  background: rgba(255, 255, 255, 0.05);

  color: #eaf1fb;
}

.sales-hunting-header .secondary-button:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* =========================
   SHARED
========================= */

.sales-hunting-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #8294ad;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sales-hunting-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.sales-hunting-card-heading h2,
.sales-hunting-card-heading h3 {
  margin: 5px 0 0;

  color: #f7faff;

  line-height: 1.2;
}

.sales-hunting-card-heading h2 {
  font-size: 22px;
  font-weight: 800;
}

.sales-hunting-card-heading h3 {
  font-size: 17px;
  font-weight: 780;
}

.sales-hunting-muted {
  margin: 0;

  color: #91a3ba;

  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   FEEDBACK
========================= */

.sales-hunting-feedback {
  padding: 12px 15px;

  border: 1px solid transparent;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 650;
}

.sales-hunting-feedback.is-success {
  border-color: rgba(52, 211, 153, 0.24);

  background: rgba(16, 185, 129, 0.08);

  color: #6ee7b7;
}

.sales-hunting-feedback.is-error {
  border-color: rgba(248, 113, 113, 0.25);

  background: rgba(239, 68, 68, 0.08);

  color: #fca5a5;
}

/* =========================
   ACTIVE JOB
========================= */

.sales-hunting-active-card {
  position: relative;
  overflow: hidden;

  padding: 20px 22px;

  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(24, 39, 63, 0.96),
      rgba(17, 30, 50, 0.98)
    );

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12);
}

.sales-hunting-active-card.is-idle {
  background:
    linear-gradient(
      145deg,
      rgba(22, 36, 58, 0.9),
      rgba(17, 29, 47, 0.96)
    );
}

.sales-hunting-active-card.is-running {
  border-color: rgba(59, 130, 246, 0.36);

  background:
    linear-gradient(
      145deg,
      rgba(22, 44, 75, 0.98),
      rgba(17, 31, 53, 0.98)
    );
}

.sales-hunting-active-card.is-running::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 4px;
  height: 100%;

  background: #3b82f6;
}

.sales-hunting-active-info {
  margin-top: 15px;
  padding: 11px 13px;

  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 9px;

  background: rgba(59, 130, 246, 0.08);

  color: #bfdbfe;

  font-size: 12px;
  line-height: 1.55;
}

/* =========================
   STATUS
========================= */

.sales-hunting-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  flex-shrink: 0;

  min-height: 27px;

  padding: 4px 10px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sales-hunting-status.is-running {
  background: rgba(59, 130, 246, 0.14);

  color: #93c5fd;
}

.sales-hunting-status.is-running::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #60a5fa;

  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.11);
}

.sales-hunting-status.is-completed {
  background: rgba(16, 185, 129, 0.12);

  color: #6ee7b7;
}

.sales-hunting-status.is-draft {
  background: rgba(148, 163, 184, 0.11);

  color: #cbd5e1;
}

.sales-hunting-status.is-stopped {
  background: rgba(245, 158, 11, 0.12);

  color: #fcd34d;
}

.sales-hunting-status.is-failed {
  background: rgba(239, 68, 68, 0.12);

  color: #fca5a5;
}

/* =========================
   META
========================= */

.sales-hunting-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;

  margin-top: 14px;

  color: #8fa2bb;

  font-size: 11px;
}

.sales-hunting-job-meta span {
  display: inline-flex;
  gap: 4px;
}

.sales-hunting-job-meta strong {
  color: #ccd8e8;

  font-weight: 700;
}

.sales-hunting-keywords {
  margin-top: 12px;

  padding: 8px 11px;

  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.035);

  color: #9fb1c8;

  font-size: 11px;
  line-height: 1.45;
}

/* =========================
   CREATE CARD
========================= */

.sales-hunting-create-card {
  padding: 22px;

  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(23, 38, 61, 0.97),
      rgba(16, 29, 48, 0.98)
    );

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.13);
}

.sales-hunting-create-card >
.sales-hunting-muted {
  margin-top: 9px;
}

/* =========================
   FORM
========================= */

.sales-hunting-form {
  margin-top: 20px;
}

.sales-hunting-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 15px;
}

.sales-hunting-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sales-hunting-field.is-wide {
  grid-column: 1 / -1;
}

.sales-hunting-field > span {
  color: #cbd6e6;

  font-size: 11px;
  font-weight: 750;
}

.sales-hunting-field small {
  color: #70849e;

  font-size: 10px;
}

.sales-hunting-field input,
.sales-hunting-field select,
.sales-hunting-field textarea {
  width: 100%;

  min-height: 42px;

  box-sizing: border-box;

  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 9px;

  outline: none;

  background: rgba(7, 18, 33, 0.58);

  color: #edf3fb;

  font: inherit;
  font-size: 12px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.sales-hunting-field input,
.sales-hunting-field select {
  padding: 0 12px;
}

.sales-hunting-field textarea {
  min-height: 76px;

  padding: 10px 12px;

  resize: vertical;

  line-height: 1.5;
}

.sales-hunting-field select option {
  background: #15253c;

  color: #ffffff;
}

.sales-hunting-field input:focus,
.sales-hunting-field select:focus,
.sales-hunting-field textarea:focus {
  border-color: rgba(96, 165, 250, 0.72);

  background: rgba(9, 22, 40, 0.78);

  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.09);
}

.sales-hunting-field input::placeholder,
.sales-hunting-field textarea::placeholder {
  color: #64758c;
}

/* =========================
   CREATE INFO
========================= */

.sales-hunting-create-info {
  margin-top: 17px;

  padding: 11px 13px;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 9px;

  background: rgba(255, 255, 255, 0.035);

  color: #91a4bc;

  font-size: 11px;
  line-height: 1.55;
}

.sales-hunting-create-info strong {
  color: #d9e3ef;
}

/* =========================
   ACTIONS
========================= */

.sales-hunting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 17px;
}

.sales-hunting-actions button {
  min-height: 36px;

  padding: 0 14px;

  border-radius: 8px;

  font-size: 11px;
  font-weight: 750;

  cursor: pointer;

  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.sales-hunting-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.sales-hunting-actions button:disabled {
  cursor: not-allowed;

  opacity: 0.48;
}

.sales-hunting-actions .primary-button {
  border: 1px solid #3b82f6;

  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb
    );

  color: #ffffff;

  box-shadow:
    0 5px 14px rgba(37, 99, 235, 0.18);
}

.sales-hunting-actions .primary-button:hover:not(:disabled) {
  background:
    linear-gradient(
      135deg,
      #4b8ff7,
      #2f6fe4
    );
}

.sales-hunting-actions .secondary-button {
  border: 1px solid rgba(148, 163, 184, 0.18);

  background: rgba(255, 255, 255, 0.045);

  color: #d8e2ef;
}

.sales-hunting-actions .secondary-button:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.3);

  background: rgba(255, 255, 255, 0.075);
}

.sales-hunting-actions .danger-button {
  border: 1px solid rgba(248, 113, 113, 0.18);

  background: rgba(239, 68, 68, 0.07);

  color: #fca5a5;
}

.sales-hunting-actions .danger-button:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.3);

  background: rgba(239, 68, 68, 0.11);
}

/* =========================
   HISTORY
========================= */

.sales-hunting-history {
  padding: 22px;

  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(22, 37, 59, 0.96),
      rgba(16, 29, 47, 0.98)
    );

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12);
}

.sales-hunting-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 17px;
}

.sales-hunting-section-heading h2 {
  margin: 5px 0 0;

  color: #f7faff;

  font-size: 20px;
  font-weight: 800;
}

.sales-hunting-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 34px;
  height: 29px;

  padding: 0 10px;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);

  color: #aebdd0;

  font-size: 11px;
  font-weight: 800;
}

.sales-hunting-history-list {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 13px;
}

/* =========================
   JOB CARD
========================= */

.sales-hunting-job-card {
  padding: 17px;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;

  background:
    rgba(8, 20, 36, 0.42);

  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.sales-hunting-job-card:hover {
  transform: translateY(-1px);

  border-color: rgba(96, 165, 250, 0.23);

  background:
    rgba(11, 25, 44, 0.58);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.sales-hunting-job-subtitle {
  margin-top: 6px;

  color: #8498b1;

  font-size: 11px;
}

/* =========================
   RESULT REPORT
========================= */

.sales-hunting-report {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 8px;

  margin-top: 15px;
  padding-top: 14px;

  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.sales-hunting-report-item {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;

  padding: 10px;

  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.035);
}

.sales-hunting-report-value {
  color: #ffffff;

  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.sales-hunting-report-label {
  overflow: hidden;

  color: #8195ae;

  font-size: 9px;
  font-weight: 650;
  line-height: 1.3;

  text-overflow: ellipsis;
}

/* =========================
   ERROR
========================= */

.sales-hunting-error-box {
  margin-top: 13px;

  padding: 10px 12px;

  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 8px;

  background: rgba(239, 68, 68, 0.07);

  color: #fca5a5;

  font-size: 11px;
  line-height: 1.5;
}

/* =========================
   EMPTY / LOADING
========================= */

.sales-hunting-empty,
.sales-hunting-loading {
  padding: 25px;

  border: 1px dashed rgba(148, 163, 184, 0.17);
  border-radius: 11px;

  background: rgba(8, 20, 36, 0.35);

  color: #8093aa;

  text-align: center;

  font-size: 12px;
}

.sales-hunting-loading {
  margin-top: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (
  max-width: 1100px
) {

  .sales-hunting-history-list {
    grid-template-columns: 1fr;
  }

  .sales-hunting-report {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

}

@media (
  max-width: 760px
) {

  .sales-hunting-jobs-view {
    gap: 15px;
  }

  .sales-hunting-header {
    flex-direction: column;

    padding: 20px;
  }

  .sales-hunting-header .secondary-button {
    width: 100%;
  }

  .sales-hunting-create-card,
  .sales-hunting-active-card,
  .sales-hunting-history {
    padding: 17px;
  }

  .sales-hunting-form-grid {
    grid-template-columns: 1fr;
  }

  .sales-hunting-field.is-wide {
    grid-column: auto;
  }

  .sales-hunting-report {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .sales-hunting-actions {
    flex-direction: column;
  }

  .sales-hunting-actions button {
    width: 100%;
  }

}

@media (
  max-width: 440px
) {

  .sales-hunting-report {
    grid-template-columns: 1fr;
  }

  .sales-hunting-card-heading {
    flex-direction: column;
  }

  .sales-hunting-status {
    align-self: flex-start;
  }

}