/* Melontik benzeri mercan / turuncu vurgular (ayarlar & tablolar) */
:root {
  --mt-coral: #ff7a5c;
  --mt-coral-dark: #e85d42;
  --mt-coral-soft: #fff5f2;
  --mt-header: linear-gradient(90deg, #ff8f73 0%, #ff6b4a 100%);
}

.mt-panel {
  display: none;
}
.mt-panel.is-active {
  display: block;
}

.mt-settings-nav a {
  display: block;
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.mt-settings-nav a:hover {
  background: #f8fafc;
  color: #0f172a;
}
.mt-settings-nav a.is-active {
  background: var(--mt-coral-soft);
  color: #9a3412;
  border-left-color: var(--mt-coral);
  font-weight: 600;
}

.mt-table-head {
  background: var(--mt-header);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
}
.mt-btn-coral {
  background: var(--mt-coral);
  color: #fff;
  border: none;
}
.mt-btn-coral:hover {
  background: var(--mt-coral-dark);
  color: #fff;
}

.mt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}
.mt-modal-backdrop.is-open {
  display: flex;
}
.mt-modal {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  max-width: 420px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}

/* Sipariş analizi (canlı performans) */
.lp-order-modal-panel {
  position: relative;
  max-width: 56rem;
  width: calc(100% - 1.5rem);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  margin: 0.75rem;
}
.lp-order-modal-panel .lp-om-summary::-webkit-details-marker {
  display: none;
}
.lp-order-modal-panel .lp-om-summary {
  list-style: none;
}

/* Canlı performans: tam ekran tablo panelleri */
.lp-fullscreen {
  position: fixed !important;
  inset: 0;
  z-index: 55;
  margin: 0 !important;
  max-width: none !important;
  border-radius: 0 !important;
  overflow: auto;
  background: #f8fafc;
  padding: 0.75rem 1rem 1.5rem;
}
body.lp-fs-lock {
  overflow: hidden;
}
body.lp-modal-open {
  overflow: hidden;
}

/* Ayarlar: kâr marjı bant renk örnekleri (kâr marjı listesi ile uyumlu) */
.mt-band-swatch--severe_loss {
  background: linear-gradient(135deg, #9f1239, #be123c);
}
.mt-band-swatch--loss_2 {
  background: linear-gradient(135deg, #c2410c, #ea580c);
}
.mt-band-swatch--loss_1 {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}
.mt-band-swatch--breakeven {
  background: linear-gradient(135deg, #475569, #64748b);
}
.mt-band-swatch--low_profit {
  background: linear-gradient(135deg, #4ade80, #86efac);
}
.mt-band-swatch--mid_profit {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}
.mt-band-swatch--good_profit {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}
.mt-band-swatch--high_profit {
  background: linear-gradient(135deg, #14532d, #15803d);
}

/* Ayarlar — tüm paneller (Melontik tarzı kabuk) */
.mt-settings-shell {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  padding: 0;
  margin-bottom: 1.5rem;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(241, 245, 249, 0.85);
}
.mt-settings-head {
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(90deg, #ffffff 0%, rgba(248, 250, 252, 0.92) 100%);
  padding: 1.25rem 1.5rem;
}
.mt-settings-head h2 {
  margin: 0;
  color: #0f172a;
}
.mt-settings-body {
  padding: 1.75rem 1.5rem 2rem;
}
.mt-settings-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}
.mt-settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.mt-settings-section--tight {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.mt-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.mt-check-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.65);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mt-check-line:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.mt-check-line input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.25rem;
  accent-color: var(--mt-coral);
  flex-shrink: 0;
}
.mt-pill-toggle .btn {
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.mt-store-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: #fafbfc;
  overflow: hidden;
}
.mt-store-list li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #334155;
}
.mt-store-list li:last-child {
  border-bottom: none;
}
.mt-aside-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(241, 245, 249, 0.85);
}

/* Geriye uyumluluk */
.mt-kargo-shell {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}
.mt-kargo-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}
.mt-kargo-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.mt-input-soft {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.mt-input-soft:hover {
  border-color: #cbd5e1;
  background: #fff;
}
.mt-input-soft:focus {
  outline: none;
  border-color: var(--mt-coral);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 92, 0.2);
}
.mt-btn-green {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  border: 1px solid #059669;
  transition: filter 0.15s, transform 0.1s;
}
.mt-btn-green:hover {
  filter: brightness(1.05);
}
.mt-btn-green:active {
  transform: scale(0.98);
}
.mt-toggle-row .mt-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #e2e8f0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.mt-toggle-row .mt-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}
.mt-toggle-row input:checked + .mt-switch {
  background: var(--mt-coral);
}
.mt-toggle-row input:checked + .mt-switch::after {
  transform: translateX(1.2rem);
}
.mt-toggle-row input:focus-visible + .mt-switch {
  outline: 2px solid var(--mt-coral);
  outline-offset: 2px;
}
