/**
 * Sipariş düzenle — görsel yeniden tasarım katmanı
 * orders-screen.css'ten SONRA yüklenir; yalnızca #view_order_edit.order-edit-pro
 */

/* ── 0. Token'lar ── */
#view_order_edit.order-edit-pro {
  --oe-accent: #384f6c;
  --oe-accent-mid: #4a6484;
  --oe-accent-soft: #eaf0f6;
  --oe-accent-xsoft: #f0f4f8;
  --oe-surface: #ffffff;
  --oe-bg: #f0f4f8;
  --oe-border: #dde3ea;
  --oe-border-light: #ecf0f4;
  --oe-text: #1a2332;
  --oe-text-mid: #3d4f63;
  --oe-muted: #64748b;
  --oe-muted-light: #94a3b8;
  --oe-danger: #c0392b;
  --oe-success: #1e7e34;
  --oe-radius: 10px;
  --oe-radius-sm: 6px;
  --oe-radius-lg: 14px;
  --oe-shadow-panel: 0 1px 3px rgba(56, 79, 108, 0.06);
  --oe-font: "Source Sans 3", var(--font-sans, system-ui, sans-serif);
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  font-family: var(--oe-font);
}

/* ── 1. Modal kabuk ── */
#view_order_edit.order-edit-pro .order-edit-backdrop {
  background: rgba(15, 23, 38, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#view_order_edit.order-edit-pro .order-edit-card {
  background: var(--oe-bg);
  border-radius: var(--oe-radius-lg);
  box-shadow: 0 8px 48px rgba(15, 23, 38, 0.22);
  border: 1px solid rgba(56, 79, 108, 0.08);
}

/* Kart yüksekliği — bölüm 15'te tek çerçeve için tam tanım */

/* ── 2. Başlık ── */
#view_order_edit.order-edit-pro .edit-modal-head.edit-pro-head {
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--oe-surface);
  border-bottom: 1px solid var(--oe-border);
  border-left: 4px solid var(--oe-accent);
  border-radius: var(--oe-radius-lg) var(--oe-radius-lg) 0 0;
  min-height: 56px;
}

#view_order_edit.order-edit-pro .edit-pro-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--oe-accent);
  letter-spacing: 0.03em;
}

#view_order_edit.order-edit-pro .edit-modal-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--oe-text);
  letter-spacing: -0.01em;
}

#view_order_edit.order-edit-pro .modal-close-btn {
  width: 2rem;
  height: 2rem;
  border-color: var(--oe-border);
  color: var(--oe-accent);
  transition: background 0.15s, border-color 0.15s;
}

#view_order_edit.order-edit-pro .modal-close-btn:hover {
  background: var(--oe-accent-xsoft);
  border-color: var(--oe-accent);
}

#view_order_edit.order-edit-pro .modal-close-btn:focus-visible {
  outline: 3px solid rgba(56, 79, 108, 0.25);
  outline-offset: 2px;
}

/* ── 3. Gövde ── */
#view_order_edit.order-edit-pro .edit-modal-body-wrap {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  gap: var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--oe-border) transparent;
}

#view_order_edit.order-edit-pro .edit-modal-body-wrap::-webkit-scrollbar {
  width: 6px;
}

#view_order_edit.order-edit-pro .edit-modal-body-wrap::-webkit-scrollbar-thumb {
  background: var(--oe-border);
  border-radius: 3px;
}

/* ── 4. Strip paneller (ortak) ── */
#view_order_edit.order-edit-pro .edit-pro-strip-panel {
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-shadow-panel);
}

#view_order_edit.order-edit-pro .edit-pro-strip-head {
  padding: var(--sp-3) var(--sp-4);
  background: var(--oe-accent-xsoft);
  border-bottom: 1px solid var(--oe-border-light);
}

#view_order_edit.order-edit-pro .edit-pro-strip-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--oe-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#view_order_edit.order-edit-pro .edit-pro-strip-body {
  padding: var(--sp-4);
}

