/* ============================================================
   Müşteri / Tedarikçi Ekle — tam sayfa form düzeni.
   Eski sistemin iki-kolon kartlı tasarımının v2 token'larıyla
   uyarlanmış hali. Müşteri ve tedarikçi sayfaları paylaşır (me- öneki).
   ============================================================ */

.me-head { margin-bottom: var(--space-5); }
.me-head h2 { margin-bottom: 2px; }

/* İki kolon — her kolon kendi içinde dikey kart yığını */
.me-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.me-col { display: flex; flex-direction: column; gap: var(--space-4); }

@media (max-width: 900px) {
  .me-grid { grid-template-columns: 1fr; }
}

/* Kart */
.me-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-5);
}
.me-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-md);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.me-card-title svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.me-card-title-hint { font-weight: 400; font-size: var(--fs-xs); color: var(--text-muted); }

/* Alt eylem barı — İptal solda, Kaydet sağda */
.me-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ── Kart içi iki/üç kolon satır ── */
.me-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.me-row > .field { margin-bottom: 0; }

@media (max-width: 900px) {
  .me-row { grid-template-columns: 1fr; }
}

/* ── Bilgilendirme bandı (sarı) ── */
.me-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFF7E6;
  border: 1px solid #FFD580;
  color: #8A5A00;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.me-hint svg { width: 16px; height: 16px; color: #E08E00; flex: 0 0 auto; margin-top: 1px; }
.me-hint strong { color: #6B4500; }

/* Etiket yanı küçük ipucu — büyük harfe/transformasyona girmez */
.me-hint-text {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-left: 4px;
}

/* Alan altı hata mesajı */
.me-field-error {
  font-size: var(--fs-xs);
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
  display: none;
}
.me-field-error.show { display: block; }

/* Hatalı input vurgusu */
.input--error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-soft) !important;
}

/* ── Müşteri türü seçici ── */
.me-type-selector { display: flex; gap: 10px; }
.me-type-option {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.me-type-option:hover { border-color: var(--brand); }
.me-type-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-glow);
}
.me-type-option input { display: none; }
.me-type-option svg {
  width: 26px; height: 26px;
  color: var(--text-muted);
  display: block; margin: 0 auto 6px;
  transition: color .15s;
}
.me-type-option:has(input:checked) svg { color: var(--brand); }
.me-type-option span { font-size: var(--fs-sm); font-weight: 700; color: var(--text); display: block; }
.me-type-option small { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; }

@media (max-width: 900px) {
  .me-type-selector { flex-direction: column; }
}

/* ── Prefix / suffix süslü inputlar ── */
.me-input-prefix { position: relative; display: flex; align-items: center; }
.me-input-prefix .input { padding-left: 38px; }
.me-affix {
  position: absolute; left: 12px;
  display: flex; align-items: center;
  color: var(--text-muted); pointer-events: none;
}
.me-affix svg { width: 16px; height: 16px; }

.me-input-suffix { position: relative; display: flex; align-items: center; }
.me-input-suffix .input { padding-right: 40px; }
.me-affix-r {
  position: absolute; right: 14px;
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--text-muted); pointer-events: none;
}

/* Para birimi dar select */
.me-select-narrow { max-width: 240px; }

/* ── Toggle (switch) ── */
.me-toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.me-toggle input { display: none; }
.me-toggle-track {
  width: 40px; height: 22px; border-radius: var(--radius-full);
  background: var(--border-strong); position: relative;
  transition: background .15s; flex: 0 0 auto;
}
.me-toggle-track::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: left .15s; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.me-toggle input:checked + .me-toggle-track { background: var(--brand); }
.me-toggle input:checked + .me-toggle-track::after { left: 21px; }
.me-toggle-text { display: flex; flex-direction: column; }
.me-toggle-label { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.me-toggle-desc { font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); margin-top: 1px; }
.me-mt { margin-top: 14px; }

/* ── Banka hesabı ekleme ── */
.me-bank-add {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 40px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.me-bank-add:hover { border-color: var(--brand); color: var(--brand); }
.me-bank-add svg { width: 16px; height: 16px; }

/* Banka hesabı kaydı (Faz 4'te doldurulacak) */
.me-bank-entry {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  position: relative;
}
.me-bank-entry .me-row { margin-bottom: var(--space-3); }
.me-bank-entry-remove {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.me-bank-entry-remove svg { width: 14px; height: 14px; }
.me-bank-entry-remove:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* Bölüm ayırıcı */
.me-sep { border: none; border-top: 1px solid var(--border); margin: var(--space-4) 0; }
