:root {
  /* ECAMP logo paleti: mavi #0473BA, yeşil #8BC441 */
  --bs-primary: #0473BA;
  --bs-primary-rgb: 4, 115, 186;
  --bs-secondary: #242424;
  --bs-success: #8BC441;
  --bs-info: #0473BA;
  --bs-warning: #F59E0B;
  --bs-danger: #DC2626;
  --bs-heading-color: #111111;
  --app-primary: #0473BA;
  --app-primary-hover: #035A94;
  --app-primary-soft: #E7F3FB;
  --app-accent: #8BC441;
  --app-body: #F5F6F7;
  --app-sidebar-bg: #111111;
  --app-header-bg: #FFFFFF;
  --app-text: #6B7280;
  --app-muted: #9CA3AF;
  --app-border: #E5E7EB;
  --app-card: #FFFFFF;
  --app-dark: #111111;
  --app-anthracite: #242424;
  --app-sidebar-w: 220px;
  --app-header-h: 72px;
  --app-radius: 1rem;
}

html, body {
  height: 100%;
  background: var(--app-body);
  color: var(--app-text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--bs-heading-color);
  font-weight: 600;
}

a { color: var(--app-primary); text-decoration: none; }
a:hover { color: var(--app-primary-hover); }

.page-layout {
  min-height: 100vh;
  display: flex;
  background: var(--app-body);
}

