:root {
  --page: #f4f6fb;
  --panel: #ffffff;
  --ink: #2f3f53;
  --muted: #758195;
  --line: #e3e8f1;
  --nav: #222e3f;
  --blue: #2f6fed;
  --blue-soft: #eaf3ff;
  --orange: #ff7a1a;
  --amber: #f59e0b;
  --red: #e52525;
  --shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

body.auth-pending {
  overflow: hidden;
}

body.auth-pending > .topbar,
body.auth-pending > .app-layout,
body.auth-pending > .toast,
body.auth-pending > .quick-dialog {
  display: none !important;
}

.auth-gateway {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow-y: auto;
  background: #eef2f7;
}

body.is-authenticated .auth-gateway {
  display: none;
}

.auth-shell {
  width: min(820px, 100%);
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(20, 33, 50, 0.18);
}

.auth-brand-panel {
  min-width: 0;
  padding: 54px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #202d3f;
  color: #ffffff;
}

.auth-brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #2c3b50;
  font-size: 31px;
}

.auth-brand-kicker {
  margin: 0 0 10px;
  color: #42d5bc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-brand-panel h1 {
  max-width: 280px;
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.auth-brand-copy {
  margin: 14px 0 0;
  color: #c7d0dc;
  font-size: 14px;
  font-weight: 600;
}

.auth-security-note {
  margin-top: auto;
  padding-top: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbe3ec;
  font-size: 12px;
  font-weight: 700;
}

.auth-security-note > span:first-child {
  color: #42d5bc;
  font-size: 10px;
}

.auth-form-panel {
  min-width: 0;
  padding: 52px 54px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-heading p {
  margin: 0 0 10px;
  color: #0f887d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-form-heading h2 {
  margin: 0;
  color: #17243a;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-form-heading > span {
  display: block;
  margin-top: 10px;
  color: #6e7a8d;
  font-size: 13px;
  line-height: 1.45;
}

.auth-form {
  margin-top: 30px;
  display: grid;
  gap: 17px;
}

.auth-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #35445a;
  font-size: 12px;
  font-weight: 800;
}

.auth-field input,
.account-settings-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  color: #17243a;
  font-size: 14px;
  font-weight: 650;
}

.auth-field input:focus,
.account-settings-form input:focus {
  border-color: #167f77;
  box-shadow: 0 0 0 3px rgba(22, 127, 119, 0.12);
}

.auth-password-toggle {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5d6b7e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-password-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #167f77;
}

.auth-message {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #b4232c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.auth-submit {
  height: 44px;
  border: 1px solid #126d66;
  border-radius: 6px;
  background: #167f77;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 127, 119, 0.18);
}

.auth-submit:hover {
  background: #116d67;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-form-footer {
  margin: auto 0 0;
  padding-top: 34px;
  color: #98a2b2;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.account-settings-form {
  margin-top: 16px;
  display: grid;
  gap: 15px;
}

.account-settings-intro {
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid #16877c;
  background: #eefaf7;
  color: #425269;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.account-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 3px;
}

.account-settings-save {
  height: 38px;
  padding: 0 17px;
  border: 1px solid #126d66;
  border-radius: 6px;
  background: #167f77;
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.account-settings-error {
  margin: 0;
  color: #bd1e2c;
  font-size: 12px;
  font-weight: 750;
}

button {
  font: inherit;
}

.topbar {
  min-height: 82px;
  padding: 18px 28px;
  background: var(--nav);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.11);
  font-size: 27px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-indicator {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.2);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sync-indicator.is-live {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(5, 150, 105, 0.24);
}

.sync-indicator.is-error {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(185, 28, 28, 0.22);
}

.action {
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action:hover {
  background: rgba(255, 255, 255, 0.18);
}

.action.primary {
  border-color: transparent;
  background: var(--blue);
}

.action.primary:hover {
  background: #2464de;
}

.action.danger {
  border-color: #ffcaca;
  background: #ffe2e2;
  color: #c31515;
}

.app-layout {
  width: min(1600px, calc(100% - 32px));
  margin: 18px auto 46px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.management-sidebar {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 12px 8px 14px;
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.07);
}

.management-title {
  width: fit-content;
  min-height: 38px;
  margin: 0 auto 14px;
  padding: 0 11px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  color: #26364a;
  font-size: 14px;
  font-weight: 900;
}

.side-menu {
  display: grid;
  gap: 5px;
}

.side-menu-group {
  position: relative;
  min-width: 0;
}

.side-menu-item {
  --menu-accent: #64748b;
  --menu-bg: #f8fafc;
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--menu-accent) 28%, #ffffff);
  border-radius: 5px;
  background: var(--menu-bg);
  color: #26364a;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 5px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.side-menu-item:hover {
  border-color: var(--menu-accent);
  transform: translateX(2px);
}

.side-menu-item.is-active {
  border-color: var(--menu-accent);
  background: var(--menu-accent);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--menu-accent) 22%, transparent);
}

.side-menu-icon {
  color: var(--menu-accent);
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.side-menu-item.is-active .side-menu-icon {
  color: #ffffff;
}

.side-menu-arrow {
  justify-self: end;
  color: var(--menu-accent);
  font-size: 20px;
  line-height: 1;
  transition: transform 140ms ease;
}

.side-menu-item.is-active .side-menu-arrow {
  color: #ffffff;
}

.xml-menu-group.is-open .side-menu-arrow {
  transform: rotate(180deg);
}

.side-submenu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  min-width: 180px;
  padding: 6px;
  border: 1px solid #99d8cf;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.side-submenu-item {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #ecfdf8;
  color: #26364a;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.side-submenu-item .xml-source-menu-state {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.side-submenu-item.is-healthy .side-submenu-dot {
  background: #16a34a;
}

.side-submenu-item.is-checking .side-submenu-dot {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.side-submenu-item.is-stale .side-submenu-dot {
  background: #d97706;
}

.side-submenu-item.is-error .side-submenu-dot {
  background: #dc2626;
}

.side-submenu-item:hover,
.side-submenu-item.is-active {
  border-color: #0f766e;
  background: #d8f7ef;
  color: #0f5f59;
}

.side-submenu-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f766e;
}

.side-menu-separator {
  height: 4px;
}