#view_order_edit.order-edit-pro .edit-pro-panel {
  border-color: var(--oe-border-light);
  box-shadow: none;
}

#view_order_edit.order-edit-pro .form-section-title,
#view_order_edit.order-edit-pro .edit-pro-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oe-muted);
  border-bottom-color: var(--oe-border-light);
}

/* ── Yerleşim (sade — kırılmayan flex zincirleri yok) ── */

#view_order_edit.order-edit-pro.edit-single-cerceve.order-edit-modal,
#view_order_edit.order-edit-pro.edit-multi-table-only.order-edit-modal {
  align-items: center !important;
  justify-content: center !important;
  padding: 0.4rem !important;
}

#view_order_edit.order-edit-pro.edit-single-cerceve.order-edit-modal > .order-edit-card,
#view_order_edit.order-edit-pro.edit-multi-table-only.order-edit-modal > .order-edit-card {
  display: flex !important;
  flex-direction: column !important;
  width: min(100%, calc(100vw - 0.8rem)) !important;
  max-width: min(1680px, calc(100vw - 0.8rem)) !important;
  max-height: calc(100dvh - 0.75rem) !important;
  overflow: hidden !important;
}

#view_order_edit.order-edit-pro .edit-modal-body-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: var(--sp-3) var(--sp-4) !important;
  gap: var(--sp-3) !important;
}

/* Tek çerçeve: 3 eşit sütun — Müşteri+sipariş | Çerçeve | Detaylar */
#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-horizontal-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  align-items: start;
  width: 100%;
  min-width: 0;
}

#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-meta,
#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-cerceve,
#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-maliyet {
  min-width: 0;
}

#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-meta-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-meta .edit-panel-musteri,
#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-meta .edit-panel-siparis {
  border: 1px solid var(--oe-border-light);
  border-radius: var(--oe-radius-sm);
  box-shadow: none;
  padding: var(--sp-3);
}

#view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-meta .form-section-title {
  padding: 0 0 var(--sp-2);
  margin: 0 0 var(--sp-2);
  background: transparent;
  border-bottom: 1px solid var(--oe-border-light);
}

#view_order_edit.order-edit-pro.edit-single-cerceve #edit_inline_cerceve_onizleme .frame-preview-svg {
  max-height: min(200px, 28vh);
  width: 100%;
}

#view_order_edit.order-edit-pro.edit-single-cerceve .edit-single-line-fields .mat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

/* Çoklu çerçeve: aynı 3 sütun şeridi (override.css ile) — eski grid kaldırıldı */
#view_order_edit.order-edit-pro.edit-multi-table-only .edit-modal-body-wrap {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-horizontal-strip {
  display: flex !important;
  flex-direction: row !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: var(--sp-3);
  align-items: stretch !important;
  width: 100%;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-strip-cerceve {
  order: 1;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-strip-meta {
  order: 2;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-strip-maliyet {
  order: 3;
}

#view_order_edit.order-edit-pro.edit-multi-table-only #edit_cerceve_satirlari {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-durum-strip {
  flex-shrink: 0;
  margin-top: var(--sp-2);
}

#view_order_edit.order-edit-pro .edit-pro-summary-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--oe-surface);
  border-bottom: 1px solid var(--oe-border-light);
}

#view_order_edit.order-edit-pro .edit-pro-chip {
  padding: var(--sp-2) var(--sp-3);
  background: var(--oe-accent-xsoft);
  border: 1px solid var(--oe-border-light);
  border-radius: var(--oe-radius-sm);
}

#view_order_edit.order-edit-pro .edit-pro-chip-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oe-muted);
}

#view_order_edit.order-edit-pro .edit-pro-chip strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--oe-text);
}

#view_order_edit.order-edit-pro .edit-lines-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

#view_order_edit.order-edit-pro .edit-line-card {
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-sm);
  background: var(--oe-surface);
  box-shadow: var(--oe-shadow-panel);
}