.app-sidebar {
  width: var(--app-sidebar-w);
  min-width: var(--app-sidebar-w);
  max-width: var(--app-sidebar-w);
  background: var(--app-sidebar-bg);
  border-right: 1px solid #1f1f1f;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left .2s ease, transform .2s ease;
}
.app-brand {
  padding: 18px 12px 16px;
  border-bottom: 3px solid #8BC441;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.app-brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.brand-logo-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.brand-logo-wrap {
  flex-direction: column;
  gap: 4px;
}
.brand-company {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #F3F4F6;
}
.brand-logo-wrap img {
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.app-nav {
  padding: 16px 12px 24px;
  overflow: auto;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.menu-heading {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9CA3AF;
  padding: 10px 14px 8px;
  font-weight: 600;
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #E5E7EB;
  font-weight: 500;
  margin-bottom: 2px;
}
.menu-link i { font-size: 1.1rem; width: 20px; text-align: center; color: #9CA3AF; }
.menu-link:hover {
  background: #242424;
  color: #fff;
}
.menu-link:hover i { color: var(--app-primary); }
.menu-link.active {
  background: var(--app-primary);
  color: #fff;
}
.menu-link.active i { color: #fff; }
.menu-link .ms-auto { font-size: 12px; opacity: .7; }
.menu-link.has-sub .chevron { margin-left: auto; transition: transform .2s; }
.menu-item.open > .menu-link.has-sub .chevron { transform: rotate(90deg); }
.submenu {
  display: none;
  list-style: none;
  padding: 4px 0 8px 18px;
  margin: 0;
}
.menu-item.open > .submenu { display: block; }
.submenu .menu-link { padding: 8px 14px; font-size: .84rem; color: #D1D5DB; }
.submenu .menu-link.active {
  background: rgba(4, 115, 186, 0.18);
  color: #fff;
}
.submenu .menu-link.active i { color: var(--app-primary); }

.app-main {
  margin-left: var(--app-sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-header {
  height: var(--app-header-h);
  background: var(--app-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1030;
  overflow: visible;
}
.app-toggler {
  width: 40px;
  height: 40px;
  border: 1px solid var(--app-border);
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-heading-color);
}
.app-search {
  position: relative;
  width: min(320px, 40vw);
}
.app-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
}
.app-search input {
  background: #F3F4F6;
  border: 0;
  border-radius: 12px;
  padding-left: 40px;
  height: 42px;
}
.leads-chip {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--bs-heading-color);
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
a.leads-chip:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}
.leads-chip.is-empty { display: none !important; }
.order-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  min-width: 260px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--app-border);
  border-left: 4px solid var(--bs-primary);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 14px 16px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.order-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.order-toast strong { display: block; font-size: 14px; color: var(--bs-heading-color); }
.order-toast small { display: block; margin-top: 2px; color: var(--app-text); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1040; }
.company-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--app-border);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}
.company-toggle:hover { background: #F3F4F6; }
.company-logo {
  height: 28px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}
.company-menu { min-width: 220px; }
.company-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}
.company-menu .dropdown-item .company-logo { height: 32px; max-width: 180px; }
.company-menu .dropdown-item.active,
.company-menu .dropdown-item:active {
  background: #fff;
  color: inherit;
  box-shadow: inset 0 0 0 2px var(--app-primary);
}
.header-actions .dropdown { position: relative; }
.btn-icon-round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #F3F4F6;
  color: var(--bs-heading-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.btn-icon-round:hover { background: #E5E7EB; }
.btn-icon-round .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--app-primary);
  border: 2px solid #fff;
  border-radius: 50%;
}
.user-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
}
.user-toggle:hover { background: #F3F4F6; }
.user-toggle .name { font-weight: 700; color: var(--bs-heading-color); line-height: 1.2; }
.user-toggle .role { font-size: 12px; color: var(--app-text); }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.header-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1080;
  min-width: 260px;
}
.header-actions .dropdown.open > .header-dropdown,
.header-dropdown.show {
  display: block;
}
.notif-dropdown { width: 320px; padding: 0; }
.dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--app-border);
}
.notif-list { max-height: 360px; overflow: auto; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  color: inherit;
  border-bottom: 1px solid var(--app-border);
}
.notif-item:hover { background: #f8f8fc; color: inherit; }
.notif-item strong { display: block; font-size: 13px; color: var(--bs-heading-color); }
.notif-item small { display: block; color: var(--app-text); font-size: 12px; }
.notif-item .avtar { width: 36px; height: 36px; font-size: 1rem; }
.dropdown-footer-link {
  display: block;
  text-align: center;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  border-top: 1px solid var(--app-border);
}
.avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--app-border);
  background: #EEF0F8;
  flex-shrink: 0;
}
.product-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--app-border);
  background: #F8F8FC;
}
.product-thumb-wrap {
  position: relative;
  display: inline-block;
}
.product-thumb-count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  background: #0473BA;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 5px;
}
.mp-badges {
  white-space: normal;
}
.mp-badges .badge {
  margin: 0 4px 4px 0;
}
.merge-pick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.merge-pick:has(input:checked) {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
}
.catalog-check-hit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}
.catalog-check-hit .catalog-check {
  margin: 0;
  cursor: pointer;
}
.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.product-shot {
  width: 140px;
  position: relative;
}
.product-shot img,
.product-shot-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  background: #F8F8FC;
  display: block;
}
.product-shot.is-cover img {
  border-color: #0473BA;
  box-shadow: 0 0 0 2px rgba(4,115,186,.25);
}
.cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0473BA;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 8px;
}
.shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.product-gallery-new { display: flex; flex-wrap: wrap; gap: 12px; }

.app-content { padding: 8px 24px 32px; flex: 1; }
.app-content > .row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 0;
  margin-bottom: 16px;
}
.app-content > .row > [class*="col"] > .card {
  margin-bottom: 0;
}
.app-page-head { margin-bottom: 18px; }
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item, .breadcrumb-item a { color: var(--app-text); font-size: 13px; }
.breadcrumb-item.active { color: var(--bs-heading-color); font-weight: 600; }

.card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: none;
  margin-bottom: 16px;
  background: #fff;
  border-top: 1px solid var(--app-border) !important;
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--app-border);
  padding: 14px 18px;
}
.product-list-card { overflow: visible; }
.product-list-head {
  position: sticky;
  top: var(--app-header-h);
  z-index: 1020;
  background: #fff;
  border-radius: var(--app-radius) var(--app-radius) 0 0;
}
.card-header h5, .card-header .h5 { margin: 0; font-size: 1rem; }
.card-body { padding: 18px; }
.card-header.border-0 { border-bottom: 0; }

