/* ════════════════════════════════════════════════════
   AURA · Applicant modal — light / white theme
   Matches the corporate kanban look: white surface, ISF
   navy text, light blue accents. Libre Franklin throughout.
   ════════════════════════════════════════════════════ */

/* ── Local tokens (scoped to .am-modal) ──────────── */
.am-modal {
  --am-bg:        #FFFFFF;
  --am-bg-soft:   #F4F6FB;
  --am-bg-tint:   #ECF1FB;
  --am-border:    #D8DCE6;
  --am-border-2:  #B8BDCE;
  --am-text:      #0F1B4C;   /* close to var(--ink) but with more contrast on white */
  --am-text-muted:#5C6F8C;
  --am-text-soft: #8593B0;
  --am-blue:      #2292FD;   /* primary action (var(--blue-soft)) */
  --am-blue-hi:   #1283EF;   /* hover / focus (var(--blue-bright)) */
  --am-blue-deep: #06175C;   /* header navy — matches kanban .kol-header (var(--blue-deep)) */
  --am-green:     #1FAE7A;
  --am-amber:     #E08A2B;
  --am-rose:      #E5556F;
}

/* ── Modal shell — override the dark .modal defaults ── */
.modal.am-modal {
  max-width: 760px;
  width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--am-bg);
  border: 1px solid rgba(18, 131, 239, .55);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(18, 131, 239, .10),
    0 30px 80px rgba(6, 17, 56, .35);
  color: var(--am-text);
  font-family: 'Libre Franklin', sans-serif;
  overflow: hidden;
}

.am-modal .modal-body {
  overflow-y: auto;
  gap: 12px;
  display: flex;
  flex-direction: column;
  /* padding-bottom: 0; */
}

/* ── Header — dark ISF navy like the kanban column headers ── */
.am-modal .modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(18, 131, 239, .25);
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  background: var(--am-blue-deep);
}

.am-modal .modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 131, 239, .18) !important;
  border: 1px solid rgba(18, 131, 239, .40) !important;
  color: #8CC7FF;
  flex-shrink: 0;
}
.am-modal .modal-icon svg,
.am-modal .modal-icon span { color: #8CC7FF; }

.am-modal .modal-title {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Subtitle removed visually — keep the slot for layout but hide the line */
.am-modal .modal-sub { display: none; }

.am-modal .modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .80);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease;
  flex-shrink: 0;
}
.am-modal .modal-close:hover {
  background: rgba(229, 85, 111, .18);
  border-color: rgba(229, 85, 111, .55);
  color: #FFB3BE;
  box-shadow: 0 3px 8px rgba(229, 85, 111, .25);
  transform: translateY(-1px);
}
.am-modal .modal-close:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.am-modal .modal-close svg { width: 16px; height: 16px; }