#view_order_edit.order-edit-pro .edit-line-card-head {
  background: var(--oe-accent-xsoft);
  border-bottom: 1px solid var(--oe-border-light);
}

#view_order_edit.order-edit-pro .edit-line-card-foot {
  background: var(--oe-bg);
  border-top: 1px solid var(--oe-border-light);
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-panel-musteri,
#view_order_edit.order-edit-pro.edit-multi-table-only .edit-panel-siparis {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

#view_order_edit.order-edit-pro .edit-line-btns {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

#view_order_edit.order-edit-pro .edit-line-btns .btn {
  white-space: nowrap;
}

#view_order_edit.order-edit-pro .edit-line-hazir-toggle {
  white-space: nowrap;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-line-kod,
#view_order_edit.order-edit-pro.edit-multi-table-only .edit-line-olcu,
#view_order_edit.order-edit-pro.edit-multi-table-only .edit-line-dis,
#view_order_edit.order-edit-pro.edit-multi-table-only .edit-line-eser,
#view_order_edit.order-edit-pro.edit-multi-table-only .edit-line-card-meta {
  white-space: normal;
  word-break: break-word;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .form-section-title {
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--oe-border-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oe-accent);
}

/* Form: alanlar sütun genişliğini kullanır */
#view_order_edit.order-edit-pro .edit-panel-musteri .edit-compact-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--sp-3) !important;
}

#view_order_edit.order-edit-pro .edit-pro-fatura-details .edit-compact-4 {
  grid-template-columns: 1fr !important;
  gap: var(--sp-3) !important;
}

#view_order_edit.order-edit-pro .edit-order-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--sp-3) !important;
}

#view_order_edit.order-edit-pro .edit-order-ozet-card {
  margin-bottom: var(--sp-3);
  padding: var(--sp-3);
  font-size: 0.75rem;
}

body:has(#view_order_edit.order-edit-pro.edit-multi-table-only:not(.hidden))
  #view_order_edit.order-edit-pro.edit-multi-table-only.order-edit-modal
  > .order-edit-card {
  width: min(100%, calc(100vw - 0.8rem)) !important;
  max-width: min(1680px, calc(100vw - 0.8rem)) !important;
}

/* ── 5. Form alanları ── */
#view_order_edit.order-edit-pro input[type="text"],
#view_order_edit.order-edit-pro input[type="tel"],
#view_order_edit.order-edit-pro input[type="email"],
#view_order_edit.order-edit-pro input[type="date"],
#view_order_edit.order-edit-pro select,
#view_order_edit.order-edit-pro textarea {
  font-family: var(--oe-font);
  font-size: 0.84rem;
  color: var(--oe-text);
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

#view_order_edit.order-edit-pro input[type="number"] {
  font-family: var(--oe-font);
  font-size: 0.84rem;
  color: var(--oe-text);
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-sm);
  font-variant-numeric: tabular-nums;
}

#view_order_edit.order-edit-pro textarea {
  min-height: 4.5rem;
  line-height: 1.45;
  resize: vertical;
}

#view_order_edit.order-edit-pro input:focus-visible,
#view_order_edit.order-edit-pro select:focus-visible,
#view_order_edit.order-edit-pro textarea:focus-visible {
  border-color: var(--oe-accent);
  box-shadow: 0 0 0 3px rgba(56, 79, 108, 0.12);
  outline: none;
}

#view_order_edit.order-edit-pro select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 1.75rem;
}

#view_order_edit.order-edit-pro label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--oe-muted);
  letter-spacing: 0.03em;
}

#view_order_edit.order-edit-pro #edit_m_ad {
  font-size: 0.9rem;
  font-weight: 600;
}

#view_order_edit.order-edit-pro .edit-compact-grid {
  gap: var(--sp-3);
}

#view_order_edit.order-edit-pro .edit-order-grid-2 {
  gap: var(--sp-3);
}

