/* ─── Field components ───────────────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.field-input {
  display: block;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #0F172A;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input::placeholder { color: #CBD5E1; }
.field-input:hover        { border-color: #CBD5E1; }
.field-input:focus {
  outline: none;
  border-color: #185234;
  box-shadow: 0 0 0 1px #185234;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  @apply text-white text-sm font-medium px-4 py-2 rounded-lg transition-colors cursor-pointer;
  background-color: #185234;
}
.btn-primary:hover { background-color: #1E6140; }

.btn-secondary {
  @apply bg-white hover:bg-slate-50 text-slate-700 text-sm font-medium px-4 py-2 rounded-lg
         transition-colors cursor-pointer border border-slate-200 hover:border-slate-300;
}

/* ─── Nav buttons ────────────────────────────────────────────────────────────── */
.nav-btn {
  @apply text-slate-500 hover:text-slate-900 hover:bg-slate-100 rounded-lg transition-colors;
}

/* ─── Status badge ───────────────────────────────────────────────────────────── */
.status-badge   { @apply inline-flex items-center text-xs font-medium px-2 py-0.5 rounded-full; }
.status-active  { background: #E8F5EE; color: #185234; border: 1px solid rgba(24,82,52,0.20); }
.status-on_hold { @apply bg-amber-50 text-amber-700 border border-amber-200; }
.status-rejected{ @apply bg-slate-100 text-slate-500 border border-slate-200; }
.status-won     { @apply bg-emerald-50 text-emerald-700 border border-emerald-200; }
.status-lost    { @apply bg-red-50 text-red-600 border border-red-200; }

/* ─── Slide-over tabs ────────────────────────────────────────────────────────── */
.so-tab {
  flex: 1 1 0%;
  text-align: center;
  padding: 0.3rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94A3B8;
  border-bottom: 2px solid transparent;
  border-right: 1px solid #F1F5F9;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
  white-space: nowrap;
}
.so-tab:last-child { border-right: none; }
.so-tab:hover { color: #0F172A; background-color: #F8FAFC; }
.so-tab.active {
  color: #185234;
  border-bottom-color: #185234;
  background-color: rgba(232,245,238,0.5);
  font-weight: 600;
}

/* ─── Activity item ──────────────────────────────────────────────────────────── */
.activity-item { @apply flex gap-3; }
.activity-dot  { @apply w-2.5 h-2.5 rounded-full bg-slate-300 mt-1.5 shrink-0; }
.activity-dot-stage_change { background: #185234; }
.activity-dot-note         { @apply bg-slate-400; }
.activity-dot-document     { background: #A7D4BC; }
.activity-dot-bid          { background: #2E6B4F; }
.activity-dot-email        { background: #A7D4BC; }

/* ─── Country chips (contacts view filter bar) ───────────────────────────────── */
.country-chip {
  @apply px-3 py-1 text-xs font-medium rounded-full border border-slate-200
         text-slate-600 hover:text-slate-900 hover:border-slate-400 cursor-pointer transition-colors;
}
.country-chip.active {
  background-color: #185234;
  border-color: #185234;
  color: #fff;
}

/* ─── Country tags shown on company cards ────────────────────────────────────── */
.country-tag {
  @apply inline-block text-xs px-2 py-0.5 rounded-full bg-slate-100 border border-slate-200 text-slate-600;
}

/* ─── Stage pill ─────────────────────────────────────────────────────────────── */
.stage-pill        { @apply text-xs px-3 py-1.5 rounded-lg font-medium border cursor-pointer transition-colors; }
.stage-pill-active { background-color: #185234; border-color: #185234; color: #fff; }
.stage-pill-done   { @apply bg-slate-100 border-slate-300 text-slate-600 hover:border-slate-400; }
.stage-pill-future { @apply bg-transparent border-slate-200 text-slate-400 hover:border-slate-400 hover:text-slate-600; }

/* ─── Pipeline value chip ────────────────────────────────────────────────────── */
.pipeline-value {
  font-size: 0.75rem;
  background: #E8F5EE;
  color: #185234;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  border: 1px solid rgba(24,82,52,0.18);
}

/* ─── Section header inside deal detail ─────────────────────────────────────── */
.detail-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  grid-column: span 2;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.detail-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94A3B8;
  white-space: nowrap;
}
.detail-section-line {
  flex: 1;
  height: 1px;
  background-color: #F1F5F9;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ABABAB; }