/* ── Section labels ──────────────────────────────── */
.am-modal .am-section-title {
  font: 700 11px/1 'Libre Franklin', sans-serif;
  color: var(--am-text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 18px 0 10px;
}
.am-modal .am-section-title:first-child { margin-top: 0; }

/* Required asterisk */
.am-modal .am-req {
  color: var(--am-rose);
  margin-left: 3px;
}

/* ── Labels & form fields ────────────────────────── */
.am-modal .flabel {
  font: 600 11px/1.2 'Libre Franklin', sans-serif;
  color: var(--am-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
  display: block;
}

.am-modal .ffield {
  width: 100%;
  background: var(--am-bg);
  border: 1px solid var(--am-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--am-text);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.am-modal .ffield::placeholder { color: var(--am-text-soft); }
.am-modal .ffield:focus {
  border-color: var(--am-blue-hi);
  box-shadow: 0 0 0 3px rgba(18, 131, 239, .15);
}

/* Date picker icon hover effect */
.am-modal input[type="date"]:hover ~ div {
  color: var(--am-blue-hi) !important;
  opacity: 1 !important;
}

.am-modal input[type="date"]:focus ~ div {
  color: var(--am-blue-hi) !important;
  opacity: 1 !important;
}
.am-modal select.ffield {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}
.am-modal select.ffield::-ms-expand { display: none; }
.am-modal .ffield option { background: var(--am-bg); color: var(--am-text); }
.am-modal textarea.ffield { resize: vertical; min-height: 70px; }

/* Custom arrow for salary-frequency select — hides native arrow, draws own chevron */
.am-modal #am_salary_frequency {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235C6F8C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.am-modal .ffield.am-invalid {
  border-color: var(--am-rose);
  background: #FFF5F6;
}
.am-modal .ffield.am-checking { border-color: var(--am-blue-hi); }
.am-modal .ffield.am-ok       { border-color: var(--am-green); background: #F4FBF7; }

/* ── Checkbox groups (IT Provisioning) ──────────── */
.am-modal .am-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
}
.am-modal .am-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--am-border, #dde2ea);
  background: var(--am-bg, #fff);
  transition: background .15s, border-color .15s;
}
.am-modal .am-check-label:hover { background: var(--am-blue-lo, #edf3ff); border-color: var(--am-blue-hi, #4a90e2); }
.am-modal .am-check-label input[type="checkbox"] { accent-color: var(--am-blue-hi, #4a90e2); }

/* ── HIDE all in-form explanatory hints ──────────── */
.am-modal .am-field-hint { display: none !important; }
/* Hide inline-styled gray helper spans inside labels/section titles
   (e.g. "(PDF / DOC / DOCX, optional)", "(stored in Max only…)") */
.am-modal .flabel span[style*="rgba(255,255,255"],
.am-modal .am-section-title span[style*="rgba(255,255,255"],
.am-modal .flabel span[style*="font-weight:400"],
.am-modal .am-section-title span[style*="font-weight:400"] {
  display: none !important;
}

/* ── Validation banner — single concise alert ────── */
.am-validation-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FFF4E5;
  border: 1px solid #F6CFA0;
  color: #8A4B0F;
  font: 500 12px/1.45 'Libre Franklin', sans-serif;
}
.am-validation-banner strong { color: #6B3A0B; font-weight: 700; }

/* ── UKG rejection banner — persistent, rose alert ─ */
/* Shown when UKG refuses the create (e.g. email already taken). Stays
   visible until Tamara edits the conflicting field — the candidate is
   still a draft on our side. */
.am-ukg-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #FDECEF;
  border: 1px solid var(--am-rose);
  color: #6B0F22;
  font: 500 13px/1.5 'Libre Franklin', sans-serif;
}
.am-ukg-error-banner .am-ukg-error-icon {
  color: var(--am-rose);
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
  flex: none;
}
.am-ukg-error-banner .am-ukg-error-body { flex: 1; min-width: 0; }
.am-ukg-error-banner strong {
  color: #4A0916;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.am-ukg-error-banner code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #4A0916;
  background: rgba(229, 85, 111, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}
.am-ukg-error-banner .am-ukg-error-msg {
  color: #6B0F22;
  font-weight: 500;
}
.am-ukg-error-banner .am-ukg-error-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.am-ukg-error-banner .am-ukg-error-cta {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--am-rose);
  background: var(--am-rose);
  color: #FFFFFF;
  font: 600 12px/1.2 'Libre Franklin', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease;
}
.am-ukg-error-banner .am-ukg-error-cta:hover {
  background: #D44560;
  border-color: #D44560;
}

/* Red-tinted input border — pairs with the UKG error banner so the user
   can find the offending field at a glance. */
.ffield.am-input-error,
.ffield.am-input-error:focus {
  border-color: var(--am-rose);
  box-shadow: 0 0 0 2px rgba(229, 85, 111, 0.2);
}

/* Tiny pill used by draft cards (Ready-for-UKG column) */
.am-validation-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  margin: 6px 0 0;
  border-radius: 999px;
  font: 500 11px/1.4 'Libre Franklin', sans-serif;
  letter-spacing: .02em;
}
.am-validation-ok {
  background: #E7F7EE;
  border: 1px solid #B8E5C7;
  color: #1B8350;
}
.am-validation-warn {
  background: #FFF4E5;
  border: 1px solid #F6CFA0;
  color: #8A4B0F;
}

/* ── Phone composite ─────────────────────────────── */
.am-phone-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

/* ── Review grid (synced view) ───────────────────── */
.am-review-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 14px;
  font: 400 13px/1.55 'Libre Franklin', sans-serif;
}
.am-review-grid dt { color: var(--am-text-muted); }
.am-review-grid dd { color: var(--am-text); margin: 0; font-weight: 500; }
.am-review-grid dd.am-missing { color: var(--am-rose); }

/* Generic info / success box (used by "Synced to UKG" view) */
.am-warning-box {
  border: 1px solid #B8E5C7;
  background: #F4FBF7;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  font: 400 12px/1.45 'Libre Franklin', sans-serif;
  color: #1B8350;
}

/* ── Sticky footer ───────────────────────────────── */
.am-footer {
  position: sticky;
  bottom: 0;
  margin: 18px -24px 0;
  padding: 14px 24px;
  background: var(--am-bg);
  border-top: 1px solid var(--am-border);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.am-footer .am-spacer { flex: 1; }
.am-footer .am-status-pill {
  font: 500 12px/1 'Libre Franklin', sans-serif;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--am-bg-soft);
  color: var(--am-text-muted);
}
.am-footer .am-status-pill.am-ready {
  background: #E7F7EE;
  color: #1B8350;
}

/* ── Buttons ─────────────────────────────────────── */

/* Secondary / cancel — white with crisp border, gentle lift on hover */
.am-modal .fbtn-cancel {
  background: var(--am-bg);
  color: var(--am-text);
  border: 1px solid var(--am-border);
  border-radius: 10px;
  padding: 12px 16px;
  font: 600 13px/1 'Libre Franklin', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 27, 76, .06);
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease;
}
.am-modal .fbtn-cancel:hover:not(:disabled) {
  background: var(--am-bg-soft);
  border-color: var(--am-border-2);
  color: var(--am-blue-deep);
  box-shadow: 0 4px 10px rgba(15, 27, 76, .10);
  transform: translateY(-1px);
}
.am-modal .fbtn-cancel:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(15, 27, 76, .10);
}
.am-modal .fbtn-cancel:focus-visible {
  outline: none;
  border-color: var(--am-blue-hi);
  box-shadow: 0 0 0 3px rgba(18, 131, 239, .18);
}
.am-modal .fbtn-cancel:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Primary "Create in UKG / Send / Link" — mismos estilos que .card-action-btn.btn-teal */
.am-btn-send {
  background: var(--blue-soft);
  color: #fff;
  border: 1px solid rgba(18,131,239,.45);
  border-radius: 10px;
  padding: 10px 18px;
  font: 600 13px/1 'Libre Franklin', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
}

.am-btn-send-lg {
  padding: 12px 22px !important;
  font-size: 14px !important;
}
.am-btn-send:hover:not(:disabled) {
  background: var(--blue-bright);
  border-color: rgba(18,131,239,.75);
}
.am-btn-send:active:not(:disabled) {
  transform: translateY(0);
  background: linear-gradient(180deg, #1F8AF5 0%, #1283EF 100%);
  box-shadow: inset 0 2px 4px rgba(9, 34, 132, .25);
}
.am-btn-send:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(18, 131, 239, .35),
    0 2px 4px rgba(18, 131, 239, .25);
}
.am-btn-send:disabled {
  background: #B8D6F4;
  border-color: #B8D6F4;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Destructive — "Delete draft" */
.am-btn-danger {
  background: var(--am-bg);
  color: var(--am-rose);
  border: 1px solid #F4B8C2;
  border-radius: 10px;
  padding: 12px 14px;
  font: 600 13px/1 'Libre Franklin', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(229, 85, 111, .10);
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease;
}
.am-btn-danger:hover:not(:disabled) {
  background: #FDE8EC;
  border-color: var(--am-rose);
  color: #C7384F;
  box-shadow: 0 4px 12px rgba(229, 85, 111, .22);
  transform: translateY(-1px);
}
.am-btn-danger:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(229, 85, 111, .25);
}
.am-btn-danger:focus-visible {
  outline: none;
  border-color: var(--am-rose);
  box-shadow: 0 0 0 3px rgba(229, 85, 111, .22);
}
.am-btn-danger:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ── Empty state ─────────────────────────────────── */
.am-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--am-text-soft);
  font: 400 13px/1.5 'Libre Franklin', sans-serif;
}