#view_order_edit.order-edit-pro .edit-fiyat-manuel-toplam-input,
#view_order_edit.order-edit-pro .edit-fiyat-breakdown-table td.num {
  text-align: right;
}

/* ── 6. Detaylar paneli ── */
#view_order_edit.order-edit-pro .edit-pro-strip-head-maliyet {
  gap: var(--sp-2);
}

#view_order_edit.order-edit-pro .edit-maliyet-head-row {
  width: 100%;
}

#view_order_edit.order-edit-pro .edit-maliyet-toggle-btn {
  color: var(--oe-accent);
  background: var(--oe-accent-soft);
  border-color: rgba(56, 79, 108, 0.18);
}

#view_order_edit.order-edit-pro .edit-maliyet-toggle-btn:hover {
  background: #dfe9f3;
  border-color: var(--oe-accent);
}

#view_order_edit.order-edit-pro .edit-pro-strip-meta-line,
#view_order_edit.order-edit-pro .edit-fiyat-breakdown-meta {
  font-size: 0.72rem;
  color: var(--oe-muted);
  line-height: 1.35;
}

#view_order_edit.order-edit-pro .edit-fiyat-breakdown.edit-detaylar-collapsed .edit-pro-strip-head-maliyet {
  border-bottom: none;
}

#view_order_edit.order-edit-pro .edit-fiyat-breakdown {
  background: var(--oe-surface);
  border-color: var(--oe-border);
}

#view_order_edit.order-edit-pro .edit-fiyat-breakdown-table thead th {
  background: var(--oe-accent-xsoft);
  color: var(--oe-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#view_order_edit.order-edit-pro .edit-fiyat-toplam-panel {
  background: var(--oe-accent-xsoft);
  border: 1px solid var(--oe-border-light);
  border-radius: var(--oe-radius-sm);
  padding: var(--sp-3);
}

/* ── 7. Çerçeve tablosu (çoklu) ── */
#view_order_edit.order-edit-pro .edit-lines-panel-full,
#view_order_edit.order-edit-pro #edit_cerceve_satirlari {
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-shadow-panel);
  overflow: visible;
}

#view_order_edit.order-edit-pro .edit-lines-head {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: 0;
  background: var(--oe-accent-xsoft);
  border-bottom: 1px solid var(--oe-border-light);
}

#view_order_edit.order-edit-pro .edit-lines-title {
  color: var(--oe-muted);
  letter-spacing: 0.06em;
}

#view_order_edit.order-edit-pro .edit-lines-sub {
  color: var(--oe-text-mid);
  font-size: 0.8rem;
}

#view_order_edit.order-edit-pro .edit-lines-pill {
  background: var(--oe-accent-soft);
  color: var(--oe-accent);
  border: 1px solid rgba(56, 79, 108, 0.14);
  font-weight: 700;
}

#view_order_edit.order-edit-pro:not(.edit-multi-table-only) .edit-lines-table-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
}

#view_order_edit.order-edit-pro .edit-lines-table thead {
  background: var(--oe-accent-xsoft);
}

#view_order_edit.order-edit-pro .edit-lines-table th {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--oe-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-color: var(--oe-border);
}

#view_order_edit.order-edit-pro .edit-lines-row:hover {
  background: var(--oe-accent-xsoft);
}

#view_order_edit.order-edit-pro .edit-lines-row.is-selected {
  background: var(--oe-accent-soft);
  box-shadow: inset 3px 0 0 var(--oe-accent);
}

#view_order_edit.order-edit-pro .edit-line-thumb {
  border: 1px solid var(--oe-border);
  background: var(--oe-accent-xsoft);
}

#view_order_edit.order-edit-pro .edit-line-kod {
  color: var(--oe-text);
}

#view_order_edit.order-edit-pro .edit-lines-table .col-price {
  color: var(--oe-accent);
  font-variant-numeric: tabular-nums;
}

#view_order_edit.order-edit-pro .edit-line-hazir-toggle {
  border-radius: var(--oe-radius-sm);
  min-height: 1.75rem;
}