.kpi-card .card-header { padding-bottom: 0; }
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.kpi-value { font-size: 1.75rem; font-weight: 700; color: var(--bs-heading-color); margin: 8px 0 0; }
.kpi-label { color: var(--app-text); font-size: 13px; }
.kpi-delta { font-size: 12px; font-weight: 600; }

.btn-primary {
  --bs-btn-bg: #0473BA;
  --bs-btn-border-color: #0473BA;
  --bs-btn-hover-bg: #035A94;
  --bs-btn-hover-border-color: #035A94;
  --bs-btn-color: #fff;
}
.btn-success {
  --bs-btn-bg: #8BC441;
  --bs-btn-border-color: #78AE32;
  --bs-btn-hover-bg: #78AE32;
  --bs-btn-hover-border-color: #68992C;
  --bs-btn-color: #14300A;
}
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  line-height: 1.2;
}
.btn-sm {
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8125rem;
}
.btn-light-primary {
  background: #E7F3FB;
  color: #0473BA;
  border: 0;
}
.btn-light-danger { background: #FEF2F2; color: #DC2626; border: 0; }
.btn-light-warning { background: #FFFBEB; color: #F59E0B; border: 0; }
.btn-light-secondary { background: #F3F4F6; color: #242424; border: 0; }

.form-control, .form-select {
  border-color: var(--app-border);
  border-radius: 10px;
  min-height: 42px;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: #F5B5B8;
  box-shadow: 0 0 0 .2rem rgba(4,115,186,.15);
}

.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}
.table thead th {
  color: #9CA3AF;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom-color: var(--app-border);
  padding: 10px 16px;
  white-space: nowrap;
}
.table th.col-check,
.table td.is-card-check {
  width: 42px;
  padding-left: 12px;
  padding-right: 4px;
  text-align: center;
  vertical-align: middle;
}
.table th.col-thumb,
.table td.is-card-thumb {
  width: 72px;
  padding-left: 12px;
  padding-right: 8px;
}
.table th.col-actions,
.table td.is-card-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.table td {
  vertical-align: middle;
  border-color: var(--app-border);
  padding: 10px 16px;
}
.order-line-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  max-width: 340px;
}
.order-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.order-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: #fff;
  flex-shrink: 0;
}
.order-thumb-lg {
  width: 64px;
  height: 64px;
}
.order-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  background: #F3F4F6;
}
.mp-logo {
  height: 22px;
  width: auto;
  max-width: 108px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}