.tone-home { --menu-accent: #3b82f6; --menu-bg: #eaf3ff; }
.tone-support { --menu-accent: #10b981; --menu-bg: #ecfdf5; }
.tone-alert { --menu-accent: #d99b08; --menu-bg: #fff8df; }
.tone-news { --menu-accent: #7c5cc4; --menu-bg: #f4efff; }
.tone-products { --menu-accent: #0ea5e9; --menu-bg: #f0f9ff; }
.tone-stock { --menu-accent: #7055bd; --menu-bg: #f2effb; }
.tone-xml { --menu-accent: #0f766e; --menu-bg: #ecfdf8; }
.tone-trendyol { --menu-accent: #f97316; --menu-bg: #fff3e9; }
.tone-cicek { --menu-accent: #8b5cf6; --menu-bg: #f5f0ff; }
.tone-n11 { --menu-accent: #e53e55; --menu-bg: #fff0f2; }
.tone-eptt { --menu-accent: #b88718; --menu-bg: #fff9e9; }
.tone-hepsiburada { --menu-accent: #1689e8; --menu-bg: #edf7ff; }
.tone-pazarama { --menu-accent: #db3f83; --menu-bg: #fff0f7; }
.tone-idefix { --menu-accent: #7568b8; --menu-bg: #f6f4ff; }
.tone-settings { --menu-accent: #64748b; --menu-bg: #f1f5f9; }

.panel-shell {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.filters {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 14px;
}

.filter-line {
  display: contents;
}

.filter-label {
  justify-self: end;
  color: #6c7688;
  font-size: 13px;
  font-weight: 800;
  line-height: 32px;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-choice-row {
  width: 100%;
}

.order-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.order-sort-select {
  width: 164px;
  height: 34px;
  padding: 0 32px 0 10px;
  border: 1px solid #cbd7e6;
  border-radius: 7px;
  background: #ffffff;
  color: #26364a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  outline: none;
  cursor: pointer;
}

.order-sort-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
}

.filter-line[data-filter="store"] .choice-row {
  align-items: flex-start;
  overflow: visible;
}

.order-search-wrap {
  width: min(430px, 100%);
}

.order-search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  outline: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.order-search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

.order-search-input::placeholder {
  color: #7a8799;
}

.filter-store-picker {
  position: relative;
  z-index: 20;
  width: min(340px, 100%);
}

.filter-store-picker[open] .store-picker-summary {
  border-radius: 8px 8px 0 0;
}

.filter-store-picker[open] .store-picker-arrow {
  transform: rotate(180deg);
}

.filter-store-options {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  max-height: 240px;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe3ef;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(38, 54, 74, 0.14);
  overflow-y: auto;
}

.filter-store-options .choice {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  text-align: left;
}

.choice {
  height: 31px;
  min-width: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #3b4656;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
  white-space: nowrap;
}

.choice:hover {
  border-color: #c7d2e0;
  background: #fbfcff;
}

.choice.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.filter-line[data-filter="store"] .choice.is-active:not([data-value="Tümü"]) {
  border-color: #1f2937;
  background: #1f2937;
  color: #ffffff;
}

.filter-line[data-filter="status"] .choice[data-value="Tümü"] {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

.filter-line[data-filter="status"] .choice[data-value="Yeni"] {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.filter-line[data-filter="status"] .choice[data-value="Hazırlanıyor"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.filter-line[data-filter="status"] .choice[data-value="Kargoya Teslim"] {
  border-color: #67e8f9;
  background: #ecfeff;
  color: #0e7490;
}

.filter-line[data-filter="status"] .choice[data-value="Teslim"] {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #7c3aed;
}

.filter-line[data-filter="status"] .choice[data-value="İade"] {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

.filter-line[data-filter="status"] .choice[data-value="İptal"] {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.filter-line[data-filter="status"] .choice[data-value="Tümü"].is-active {
  border-color: #f97316;
  background: #f97316;
  color: #ffffff;
}

.filter-line[data-filter="status"] .choice[data-value="Yeni"].is-active {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

.filter-line[data-filter="status"] .choice[data-value="Hazırlanıyor"].is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.filter-line[data-filter="status"] .choice[data-value="Kargoya Teslim"].is-active {
  border-color: #0891b2;
  background: #0891b2;
  color: #ffffff;
}

.filter-line[data-filter="status"] .choice[data-value="Teslim"].is-active {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #ffffff;
}

.filter-line[data-filter="status"] .choice[data-value="İade"].is-active {
  border-color: #e11d48;
  background: #e11d48;
  color: #ffffff;
}

.filter-line[data-filter="status"] .choice[data-value="İptal"].is-active {
  border-color: #64748b;
  background: #64748b;
  color: #ffffff;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.order-card {
  --status-color: var(--orange);
  --status-border: #fed7aa;
  --status-soft: #fff7ed;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  height: 100%;
  padding: 13px 12px 14px 18px;
  border: 1px solid var(--status-border);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--status-soft) 0 68px, var(--panel) 68px 100%);
  box-shadow: var(--shadow);
  overflow: visible;
}

.order-card.status-yeni {
  --status-color: #16a34a;
  --status-border: #86efac;
  --status-soft: #ecfdf3;
}

.order-card.status-hazirlaniyor {
  --status-color: #2563eb;
  --status-border: #93c5fd;
  --status-soft: #eaf3ff;
}

.order-card.status-kargoda {
  --status-color: #dc2626;
  --status-border: #fca5a5;
  --status-soft: #fef2f2;
}

.order-card.status-kargoya-teslim {
  --status-color: #0891b2;
  --status-border: #67e8f9;
  --status-soft: #ecfeff;
}

.order-card.status-teslim {
  --status-color: #7c3aed;
  --status-border: #c4b5fd;
  --status-soft: #f5f3ff;
}

.order-card.status-iade {
  --status-color: #e11d48;
  --status-border: #fda4af;
  --status-soft: #fff1f2;
}

.order-card.status-iptal {
  --status-color: #64748b;
  --status-border: #cbd5e1;
  --status-soft: #f8fafc;
}

.order-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--status-color);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  min-height: 49px;
  margin-bottom: 8px;
}

.identity {
  flex: 1 1 auto;
  min-width: 0;
}

.order-id-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.box-icon {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f6eee9;
  font-size: 11px;
  line-height: 1;
  flex: 0 0 auto;
}

.order-id {
  display: inline-block;
  min-width: 0;
  max-width: none;
  color: var(--status-color);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-badge {
  margin-left: 1px;
  padding: 3px 5px;
  border-radius: 6px;
  background: #fff5ec;
  color: #f05a12;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge {
  min-width: 86px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--status-color);
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--status-color) 28%, transparent);
}

.status-emoji {
  font-size: 12px;
  line-height: 1;
}

.status-badge.yeni {
  background: #16a34a;
}

.status-badge.hazirlaniyor {
  background: #2563eb;
}

.status-badge.kargoda {
  background: #dc2626;
}

.status-badge.kargoya-teslim {
  background: #0891b2;
}

.status-badge.teslim {
  background: #7c3aed;
}

.status-badge.iade {
  background: #e11d48;
}

.status-badge.iptal {
  background: #64748b;
}

.date {
  margin: 5px 0 7px;
  color: #758195;
  font-size: 10.5px;
  font-weight: 600;
}

.store-name {
  min-height: 15px;
  margin: 6px 0 11px;
  color: #3b4b5f;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.detail {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 5px 8px;
  min-height: 66px;
  margin-bottom: 9px;
}

.detail span {
  color: #758195;
  font-size: 11px;
  line-height: 1.28;
}

.detail strong {
  min-width: 0;
  color: #344357;
  font-size: 11px;
  line-height: 1.38;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.customer-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-text,
.product-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.address-text {
  -webkit-line-clamp: 3;
}

.product-box {
  min-height: 96px;
  margin: 0 0 9px;
  padding: 10px 10px 9px 11px;
  border: 1px solid #eef2f7;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fffefd;
  min-width: 0;
  overflow: visible;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.product-box.has-product-image {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.order-product-copy {
  min-width: 0;
}

.order-product-image {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e2ef;
  border-radius: 9px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.09);
}

.order-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.order-product-image-zoom {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.78);
}

.order-product-image-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #94a3b8;
  font-size: 28px;
  background: #f8fafc;
}

.order-product-image.is-broken {
  cursor: default;
}

.order-product-image.is-broken img,
.order-product-image.is-broken .order-product-image-zoom {
  display: none;
}

.order-product-image.is-broken .order-product-image-fallback {
  display: grid;
}

.order-image-lightbox[hidden] {
  display: none;
}

.order-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.order-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.82);
  cursor: zoom-out;
}

.order-image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(920px, 92vw);
  max-height: 90vh;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.order-image-lightbox-panel img {
  display: block;
  max-width: calc(92vw - 28px);
  max-height: calc(90vh - 72px);
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
}

.order-image-lightbox-panel figcaption {
  max-width: 820px;
  margin-top: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.order-image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: -15px;
  right: -15px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: #ef4444;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

body.order-image-lightbox-open {
  overflow: hidden;
}

.product-name {
  margin: 0 0 7px;
  color: #102033;
  font-size: 12px;
  line-height: 1.32;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: 3;
}

.sku {
  margin: 0;
  color: #526178;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
}

.product-meta span {
  min-width: 0;
}

.product-meta strong {
  color: #64748b;
  font-weight: 900;
}

.order-detail-warning {
  margin: 7px 0 0;
  padding-top: 6px;
  border-top: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
}

.price {
  min-height: 20px;
  margin: auto 0 7px;
  display: flex;
  align-items: flex-end;
  color: #ff5a00;
  font-size: 18px;
  font-weight: 900;
}

.price.is-unavailable {
  color: #64748b;
  font-size: 13px;
}

.cargo-control {
  display: grid;
  grid-template-rows: 14px 31px;
  gap: 5px;
  min-height: 50px;
  margin: 0 0 7px;
  color: #5b6678;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.cargo-control span {
  display: block;
}

.cargo-select {
  width: 100%;
  height: 31px;
  border: 1px solid #d8e4f3;
  border-radius: 7px;
  background: #ffffff;
  color: #26364a;
  font-size: 12px;
  font-weight: 900;
  outline: none;
  padding: 0 8px;
  cursor: pointer;
}

.cargo-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.cargo-select:disabled {
  cursor: wait;
  opacity: 0.65;
}

.tracking {
  height: auto;
  min-height: 28px;
  margin: 0 0 7px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: #4d6078;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.label-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(30px, auto);
  gap: 6px;
  min-height: 102px;
  align-content: end;
}

.order-detail-button,
.prepare-package,
.print-label,
.unprepare-package,
.cancel-order {
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-detail-button:disabled,
.prepare-package:disabled,
.print-label:disabled,
.unprepare-package:disabled,
.cancel-order:disabled {
  cursor: wait;
  opacity: 0.65;
}

.order-detail-button {
  grid-column: 1 / -1;
  background: #e7f1ff;
  color: #0756b8;
  border: 1px solid #b8d6ff;
  box-shadow: none;
}

.order-detail-button:hover {
  background: #d7e9ff;
  color: #06489a;
}

.prepare-package {
  background: var(--red);
  box-shadow: 0 2px 5px rgba(229, 37, 37, 0.22);
}

.prepare-package:hover {
  background: #d71919;
}

.print-label {
  background: var(--blue);
  box-shadow: 0 2px 5px rgba(47, 111, 237, 0.22);
}

.print-label:hover {
  background: #2464de;
}

.print-label.is-missing {
  background: #64748b;
  box-shadow: none;
}

.print-label.is-missing:hover {
  background: #475569;
}

.unprepare-package {
  grid-column: 1 / -1;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  box-shadow: none;
}

.unprepare-package:hover {
  background: #ffe4e6;
}

.cancel-order {
  grid-column: 1 / -1;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fda4af;
  box-shadow: none;
}

.cancel-order:hover {
  background: #ffe4e6;
  color: #9f1239;
}

.order-status-note {
  min-width: 0;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecdd3;
  border-radius: 7px;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
}

.cancelled-order-note {
  grid-column: 1 / -1;
  min-height: 63px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecdd3;
  border-radius: 7px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 900;
}

.cancelled-order-note:has(+ .print-label) {
  grid-row: 1;
  min-height: 30px;
}

.cancelled-order-note + .print-label {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: calc(50% - 3px);
}

.empty-state {
  margin: 38px auto;
  padding: 18px 22px;
  width: min(460px, 100%);
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  background: #ffffff;
  color: #657286;
  text-align: center;
  font-weight: 800;
}

.xml-view[hidden] {
  display: none;
}

.xml-view {
  min-width: 0;
  color: #26364a;
}

.xml-view-head {
  min-height: 86px;
  padding: 18px 20px;
  border: 1px solid #dfe5ee;
  border-left: 4px solid #0f766e;
  border-radius: 7px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.xml-view-head h2 {
  margin: 2px 0 4px;
  color: #172033;
  font-size: 24px;
  letter-spacing: 0;
}

.xml-view-head a {
  color: #1769aa;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.xml-view-head a:hover {
  text-decoration: underline;
}

.xml-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.xml-source-health {
  margin: 12px 0 0;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid #dbe6f3;
  border-left: 4px solid #94a3b8;
  border-radius: 7px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.xml-source-health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
}

.xml-source-health > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.xml-source-health strong {
  color: #172033;
  font-size: 12px;
}

.xml-source-health small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xml-source-health.is-healthy {
  border-left-color: #16a34a;
  background: #f3fcf6;
}

.xml-source-health.is-healthy .xml-source-health-dot {
  background: #16a34a;
}

.xml-source-health.is-checking {
  border-left-color: #2563eb;
  background: #f4f8ff;
}

.xml-source-health.is-checking .xml-source-health-dot {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.xml-source-health.is-stale {
  border-left-color: #d97706;
  background: #fffbeb;
}

.xml-source-health.is-stale .xml-source-health-dot {
  background: #d97706;
}

.xml-source-health.is-error {
  border-left-color: #dc2626;
  background: #fff5f5;
}

.xml-source-health.is-error .xml-source-health-dot {
  background: #dc2626;
}

.xml-stock-delta-status {
  margin: 12px 0;
  padding: 14px 18px;
  border: 1px solid #b9d8d2;
  border-left: 4px solid #138275;
  border-radius: 7px;
  background: #f3fbf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xml-stock-delta-status > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.xml-stock-delta-status span {
  color: #11786e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.xml-stock-delta-status strong {
  color: #10233f;
  font-size: 15px;
}

.xml-stock-delta-status small {
  color: #5a6b82;
  font-size: 12px;
  font-weight: 700;
}

.xml-stock-delta-status.is-running {
  border-color: #b9cff8;
  border-left-color: #2769e8;
  background: #f3f7ff;
}

.xml-stock-delta-status.is-error {
  border-color: #fecaca;
  border-left-color: #ef4444;
  background: #fff5f5;
}

.xml-button.inventory-sync {
  border-color: #0f766e;
  background: #0f766e;
  white-space: nowrap;
}

.xml-search-box {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid #dbe6f3;
  border-left: 4px solid #0f766e;
  border-radius: 7px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.xml-search-box label {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.xml-search-box input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #172033;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.xml-search-box input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.xml-eyebrow {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.xml-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #26364a;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.xml-button.secondary {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #26364a;
}

.xml-button:hover:not(:disabled) {
  filter: brightness(0.96);
}

.xml-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.xml-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.xml-count-card {
  margin: 12px 0;
  padding: 12px 15px;
  border: 1px solid #99f6e4;
  border-left: 4px solid #0f766e;
  border-radius: 7px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.xml-count-card div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.xml-count-card span {
  color: #0f3f37;
  font-size: 13px;
  font-weight: 900;
}

.xml-count-card strong {
  color: #062b24;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.xml-count-card small {
  flex: 1;
  min-width: 240px;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

.xml-count-card.is-loading {
  border-color: #fde68a;
  border-left-color: #d97706;
  background: #fffbeb;
}

.xml-count-card.is-error {
  border-color: #fecaca;
  border-left-color: #dc2626;
  background: #fef2f2;
}

.xml-count-card.is-error span,
.xml-count-card.is-error strong,
.xml-count-card.is-error small {
  color: #991b1b;
}

.xml-count-card.is-error small {
  flex-basis: 100%;
  text-align: left;
}

.xml-stats > div {
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.xml-stats span,
.xml-product-stock span,
.xml-product-price span,
.xml-market-price > span {
  color: #6c7688;
  font-size: 11px;
  font-weight: 800;
}

.xml-stats strong {
  margin-top: 4px;
  color: #172033;
  font-size: 21px;
}

.xml-stats > div:nth-child(4) strong {
  color: #d85b0b;
}

.xml-stats > div:nth-child(5) strong {
  color: #1677c8;
}

.xml-band {
  margin-top: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.xml-band-title {
  min-height: 48px;
  padding: 9px 14px;
  border-bottom: 1px solid #e7ebf1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.xml-band-title > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.xml-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.xml-band-title h3,
.xml-log-section h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  letter-spacing: 0;
}

.xml-default-price-settings > summary {
  cursor: pointer;
  list-style: none;
}

.xml-default-price-settings > summary::-webkit-details-marker {
  display: none;
}

.xml-default-price-settings > summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.xml-default-price-settings[open] > summary::after {
  content: "\2212";
}

.xml-default-settings-actions {
  padding: 12px 14px 0;
  display: flex;
  justify-content: flex-end;
}

.xml-section-icon {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  background: #e6f5f2;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.xml-state-note {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.xml-price-controls {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.xml-price-controls label,
.xml-mapping-row label {
  color: #475569;
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.xml-stock-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px)) 1fr;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  background: #f0fdf4;
}

.xml-stock-settings span {
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.xml-add-box {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #c7d2fe;
  border-left: 4px solid #2563eb;
  border-radius: 7px;
  background: #f8fbff;
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(260px, 1.3fr) auto auto auto;
  align-items: center;
  gap: 12px;
}

.xml-add-box > div {
  display: grid;
  gap: 3px;
}

.xml-add-box strong {
  color: #172033;
  font-size: 13px;
}

.xml-add-box span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.xml-add-box input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #172033;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.xml-button.danger {
  background: #ef4444;
  color: #ffffff;
}

.xml-price-platform {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5eaf0;
}

.xml-price-platform > strong {
  min-height: 38px;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.xml-price-platform.trendyol > strong {
  background: #f97316;
}

.xml-price-platform.hepsiburada > strong {
  background: #2563eb;
}

.xml-price-stack {
  display: grid;
  gap: 10px;
}

.xml-price-fields {
  display: grid;
  grid-template-columns: 34px repeat(3, minmax(120px, 0.7fr)) minmax(280px, 1.5fr);
  align-items: end;
  gap: 12px;
}

.xml-price-row-number {
  width: 34px;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.xml-price-fields + .xml-price-fields {
  padding-top: 10px;
  border-top: 1px dashed #dbe3ee;
}

.xml-price-range {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(125px, 1fr));
  gap: 8px;
}

.xml-price-range > span {
  grid-column: 1 / -1;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.xml-price-range label {
  gap: 4px;
  color: #7b8798;
  font-size: 10px;
}

.xml-price-controls input,
.xml-mapping-row select,
.xml-transfer-platform select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #172033;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.xml-price-controls p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.xml-store-pricing-band {
  border-left: 4px solid #0f766e;
}

.xml-store-pricing-band.is-trendyol {
  border-left-color: #f97316;
}

.xml-store-pricing-band.is-hepsiburada {
  border-left-color: #2563eb;
}

.xml-store-pricing-toolbar {
  padding: 14px;
  border-bottom: 1px solid #e5eaf0;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.xml-store-pricing-toolbar label,
.xml-store-price-stack label {
  color: #475569;
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.xml-store-pricing-toolbar select,
.xml-store-price-stack input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #172033;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.xml-store-pricing-identity {
  min-height: 38px;
  padding: 6px 10px;
  border-left: 3px solid #0f766e;
  display: grid;
  align-content: center;
  gap: 2px;
}

.xml-store-pricing-identity strong {
  color: #172033;
  font-size: 13px;
}

.xml-store-pricing-identity span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.xml-store-pricing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.xml-store-price-stack {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.xml-store-pricing-footer {
  padding: 12px 14px;
  border-top: 1px solid #e5eaf0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.xml-store-pricing-footer p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.xml-button.price-update {
  min-width: 300px;
  background: #0f766e;
  white-space: nowrap;
}

.xml-button.has-unsaved-changes {
  border-color: #d97706;
  background: #d97706;
}

.xml-mapping-list {
  display: grid;
}

.xml-mapping-row {
  min-height: 76px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 0.8fr) minmax(210px, 0.8fr);
  align-items: center;
  gap: 14px;
}

.xml-mapping-row:last-child {
  border-bottom: 0;
}

.xml-mapping-row > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.xml-mapping-row > div span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.xml-mapping-row > div strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.xml-select-all {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.xml-select-all input,
.xml-product-check input {
  width: 17px;
  height: 17px;
  accent-color: #0f766e;
}

.xml-product-tools {
  padding: 10px 14px;
  border-bottom: 1px solid #e7ebf1;
  background: #fbfdff;
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) auto minmax(120px, 0.55fr) auto auto;
  align-items: end;
  gap: 10px;
}

.xml-product-tools label {
  min-width: 0;
  color: #475569;
  display: grid;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
}

.xml-product-tools input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #172033;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.xml-product-list {
  display: grid;
}

.xml-products-empty {
  padding: 18px 16px;
  border-left: 3px solid #ef4444;
  background: #fff7f7;
  color: #991b1b;
  font-size: 12px;
  font-weight: 900;
}

.xml-products-empty.is-loading {
  border-left-color: #f59e0b;
  background: #fff9e8;
  color: #7c5200;
}

.xml-products-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #e4eaf3;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.xml-product-row {
  min-height: 116px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7ebf1;
  background: #ffffff;
  display: grid;
  grid-template-columns: 24px 76px minmax(250px, 1fr) 48px 92px 110px 124px;
  align-items: center;
  gap: 12px;
}

.xml-view [hidden] {
  display: none !important;
}

.xml-view.is-hepsiburada-only .xml-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xml-view.is-hepsiburada-only .xml-transfer-band {
  grid-template-columns: minmax(0, 1fr);
}

.xml-view.is-hepsiburada-only .xml-mapping-row {
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 0.8fr);
}

.xml-view.is-hepsiburada-only .xml-product-row {
  grid-template-columns: 24px 76px minmax(250px, 1fr) 48px 92px 124px;
}

.xml-product-row:last-child {
  border-bottom: 0;
}

.xml-product-image {
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.xml-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.xml-no-image {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
}

.xml-catalog-image {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 6px;
  text-align: center;
  line-height: 1.25;
}

.xml-product-main {
  min-width: 0;
}

.xml-product-title-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.xml-product-title-line strong {
  min-width: 0;
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
}

.xml-product-title-line span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef2f7;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
}

.xml-product-main p,
.xml-product-main small,
.xml-product-main em,
.xml-origin-note {
  display: block;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.xml-product-overrides {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
}

.xml-product-overrides label {
  min-width: 0;
  color: #475569;
  display: grid;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
}

.xml-product-overrides input {
  width: 100%;
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.xml-product-overrides input:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, 0.12);
}

.xml-product-main em {
  color: #9a6700;
}

.xml-product-main em.xml-product-error {
  color: #b91c1c;
  font-weight: 900;
}

.xml-origin-note {
  color: #047857;
  font-weight: 800;
}

.xml-product-stock,
.xml-product-price,
.xml-market-price {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.xml-product-stock strong,
.xml-product-price strong,
.xml-market-price strong {
  color: #172033;
  font-size: 13px;
  white-space: nowrap;
}

.xml-market-price.trendyol strong {
  color: #d85b0b;
}

.xml-market-price.hepsiburada strong {
  color: #1677c8;
}

.xml-ready {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

.xml-ready.is-ready {
  background: #dcfce7;
  color: #15803d;
}

.xml-ready.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.xml-ready.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

.xml-mapping-index-note {
  padding: 12px 14px;
  border-left: 3px solid #0f766e;
  background: #ecfdf5;
  color: #115e59;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.xml-transfer-band {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.xml-transfer-platform {
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #dfe5ee;
  border-left-width: 4px;
  border-radius: 7px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
}

.xml-transfer-platform.trendyol {
  border-left-color: #f97316;
}

.xml-transfer-platform.hepsiburada {
  border-left-color: #1689e8;
}

.xml-transfer-platform > div {
  display: grid;
  gap: 3px;
}

.xml-transfer-platform > div span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.xml-transfer-platform > div strong {
  color: #172033;
  font-size: 13px;
}

.xml-transfer-platform.trendyol .publish {
  background: #e85d04;
}

.xml-transfer-platform.hepsiburada .publish {
  background: #1677c8;
}

.xml-transfer-platform .publish:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.25);
}

.xml-content-tabs {
  margin-top: 12px;
  border-bottom: 1px solid #dfe5ee;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.xml-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.xml-tab:hover {
  background: #eef6ff;
}

.xml-tab.is-active {
  border-color: #0f766e;
  background: #ffffff;
  color: #0f766e;
  box-shadow: inset 0 3px 0 #0f766e;
}

.xml-content-tabs + .xml-band {
  margin-top: 0;
  border-top-left-radius: 0;
}

.xml-tab-panel[hidden] {
  display: none;
}

.xml-warning,
.xml-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #f2d38c;
  border-radius: 6px;
  background: #fff9e8;
  color: #7c5b0b;
  font-size: 11px;
  font-weight: 800;
}

.xml-message:empty {
  display: none;
}

.xml-message.is-success {
  border-color: #a7e5c4;
  background: #ecfdf5;
  color: #137548;
}

.xml-message.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.xml-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
}

.xml-progress-overlay[hidden] {
  display: none;
}

.xml-progress-card {
  width: min(660px, 100%);
  padding: 22px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.xml-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.xml-progress-head h3 {
  margin: 4px 0 0;
  color: #071834;
  font-size: 22px;
}

.xml-progress-percent {
  color: #0f766e;
  font-size: 30px;
}

.xml-progress-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xml-progress-window-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.xml-progress-window-button:hover {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
}

.xml-progress-eyebrow {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.xml-progress-bar {
  height: 16px;
  margin: 18px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.xml-progress-bar[aria-valuenow] {
  position: relative;
}

.xml-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #2563eb);
  transition: width 260ms ease;
}

.xml-progress-card p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.xml-progress-status {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 8px;
  margin-bottom: 12px;
}

.xml-progress-status span {
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.xml-progress-status strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 13px;
}

.xml-progress-lanes {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fafc;
}

.xml-progress-lane > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.xml-progress-lane > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.xml-progress-lane i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 260ms ease;
}

.xml-progress-lane.is-activation i {
  background: #0f9f65;
}

.xml-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xml-progress-grid span {
  padding: 10px 12px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.xml-progress-grid strong {
  display: block;
  margin-top: 4px;
  color: #071834;
  font-size: 18px;
}

.xml-progress-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.xml-progress-overlay.is-error .xml-progress-percent {
  color: #b91c1c;
}

.xml-progress-overlay.is-error .xml-progress-bar span {
  background: #ef4444;
}

.xml-progress-overlay.is-minimized {
  inset: auto 18px 18px auto;
  width: min(390px, calc(100vw - 36px));
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.xml-progress-overlay.is-minimized .xml-progress-card {
  width: 100%;
  padding: 14px;
  border-color: #b8c8db;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.24);
  pointer-events: auto;
  cursor: pointer;
}

.xml-progress-overlay.is-minimized .xml-progress-head {
  align-items: center;
}

.xml-progress-overlay.is-minimized .xml-progress-head h3 {
  margin-top: 2px;
  font-size: 15px;
}

.xml-progress-overlay.is-minimized .xml-progress-eyebrow {
  font-size: 10px;
}

.xml-progress-overlay.is-minimized .xml-progress-percent {
  font-size: 24px;
}

.xml-progress-overlay.is-minimized .xml-progress-bar {
  height: 10px;
  margin: 10px 0;
}

.xml-progress-overlay.is-minimized .xml-progress-card > p,
.xml-progress-overlay.is-minimized .xml-progress-status,
.xml-progress-overlay.is-minimized .xml-progress-grid,
.xml-progress-overlay.is-minimized .xml-progress-actions {
  display: none;
}

.xml-progress-overlay.is-minimized .xml-progress-lanes {
  gap: 7px;
  margin: 0;
  padding: 9px;
}

.xml-progress-overlay.is-minimized .xml-progress-lane > span {
  margin-bottom: 3px;
  font-size: 11px;
}

.xml-progress-overlay.is-minimized .xml-progress-lane > div {
  height: 6px;
}

@media (max-width: 600px) {
  .xml-progress-overlay {
    padding: 10px;
  }

  .xml-progress-card {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 16px;
  }

  .xml-progress-overlay.is-minimized {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 0;
  }

  .xml-progress-overlay.is-minimized .xml-progress-card {
    max-height: none;
    overflow: visible;
  }

  .xml-progress-status,
  .xml-progress-grid {
    grid-template-columns: 1fr;
  }
}

.xml-warning.is-ready {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.xml-job-actions {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 0;
}

.xml-log-section {
  margin-top: 12px;
  border-top: 1px solid #dfe5ee;
  padding-top: 14px;
}

.xml-log-section h3 {
  margin-bottom: 9px;
}

.xml-log-row {
  min-height: 38px;
  padding: 7px 10px;
  border-left: 3px solid #ef4444;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  grid-template-columns: 150px 180px 70px minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 10px;
}

.xml-log-row.is-success {
  border-left-color: #10b981;
}

.xml-log-row.is-warning {
  border-left-color: #f59e0b;
}

.xml-log-row small {
  overflow-wrap: anywhere;
}

.xml-empty-log {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #1f2937;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.quick-dialog {
  width: min(430px, calc(100% - 32px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.quick-dialog::backdrop {
  background: rgba(17, 24, 39, 0.35);
}

.dialog-panel {
  padding: 18px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head strong {
  font-size: 17px;
}

.icon-close {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-body p {
  margin: 14px 0 0;
  color: #607087;
  line-height: 1.45;
  font-weight: 600;
}

.quick-dialog.store-dialog {
  width: min(980px, calc(100% - 32px));
}

.quick-dialog.diagnostics-dialog {
  width: min(1120px, calc(100% - 32px));
}

.quick-dialog.order-detail-dialog {
  width: min(780px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

.order-detail-dialog .dialog-panel {
  padding: 0;
}

.order-detail-dialog .dialog-head {
  min-height: 70px;
  padding: 14px 20px;
  background: #ff7900;
  color: #ffffff;
}

.order-detail-dialog .dialog-head strong {
  font-size: 18px;
}

.order-detail-dialog .icon-close {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.order-detail-dialog .dialog-body {
  max-height: calc(100vh - 94px);
  overflow: auto;
  background: #ffffff;
}

.order-detail-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-detail-title small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.88;
}

.order-detail-content {
  padding: 20px;
}

.order-detail-section + .order-detail-section {
  margin-top: 18px;
}

.order-detail-section h3 {
  margin: 0 0 9px;
  color: #7c8ba1;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 900;
  text-transform: uppercase;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.order-detail-price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-detail-metric {
  min-width: 0;
  padding: 11px 13px;
  border-right: 1px solid #e5ebf3;
  border-bottom: 1px solid #e5ebf3;
}

.order-detail-metric span {
  display: block;
  margin-bottom: 5px;
  color: #8492a7;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-detail-metric strong {
  display: block;
  color: #17243a;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-detail-metric.is-sale strong {
  color: #ef5a00;
}

.order-detail-metric.is-net strong {
  color: #087f5b;
}

.order-detail-metric.is-estimate strong {
  color: #a16207;
}

.order-detail-items {
  border: 1px solid #dce5f1;
  border-radius: 8px;
  overflow: hidden;
}

.order-detail-item {
  padding: 13px;
  background: #ffffff;
}

.order-detail-item + .order-detail-item {
  border-top: 1px solid #dce5f1;
}

.order-detail-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.order-detail-item-head strong {
  color: #17243a;
  font-size: 13px;
  line-height: 1.4;
}

.order-detail-item-head > span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 5px;
  background: #e9f7ef;
  color: #087f5b;
  font-size: 10px;
  font-weight: 900;
}

.order-detail-item-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 8px;
  color: #65758b;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.order-detail-item-finance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid #e5ebf3;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
}

.order-detail-footnote {
  margin: 7px 0 0 !important;
  color: #8492a7 !important;
  font-size: 10px;
  font-weight: 600 !important;
}

.order-detail-campaigns {
  border: 1px solid #dce5f1;
  border-radius: 8px;
  overflow: hidden;
}

.order-detail-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
}

.order-detail-campaign + .order-detail-campaign {
  border-top: 1px solid #e5ebf3;
}

.order-detail-campaign div {
  min-width: 0;
}

.order-detail-campaign strong,
.order-detail-campaign small {
  display: block;
  overflow-wrap: anywhere;
}

.order-detail-campaign strong {
  color: #17243a;
  font-size: 12px;
}

.order-detail-campaign small,
.order-detail-campaign span {
  color: #7c8ba1;
  font-size: 10px;
}

.order-detail-campaign b {
  color: #ef5a00;
  font-size: 12px;
}

.order-detail-customer {
  padding: 13px;
  border: 1px solid #a7e8c0;
  border-radius: 8px;
  background: #eefcf4;
}

.order-detail-customer strong {
  color: #17243a;
  font-size: 13px;
}

.order-detail-customer p {
  margin: 6px 0 0;
  color: #526178;
  font-size: 12px;
  font-weight: 600;
}

.order-detail-customer small {
  display: block;
  margin-top: 7px;
  color: #526178;
  font-size: 10px;
}

.order-detail-source {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #7c8ba1;
  font-size: 10px;
  font-weight: 700;
}

.order-detail-loading,
.order-detail-error {
  min-height: 240px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.order-detail-loading strong,
.order-detail-error strong {
  color: #17243a;
  font-size: 15px;
}

.order-detail-loading small {
  color: #7c8ba1;
  font-weight: 700;
}

.order-detail-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: order-detail-spin 0.8s linear infinite;
}

.order-detail-error p {
  margin: 0;
  color: #be123c;
}

.order-detail-retry {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.order-detail-empty {
  margin: 0 !important;
  padding: 14px;
  color: #7c8ba1 !important;
  font-size: 11px;
}

@keyframes order-detail-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .order-detail-content {
    padding: 14px;
  }

  .order-detail-price-grid,
  .order-detail-item-finance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-detail-campaign {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .order-detail-campaign > span {
    display: none;
  }

  .order-detail-source {
    flex-direction: column;
  }
}

.diag-note {
  margin: 14px 0;
}

.diag-table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.diag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.diag-table th,
.diag-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e8edf5;
  text-align: left;
  vertical-align: top;
}

.diag-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
}

.diag-table td {
  color: #475569;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.store-manager {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
  margin-top: 16px;
}

.store-marketplace-groups {
  display: grid;
  max-height: 520px;
  align-content: start;
  gap: 9px;
  padding-right: 4px;
  overflow-y: auto;
}

.store-picker {
  align-self: start;
  width: 100%;
}

.store-picker-summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fbfcff;
  color: #26364a;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.store-picker-summary::-webkit-details-marker {
  display: none;
}

.store-picker-summary:hover {
  border-color: #b9c8dc;
  background: #f7faff;
}

.store-picker-label strong,
.store-picker-label small {
  display: block;
}

.store-picker-label strong {
  font-size: 14px;
  font-weight: 900;
}

.store-picker-label small {
  margin-top: 4px;
  color: #7b8799;
  font-size: 11px;
  font-weight: 800;
}

.store-picker-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

.store-picker[open] .store-picker-summary {
  border-radius: 8px 8px 0 0;
}

.store-picker[open] .store-picker-arrow {
  transform: rotate(180deg);
}

.store-picker .store-list {
  max-height: 280px;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  overflow-y: auto;
}

.store-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 520px;
  overflow: auto;
  padding-right: 3px;
}

.store-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e6ebf3;
  border-radius: 8px;
  background: #fbfcff;
}

.store-row strong,
.store-row span,
.store-row small {
  display: block;
}

.store-row strong {
  margin-bottom: 4px;
  color: #26364a;
  font-size: 13px;
  font-weight: 900;
}

.store-row span {
  color: #57657a;
  font-size: 12px;
  font-weight: 800;
}

.store-row small {
  margin-top: 4px;
  color: #8894a6;
  font-size: 11px;
  font-weight: 700;
}

.store-row-actions {
  display: flex;
  gap: 7px;
}

.store-row-actions button,
.store-secret-line button {
  min-width: 52px;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.store-row-actions .store-reveal-button {
  min-width: 112px;
  background: #e0f2fe;
  color: #0369a1;
}

.store-row-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.store-secret-panel {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid #dbe3ef;
}

.store-secret-panel[hidden] {
  display: none;
}

.store-secret-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.store-secret-heading strong {
  margin: 0;
}

.store-secret-heading small {
  margin: 0;
  color: #64748b;
}

.store-secret-line {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-top: 1px dashed #dbe3ef;
}

.store-secret-line > span {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.store-secret-line code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 12px;
}

.store-secret-line button {
  background: #dcfce7;
  color: #166534;
}

.empty-store-list {
  margin: 0;
  padding: 18px 12px;
  border: 1px dashed #d8e0ec;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.store-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid #e6ebf3;
  border-radius: 9px;
  background: #ffffff;
}

.form-title {
  grid-column: 1 / -1;
  color: #26364a;
  font-size: 15px;
  font-weight: 900;
}

.form-message {
  grid-column: 1 / -1;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
}

.form-note {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.credential-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.credential-fields.is-hidden {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.check-field span {
  color: #5d6a7d;
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #26364a;
  padding: 0 10px;
  font: inherit;
  font-weight: 700;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 111, 237, 0.12);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.submit-store {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.submit-store:hover {
  background: #2464de;
}

@media (max-width: 1450px) {
  .app-layout {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .orders-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 1080px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .management-sidebar {
    position: static;
  }

  .side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .side-menu-separator {
    display: none;
  }
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .management-sidebar {
    position: static;
  }

  .side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .side-menu-separator {
    display: none;
  }

  .orders-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .store-manager,
  .store-form,
  .credential-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .auth-gateway {
    place-items: start center;
    padding: 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 190px;
    padding: 28px 30px;
  }

  .auth-brand-mark {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    font-size: 25px;
  }

  .auth-brand-panel h1 {
    max-width: none;
    font-size: 24px;
  }

  .auth-security-note {
    margin-top: 20px;
    padding-top: 0;
  }

  .auth-form-panel {
    padding: 34px 30px 28px;
  }

  .orders-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .auth-gateway {
    padding: 0;
    background: #ffffff;
  }

  .auth-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-brand-panel {
    min-height: 170px;
    padding: 24px;
  }

  .auth-form-panel {
    padding: 30px 24px 24px;
  }

  .auth-form-heading h2 {
    font-size: 23px;
  }

  .topbar {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .brand {
    min-width: 0;
  }

  .brand h1 {
    font-size: 19px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
    align-items: stretch;
  }

  .action {
    min-width: 0;
    width: 100%;
    padding: 0 10px;
  }

  .sync-indicator {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .panel-shell {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .app-layout {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-top: 14px;
  }

  .side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-submenu {
    width: min(220px, calc(100vw - 48px));
  }

  .filters {
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .filter-label {
    justify-self: start;
    line-height: 1.2;
  }

  .choice-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .choice {
    flex: 0 0 auto;
  }

  .orders-grid {
    display: block;
    min-width: 0;
  }

  .order-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 440px;
  }

  .order-card + .order-card {
    margin-top: 16px;
  }

  .detail,
  .product-box,
  .tracking {
    min-width: 0;
    max-width: 100%;
  }

  .address-text,
  .product-name,
  .sku {
    display: block;
    overflow: visible;
    white-space: normal;
    -webkit-line-clamp: unset;
  }

  .card-top {
    display: block;
  }

  .order-id-line {
    flex-wrap: wrap;
  }

  .order-id {
    white-space: normal;
  }

  .status-badge {
    display: inline-block;
    margin-top: 8px;
  }

  .xml-view-head,
  .xml-band-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .xml-view-head .xml-button,
  .xml-band-title .xml-button {
    width: 100%;
  }

  .xml-stock-delta-status {
    align-items: stretch;
    flex-direction: column;
  }

  .xml-stock-delta-status .xml-button {
    width: 100%;
  }

  .xml-head-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .xml-search-box {
    grid-template-columns: 1fr;
  }

  .xml-search-box .xml-button {
    width: 100%;
  }

  .xml-add-box {
    grid-template-columns: 1fr;
  }

  .xml-add-box .xml-button {
    width: 100%;
  }

  .xml-count-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .xml-count-card div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .xml-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xml-stats > div:last-child {
    grid-column: 1 / -1;
  }

  .xml-price-controls,
  .xml-stock-settings,
  .xml-price-platform,
  .xml-price-fields,
  .xml-price-range,
  .xml-store-pricing-toolbar,
  .xml-mapping-row,
  .xml-transfer-band,
  .xml-transfer-platform {
    grid-template-columns: 1fr;
  }

  .xml-store-pricing-actions,
  .xml-store-pricing-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .xml-store-pricing-actions .xml-button,
  .xml-store-pricing-footer .xml-button,
  .xml-default-settings-actions .xml-button {
    width: 100%;
    min-width: 0;
  }

  .xml-product-row {
    grid-template-columns: 24px 64px minmax(0, 1fr);
    align-items: start;
  }

  .xml-product-image {
    width: 64px;
  }

  .xml-product-main {
    grid-column: 3;
  }

  .xml-product-overrides {
    grid-template-columns: 1fr;
  }

  .xml-product-tools {
    grid-template-columns: 1fr;
  }

  .xml-product-stock {
    grid-column: 2;
  }

  .xml-product-price {
    grid-column: 3;
  }

  .xml-market-price.trendyol {
    grid-column: 2;
  }

  .xml-market-price.hepsiburada {
    grid-column: 3;
  }

  .xml-log-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (min-width: 641px) and (max-width: 1080px) {
  .xml-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xml-price-controls {
    grid-template-columns: 1fr;
  }

  .xml-store-pricing-toolbar {
    grid-template-columns: minmax(220px, 0.8fr) minmax(200px, 1fr);
  }

  .xml-store-pricing-actions {
    grid-column: 1 / -1;
  }

  .xml-price-platform {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .xml-price-fields {
    grid-template-columns: 34px repeat(3, minmax(110px, 1fr));
  }

  .xml-price-range {
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xml-mapping-row {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(180px, 0.8fr));
  }

  .xml-transfer-band {
    grid-template-columns: 1fr;
  }

  .xml-product-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xml-product-tools .xml-button:last-child {
    grid-column: 1 / -1;
  }

  .xml-product-row {
    grid-template-columns: 24px 70px repeat(4, minmax(80px, 1fr));
    align-items: center;
  }

  .xml-product-image {
    width: 70px;
  }

  .xml-product-main {
    grid-column: 3 / -1;
  }

  .xml-product-stock {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .product-box.has-product-image {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 9px;
  }

  .order-product-image {
    width: 60px;
    height: 60px;
  }

  .order-image-lightbox {
    padding: 16px;
  }

  .order-image-lightbox-panel {
    max-width: 96vw;
    padding: 10px;
  }

  .order-image-lightbox-panel img {
    max-width: calc(96vw - 20px);
    max-height: calc(90vh - 62px);
  }

  .order-image-lightbox-close {
    top: -12px;
    right: -8px;
  }
}

@media (max-width: 640px) {
  .xml-view.is-hepsiburada-only .xml-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xml-view.is-hepsiburada-only .xml-mapping-row,
  .xml-view.is-hepsiburada-only .xml-product-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1080px) {
  .xml-view.is-hepsiburada-only .xml-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xml-view.is-hepsiburada-only .xml-mapping-row {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr);
  }

  .xml-view.is-hepsiburada-only .xml-product-row {
    grid-template-columns: 24px 70px repeat(3, minmax(80px, 1fr));
  }
}