#view_order_edit.order-edit-pro .edit-line-hazir-toggle.is-hazir {
  background: #e8f6ea;
  border-color: #8ecf9a;
  color: #1f5c2c;
}

/* ── 8. Durum şeridi ── */
#view_order_edit.order-edit-pro .edit-order-durum-strip,
#view_order_edit.order-edit-pro .edit-pro-durum-strip {
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--oe-shadow-panel);
}

#view_order_edit.order-edit-pro .edit-order-durum-caption {
  font-size: 0.78rem;
  color: var(--oe-muted);
}

#view_order_edit.order-edit-pro .edit-durum-goster-inline {
  color: var(--oe-accent);
  font-weight: 700;
}

#view_order_edit.order-edit-pro .edit-durum-btn {
  min-height: 2rem;
  padding: 0 var(--sp-4);
  border-radius: var(--oe-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--oe-border);
  background: var(--oe-surface);
  color: var(--oe-text-mid);
}

#view_order_edit.order-edit-pro .edit-durum-btn:hover:not(:disabled) {
  background: var(--oe-accent-xsoft);
  border-color: var(--oe-accent);
  color: var(--oe-accent);
}

#view_order_edit.order-edit-pro .edit-durum-btn.is-active {
  background: var(--oe-accent);
  border-color: var(--oe-accent);
  color: #fff;
}

#view_order_edit.order-edit-pro .edit-durum-btn:focus-visible,
#view_order_edit.order-edit-pro .edit-kargo-btn:focus-visible {
  outline: 3px solid rgba(56, 79, 108, 0.25);
  outline-offset: 2px;
}

#view_order_edit.order-edit-pro .edit-kargo-btn {
  border-color: var(--oe-border);
  color: var(--oe-accent);
}

#view_order_edit.order-edit-pro .edit-kargo-btn:hover {
  background: var(--oe-accent-xsoft);
  border-color: var(--oe-accent);
}

/* ── 9. Footer ── */
#view_order_edit.order-edit-pro .edit-order-edit-foot.edit-pro-foot {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--oe-surface);
  border-top: 1px solid var(--oe-border);
  border-radius: 0 0 var(--oe-radius-lg) var(--oe-radius-lg);
}

#view_order_edit.order-edit-pro .edit-pro-foot #edit_kaydet,
#view_order_edit.order-edit-pro .edit-pro-foot .btn.primary {
  min-height: 2.25rem;
  min-width: 7.5rem;
  padding: 0 var(--sp-5);
  font-weight: 600;
  background: var(--oe-accent);
  border-color: var(--oe-accent);
  border-radius: var(--oe-radius-sm);
}

#view_order_edit.order-edit-pro .edit-pro-foot .btn.primary:hover {
  background: var(--oe-accent-mid);
  box-shadow: 0 2px 8px rgba(56, 79, 108, 0.22);
}

#view_order_edit.order-edit-pro .edit-pro-foot .btn.primary:focus-visible {
  outline: 3px solid rgba(56, 79, 108, 0.28);
  outline-offset: 2px;
}

/* ── 10. Tahsilat / details ── */
#view_order_edit.order-edit-pro .edit-tahsil-details {
  border-color: var(--oe-border-light);
  background: var(--oe-accent-xsoft);
  border-radius: var(--oe-radius-sm);
}

#view_order_edit.order-edit-pro .edit-tahsil-details > summary,
#view_order_edit.order-edit-pro .edit-pro-fatura-details > summary {
  color: var(--oe-accent);
  font-weight: 600;
}

#view_order_edit.order-edit-pro .edit-durum-badge {
  border-color: var(--oe-border);
  color: var(--oe-accent);
  border-radius: var(--oe-radius-sm);
}

/* ── 11. Eser fotoğraf kutusu ── */
#view_order_edit.order-edit-pro .edit-eser-foto-wrap {
  background: var(--oe-accent-xsoft);
  border-color: var(--oe-border);
  border-radius: var(--oe-radius-sm);
}