/* Responsive — mobile/narrow */
@media (max-width: 560px) {
  .am-modal .modal-body { padding: 16px; }
  .am-footer { margin: 16px -16px 0; padding: 12px 16px; }
  .am-review-grid { grid-template-columns: 1fr; }
  .am-review-grid dt { padding-top: 6px; }
}

/* ════════════════════════════════════════════════════
   Match-to-requisition section
   ════════════════════════════════════════════════════ */

.am-match-engine {
  font: 400 10px/1 'Libre Franklin', sans-serif;
  color: var(--am-text-soft);
  margin-left: 8px;
  letter-spacing: .3px;
  text-transform: none;
}

.am-modal .am-match-card,
.am-modal .am-match-selected,
.am-modal .am-match-selected {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.04);
}

.am-match-suggest {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.am-modal .am-match-empty {
  color: var(--am-text-soft);
  font: 400 12px/1.5 'Libre Franklin', sans-serif;
  text-align: center;
  background: var(--am-bg-soft);
}
.am-modal .am-match-selected {
  border-color: #B8E5C7;
  background: #F4FBF7;
}
.am-modal .am-match-suggest {
  border-color: #C7DEFB;
  background: var(--am-bg-tint);
}

.am-match-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.am-match-title {
  font: 600 14px/1.3 'Libre Franklin', sans-serif;
  color: var(--am-text);
  margin-bottom: 3px;
}
.am-match-title-sm {
  font: 600 13px/1.35 'Libre Franklin', sans-serif;
  color: var(--am-text);
  margin-bottom: 2px;
}
.am-match-meta {
  font: 400 12px/1.4 'Libre Franklin', sans-serif;
  color: var(--am-text-muted);
}
.am-match-reasons {
  font: 400 11px/1.4 'Libre Franklin', sans-serif;
  color: var(--am-text-soft);
  margin-top: 4px;
  font-style: italic;
}
.am-match-warn {
  margin-top: 8px;
  padding: 6px 10px;
  background: #FFF4E5;
  border: 1px solid #F6CFA0;
  border-radius: 6px;
  font: 500 11px/1.4 'Libre Franklin', sans-serif;
  color: #8A4B0F;
}
.am-tier {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font: 700 9px/1.5 'Libre Franklin', sans-serif;
  letter-spacing: .5px;
  vertical-align: middle;
}
.am-tier-auto    { background: #E7F7EE; color: #1B8350; border: 1px solid #B8E5C7; }
.am-tier-confirm { background: var(--am-bg-tint); color: var(--am-blue-hi); border: 1px solid #C7DEFB; }
.am-tier-manual  { background: var(--am-bg-soft); color: var(--am-text-muted); border: 1px solid var(--am-border); }

.am-match-label {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font: 500 9px/1.5 'Libre Franklin', sans-serif;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: rgba(18, 131, 239, 0.1);
  color: var(--am-blue-hi);
  border: 1px solid rgba(18, 131, 239, 0.2);
}

.am-match-star {
  color: #F59E0B;
  margin-right: 4px;
  vertical-align: middle;
}

.am-modal .am-match-expand {
  margin-top: 10px;
  border: 1px solid var(--am-border);
  border-radius: 12px;
  background: var(--am-bg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 27, 76, 0.08);
}

.am-match-group {
  padding: 4px 0;
}

.am-match-group-header {
  padding: 12px 14px;
  font: 700 11px 'Libre Franklin', sans-serif;
  color: var(--am-text-muted);
  text-transform: capitalize;
  background: rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--am-border);
  margin-bottom: 4px;
}

.am-modal .am-match-top-group {
  background: #F0F9FF !important;
  border: 1px solid #BAE6FD !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.04);
}

.am-modal .am-match-other-group {
  background: #F3F4F6 !important;
  border: 1px solid #E5E7EB !important;
  color: var(--am-text) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.am-match-other-group .am-match-group-header {
  background: #E5E7EB;
  color: #4B5563;
  border-bottom: 1px solid #D1D5DB;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.am-match-other-group .am-match-title-sm {
  color: var(--am-text) !important;
}

.am-match-other-group .am-match-meta {
  color: var(--am-text-muted) !important;
}

.am-match-other-group .am-match-divider {
  background: #E5E7EB;
}

.am-match-other-group .am-match-option:hover {
  background: #E5E7EB;
}

.am-match-other-group .am-match-actions-btn {
  color: var(--am-text-soft);
}

.am-match-action-group {
  background: var(--am-bg-soft);
  padding: 12px 14px;
}

.am-modal .am-match-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  color: var(--am-text);
  position: relative;
}

.am-match-divider {
  height: 1px;
  background: var(--am-border);
  margin: 0 14px;
  opacity: 0.5;
}

.am-modal .am-match-option:hover { background: rgba(0,0,0,0.02); }
.am-modal .am-match-option-sel { background: rgba(34, 146, 253, 0.1); }
.am-modal .am-match-option-top:hover { background: rgba(34, 146, 253, 0.05); }

/* Search bar inside cards */
.am-match-selected-search {
  position: relative;
  width: 240px;
}

.am-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--am-text-muted);
  pointer-events: none;
  display: flex;
}