.order-line-name {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.table-card .card-body,
.card-body.p-0 .table-responsive {
  padding: 0;
}
.table .btn-sm {
  min-height: 30px;
  padding: 0.2rem 0.65rem;
}

.badge { font-weight: 600; }
.bg-light-primary, .badge.bg-light-primary { background: #E7F3FB !important; color: #0473BA !important; }
.bg-light-success, .badge.bg-light-success { background: #ECFDF5 !important; color: #16A34A !important; }
.bg-light-warning, .badge.bg-light-warning { background: #FFFBEB !important; color: #F59E0B !important; }
.bg-light-danger, .badge.bg-light-danger { background: #FEF2F2 !important; color: #DC2626 !important; }
.bg-light-info, .badge.bg-light-info { background: #EFF6FF !important; color: #2563EB !important; }
.bg-light-secondary, .badge.bg-light-secondary { background: #F3F4F6 !important; color: #242424 !important; }
.bg-primary-subtle { background: #E7F3FB !important; }
.text-primary { color: #0473BA !important; }
.bg-success-subtle { background: #ECFDF5 !important; }
.progress { background: #F3F4F6; border-radius: 99px; }
.progress-bar { background-color: var(--app-primary); }

.app-footer {
  padding: 16px 24px;
  color: #9CA3AF;
  font-size: 13px;
  border-top: 1px solid var(--app-border);
}

.dropdown-menu {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  box-shadow: 0 .26rem 1.126rem rgba(45,42,60,.12);
  padding: 8px;
}
.dropdown-item { border-radius: 8px; }

.alert { border-radius: 12px; border: 0; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12,36,60,.35);
  z-index: 1035;
}

body.sidebar-collapsed .app-sidebar { margin-left: calc(var(--app-sidebar-w) * -1); }
body.sidebar-collapsed .app-main { margin-left: 0; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-main { margin-left: 0; }
  body.sidebar-open .app-sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .leads-chip, .user-toggle .meta { display: none !important; }
  .app-search { display: block !important; flex: 1 1 auto; min-width: 0; max-width: none; }
  .app-search input { font-size: 0.875rem; }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(4, 32, 58, 0.34), rgba(8, 36, 28, 0.42)),
    url('../images/login-bg.jpg') center / cover no-repeat;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 22px 50px rgba(8, 28, 48, 0.32);
}
.auth-card .logo-login {
  max-width: 280px;
  width: 100%;
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
}
.avtar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.card-footer {
  background: transparent;
  border-top: 1px solid var(--app-border);
  padding: 16px 20px;
}
.nav-tabs {
  border-bottom-color: var(--app-border);
}
.nav-tabs .nav-link {
  color: var(--app-text);
  border: 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.nav-tabs .nav-link:hover {
  color: var(--app-primary);
  border-color: transparent;
}
.nav-tabs .nav-link.active {
  color: var(--app-primary);
  background: transparent;
  border-bottom-color: var(--app-primary);
}
.form-check-input:checked {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}
.form-check-input:focus {
  border-color: #F5B5B8;
  box-shadow: 0 0 0 .2rem rgba(4, 115, 186, .15);
}
.page-link.active, .active > .page-link {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}
.chart-tabs {
  display: flex;
  gap: 4px;
  background: #F3F4F6;
  border-radius: 10px;
  padding: 4px;
}
.chart-tab {
  border: 0;
  background: transparent;
  color: var(--app-text);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
}
.chart-tab.active {
  background: #fff;
  color: var(--app-primary);
  box-shadow: 0 1px 4px rgba(45,42,60,.08);
}
.stat-tile {
  background: #F8F8FC;
  border-radius: 12px;
  padding: 14px 16px;
}
.status-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.status-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--app-border);
}
.channel-row:last-child { border-bottom: 0; }
.channel-meta { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.channel-bar { flex: 1; display: flex; align-items: center; gap: 12px; }
.channel-bar .progress { flex: 1; height: 6px; }
.country-sales-list { display: flex; flex-direction: column; gap: 10px; }
.country-sales-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
}
.country-flag-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #F3F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.country-flag {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}
.country-flag-fallback {
  font-size: 11px;
  font-weight: 700;
  color: #696981;
}
.country-sales-meta .fw-semibold {
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 2px;
}
.mini-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--app-border);
}
.mini-stat:last-child { border-bottom: 0; }
.text-info { color: #2563EB !important; }
.bg-warning { background-color: #F59E0B !important; }
.border-primary { border-color: #0473BA !important; }

.catalog-row.is-selected { background: #E7F3FB; }
.supplier-pick-row.is-selected { background: #E7F3FB; }
.supplier-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.supplier-pick-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.supplier-pick-item:has(.supplier-check:checked) {
  border-color: #0473BA;
  background: #E7F3FB;
  box-shadow: 0 0 0 1px rgba(4, 115, 186, 0.15);
}
.supplier-pick-item .catalog-check-hit {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: #F4F5FB;
  border: 1px solid var(--app-border);
}
.supplier-pick-item .catalog-check-hit .catalog-check {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
}
.supplier-pick-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.supplier-pick-body small {
  overflow-wrap: anywhere;
}
.catalog-bar {
  display: none;
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #111111;
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(12,36,60,.18);
}
.catalog-bar.is-visible { display: flex; }
.catalog-bar .btn { min-height: 38px; }
.catalog-preview {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
  background: #F3F4F6;
}

.header-search {
  max-width: 260px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.integration-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  min-width: 0;
}
.integration-tile:hover {
  border-color: #F5B5B8;
  box-shadow: 0 8px 24px rgba(12,36,60,.08);
  transform: translateY(-1px);
  color: inherit;
}
.integration-tile > .integration-tile-logo {
  width: 120px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--app-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.integration-tile-mikro > .integration-tile-logo {
  background: #fff;
}
.integration-tile-shipentegra .integration-tile-logo {
  background: #fff;
  padding: 10px 12px;
}
.integration-tile-trendyol .integration-tile-logo {
  background: #F27A1A;
  border-color: #F27A1A;
  padding: 8px;
}
.integration-tile-hepsiburada .integration-tile-logo {
  background: #FF6000;
  border-color: #FF6000;
  padding: 8px;
}
.integration-tile-n11 .integration-tile-logo {
  background: #7B2D8E;
  border-color: #7B2D8E;
  padding: 8px;
}
.integration-tile-ciceksepeti .integration-tile-logo {
  background: #fff;
  border-color: #e5e7eb;
  padding: 8px 10px;
}
.integration-tile-idefix .integration-tile-logo {
  background: #fff;
  border-color: #e5e7eb;
  padding: 8px 10px;
}
.integration-tile-amazon .integration-tile-logo {
  background: #232F3E;
  border-color: #232F3E;
  padding: 6px 8px;
}
.integration-tile-woocommerce .integration-tile-logo {
  background: #7F54B3;
  border-color: #7F54B3;
  padding: 6px 8px;
}
.integration-tile-shopify .integration-tile-logo,
.integration-tile-pttavm .integration-tile-logo {
  background: #fff;
  border-color: #e5e7eb;
  padding: 8px 10px;
}
.integration-tile > .integration-tile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.integration-tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.integration-tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bs-heading-color);
}
.integration-tile-desc {
  color: var(--app-text);
  font-size: 13px;
}
.integration-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.integration-tile-arrow {
  color: #9CA3AF;
  font-size: 1.1rem;
}
.integration-logo-sm {
  width: 88px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--app-border);
  padding: 6px;
  flex-shrink: 0;
}
.integration-logo-sm.is-logo,
.integration-logo-sm.is-shipentegra {
  background: #fff;
  padding: 6px 8px;
}
.integration-logo-sm.is-trendyol {
  background: #F27A1A;
  border-color: #F27A1A;
  padding: 4px;
}
.integration-logo-sm.is-hepsiburada {
  background: #FF6000;
  border-color: #FF6000;
  padding: 4px;
}
.integration-logo-sm.is-n11 {
  background: #7B2D8E;
  border-color: #7B2D8E;
  padding: 4px;
}
.integration-logo-sm.is-ciceksepeti {
  background: #fff;
  border-color: #e5e7eb;
  padding: 4px 6px;
}
.integration-logo-sm.is-shopify,
.integration-logo-sm.is-pttavm {
  background: #fff;
  border-color: #e5e7eb;
  padding: 4px 6px;
}
.integration-logo-sm.is-amazon {
  background: #232F3E;
  border-color: #232F3E;
  padding: 4px 6px;
}
.integration-logo-sm.is-woocommerce {
  background: #7F54B3;
  border-color: #7F54B3;
  padding: 4px 6px;
}
.integration-logo-sm.is-idefix {
  background: #fff;
  border-color: #e5e7eb;
  padding: 4px 6px;
}
.integration-logo-sm.is-rizline {
  background: #1a3a5c;
  border-color: #1a3a5c;
  padding: 4px;
}
.integration-tile-rizline .integration-tile-logo {
  background: #1a3a5c;
}
.integration-logo-sm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.store-api-card.is-ok {
  border-color: #b7e4d4;
}
.store-api-card.is-fail {
  border-color: #f0c2c2;
}
.connection-status.is-ok {
  border-color: #b7e4d4;
  background: #f3fbf7;
}
.connection-status.is-fail {
  border-color: #f3c1c1;
  background: #fff6f6;
}
@media (max-width: 767.98px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
}
.table-cards-wrap {
  max-height: 520px;
  overflow: auto;
}

@media (max-width: 767.98px) {
  .app-content { padding-left: 12px; padding-right: 12px; }
  .card-header {
    gap: 10px;
  }
  .header-btns {
    width: 100%;
  }
  .header-btns .btn {
    flex: 1 1 calc(50% - 4px);
  }
  .header-search {
    max-width: none;
    width: 100%;
  }
  .table-cards-wrap {
    max-height: none;
    overflow: visible;
  }
  .table-responsive:has(.table-cards) {
    overflow: visible;
  }
  .table-cards thead {
    display: none;
  }
  .table-cards,
  .table-cards tbody {
    display: block;
    width: 100%;
  }
  .table-cards tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    margin: 10px 0 14px;
    padding: 8px 12px 12px;
    min-width: 0;
  }
  .table-cards tbody tr.catalog-row,
  .table-cards tbody tr.supplier-pick-row {
    gap: 0 6px;
    padding: 12px;
    align-items: start;
  }
  .table-cards tbody tr.catalog-row {
    grid-template-columns: 36px 64px 1fr 1fr;
  }
  .table-cards tbody tr.supplier-pick-row {
    grid-template-columns: 52px 64px 1fr 1fr;
  }
  .table-cards tbody tr.catalog-row.is-selected,
  .table-cards tbody tr.supplier-pick-row.is-selected {
    border-color: #0473BA;
    box-shadow: 0 0 0 1px rgba(4, 115, 186, 0.2);
  }
  .table-cards tbody tr.is-empty {
    display: block;
    padding: 22px 14px;
    text-align: center;
  }
  .table-cards td {
    grid-column: 1 / -1;
    display: block;
    min-width: 0;
    max-width: 100%;
    border: 0;
    border-bottom: 1px solid var(--app-border);
    padding: 10px 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .table-cards td:last-child {
    border-bottom: 0;
  }
  .table-cards td.hide-on-mobile-card {
    display: none !important;
  }
  .table-cards td::before {
    content: attr(data-label);
    display: block;
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
  }
  .table-cards td:not([data-label])::before,
  .table-cards td[data-label=""]::before {
    content: none;
    display: none;
  }
  .table-cards td.is-card-lead {
    grid-column: auto;
    display: flex;
    align-items: center;
    border-bottom: 0;
    padding-bottom: 6px;
    overflow: visible;
  }
  .table-cards .catalog-row td.is-card-check,
  .table-cards .supplier-pick-row td.is-card-check {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    min-height: 56px;
    width: auto;
  }
  .table-cards .catalog-row td.is-card-thumb {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    padding: 0;
    align-items: flex-start;
  }
  .table-cards .supplier-pick-row td.is-card-thumb {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    padding: 0;
    align-items: flex-start;
  }
  .table-cards .catalog-row td.is-card-title {
    grid-column: 3 / -1;
    grid-row: 1;
    border-bottom: 0;
    padding: 2px 0 4px;
  }
  .table-cards .supplier-pick-row td.is-card-title {
    grid-column: 3 / -1;
    grid-row: 1;
    border-bottom: 0;
    padding: 2px 0 4px;
  }
  .table-cards .catalog-row td.is-card-title::before,
  .table-cards .supplier-pick-row td.is-card-title::before {
    display: none;
  }
  .table-cards .catalog-row .product-card-meta,
  .table-cards .supplier-pick-row .product-card-meta {
    margin-top: 2px;
  }
  .table-cards .catalog-row .product-thumb,
  .table-cards .supplier-pick-row .product-thumb {
    width: 56px;
    height: 56px;
  }
  .table-cards .catalog-check-hit {
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    background: #F4F5FB;
    border: 1px solid var(--app-border);
  }
  .table-cards .catalog-row.is-selected .catalog-check-hit,
  .table-cards .supplier-pick-row.is-selected .catalog-check-hit {
    background: rgba(4, 115, 186, 0.12);
    border-color: #0473BA;
  }
  .table-cards .catalog-check-hit .catalog-check {
    width: 1.4rem;
    height: 1.4rem;
  }
  .table-cards .catalog-row td.is-card-half,
  .table-cards .supplier-pick-row td.is-card-half {
    border-bottom: 0;
    border-top: 1px solid var(--app-border);
    padding: 10px 0 8px;
  }
  .table-cards .catalog-row td.is-card-half,
  .table-cards .supplier-pick-row td.is-card-half {
    grid-column: span 2;
  }
  .table-cards .catalog-row td.is-card-price,
  .table-cards .supplier-pick-row td.is-card-price {
    font-weight: 700;
  }
  .table-cards .supplier-pick-row td.is-card-qty {
    grid-column: 1 / -1;
    border-top: 1px solid var(--app-border);
    border-bottom: 0;
    padding-top: 10px;
  }
  .table-cards .supplier-pick-row .qty-input {
    min-height: 44px;
    font-size: 1rem;
    max-width: 140px;
  }
  .table-cards td.is-card-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }
  .table-cards .catalog-row td.is-card-actions {
    grid-column: 1 / -1;
    padding-top: 4px;
  }
  .table-cards td.is-card-actions::before {
    display: none;
  }
  .table-cards .is-empty td {
    display: block;
    border: 0;
    text-align: center;
  }
  .table-cards .badge {
    white-space: normal;
    height: auto;
    line-height: 1.35;
    max-width: 100%;
    margin: 0 4px 6px 0;
    text-align: left;
  }
  .table-cards a,
  .table-cards .fw-semibold {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .table-cards .form-control {
    width: 100%;
    max-width: 100%;
  }
  .channel-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .channel-meta { min-width: 0; }
}

/* —— Ürün sayfası pazaryeri panelleri —— */
.mp-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mp-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--app-border);
  background: #fff;
  font-size: 0.875rem;
}
.mp-status-chip strong { font-weight: 600; }
.mp-status-chip.is-linked {
  border-color: #b7e4c7;
  background: #f0faf4;
}
.mp-status-chip.is-diff {
  border-color: #f5c2c7;
  background: #fff5f5;
}
.mp-status-chip.is-off {
  border-color: var(--app-border);
  background: #f8f9fa;
  color: #6c757d;
}
.mp-channels-card .mp-channel {
  padding: 14px 16px;
  border-bottom: 1px solid var(--app-border);
}
.mp-channels-card .mp-channel:last-child {
  border-bottom: 0;
}
.mp-channel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.mp-ext-id {
  font-size: 0.75rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-channel-meta {
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.mp-channel-live {
  line-height: 1.45;
}
@media (max-width: 767.98px) {
  .mp-status-chip { flex: 1 1 calc(50% - 8px); }
}

/* Faz B katalog paneli */
.mp-catalog-card .list-group-item { cursor: pointer; }
.mp-catalog-card .nav-tabs .nav-link { font-size: 0.9rem; }
.mp-attr-wrap .form-label { font-weight: 500; }

/* TinyMCE ürün açıklaması */
.tox-tinymce {
  border-radius: 10px !important;
  border-color: var(--app-border) !important;
}
.tox .tox-toolbar,
.tox .tox-toolbar__primary {
  background: #f8f9fa !important;
}

/* Ürün formu ana sekmeler — buton tarzı */
.product-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--app-border);
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 42px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.product-tab-btn:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.product-tab-btn.active {
  color: #fff;
  background: #0473BA;
  border-color: #0473BA;
  box-shadow: 0 4px 12px rgba(4, 115, 186, 0.22);
}
.product-tab-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-tab-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}
.product-tab-btn.active .product-tab-chip {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.product-tab-chip.is-ok { background: #dcfce7; color: #166534; }
.product-tab-chip.is-warn { background: #fef3c7; color: #92400e; }
.product-tab-chip.is-bad { background: #fee2e2; color: #991b1b; }
.product-tab-chip.is-muted { background: #e5e7eb; color: #6b7280; }
.product-tab-btn.active .product-tab-chip.is-ok,
.product-tab-btn.active .product-tab-chip.is-warn,
.product-tab-btn.active .product-tab-chip.is-bad,
.product-tab-btn.active .product-tab-chip.is-muted {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.mp-channel-panel {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 14px;
  background: #fafbfc;
}
@media (max-width: 575.98px) {
  .product-tab-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

/* E³ Coffee: çekirdek kahverengi #77483C, yazı #211F1A */
body.theme-e3 {
  --bs-primary: #77483C;
  --bs-primary-rgb: 119, 72, 60;
  --bs-info: #77483C;
  --app-primary: #77483C;
  --app-primary-hover: #5C342B;
  --app-primary-soft: #F8F1EC;
  --app-accent: #C4A484;
  --app-body: #F6F3F0;
  --app-sidebar-bg: #1A1614;
}
body.theme-e3 .app-sidebar { border-right-color: #2C2622; }
body.theme-e3 .app-brand { border-bottom-color: #77483C; }
body.theme-e3 .brand-logo-wrap {
  background: #F6F1EB;
  border-radius: 14px;
  padding: 8px 10px 6px;
}
body.theme-e3 .brand-company { color: #3C2A24; }
body.theme-e3 .menu-link:hover { background: #2A2420; }
body.theme-e3 .btn-primary {
  --bs-btn-bg: #77483C;
  --bs-btn-border-color: #77483C;
  --bs-btn-hover-bg: #5C342B;
  --bs-btn-hover-border-color: #5C342B;
  --bs-btn-active-bg: #5C342B;
  --bs-btn-active-border-color: #5C342B;
}
body.theme-e3 .btn-light-primary,
body.theme-e3 .bg-light-primary,
body.theme-e3 .badge.bg-light-primary {
  background: #F8F1EC !important;
  color: #77483C !important;
}
body.theme-e3 .bg-primary-subtle { background: #F8F1EC !important; }
body.theme-e3 .text-primary { color: #77483C !important; }
body.theme-e3 .border-primary { border-color: #77483C !important; }
body.theme-e3 .product-thumb-count,
body.theme-e3 .product-tab-btn.active {
  background: #77483C;
  border-color: #77483C;
  color: #fff;
}
body.theme-e3 .product-tab-btn.active { box-shadow: 0 4px 12px rgba(119, 72, 60, 0.22); }
body.theme-e3 .product-shot.is-cover img {
  border-color: #77483C;
  box-shadow: 0 0 0 2px rgba(119, 72, 60, 0.25);
}
body.theme-e3 .form-control:focus,
body.theme-e3 .form-select:focus {
  border-color: #C4A484;
  box-shadow: 0 0 0 .2rem rgba(119, 72, 60, .18);
}
body.theme-e3 .catalog-row.is-selected,
body.theme-e3 .supplier-pick-row.is-selected { background: #F8F1EC; }
body.theme-e3 .supplier-pick-item:has(.supplier-check:checked) {
  border-color: #77483C;
  background: #F8F1EC;
  box-shadow: 0 0 0 1px rgba(119, 72, 60, 0.15);
}
body.theme-e3 .table-cards tbody tr.catalog-row.is-selected,
body.theme-e3 .table-cards tbody tr.supplier-pick-row.is-selected { border-color: #77483C; }
body.theme-e3 .table-cards .catalog-row.is-selected .catalog-check-hit,
body.theme-e3 .table-cards .supplier-pick-row.is-selected .catalog-check-hit {
  background: rgba(119, 72, 60, 0.12);
  border-color: #77483C;
}