#view_order_edit.order-edit-pro .eser-foto-icon-btn {
  color: var(--oe-accent);
}

/* ── 12. Line modal (üstte) ── */
body:has(#view_order_edit.order-edit-pro:not(.hidden)) #edit_line_modal.line-edit-modal .line-edit-card {
  border-radius: var(--oe-radius-lg);
  box-shadow: 0 8px 48px rgba(15, 23, 38, 0.28);
  border: 1px solid var(--oe-border);
}

/* ── 13. Erişilebilirlik ── */
@media (prefers-reduced-motion: reduce) {
  #view_order_edit.order-edit-pro *,
  #view_order_edit.order-edit-pro *::before,
  #view_order_edit.order-edit-pro *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── 14. Responsive ── */
@media (max-width: 1200px) {
  #view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-horizontal-strip {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-modal-body-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  #view_order_edit.order-edit-pro.edit-multi-table-only #edit_cerceve_satirlari {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-durum-strip {
    grid-row: 3;
  }
}

@media (max-width: 900px) {
  #view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-horizontal-strip,
  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-modal-body-wrap {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
  }

  #view_order_edit.order-edit-pro.edit-single-cerceve .edit-panel-musteri,
  #view_order_edit.order-edit-pro.edit-single-cerceve .edit-panel-siparis,
  #view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-cerceve,
  #view_order_edit.order-edit-pro.edit-single-cerceve .edit-pro-strip-maliyet,
  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-panel-musteri,
  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-panel-siparis,
  #view_order_edit.order-edit-pro.edit-multi-table-only #edit_cerceve_satirlari,
  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-durum-strip {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  #view_order_edit.order-edit-pro.edit-single-cerceve #edit_inline_cerceve_onizleme .frame-preview-svg {
    max-height: min(180px, 28vh);
  }
}

@media (max-width: 720px) {
  #view_order_edit.order-edit-pro .edit-pro-horizontal-strip,
  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-modal-body-wrap {
    grid-template-columns: 1fr !important;
  }

  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-modal-body-wrap {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: unset !important;
  }

  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-panel-musteri,
  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-panel-siparis,
  #view_order_edit.order-edit-pro.edit-multi-table-only #edit_cerceve_satirlari,
  #view_order_edit.order-edit-pro.edit-multi-table-only .edit-pro-durum-strip {
    grid-column: unset !important;
    grid-row: unset !important;
    max-height: none;
    overflow: visible;
  }

  #view_order_edit.order-edit-pro .edit-modal-body-wrap {
    padding: var(--sp-3);
    gap: var(--sp-3);
  }

  #view_order_edit.order-edit-pro .edit-modal-head.edit-pro-head {
    padding: var(--sp-3) var(--sp-4);
    min-height: 48px;
  }

  #view_order_edit.order-edit-pro .edit-modal-head h2 {
    font-size: 0.92rem;
  }

  #view_order_edit.order-edit-pro .edit-order-edit-foot.edit-pro-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #view_order_edit.order-edit-pro .edit-pro-foot #edit_kaydet,
  #view_order_edit.order-edit-pro .edit-pro-foot .btn.primary {
    width: 100%;
  }

  #view_order_edit.order-edit-pro .edit-single-line-fields .mat-row {
    grid-template-columns: 1fr;
  }
}

/* ── Tablo satırları görünürlük (flex çöküşü önleme) ── */
#view_order_edit.order-edit-pro.edit-multi-table-only #edit_cerceve_satirlari {
  overflow: visible !important;
  min-height: 12rem;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-lines-table-wrap {
  flex: none !important;
  height: auto !important;
  min-height: 10rem !important;
  overflow: auto !important;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-lines-table tbody {
  display: table-row-group !important;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-lines-row {
  display: table-row !important;
}

#view_order_edit.order-edit-pro.edit-multi-table-only .edit-lines-row td {
  display: table-cell !important;
}