.am-search-input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  background: white;
  font: 500 12px 'Libre Franklin', sans-serif;
  color: var(--am-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.am-search-input:focus {
  border-color: var(--am-blue-hi);
  box-shadow: 0 0 0 2px rgba(34, 146, 253, 0.1);
}

.am-match-pick {
  color: var(--am-blue-hi);
  font-size: 16px;
  width: 20px;
  display: flex;
  justify-content: center;
  opacity: 0.6;
}

.am-match-option-sel .am-match-pick {
  opacity: 1;
}

/* Three-dot actions menu */
.am-match-actions {
  position: relative;
  display: flex;
  align-items: center;
}

.am-match-actions-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--am-text-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.am-match-actions-btn:hover {
  background: rgba(15, 27, 76, 0.06);
  color: var(--am-text);
}

.am-match-actions-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--am-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  min-width: 120px;
  padding: 4px;
  display: none;
}

.am-match-actions.open .am-match-actions-menu {
  display: block;
}

.am-match-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 4px;
  font: 500 12px 'Libre Franklin', sans-serif;
  color: var(--am-text);
  cursor: pointer;
  text-align: left;
}

.am-match-action-item:hover {
  background: var(--am-bg-soft);
}

.am-match-action-item.danger {
  color: var(--am-rose);
}

.am-match-action-item.danger:hover {
  background: #FDE8EC;
}

.am-modal .am-match-search-row {
  margin-bottom: 12px;
}

/* "Pull missing req by id" */
.am-modal .am-match-pull {
  border-top: 1px solid var(--am-border);
  padding: 10px 14px;
  background: var(--am-bg-soft);
}
.am-match-pull-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.am-match-pull-row .ffield { flex: 1; }
.am-match-pull-row .fbtn-cancel { padding: 7px 12px; font-size: 12px; }

/* Generic requisition card variant (older markup uses am-req-card) */
.am-modal .am-req-card {
  border: 1px solid var(--am-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--am-bg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  transition: border-color .15s, background .15s;
}
.am-modal .am-req-card:hover {
  border-color: var(--am-blue-hi);
  background: var(--am-bg-tint);
}
.am-modal .am-req-card.am-suggested {
  border-color: #B8E5C7;
  background: #F4FBF7;
}
.am-modal .am-req-card.am-selected {
  border-color: var(--am-blue-hi);
  background: var(--am-bg-tint);
}
.am-req-title { font: 600 14px/1.2 'Libre Franklin', sans-serif; color: var(--am-text); }
.am-req-meta { font: 400 12px/1.4 'Libre Franklin', sans-serif; color: var(--am-text-muted); margin-top: 4px; }
.am-req-score {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #E7F7EE;
  color: #1B8350;
  font: 600 11px/1 'Libre Franklin', sans-serif;
}
.am-req-pick {
  background: linear-gradient(180deg, #34A1FE 0%, #2292FD 55%, #1283EF 100%);
  color: #fff;
  border: 1px solid #1283EF;
  border-radius: 8px;
  padding: 7px 14px;
  font: 600 12px/1 'Libre Franklin', sans-serif;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .25) inset,
    0 2px 4px rgba(18, 131, 239, .22);
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease, border-color .18s ease;
}
.am-req-pick:hover {
  background: linear-gradient(180deg, #4AAEFF 0%, #1F8AF5 55%, #0E78DF 100%);
  border-color: #0E78DF;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .30) inset,
    0 5px 14px rgba(18, 131, 239, .30);
  transform: translateY(-1px);
}
.am-req-pick:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(9, 34, 132, .22);
}
.am-req-card.am-selected .am-req-pick { background: var(--am-blue-hi); border-color: var(--am-blue-hi); }
