/* Orion Admin — Premium SaaS design system */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-soft: #f1f5f9;
  --primary: #0f766e;
  --primary-hover: #0d9488;
  --primary-soft: rgba(15, 118, 110, 0.08);
  --primary-ring: rgba(15, 118, 110, 0.22);
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, 0.1);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.1);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.06);
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: auto;
  --space: 8px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --ty: #f27a1a;
  --hb: #ff6000;
  --n11: #6b2d8a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ——— Shell ——— */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns var(--ease);
}

.app-shell.sidebar-collapsed,
html.sidebar-collapsed-boot .app-shell {
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}

html.sidebar-collapsed-boot .brand-text,
html.sidebar-collapsed-boot .nav-label,
html.sidebar-collapsed-boot .nav-group-label,
html.sidebar-collapsed-boot .sidebar-user-meta,
html.sidebar-collapsed-boot .sidebar-logout,
html.sidebar-collapsed-boot .sidebar-search,
html.sidebar-collapsed-boot .sidebar-search-empty {
  display: none !important;
}

html.sidebar-collapsed-boot .nav-list a,
html.sidebar-collapsed-boot .nav-settings {
  justify-content: center;
  padding: 10px;
}

html.sidebar-collapsed-boot .brand-row {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

html.sidebar-collapsed-boot .brand {
  justify-content: center;
}

html.sidebar-collapsed-boot .sidebar-user {
  justify-content: center;
  padding: 8px;
}

html.sidebar-collapsed-boot .sidebar-user-link {
  justify-content: center;
  margin: 0;
  padding: 0;
  flex: 0;
}

/* ——— Sidebar ——— */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--card);
  border-right: 1px solid var(--border);
  z-index: 40;
  overflow: hidden;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 12px;
  gap: 8px;
  overflow: hidden;
}

/* Dar menü tooltip'leri taşabilsin */
.app-shell.sidebar-collapsed .sidebar,
html.sidebar-collapsed-boot .sidebar {
  overflow: visible;
  z-index: 120;
}

.app-shell.sidebar-collapsed .sidebar-inner,
html.sidebar-collapsed-boot .sidebar-inner {
  overflow: visible;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 12px;
  flex-shrink: 0;
}

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

.brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.brand-mark-img {
  background: transparent;
  padding: 4px;
}
.brand-mark-img img {
  width: 100%;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.brand-text span {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-toggle {
  flex-shrink: 0;
}

.sidebar-search {
  position: relative;
  flex-shrink: 0;
  margin: 0 4px 10px;
}
.sidebar-search > svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
}
.sidebar-search-input {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 34px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  color: var(--text, #0f172a);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-search-input::placeholder {
  color: var(--text-muted, #94a3b8);
}
.sidebar-search-input:focus {
  border-color: var(--orion, #0f766e);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orion, #0f766e) 16%, transparent);
}
.sidebar-search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.sidebar-search-clear:hover {
  color: var(--text, #0f172a);
  background: rgba(15, 23, 42, 0.06);
}
.sidebar-search-clear svg {
  width: 14px;
  height: 14px;
}
.sidebar-search-empty {
  margin: 0 8px 8px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}
.sidebar-nav .nav-group.is-search-hidden,
.sidebar-nav .nav-list > li.is-search-hidden {
  display: none !important;
}

.sidebar-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 4px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar-nav:hover {
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 99px;
}

.sidebar-nav:hover::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.35);
}

.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 10px 8px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list a,
.nav-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.nav-list a:hover,
.nav-settings:hover {
  background: var(--bg);
  color: var(--text);
}

.nav-list a.active,
.nav-settings.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg,
.nav-list a svg,
.nav-settings svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.nav-label {
  white-space: nowrap;
}

.sidebar-foot {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg);
}

.sidebar-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  margin: -4px;
  padding: 4px;
  transition: background 140ms ease;
}

.sidebar-user-link:hover {
  background: rgba(15, 118, 110, 0.08);
  color: inherit;
}

.avatar,
.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

a.topbar-avatar:hover {
  color: var(--primary);
  filter: brightness(0.97);
}

.sidebar-user-meta {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-mail {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell.sidebar-collapsed .sidebar-inner {
  padding: 12px 8px;
}

.app-shell.sidebar-collapsed .brand-row {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-shell.sidebar-collapsed .brand {
  justify-content: center;
}

.app-shell.sidebar-collapsed .brand-text,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-group-label,
.app-shell.sidebar-collapsed .sidebar-user-meta,
.app-shell.sidebar-collapsed .sidebar-logout,
.app-shell.sidebar-collapsed .sidebar-search,
.app-shell.sidebar-collapsed .sidebar-search-empty {
  display: none !important;
}

.app-shell.sidebar-collapsed .sidebar-user-link {
  justify-content: center;
  margin: 0;
  padding: 0;
  flex: 0;
}

.app-shell.sidebar-collapsed .nav-list a,
.app-shell.sidebar-collapsed .nav-settings,
html.sidebar-collapsed-boot .nav-list a,
html.sidebar-collapsed-boot .nav-settings {
  justify-content: center;
  padding: 10px;
  position: relative;
}

.app-shell.sidebar-collapsed .sidebar-user {
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-nav {
  gap: 16px;
}

/* Dar menü tooltip (JS body'ye taşır — overflow kesmez) */
.sidebar-float-tip {
  position: fixed;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  z-index: 10000;
  pointer-events: none;
}

.sidebar-float-tip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #0f172a;
}

.ty-suggest {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ty-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.ty-suggest-item:hover {
  background: #f1f5f9;
}

.ty-attr-fields {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg);
}

/* ——— Main / Topbar ——— */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-toggle:hover {
  background: #f8fafc;
}

.sidebar-backdrop {
  display: none;
}

.topbar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.tb-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
}

.tb-btn-ico svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

.tb-btn-add {
  color: #e11d48;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.tb-btn-add .tb-btn-ico {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.tb-btn-add:hover {
  background: rgba(225, 29, 72, 0.04);
  border-color: rgba(225, 29, 72, 0.55);
  color: #be123c;
}

.tb-add-caret {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2 !important;
  opacity: 0.75;
  margin-left: -2px;
}

.tb-add-menu {
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  margin-top: 6px !important;
}

.tb-add-menu .dropdown-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.tb-add-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.tb-add-menu .dropdown-item svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.tb-add-menu .dropdown-item:hover,
.tb-add-menu .dropdown-item:focus {
  background: var(--primary-soft);
  color: var(--primary);
}

.tb-add-menu .dropdown-item:hover svg,
.tb-add-menu .dropdown-item:focus svg {
  color: var(--primary);
}

.tb-add-menu .dropdown-divider {
  margin: 4px 6px;
}

.catalog-add-form .form-control.is-spotlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.tb-btn-sale {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.25);
}

.tb-btn-sale .tb-btn-ico {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tb-btn-sale:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.tb-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.tb-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.tb-icon-btn:hover {
  background: var(--bg);
  color: var(--text);
  border-color: #d1d5db;
}

.tb-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.tb-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 3px 10px 3px 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background var(--ease), border-color var(--ease);
  max-width: 200px;
}

.tb-profile:hover {
  background: var(--bg);
  border-color: #d1d5db;
  color: inherit;
}

.tb-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.tb-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.tb-profile-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-profile-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.period-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.content {
  min-width: 0;
  padding: 24px 32px 40px;
  animation: fadeIn 220ms ease both;
}

/* Opacity-only: any transform on ancestors breaks Bootstrap position:fixed modals */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Ensure modals always center on the viewport */
.modal {
  position: fixed;
  z-index: 1055;
}

.modal-dialog {
  margin: 1.75rem auto;
}

.modal.fade .modal-dialog {
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal.show .modal-dialog {
  transform: none;
}

#orionConfirmModal {
  z-index: 1080;
}
.modal-backdrop.orion-confirm-backdrop {
  z-index: 1075;
}

/* ——— Panels / Cards ——— */
.panel,
.toolbar-card,
.order-filters,
.bulk-actions,
.product-card,
.kpi,
.dash-panel,
.channel,
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  margin-bottom: 24px;
  animation: cardIn 220ms ease both;
}

.panel-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}

.panel-hd h2,
.dash-panel-hd h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.panel-sub,
.dash-panel-hd p,
.filter-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.panel-bd {
  padding: 24px;
}

.panel-bd.p-0 {
  padding: 0;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-orion {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.btn-orion:hover,
.btn-orion:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.btn-orion:disabled,
.btn-orion.is-loading {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  opacity: 0.85;
  box-shadow: none;
  position: relative;
}

.btn-orion .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: orion-spin 0.7s linear infinite;
  vertical-align: -3px;
  margin-left: 8px;
}

.btn-orion.is-loading .btn-spinner {
  display: inline-block;
}

.btn-orion.is-loading .btn-label {
  opacity: 0.92;
}

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

html.orion-busy-lock,
html.orion-busy-lock body {
  overflow: hidden;
}

.orion-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  padding: 24px;
}

.orion-busy-overlay.is-on {
  display: flex;
}

.orion-busy-card {
  width: min(360px, 100%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.orion-busy-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid #e2e8f0;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: orion-spin 0.75s linear infinite;
}

.orion-busy-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
}

.orion-busy-msg {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #64748b;
}

.orion-toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 32px));
}

.orion-toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  color: #fff;
  background: #0f766e;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.orion-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.orion-toast.is-out {
  opacity: 0;
  transform: translateY(-6px);
}

.orion-toast-success {
  background: #0f766e;
}

.orion-toast-error {
  background: #b91c1c;
}

.orion-toast-info {
  background: #334155;
}

.btn-ghost {
  background: #fff;
  color: var(--text) !important;
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: #d1d5db;
  color: var(--text) !important;
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: var(--danger) !important;
  border-color: transparent;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.16);
}

.btn-danger {
  color: #fff !important;
  background: #dc2626;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff !important;
}

.settings-radio-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 0;
  cursor: pointer;
  height: 100%;
}

.settings-radio-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.btn-icon:hover:not(:disabled) {
  background: var(--bg);
  color: var(--text);
  border-color: #d1d5db;
}

.btn-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.btn-icon-sm svg {
  width: 14px;
  height: 14px;
}

/* ——— Forms ——— */
.form-label,
.fg-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.attr-req {
  color: #dc2626;
  margin-left: 4px;
  font-weight: 700;
}

.form-control,
.form-select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 14px;
  color: var(--text);
  box-shadow: none !important;
  transition: border-color var(--ease), box-shadow var(--ease);
}

textarea.form-control {
  height: auto;
  padding: 12px;
  min-height: 96px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-ring) !important;
}

.form-control:disabled,
.form-select:disabled {
  background: var(--bg);
  color: var(--text-muted);
}

.fg-item {
  min-width: 0;
}

.filter-grid,
.form-grid,
.product-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ty-send-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ty-send-top-grid .fg-item {
  margin: 0;
}

.ty-send-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  color: var(--muted, #64748b);
}

.ty-send-loading[hidden] {
  display: none !important;
}

.ty-send-loading-spin {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--orion, #2563eb);
  border-radius: 50%;
  animation: orion-spin 0.7s linear infinite;
}

#tySendModal .modal-body {
  position: relative;
}

.fg-span-2 {
  grid-column: span 2;
}

.fg-span-3 {
  grid-column: span 3;
}

.fg-span-full {
  grid-column: 1 / -1;
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.filters,
.toolbar-card,
.product-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.order-filters {
  margin-bottom: 16px;
  padding: 0;
}

.order-filters .panel-hd {
  padding: 20px 24px 0;
}

.order-filters .panel-bd {
  padding: 20px 24px 24px;
}

.order-filter-hd {
  align-items: center;
}

/* ——— Badges ——— */
.badge-soft {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--success-soft);
  color: #059669;
}

.badge-soft.warn {
  background: var(--warning-soft);
  color: #d97706;
}

.badge-soft.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-soft.muted {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.badge-soft.info {
  background: var(--info-soft);
  color: #2563eb;
}

.badge-soft.purple {
  background: var(--purple-soft);
  color: #7c3aed;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: #f1f5f9;
  color: var(--text-secondary);
}

.status-pill.new,
.status-pill.Created {
  background: var(--info-soft);
  color: #2563eb;
}

.status-pill.Picking {
  background: var(--warning-soft);
  color: #d97706;
}

.status-pill.Shipped {
  background: var(--purple-soft);
  color: #7c3aed;
}

.status-pill.Delivered,
.status-pill.answered,
.status-pill.active {
  background: var(--success-soft);
  color: #059669;
}

.status-pill.WaitingPayment {
  background: #fff7ed;
  color: #c2410c;
}

.status-pill.Cancelled,
.status-pill.out_of_stock {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.open {
  background: var(--warning-soft);
  color: #d97706;
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.mp-badge-img img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
}

.mp-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mp-channel img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.mp-channel-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #e2e8f0;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}
.mp-store-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.order-select-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding-left: 8px !important;
  padding-right: 4px !important;
  white-space: nowrap;
}
.order-select-cell .dropdown {
  display: inline-flex;
}
.order-expand-btn {
  margin-left: 2px;
}
.order-expand-btn .order-caret {
  pointer-events: none;
}
.order-action-cell {
  vertical-align: middle;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.order-aksiyon-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}
.order-packed-mark.is-muted,
.order-cargo-co.is-muted,
.order-label-print.is-muted,
.order-invoice-mark.is-muted,
.order-pack-empty {
  background: #f1f5f9;
  color: #cbd5e1;
}
.order-packed-mark.is-active {
  background: #ecfdf5;
  color: #047857;
}
.order-packed-mark.is-muted .order-packed-check {
  display: none;
}

/* ——— Tables ——— */
.table-shell,
.table-responsive {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pager-left,
.pager-right,
.pager-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager-label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pager-select {
  height: 36px;
  min-width: 64px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.pager-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.pager-btn svg {
  width: 16px;
  height: 16px;
}

.pager-btn:hover:not(.is-disabled):not(.is-active) {
  background: var(--bg);
  border-color: #d1d5db;
}

.pager-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pager-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pager-ellipsis {
  width: 28px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.pager-goto-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pager-goto-input {
  width: 56px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.pager-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pager-go svg {
  width: 14px;
  height: 14px;
}

.pager-go:hover {
  color: var(--primary-hover);
}

@media (max-width: 900px) {
  .pager {
    flex-direction: column;
    align-items: stretch;
  }

  .pager-center {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pager-left,
  .pager-right {
    justify-content: space-between;
  }
}

.table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  border-top: none;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.table td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  background: #fff;
  transition: background var(--ease);
}

.table tbody tr:hover > td {
  background: #f8fafc;
}

.table tbody tr:last-child > td {
  border-bottom: none;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.mini-muted {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ——— Alerts ——— */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.alert-orion {
  background: var(--success-soft);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

/* ——— Dashboard v2 (reference layout) ——— */
.dash-v2 {
  gap: 16px;
}

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

.dash-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dash-stat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat-ico svg {
  width: 18px;
  height: 18px;
}

.ico-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.ico-orange { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.ico-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.ico-teal { background: rgba(15, 118, 110, 0.12); color: #0f766e; }
.ico-purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.ico-red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.ico-dark { background: #f1f5f9; color: #0f172a; }

.dash-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}

.dash-stat-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dash-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 0;
}

.dash-toolbar-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.dash-toolbar .fg-item {
  min-width: 160px;
}

.dash-toolbar .fg-item label {
  margin-bottom: 6px;
}

.dash-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dash-period-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.dash-period-item {
  min-width: 0;
}

.dash-period-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-period-pill {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dash-period-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dash-period-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.dash-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-date-range .form-control {
  min-width: 140px;
}

.dash-custom-range {
  min-width: 280px;
}

.dash-mp-period-badge {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f8fafc);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dash-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

.dash-chart-card {
  margin-bottom: 0;
  padding: 20px 24px 16px;
}

.dash-chart-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.dash-tab {
  border: none;
  background: transparent;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.dash-tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.dash-chart-hero {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.dash-hero-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-hero-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.dash-hero-delta.up { color: var(--success); }
.dash-hero-delta.down { color: var(--danger); }

.dash-chart-legend {
  margin-bottom: 8px;
}

.lg-current { background: #2563eb; }
.lg-prev { background: #f87171; }

.dash-chart-wrap {
  height: 260px;
  padding: 0 !important;
}

.dash-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 14px;
}

.metric-tile-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.metric-tile-ico svg {
  width: 14px;
  height: 14px;
}

.metric-tile-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.metric-tile-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-pair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pair-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
}

.pair-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pair-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.pair-row strong {
  color: var(--text);
  font-weight: 600;
}

.dash-mini-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mini-metric {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.mini-metric span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mini-metric strong {
  font-size: 14px;
  font-weight: 700;
}

.dash-messages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.msg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 0;
}

.msg-card img {
  border-radius: 6px;
}

.msg-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.msg-value {
  font-size: 16px;
  font-weight: 700;
}

.dash-products-panel {
  margin-bottom: 0;
}

.dash-mp-sales-panel {
  margin-bottom: 0;
}

.dash-mp-sales-hd {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-mp-sales-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-mp-sales-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-mp-sales-ico svg {
  width: 18px;
  height: 18px;
}

.dash-mp-sales-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-mp-sales-filters .form-control {
  width: auto;
  min-width: 150px;
  height: 40px;
}

.dash-mp-sep {
  color: var(--text-muted);
  font-size: 13px;
}

.dash-mp-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 240px;
}

.dash-waterfall-wrap {
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 320px;
}

.dash-waterfall-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 4px;
}

.dash-waterfall-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.3;
}

.dash-waterfall-main-wrap {
  height: 320px;
  min-height: 280px;
}

.reports-filters {
  margin-bottom: 20px;
}

.kasa-report-kpis {
  margin-bottom: 20px;
}

.reports-filters .panel-bd {
  padding: 18px 20px;
}

.reports-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
}

.reports-filters-grid-4 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reports-filters-grid .fg-item {
  margin: 0;
  min-width: 0;
}

.reports-filters-grid .fg-item label {
  display: block;
  margin-bottom: 6px;
}

.reports-filters-grid .form-control,
.reports-filters-grid .form-select {
  width: 100%;
}

.reports-filters-action .invisible {
  visibility: hidden;
  display: block;
  margin-bottom: 6px;
  height: 1.2em;
}

/* Stok Analizi (Paroner stock-analiz) */
.sa-page {
  padding-bottom: 2rem;
}
.stock-analysis-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}
.stock-analysis-title {
  margin: 10px 0 6px;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.stock-analysis-sub {
  color: #64748b;
  font-size: 0.92rem;
}
.stock-analysis-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: end;
  margin-top: 18px;
}
.stock-filter-field {
  min-width: 160px;
  flex: 0 1 200px;
}
.stock-filter-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.stock-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 1px;
}
.ai-wiz-nav {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 18px 0 16px;
  padding: 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}
.ai-wiz-nav li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-wiz-nav li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}
.ai-wiz-nav li.is-on {
  color: var(--primary, #0f766e);
}
.ai-wiz-nav li.is-on span {
  background: var(--primary, #0f766e);
  color: #fff;
}
.ai-wiz-nav li.is-done span {
  background: #d1fae5;
  color: #047857;
}
.ai-wiz-q {
  font-weight: 700;
  margin: 0 0 12px;
  color: #0f172a;
}
.ai-wiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.ai-wiz-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.ai-wiz-card {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
.ai-wiz-card span {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 12px;
  color: #64748b;
}
.ai-wiz-card:hover {
  border-color: #99f6e4;
}
.ai-wiz-card.is-on {
  border-color: var(--primary, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  background: #f0fdfa;
}
.ai-wiz-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.ai-wiz-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}
.ai-wiz-hint {
  font-weight: 500;
  font-size: 12px;
  color: #94a3b8;
}
.ai-wiz-q-sm {
  margin-top: 18px;
  font-size: 0.95rem;
}
.ai-wiz-stores {
  margin-top: 4px;
}
.ai-wiz-store span {
  text-transform: capitalize;
}
.ai-credit-stat {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}
.ai-credit-stat span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.ai-credit-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f766e;
}
.sa-hint {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}
.stock-formula-ex {
  color: #94a3b8;
}
.sa-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.sa-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.sa-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #0f172a;
}
.sa-card-sub {
  font-size: 0.78rem;
  color: #64748b;
}
.sa-card-foot {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.sa-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #475569;
  white-space: nowrap;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
}
.sa-table td {
  font-size: 0.84rem;
  vertical-align: middle;
}
.sa-product-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}
.sa-product-link:hover {
  color: #0f766e;
  text-decoration: underline;
}
.stock-sku-link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.stock-sku-link:hover {
  text-decoration: underline;
}
.sa-col-days,
.sa-days {
  background: #eff6ff;
}
.sa-days strong {
  color: #1d4ed8;
}
.sa-stock-zero {
  color: #dc2626;
  font-weight: 700;
}
.sa-table tr.is-critical .sa-days strong {
  color: #dc2626;
}
.sa-table tr.is-warn .sa-days strong {
  color: #d97706;
}
@media (max-width: 768px) {
  .stock-analysis-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .stock-filter-field {
    flex: 1 1 auto;
    min-width: 0;
  }
  .stock-filter-actions {
    width: 100%;
  }
  .stock-filter-actions .btn {
    flex: 1;
  }
  .sa-card-head {
    flex-direction: column;
  }
}

.ai-report-preview {
  line-height: 1.55;
}
.ai-report-preview h1 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.ai-report-preview h2 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.45rem;
  color: #0f766e;
}
.ai-report-preview h3 {
  font-size: 0.98rem;
  margin: 1rem 0 0.35rem;
}
.ai-report-preview .meta {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.ai-report-preview .kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}
.ai-report-preview .kpi div {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}
.ai-report-preview .kpi span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
}
.ai-report-preview .kpi strong {
  font-size: 1.05rem;
}
@media (max-width: 768px) {
  .ai-report-preview .kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ai-report-preview .ai-data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 8px 0 20px;
}
.ai-report-preview .ai-data th,
.ai-report-preview .ai-data td {
  border: 1px solid #e2e8f0;
  padding: 7px 8px;
  text-align: left;
}
.ai-report-preview .ai-data th {
  background: #f8fafc;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #64748b;
}
.ai-report-preview .ai-data a {
  color: #0f766e;
}

.rep-store-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rep-store-cell img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.rep-store-name {
  font-weight: 600;
  color: var(--text);
}

.rep-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.rep-product-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--border-soft);
  flex-shrink: 0;
}

.rep-product-img-link {
  display: inline-flex;
  flex-shrink: 0;
}

.rep-product-img-link:hover .rep-product-img {
  outline: 2px solid var(--primary-ring);
}

.js-rep-stock {
  font-variant-numeric: tabular-nums;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 4px 10px;
}

.js-rep-stock:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

@media (max-width: 1100px) {
  .reports-filters-grid,
  .reports-filters-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reports-filters-grid,
  .reports-filters-grid-4 {
    grid-template-columns: 1fr;
  }
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.perf-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: background var(--ease), border-color var(--ease);
}

.perf-card:hover {
  background: #fff;
  border-color: #d1d5db;
}

.perf-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.perf-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.perf-id {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.perf-sales {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text);
}

.perf-stock {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.placeholder-page .placeholder-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-page .placeholder-icon svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 1200px) {
  .dash-top-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-main {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .dash-top-stats,
  .dash-metric-grid,
  .dash-mini-row,
  .dash-messages,
  .perf-grid,
  .dash-pair-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy dashboard helpers kept for compatibility */
.dash {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.kpi {
  padding: 24px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  animation: cardIn 220ms ease both;
}

.kpi:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
  border-color: #dbe2ea;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.kpi-value span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.kpi-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.kpi-meta svg {
  width: 14px;
  height: 14px;
}

.kpi-meta.up {
  color: var(--success);
}

.kpi-meta.down {
  color: var(--danger);
}

.kpi-meta.muted {
  color: var(--text-muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
}

.dash-grid-bottom {
  grid-template-columns: 1.7fr 1fr;
}

.dash-panel {
  overflow: hidden;
  animation: cardIn 240ms ease both;
}

.dash-panel-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}

.dash-panel-bd {
  padding: 16px 24px 24px;
}

.chart-wrap {
  height: 280px;
  position: relative;
}

.chart-wrap-sm {
  height: 200px;
  position: relative;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.lg-rev {
  background: var(--primary);
}

.lg-profit {
  background: #94a3b8;
}

.mix-list {
  list-style: none;
  margin: 0;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mix-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.mix-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}

.mix-name img {
  border-radius: 4px;
}

.mix-val {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.mix-share {
  font-weight: 600;
  color: var(--text);
  min-width: 48px;
  text-align: right;
}

.top-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-product-cell img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
}

.top-product-cell code {
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  padding: 0;
}

.text-profit {
  color: var(--success);
  font-weight: 600;
}

.margin-bar {
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.margin-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.margin-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.summary-block:first-child {
  padding-top: 0;
}

.summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.summary-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.summary-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ——— Orders ——— */
.usage-bar-right {
  min-width: 220px;
}

.usage-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.usage-meta strong {
  color: var(--primary);
  font-weight: 600;
}

.usage-track {
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.usage-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.bulk-actions {
  margin-bottom: 16px;
}

.bulk-actions-bd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px !important;
}

.bulk-left,
.bulk-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-right form {
  margin: 0;
}

.bulk-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 8px 0 0;
}

.order-table-panel {
  overflow: visible;
}

.order-table-panel .table-shell {
  /* Yatay scroll kalsın; menü Popper fixed ile dışarı çıkar */
  overflow-x: auto;
  overflow-y: visible;
}

.order-table .order-row.is-menu-open {
  position: relative;
  z-index: 20;
}

.order-menu.dropdown-menu {
  z-index: 1090;
}

.order-table .order-row {
  cursor: pointer;
}

.order-table .order-row.is-open > td {
  background: #f0fdfa;
}

.order-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: transform var(--ease), background var(--ease), color var(--ease);
}

.order-caret svg {
  width: 16px;
  height: 16px;
}

.order-row.is-open .order-caret {
  transform: rotate(90deg);
  background: var(--primary-soft);
  color: var(--primary);
}

.order-link {
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.order-link:hover {
  text-decoration: underline;
}

.order-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(15, 23, 42, 0.45);
}
.order-drawer-backdrop[hidden] {
  display: none !important;
}
.order-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10021;
  width: min(440px, 100vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  pointer-events: auto;
}
.order-drawer[hidden] {
  display: none !important;
}
.order-drawer.is-open {
  transform: translateX(0);
}
html.order-drawer-open,
html.order-drawer-open body {
  overflow: hidden;
}
.order-drawer-hd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.order-drawer-hd-main {
  min-width: 0;
  flex: 1;
}
.order-drawer-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.order-drawer-hd h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  word-break: break-all;
}
.order-drawer-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.order-drawer-hd .btn-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.order-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: #f8fafc;
}
.od-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.od-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.od-metric {
  padding: 12px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  min-width: 0;
}
.od-metric span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.od-metric strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.od-metric strong small {
  font-size: 11px;
  font-weight: 600;
  margin-left: 2px;
}
.od-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}
.od-card h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.od-kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.od-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.4;
}
.od-row span {
  flex: 0 1 42%;
  color: var(--text-secondary);
}
.od-row strong {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}
.od-row a {
  color: var(--primary);
  font-weight: 600;
}
.od-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.od-addr-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.od-addr-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}
.od-addr-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.od-cargo-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.od-cargo-form label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.od-cargo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.od-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.od-product {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}
.od-product:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.od-product img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border-soft);
}
.od-product-main {
  min-width: 0;
  flex: 1;
}
.od-product-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.od-product-sku {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}
.od-product-price {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.od-product-price em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-secondary);
}
.od-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.od-chips span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}
.od-chips .pnl-profit {
  background: var(--success-soft);
  color: #059669;
}
.od-chips .pnl-loss {
  background: var(--danger-soft);
  color: var(--danger);
}

.order-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.order-status-icons svg {
  width: 13px;
  height: 13px;
}

.order-date-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-date-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-icon-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: default;
  z-index: 1;
}

.order-icon-tip svg {
  width: 14px;
  height: 14px;
}

.order-icon-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  top: auto;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: normal;
  max-width: 240px;
  width: max-content;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: opacity 120ms ease;
}

.order-icon-tip:hover {
  z-index: 50;
}

.order-icon-tip:hover::after {
  opacity: 1;
}

.order-ship-icon {
  background: #f1f5f9;
  color: #64748b;
}
.order-ship-today {
  background: #fef3c7;
  color: #92400e;
}
.order-ship-tomorrow {
  background: #dbeafe;
  color: #1d4ed8;
}
.order-ship-overdue {
  background: #fee2e2;
  color: #b91c1c;
}
.order-ship-shipped {
  background: #dbeafe;
  color: #1d4ed8;
}
.order-ship-icon.is-trackable {
  cursor: pointer;
  text-decoration: none;
}
.order-ship-icon.is-trackable:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
}
.order-ship-later {
  background: #ecfdf5;
  color: #047857;
}
.order-ship-none {
  background: #f1f5f9;
  color: #94a3b8;
}

.order-packed-mark {
  background: #ecfdf5;
  color: #047857;
}
.order-packed-glyph {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.order-packed-glyph > svg {
  width: 14px;
  height: 14px;
}
.order-packed-check {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px #fff;
}
.order-packed-check svg {
  width: 8px;
  height: 8px;
  stroke-width: 3;
}

.order-cargo-co {
  background: #eff6ff;
  color: #2563eb;
}

.order-label-print {
  text-decoration: none;
  color: inherit;
}
.order-label-print.is-pending {
  background: #fff7ed;
  color: #c2410c;
  cursor: pointer;
}
.order-label-print.is-printed {
  background: #ecfdf5;
  color: #047857;
  cursor: pointer;
}
.order-label-print.is-muted .order-packed-check {
  display: none;
}

.order-invoice-mark {
  text-decoration: none;
  color: inherit;
}
.order-invoice-mark.is-active {
  background: #ecfdf5;
  color: #047857;
}
.order-invoice-mark.is-muted .order-packed-check {
  display: none;
}

.order-packed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #047857;
  font-weight: 600;
}
.order-packed-badge svg {
  width: 14px;
  height: 14px;
  color: #059669;
}
.order-status-icons .order-packed-badge {
  margin-left: 4px;
}

.order-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pnl {
  display: inline-flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pnl small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.pnl-profit {
  color: var(--success);
}

.pnl-loss {
  color: var(--danger);
}

.accounting-ref {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.customer-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.customer-link:hover {
  text-decoration: underline;
}

.order-customer-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
}
a.customer-go {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.3;
}
a.customer-go:hover {
  text-decoration: underline;
}
.customer-addr-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0;
}
.customer-addr-btn svg {
  width: 14px;
  height: 14px;
}
.customer-addr-btn:hover {
  color: var(--primary);
  background: var(--primary-soft, rgba(15, 118, 110, 0.08));
  text-decoration: none;
}

.customer-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.customer-search-input {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.customer-search-input svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.customer-search-input input {
  padding-left: 38px;
}
.customer-table th {
  font-size: 0.78rem;
  white-space: nowrap;
}
.badge-soft.success {
  color: var(--success);
  background: var(--success-soft);
}

.address-pop {
  position: fixed;
  z-index: 1080;
  margin-top: 0;
  width: 420px;
  max-width: min(420px, calc(100vw - 24px));
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  animation: fadeUp 150ms ease both;
}

.order-actions-cell {
  position: static;
}

.address-pop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.address-pop-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.address-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.address-field {
  margin-bottom: 10px;
}

.address-field > span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.address-field > strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.address-text {
  white-space: pre-line;
  font-weight: 500 !important;
}

.address-mail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.order-detail-row > td {
  padding: 0 !important;
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border) !important;
}

.order-detail {
  padding: 8px 16px 20px 52px;
}

.order-lines {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.order-lines thead th {
  position: static;
  background: #fafbfc;
  font-size: 11px;
}

.order-lines td,
.order-lines th {
  padding: 12px 14px;
}

.line-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
}

.product-title-link {
  font-size: 13px;
}

.order-menu,
.product-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  padding: 6px;
  min-width: 220px;
}

.order-menu .dropdown-item,
.product-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 10px;
}

.order-menu .dropdown-item svg,
.product-menu .dropdown-item svg {
  width: 15px;
  height: 15px;
}

.order-menu .dropdown-item:disabled,
.product-menu .dropdown-item:disabled {
  opacity: 0.5;
}

.order-import-modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-height: calc(100vh - 3.5rem);
}

.ty-url-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.ty-url-preview .ty-url-cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
}
.ty-url-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ty-url-meta strong {
  font-size: 0.95rem;
  line-height: 1.3;
}
.ty-url-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}
.ty-url-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ty-url-thumbs img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.ty-url-brand-tabs {
  margin-top: 6px;
}

/* Uzun formlar: header/footer sabit, body kayar */
.modal-dialog-scrollable {
  height: calc(100% - 3.5rem);
  max-height: calc(100vh - 3.5rem);
}

.modal-dialog-scrollable .order-import-modal,
.modal-dialog-scrollable .modal-content.order-import-modal,
.product-form-modal {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#productFormModal .modal-dialog.modal-xl {
  max-width: min(1100px, calc(100vw - 24px));
  width: 100%;
}

.modal-dialog-scrollable .order-import-modal > form,
.modal-dialog-scrollable .modal-content.order-import-modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}

.modal-dialog-scrollable .order-import-modal .modal-body,
.modal-dialog-scrollable .modal-content.order-import-modal .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-scrollable .order-import-modal .modal-header,
.modal-dialog-scrollable .order-import-modal .modal-footer,
.modal-dialog-scrollable .modal-content.order-import-modal .modal-header,
.modal-dialog-scrollable .modal-content.order-import-modal .modal-footer {
  flex-shrink: 0;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  gap: 8px;
}

/* ——— Products ——— */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  isolation: auto;
}

.product-card {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 16px 20px;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
  animation: fadeIn 200ms ease both;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #dbe2ea;
  z-index: 2;
}

.product-card.is-menu-open,
.product-card.is-menu-open:hover {
  z-index: 200;
}

.product-card .dropdown-menu,
.product-menu {
  z-index: 1080;
}

.product-card-main {
  display: grid;
  grid-template-columns: 28px 64px minmax(180px, 1.2fr) auto auto 40px;
  gap: 16px;
  align-items: center;
}

.product-drag {
  width: 28px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.product-drag svg {
  width: 16px;
  height: 16px;
}

.product-media {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
}

.product-media img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: block;
}

.product-media:hover img {
  border-color: var(--primary);
}

.img-count {
  position: absolute;
  left: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.stock-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.product-main-menu {
  justify-self: end;
}

.product-info {
  min-width: 0;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.product-title {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title:hover {
  color: var(--primary);
}

.product-log-btn {
  flex-shrink: 0;
  opacity: 0.55;
  color: var(--text-secondary);
}

.product-log-btn:hover,
.product-card:hover .product-log-btn {
  opacity: 1;
  color: var(--primary);
}

.product-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-log-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

.product-log-item.is-fail {
  border-color: rgba(239, 68, 68, 0.25);
  background: var(--danger-soft);
}

.product-log-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.product-log-date small {
  display: block;
  font-weight: 500;
  opacity: 0.85;
}

.product-log-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.product-sub,
.product-cat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.product-sub code {
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text-secondary);
}

.product-cat svg {
  width: 12px;
  height: 12px;
}

.product-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.2;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-secondary);
}

.pf-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.pf-type-tab input {
  margin: 0;
}

.pf-type-tab:has(input:checked) {
  border-color: var(--orion, #0f766e);
  background: color-mix(in srgb, var(--orion, #0f766e) 10%, white);
}

.pf-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
}

.pf-section-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pf-section-hd > div {
  flex: 1 1 220px;
}

.pf-bundle-suggest {
  position: relative;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
  z-index: 5;
}

.pf-bundle-suggest-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  text-align: left;
}

.pf-bundle-suggest-item:last-child {
  border-bottom: 0;
}

.pf-bundle-suggest-item:hover {
  background: var(--bg);
}

.pf-bundle-suggest-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.pf-bundle-suggest-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.product-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--text);
  transition: background var(--ease), border-color var(--ease);
}

button.metric-chip {
  cursor: pointer;
}

.metric-chip:hover,
.listing-price:hover {
  background: var(--bg);
  border-color: #d1d5db;
}

.metric-chip svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

.metric-chip strong {
  font-weight: 600;
}

.metric-chip .up {
  color: var(--success);
  font-weight: 600;
  font-size: 11px;
}

.metric-chip .down {
  color: var(--danger);
  font-weight: 600;
  font-size: 11px;
}

.metric-chip .vat-rate {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}

.metric-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 2px;
}

.metric-chip .target {
  color: var(--text-secondary);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.product-channel-shortcuts {
  display: flex;
  gap: 6px;
}

.channel-shortcut-img {
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity var(--ease), border-color var(--ease), background var(--ease);
}

.channel-shortcut-img.on {
  opacity: 1;
}

.channel-shortcut-img:hover {
  background: var(--bg);
  border-color: #d1d5db;
}

.channel-shortcut-img img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.channel-shortcut-img i {
  width: 18px;
  height: 18px;
  color: var(--text);
}
.listing-mp-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.listing-mp-ico i {
  width: 18px;
  height: 18px;
}
.pos-profit-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.send-price-calc .pf-type-tab span {
  white-space: nowrap;
  font-size: 12px;
}
.pos-profit-preview {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
}
.send-price-calc {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
.send-price-cost {
  font-size: 13px;
  margin: 0;
}
.send-price-cost strong {
  font-size: 15px;
}
.send-price-cargo-row {
  align-items: flex-start;
  margin-top: 8px;
}
.send-price-cargo-row .form-label {
  margin-bottom: 6px;
}
.send-price-cargo-row .pos-profit-preview {
  font-weight: 700;
  font-size: 16px;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.product-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.listing-card {
  position: relative;
  z-index: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: background var(--ease), border-color var(--ease);
  overflow: visible;
}

.listing-card:hover {
  background: #fff;
  border-color: #d1d5db;
  z-index: 2;
}

.listing-card.is-menu-open,
.listing-card.is-menu-open:hover {
  z-index: 50;
}

.listing-dropdown-menu {
  z-index: 1090 !important;
}

.listing-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-mp-img {
  border-radius: 4px;
}

.sale-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  flex-shrink: 0;
}

.sale-dot.paused {
  background: var(--warning);
}

.sale-dot.pending {
  background: #3b82f6;
}

.sale-dot.off {
  background: #cbd5e1;
}

.sale-dot.closed {
  background: #dc2626;
}

.listing-closed-label {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
}

.ty-suggest-wide {
  max-height: 280px;
  overflow-y: auto;
}

.ty-suggest-wide .ty-suggest-item {
  white-space: normal;
  line-height: 1.35;
}

.listing-price {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.listing-price.muted {
  color: var(--text-muted);
  cursor: default;
  font-weight: 500;
}

.listing-row2 {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.listing-store {
  min-width: 0;
}

.listing-profit {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.listing-profit.is-pos {
  color: #15803d;
}

.listing-profit.is-neg {
  color: #b91c1c;
}

.listing-buybox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.listing-buybox-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 6px;
}

.listing-buybox.is-winner {
  color: #047857;
}

.buybox-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, #10b981 16%, transparent);
  border: 1px solid color-mix(in srgb, #10b981 35%, transparent);
  color: #047857;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.buybox-rank {
  font-weight: 700;
  color: var(--text);
}

.buybox-price {
  color: var(--text-muted);
}

.competition-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9a3412;
  background: color-mix(in srgb, #f97316 14%, transparent);
  border: 1px solid color-mix(in srgb, #f97316 30%, transparent);
  vertical-align: middle;
}

.listing-comp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--text-muted) 45%, transparent);
  cursor: pointer;
}
.listing-comp-btn i,
.listing-comp-btn svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.listing-comp-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 35%, transparent);
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.listing-comp-btn.is-on {
  color: #9a3412;
  background: color-mix(in srgb, #f97316 14%, transparent);
  border: 1px solid color-mix(in srgb, #f97316 30%, transparent);
}
.listing-comp-btn.is-on:hover {
  color: #7c2d12;
  background: color-mix(in srgb, #f97316 22%, transparent);
}

.comp-price-box .listing-comp-btn {
  margin-top: 8px;
}

.comp-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}
.comp-pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.comp-pick-row:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
}
.comp-pick-row.is-on {
  border-color: color-mix(in srgb, #f97316 30%, var(--border));
}
.comp-pick-row img {
  border-radius: 8px;
  flex-shrink: 0;
}
.comp-pick-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.comp-pick-meta strong {
  font-size: 14px;
  line-height: 1.3;
}
.comp-pick-row .listing-comp-btn {
  margin-top: 0;
  pointer-events: none;
}

.competition-help {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.competition-preview {
  margin-top: 8px;
  min-height: 1.2em;
}

.status-pill.comp-off {
  background: #f1f5f9;
  color: #64748b;
}

.comp-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.comp-toolbar .form-control {
  max-width: 360px;
}

.comp-table {
  font-size: 13px;
}
.comp-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.comp-table-row {
  cursor: pointer;
}
.comp-table-row:hover td {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}
.comp-table-title {
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.comp-table .comp-mp-logo {
  width: 28px;
  height: 28px;
}

.comp-track-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-track-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.comp-track-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.comp-track-head--modal {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.comp-mp-logo {
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}

.comp-track-meta {
  min-width: 0;
  flex: 1;
}

.comp-track-store {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.comp-track-product {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-top: 2px;
}

.comp-track-sku {
  font-size: 12px;
  margin-top: 2px;
}

.comp-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.comp-price-grid--modal {
  margin-bottom: 4px;
}

.comp-price-box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.comp-price-box--rival {
  border-color: color-mix(in srgb, #6366f1 28%, var(--border));
  background: color-mix(in srgb, #6366f1 6%, var(--card));
}

.comp-price-box--yours {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
}

.comp-price-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.comp-price-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.comp-track-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.comp-rule-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.comp-rule-chip span {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.comp-rule-chip--target {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  color: var(--primary);
  font-weight: 600;
}

.comp-track-actions {
  display: flex;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .comp-price-grid {
    grid-template-columns: 1fr;
  }
}

.listing-empty {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

.image-upload-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.image-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.select-with-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-with-action .form-select {
  flex: 1;
  min-width: 0;
}

.multi-image-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-thumb-remove:hover {
  background: var(--danger);
}

.image-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: fit-content;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.image-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.image-add-btn svg {
  width: 16px;
  height: 16px;
}

.gallery-dialog {
  max-width: min(960px, 96vw);
  margin: 0.5rem auto;
}

.gallery-modal {
  position: relative;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.gallery-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 52px;
  background: transparent;
}

.gallery-image {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.gallery-close {
  position: absolute;
  top: -8px;
  right: 4px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-close:hover {
  background: rgba(15, 23, 42, 0.75);
}

.gallery-close svg {
  width: 18px;
  height: 18px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gallery-nav:hover {
  background: rgba(15, 23, 42, 0.7);
}

.gallery-nav svg {
  width: 22px;
  height: 22px;
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}


/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.catalog-panel {
  margin-bottom: 0;
}

.catalog-add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.catalog-add-form .form-control {
  flex: 1;
}

.catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.catalog-edit-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.catalog-edit-form .form-control {
  flex: 1;
  height: 36px;
  background: #fff;
}

.catalog-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

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

/* TinyMCE inside modal */
.tox-tinymce {
  border-radius: 12px !important;
  border-color: var(--border) !important;
  width: 100% !important;
}

.fg-span-full .tox,
.fg-span-full .tox-tinymce {
  width: 100% !important;
  max-width: 100%;
}

.tox .tox-toolbar,
.tox .tox-editor-header {
  background: #fafbfc !important;
}

/* ——— Questions ——— */
.question-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.question-item:first-child {
  padding-top: 0;
}

.question-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.question-meta .js-q-refresh {
  margin-left: auto;
}

.question-meta .js-q-refresh .btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 118, 110, 0.25);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: orion-spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-left: 6px;
}

.question-meta .js-q-refresh.is-loading .btn-spinner {
  display: inline-block;
}

.question-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.question-answer {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.question-reply {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.question-reply .form-control {
  flex: 1;
}

/* ——— Settings ——— */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accounting-settings .panel-hd {
  align-items: center;
  gap: 12px;
}

.accounting-default-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--border-soft);
}

.accounting-default-switch .form-check-input {
  width: 2.4em;
  height: 1.25em;
  margin: 0;
  cursor: pointer;
  float: none;
}

.accounting-default-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.accounting-default-switch .form-check-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  margin: 0;
}

.orion-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.orion-switch-row .form-check-input {
  width: 2.6em;
  height: 1.35em;
  margin: 0;
  cursor: pointer;
}

.orion-switch-row .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.orion-switch-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 2.5rem;
}

.inline-price-mp {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 4px;
}

.inline-mp-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.inline-mp-row .form-label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
}

#inlineEditDialog.modal-md {
  max-width: 420px;
}

.settings-intro h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.settings-mp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mp-card {
  overflow: hidden;
}

.mp-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.mp-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mp-card-brand img {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px;
  flex-shrink: 0;
}

.mp-card-brand h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.mp-card-brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.mp-card-bd {
  padding: 8px 12px 12px;
}
.mp-pos-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 8px 4px;
}
.mp-pos-field label {
  display: block;
  margin-bottom: 4px;
}
.mp-pos-actions {
  display: flex;
  justify-content: flex-end;
}

.mp-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.store-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  transition: background 140ms ease;
}

.store-row:hover {
  background: rgba(15, 118, 110, 0.04);
}

.store-main {
  min-width: 0;
}

.store-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.store-meta code {
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  padding: 0;
}

.store-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.store-actions form {
  margin: 0;
}

.sf-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}

.sf-cred-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.sf-cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sf-cred-title {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 4px;
}

.settings-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.channel {
  padding: 24px;
  transition: box-shadow var(--ease), transform var(--ease);
}

.channel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.channel-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.5;
}

.settings-cred {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.architecture-note p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.architecture-note strong {
  color: var(--text);
}

.error-page-bd {
  text-align: center;
  padding: 48px 24px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.error-page-bd h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.error-detail {
  text-align: left;
  max-width: 720px;
  margin: 20px auto;
  padding: 16px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  overflow: auto;
  white-space: pre-wrap;
}

/* ——— Profile ——— */
.profile-page {
  max-width: 720px;
}
.profile-page.profile-layout {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  box-sizing: border-box;
}
.profile-page.profile-layout > .panel {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.profile-form-grid .fg-item {
  min-width: 0;
}
.profile-form-grid .profile-fg-full {
  grid-column: 1 / -1;
}
@media (max-width: 992px) {
  .profile-page.profile-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}
.profile-subusers .perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .profile-subusers .perm-grid {
    grid-template-columns: 1fr;
  }
}
.profile-subusers .perm-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 8px;
}
.profile-subusers .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.profile-subusers .subuser-form {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

/* ——— Notifications ——— */
.notif-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.notif-item.is-unread {
  border-color: #99f6e4;
  background: #f0fdfa;
}
.notif-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-hero h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.profile-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ——— Auth ——— */
.auth-body {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.auth-shell {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  animation: cardIn 240ms ease both;
}

.auth-card .brand {
  margin-bottom: 28px;
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-card .lead {
  margin: 8px 0 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .btn {
  margin-top: 8px;
  height: 44px;
}

.auth-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label-row .form-label {
  margin-bottom: 0;
}

.auth-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.auth-footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-trial-note {
  color: var(--text-muted);
  font-size: 13px;
}

.auth-login {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  width: min(996px, 100%);
  max-width: 100%;
}
.auth-login .auth-card {
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px;
  margin: 0;
}
.auth-login-slide {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 560px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #0f172a;
}
.auth-login-slide-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1359;
  overflow: hidden;
}
.auth-login-slide img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.auth-login-slide img.is-on {
  opacity: 1;
}

@media (max-width: 960px) {
  .auth-login-slide {
    display: none;
  }
  .auth-login {
    width: 100%;
    max-width: 440px;
  }
  .auth-login .auth-card {
    flex: 1 1 auto;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    align-items: flex-start;
    padding: 16px 12px 24px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .auth-card {
    padding: 24px 18px;
  }
  .auth-card h1 {
    font-size: 24px;
  }
  .auth-form .form-control,
  .auth-form .btn {
    font-size: 16px;
  }
  .auth-card .lead {
    margin-bottom: 20px;
  }
  .auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
  }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-trial-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.auth-trial-banner svg,
.auth-trial-banner i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary);
}

.auth-steps {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 12px;
  color: #94a3b8;
}
.auth-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.auth-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}
.auth-steps li.is-on {
  color: var(--primary);
}
.auth-steps li.is-on span {
  background: var(--primary);
  color: #fff;
}
.auth-code-input {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
}
.auth-resend-form {
  margin-top: 10px;
}
.auth-pending-hint {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  background: #fff;
  color: #1f2937 !important;
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-google:hover,
.btn-google:focus {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #111827 !important;
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ——— Misc legacy helpers ——— */
.stat-grid,
.grid-2 {
  display: grid;
  gap: 16px;
}

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

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.stat .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stat .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.channel-flags {
  display: flex;
  gap: 4px;
}

.channel-flag {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.3;
}

.channel-flag.on {
  opacity: 1;
}

.channel-flag.ty {
  background: var(--ty);
}

.channel-flag.hb {
  background: var(--hb);
}

.channel-flag.n11 {
  background: var(--n11);
}

.mp-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.mp-dot.ty {
  background: var(--ty);
}

.mp-dot.hb {
  background: var(--hb);
}

.mp-dot.n11 {
  background: var(--n11);
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-grid,
  .dash-grid-bottom {
    grid-template-columns: 1fr;
  }

  .product-card-main {
    grid-template-columns: 28px 64px 1fr auto;
  }

  .product-metrics,
  .product-channel-shortcuts,
  .product-main-menu {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .product-main-menu {
    justify-self: start;
  }

  .filter-grid,
  .form-grid,
  .product-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fg-span-3 {
    grid-column: span 2;
  }

  .settings-grid,
  .channel-grid,
  .settings-mp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell,
  .app-shell.sidebar-collapsed,
  html.sidebar-collapsed-boot .app-shell {
    grid-template-columns: 1fr;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(var(--sidebar-w), 86vw);
    max-width: 300px;
    transform: translateX(-105%);
    transition: transform var(--ease);
    z-index: 120;
    box-shadow: none;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.18);
  }

  /* Mobilde drawer her zaman geniş menü metinleriyle açılsın */
  body.sidebar-open .sidebar .brand-text,
  body.sidebar-open .sidebar .nav-label,
  body.sidebar-open .sidebar .nav-group-label,
  body.sidebar-open .sidebar .sidebar-user-meta,
  body.sidebar-open .sidebar .sidebar-logout {
    display: revert !important;
  }

  body.sidebar-open .sidebar .nav-list a,
  body.sidebar-open .sidebar .nav-settings {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  body.sidebar-open .sidebar .brand-row {
    flex-direction: row;
    align-items: center;
  }

  body.sidebar-open .sidebar .sidebar-user-link {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    flex: 1;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease);
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    min-height: 52px;
  }

  .topbar-right {
    width: auto;
    justify-content: flex-end;
  }

  .tb-btn span:not(.tb-btn-ico) {
    display: none;
  }

  .tb-add-caret {
    display: none !important;
  }

  .tb-btn {
    padding: 0 8px;
  }

  .tb-profile-meta {
    display: none;
  }

  .tb-profile {
    padding: 3px;
  }

  .content {
    padding: 16px 12px 88px;
  }

  .panel,
  .table-responsive {
    max-width: 100%;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .page-heading h1 {
    font-size: 22px;
  }
}

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

  .filter-grid,
  .form-grid,
  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .ty-send-top-grid {
    grid-template-columns: 1fr;
  }

  .fg-span-2,
  .fg-span-3,
  .fg-span-full {
    grid-column: span 1;
  }

  .settings-grid,
  .channel-grid,
  .settings-mp-grid {
    grid-template-columns: 1fr;
  }

  .store-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .address-pop {
    width: 280px;
  }

  .address-pop-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Kampanyalar / Trendyol komisyon ——— */
.campaign-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.campaign-upload-panel {
  min-width: 0;
}
.campaign-notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #f0d48a;
  background: #fff8e8;
  color: #7a5b12;
}
.campaign-notice-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.campaign-notice-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.campaign-notice-btn {
  align-self: flex-start;
  margin-top: 2px;
}
.campaign-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  padding: 24px 16px;
  border: 1.5px dashed var(--border, #d0d5dd);
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.03);
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.campaign-dropzone:hover,
.campaign-dropzone.is-drag {
  border-color: var(--primary, #0f766e);
  background: rgba(15, 118, 110, 0.07);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.15);
}
.campaign-dropzone.has-file {
  border-style: solid;
  border-color: var(--primary, #0f766e);
}
.campaign-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.campaign-drop-icon {
  display: inline-flex;
  color: var(--primary, #0f766e);
  margin-bottom: 4px;
}
.campaign-drop-icon svg {
  width: 28px;
  height: 28px;
}
.campaign-drop-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.campaign-drop-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.campaign-drop-file {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #0f766e);
  word-break: break-all;
}
.campaign-upload-meta {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 10px;
}
.campaign-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.campaign-field-action .btn {
  white-space: nowrap;
}
.campaign-table .camp-offer {
  cursor: pointer;
  font-size: 0.85rem;
  vertical-align: top;
}
.campaign-table .camp-offer.is-ok {
  background: rgba(22, 163, 74, 0.12);
}
.campaign-table .camp-offer.is-flex {
  background: rgba(234, 179, 8, 0.14);
}
.campaign-table .camp-prod-link {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.campaign-table .camp-row.camp-none {
  opacity: 0.55;
}
.campaign-table td {
  font-size: 0.88rem;
}
@media (max-width: 900px) {
  .campaign-top {
    grid-template-columns: 1fr;
  }
  .campaign-upload-meta {
    grid-template-columns: 1fr 1fr;
  }
  .campaign-field-action {
    grid-column: 1 / -1;
  }
  .campaign-field-action .btn {
    width: 100%;
  }
}


/* ——— Ayarlar: kargo / kârlılık satırları ——— */
.settings-tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.settings-tier-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 8px 4px;
  text-align: left;
}
.settings-tier-table td {
  padding: 4px 6px;
  vertical-align: middle;
}
.settings-tier-table .form-control,
.settings-tier-table .form-select {
  min-width: 0;
}

.profit-save-panel {
  margin-bottom: 0;
}
.profit-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.profit-save-bar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.profit-save-bar .btn {
  flex-shrink: 0;
}
.profit-calc-result {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pc-hero {
  text-align: center;
  margin-bottom: 16px;
}
.pc-hero span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pc-hero strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 4px 0 8px;
}
.pc-hero.is-profit strong { color: #15803d; }
.pc-hero.is-loss strong { color: #dc2626; }
.pc-kicker {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.pc-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border-soft);
  margin: 0 0 16px;
}
.pc-bar i {
  display: block;
  height: 100%;
  min-width: 0;
}
.pc-bar .is-cost { background: #2563eb; }
.pc-bar .is-cargo { background: #f59e0b; }
.pc-bar .is-comm { background: #0ea5e9; }
.pc-bar .is-fee { background: #334155; }
.pc-bar .is-profit { background: #16a34a; }
.pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.pc-row:last-child { border-bottom: none; }
.pc-row-l, .pc-row-r {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-row-r span {
  min-width: 56px;
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
}
.pc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pc-dot.is-cost { background: #2563eb; }
.pc-dot.is-cargo { background: #f59e0b; }
.pc-dot.is-comm { background: #0ea5e9; }
.pc-dot.is-fee { background: #334155; }
.pc-dot.is-stop { background: #64748b; }
.pc-dot.is-vat { background: #dc2626; }
.pc-dot.is-profit { background: #16a34a; }
.pc-dot.is-loss { background: #dc2626; }
.pc-target {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pc-target div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.pc-target span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pc-target strong {
  font-size: 1.15rem;
}
@media (max-width: 760px) {
  .profit-save-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .pc-target {
    grid-template-columns: 1fr 1fr;
  }
}
.settings-fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.settings-fee-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg);
}
.settings-fee-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-fee-card h4 img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ——— Hızlı satış / POS ——— */
body.pos-mode {
  overflow: hidden;
  height: 100vh;
}
body.pos-mode .app-shell {
  height: 100vh;
  overflow: hidden;
}
body.pos-mode .main {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
body.pos-mode .topbar {
  display: none !important;
}
body.pos-mode .content {
  padding: 10px 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.pos-mode .content > .alert,
body.pos-mode .flash-wrap {
  display: none !important;
}
.pos-page {
  margin: 0;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pos-kasa-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex-shrink: 0;
}
.pos-kasa-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.pos-kasa-tile span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pos-kasa-tile strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.pos-kasa-tile:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.pos-kasa-tile.is-warn {
  border-color: #fdba74;
  background: #fff7ed;
}
.pos-hakedis-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.pos-hakedis-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 0;
}
.pos-hakedis-chip span {
  font-size: 13px;
  font-weight: 600;
}
.pos-hakedis-chip strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.pos-hakedis-chip small {
  font-size: 11px;
  color: var(--text-muted);
}
.hakedis-page {
  max-width: 1100px;
}
.pos-card-fee {
  margin-top: 10px;
}
.pos-card-fee-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pos-card-fee-row .form-control {
  max-width: 110px;
}
.pos-card-fee-row small {
  font-size: 12px;
  color: var(--text-secondary);
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 12px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.pos-products,
.pos-cart {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.pos-products-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pos-products-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pos-products-hd h2,
.pos-cart-hd h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pos-kasa-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.pos-kasa-trigger svg {
  width: 14px;
  height: 14px;
}
.pos-kasa-trigger:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.pos-kasa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.pos-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.pos-search {
  position: relative;
  width: min(100%, 320px);
}
.pos-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.pos-search input {
  padding-left: 34px;
  height: 36px;
}
.pos-cat-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.pos-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 4px;
}
.pos-categories::-webkit-scrollbar {
  display: none;
}
.pos-cat-nav {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.pos-cat-nav:hover {
  border-color: #0f766e;
  color: #0f766e;
}
.pos-cat-nav[hidden] {
  display: none !important;
}
.pos-cat-nav svg {
  width: 16px;
  height: 16px;
}
.pos-cat-chip {
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.pos-cat-chip:hover {
  border-color: #0f766e;
  color: #0f766e;
}
.pos-cat-chip.is-active {
  background: rgba(15, 118, 110, 0.12);
  border-color: #0f766e;
  color: #0f766e;
}
.pos-products-bd {
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  gap: 8px;
  flex: 1;
  min-height: 0;
  align-content: start;
  justify-content: start;
}
.pos-product-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: start;
  align-content: center;
  text-align: left;
  width: 220px;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
  overflow: hidden;
}
.pos-product-card img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
  grid-row: 1 / span 2;
}
.pos-product-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pos-product-meta strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pos-product-meta small {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-product-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.pos-product-stock {
  grid-column: 2;
  font-size: 10px;
  color: var(--text-secondary);
}
.pos-product-stock.is-out {
  color: var(--danger);
}
.pos-product-card:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}
.pos-product-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pos-product-card.has-variants {
  position: relative;
}
.pos-product-card.has-variants::after {
  content: "Varyasyon seç";
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 600;
  color: #0f766e;
  margin-top: 2px;
}
.pos-variant-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}
.pos-variant-option {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.pos-variant-option:hover:not(:disabled) {
  border-color: #0f766e;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.1);
}
.pos-variant-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pos-variant-option img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
}
.pos-variant-option strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.pos-variant-option small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.pos-variant-option .pos-variant-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.pos-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
}
.pos-cart-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pos-kasa-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pos-kasa-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 8px;
}
.pos-kasa-stat {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.pos-kasa-stat-main {
  background: var(--primary-soft);
  border-color: transparent;
}
.pos-kasa-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pos-kasa-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.pos-kasa-stat-main strong {
  font-size: 20px;
  color: var(--primary);
}
.pos-kasa-stat small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
}
.pos-kasa-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pos-kasa-section-hd h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.pos-kasa-chip {
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
  background: #fff7ed;
  padding: 2px 8px;
  border-radius: 999px;
}
.pos-kasa-chip-ok {
  color: #047857;
  background: #ecfdf5;
}
.pos-kasa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pos-kasa-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.pos-kasa-list li:last-child {
  border-bottom: 0;
}
.pos-kasa-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.pos-kasa-list small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.pos-kasa-tabs {
  gap: 6px;
  margin: 4px 0 12px;
}
.pos-kasa-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 6px 12px;
}
.pos-kasa-tabs .nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: transparent;
}
.pos-kasa-tab-content {
  min-height: 180px;
}
.pos-kasa-sale-row,
.pos-kasa-havale-row {
  align-items: center;
}
.pos-kasa-sale-actions,
.pos-kasa-havale-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.pos-kasa-sale-actions > span,
.pos-kasa-havale-actions > span {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pos-kasa-havale-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.pos-fiziki-warn {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warning-soft);
  color: #92400e;
  font-size: 13px;
  line-height: 1.4;
}
.pos-kasa-list small a {
  color: var(--primary);
  text-decoration: none;
}
.pos-kasa-list small a:hover {
  text-decoration: underline;
}
.pos-havale-approve-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.pos-kasa-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.pos-cart-lines {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px;
  min-height: 0;
}
.pos-cart-empty {
  padding: 18px 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.pos-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--bg);
  margin-bottom: 6px;
}
.pos-line-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.pos-line-meta {
  font-size: 10px;
  color: var(--text-muted);
}
.pos-line-total {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.pos-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  grid-column: 1 / -1;
}
.pos-line-qty button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.pos-line-qty button:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.pos-line-qty button svg {
  width: 13px;
  height: 13px;
}
.pos-line-qty strong {
  min-width: 18px;
  text-align: center;
  font-size: 12px;
}
.pos-customer {
  padding: 8px 12px 4px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.pos-customer-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pos-customer-search {
  position: relative;
  flex: 1;
  min-width: 0;
}
.pos-customer-search svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  pointer-events: none;
}
.pos-customer-search input {
  padding-left: 28px;
  height: 32px;
}
.pos-customer-selected {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}
.pos-customer-selected strong {
  display: block;
  font-size: 12px;
}
.pos-customer-selected small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 1px;
}
.pos-customer-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 110px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.pos-customer-results li {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.pos-customer-results li:last-child {
  border-bottom: 0;
}
.pos-customer-results li:hover {
  background: #f1f5f9;
}
.pos-customer-results strong {
  display: block;
  font-size: 12px;
}
.pos-customer-results small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
}
.pos-payment {
  padding: 8px 12px 4px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.pos-payment-label,
.pos-note-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pos-required {
  color: #dc2626;
  font-weight: 700;
}
.pos-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.pos-pay-option {
  margin: 0;
  cursor: pointer;
}
.pos-pay-option.pos-pay-full {
  grid-column: 1 / -1;
}
.pos-pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pos-pay-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.pos-pay-card svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}
.pos-pay-card strong {
  font-size: 12px;
  font-weight: 600;
}
.pos-pay-option input:checked + .pos-pay-card {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.2);
}
.pos-pay-option input:checked + .pos-pay-card svg,
.pos-pay-option input:checked + .pos-pay-card strong {
  color: var(--primary);
}
.pos-checkout-btn {
  margin: 6px 12px 12px;
  height: 52px;
  width: calc(100% - 24px);
  justify-content: center;
  flex-shrink: 0;
}
.pos-checkout-btn .btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.pos-checkout-btn .btn-label strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pos-pay-modal-body .pos-customer {
  padding: 0 0 14px;
  border-top: 0;
}
.pos-pay-modal-body .pos-customer-results {
  max-height: 160px;
}
.pos-pay-choices-wrap {
  margin-bottom: 14px;
}
.pos-pay-choices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pos-ship-choices {
  grid-template-columns: 1fr 1fr;
}
.pos-pay-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pos-pay-choice:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 4px 16px rgba(15, 118, 110, .12);
}
.pos-pay-choice svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.pos-pay-choice strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pos-pay-choice.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 4px 16px rgba(15, 118, 110, .12);
}
.pos-pay-choice:disabled {
  opacity: .55;
  pointer-events: none;
}
#posCustomerModal {
  z-index: 1070;
}
.pos-card-fee {
  margin-top: 0;
}
@media (max-width: 900px) {
  .pos-kasa-stats {
    grid-template-columns: 1fr 1fr;
  }
  .pos-kasa-stat-main {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .pos-kasa-bar {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  body.pos-mode .content {
    overflow: auto;
  }
  .pos-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pos-products,
  .pos-cart {
    height: auto;
    max-height: none;
  }
  .pos-products-bd {
    max-height: 42vh;
  }
  .pos-cart-lines {
    max-height: 28vh;
  }
}

/* ——— Paketleme ——— */
.pack-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pack-scan-hd,
.pack-queue-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}
.pack-scan-hd h2,
.pack-queue-hd h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.pack-scan-bd {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px 18px;
}
.pack-scan-input,
.pack-item-input {
  position: relative;
  flex: 1;
  min-width: 0;
}
.pack-scan-input svg,
.pack-item-input svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.pack-scan-input input,
.pack-item-input input {
  padding-left: 40px;
  height: 44px;
  font-size: 15px;
}
.pack-queue-bd {
  padding: 8px 12px 16px;
  overflow-x: auto;
}
.pack-queue-table code {
  font-size: 12px;
}
.pack-progress {
  margin-bottom: 14px;
}
.pack-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.pack-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.pack-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 180ms ease;
}
.pack-item-scan {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.pack-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.pack-qty-stepper button {
  width: 34px;
  height: 40px;
  border: 0;
  background: #f8fafc;
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
}
.pack-qty-stepper button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.pack-qty-stepper input {
  width: 42px;
  height: 40px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}
.pack-item-input input {
  height: 40px;
}
.pack-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pack-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
}
.pack-line.is-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.pack-line-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pack-line-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.pack-line-count {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 64px;
  text-align: right;
}
.pack-line-ok {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}
.pack-line-ok:hover:not(:disabled) {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.pack-line-ok:disabled {
  opacity: 0.35;
  cursor: default;
}
.pack-done-overlay {
  position: fixed;
  inset: 0;
  z-index: 20050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.pack-done-overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}
.pack-done-overlay[hidden] {
  display: none !important;
}
.pack-done-card {
  text-align: center;
  max-width: 360px;
  padding: 28px 26px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  transform: translateY(12px) scale(0.94);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.pack-done-overlay.is-on .pack-done-card {
  transform: translateY(0) scale(1);
}
.pack-done-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success-soft);
}
.pack-done-check {
  width: 48px;
  height: 48px;
}
.pack-done-check circle {
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
.pack-done-check path {
  stroke: var(--success);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.pack-done-overlay.is-on .pack-done-check circle {
  animation: packDoneRing 0.55s ease forwards;
}
.pack-done-overlay.is-on .pack-done-check path {
  animation: packDoneTick 0.4s ease 0.28s forwards;
}
.pack-done-text {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.pack-queue-table .pack-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed transparent;
}
.pack-queue-table .pack-link:hover {
  color: var(--orion, #0f766e);
  border-bottom-color: currentColor;
}
.pack-queue-table .pack-link-customer {
  font-weight: 500;
}
.pack-queue-total {
  font-weight: 700;
  white-space: nowrap;
}
@keyframes packDoneRing {
  to { stroke-dashoffset: 0; }
}
@keyframes packDoneTick {
  to { stroke-dashoffset: 0; }
}

.pack-line-ok svg {
  width: 18px;
  height: 18px;
}
.order-row .btn-icon {border:none}

/* İadeler */
.claim-table th {
  font-size: 0.78rem;
  white-space: nowrap;
}
.claim-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 320px;
}
.claim-lines li + li {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}
.claim-line-title {
  font-weight: 600;
  font-size: 0.86rem;
}
.claim-pager {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.status-pill.claim-status-waitinginaction,
.status-pill.claim-status-created {
  background: #fff7ed;
  color: #c2410c;
}
.status-pill.claim-status-accepted {
  background: #ecfdf5;
  color: #047857;
}
.status-pill.claim-status-rejected,
.status-pill.claim-status-cancelled {
  background: #fef2f2;
  color: #b91c1c;
}
.status-pill.claim-status-unresolved,
.status-pill.claim-status-inanalysis,
.status-pill.claim-status-waitingfraudcheck {
  background: #eff6ff;
  color: #1d4ed8;
}
.mini-link {
  font-size: 0.78rem;
}

/* Footer fiyat hesaplayıcı FAB + popup */
.calc-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1080;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  background: #111827;
  color: #fff;
  font: 600 0.86rem/1 Inter, system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}
.calc-fab:hover {
  background: #0f172a;
  color: #fff;
}
.calc-fab svg {
  width: 18px;
  height: 18px;
}
.calc-popup-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef2f7 0%, #dfe7f1 100%);
  font-family: Inter, system-ui, sans-serif;
}
.price-calc {
  padding: 0.85rem;
}
.price-calc-card {
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.price-calc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.price-calc-toolbar strong {
  font-size: 0.95rem;
  color: #0f172a;
}
.price-calc-install {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f766e;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: 600 0.78rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.price-calc-install svg {
  width: 14px;
  height: 14px;
}
.price-calc-install:hover {
  background: #ecfdf5;
  border-color: #99f6e4;
}
.price-calc-install-hint {
  margin: 0 0 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.35;
}
.price-calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
}
.price-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}
.price-calc-field > span:first-child,
.price-calc-mult-label {
  display: block;
  min-height: 1.1em;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.price-calc-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.price-calc-input-wrap input,
.price-calc-field > select {
  display: block;
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0 2rem 0 0.75rem;
  font: 600 0.95rem/1 Inter, system-ui, sans-serif;
  color: #0f172a;
}
.price-calc-input-plain input {
  padding-right: 0.75rem;
  text-align: center;
}
.price-calc-field > select {
  padding-right: 0.75rem;
  appearance: auto;
}
.price-calc-input-wrap em {
  position: absolute;
  right: 0.7rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-style: normal;
  color: #64748b;
  font-weight: 700;
  font-size: 0.85rem;
  pointer-events: none;
}
.price-calc-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.65rem;
  margin-top: 0.7rem;
  align-items: stretch;
}
.price-calc-mult-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.price-calc-mult {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  height: 42px;
}
.price-calc-mult button {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  border-radius: 10px;
  height: 42px;
  padding: 0;
  font: 700 0.82rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.price-calc-mult button.is-active {
  background: #334155;
  border-color: #334155;
  color: #fff;
}
.price-calc-row + .price-calc-field {
  margin-top: 0.7rem;
}
.price-calc-table-wrap {
  margin-top: 0.85rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.price-calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.price-calc-table thead th {
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.45rem;
  text-align: center;
  font-weight: 700;
}
.price-calc-table thead th:first-child {
  text-align: left;
  padding-left: 0.7rem;
}
.price-calc-table tbody td {
  padding: 0.58rem 0.45rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}
.price-calc-table tbody td:first-child {
  text-align: left;
  padding-left: 0.65rem;
  color: #0f172a;
  font-weight: 700;
}
.price-calc-site {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.03em;
}
.price-calc-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  background: #fff;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.price-calc-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #0f172a;
}
.price-calc-table tr.mp-ty { background: #ffe8cc; }
.price-calc-table tr.mp-hb { background: #ffd9c8; }
.price-calc-table tr.mp-n11 { background: #e8d9f7; }
.price-calc-table tr.mp-fr { background: #cfece8; }
.price-calc-table tr.mp-store { background: #dce3ec; }
.price-calc-table tr.mp-ty td:first-child { color: #b45309; }
.price-calc-table tr.mp-hb td:first-child { color: #c2410c; }
.price-calc-table tr.mp-n11 td:first-child { color: #6b21a8; }
.price-calc-table tr.mp-fr td:first-child { color: #0f766e; }
.price-calc-table tr.mp-store td:first-child { color: #334155; }
@media (max-width: 420px) {
  .calc-fab span { display: none; }
  .calc-fab { padding: 0.85rem; border-radius: 999px; }
  .price-calc-fields,
  .price-calc-row {
    grid-template-columns: 1fr;
  }
}
/* ——— Dashboard War Room ——— */
.dash-war {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dw-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.dw-sub {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}
.dw-period {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.3rem;
}
.dw-date-range {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding-left: 0.45rem;
  border-left: 1px solid #e2e8f0;
}
.dw-date-range.is-active {
  border-left-color: #93c5fd;
}
.dw-date-sep {
  color: #94a3b8;
  font-weight: 600;
}
.dw-date-range .form-control {
  width: auto;
  min-width: 9.4rem;
  height: 34px;
  padding: 0.2rem 0.45rem;
  font-size: 0.8rem;
  border-radius: 8px;
}
.dw-date-apply {
  background: #f1f5f9;
}
.dash-war .dash-stat {
  text-decoration: none;
  color: inherit;
}
.dash-war .dash-stat:hover {
  border-color: #cbd5e1;
}
.dw-pill {
  border: 0;
  background: transparent;
  color: #475569;
  border-radius: 9px;
  padding: 0.45rem 0.85rem;
  font: 600 0.82rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.dw-pill.is-active {
  background: #3b82f6;
  color: #fff;
}
.dw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.dw-kpi {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  font: inherit;
  color: inherit;
}
.dw-kpi:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}
.dw-kpi:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.dw-kpi.is-static {
  cursor: default;
}
.dw-kpi.is-static:hover {
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transform: none;
}
.dw-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.dw-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.dw-kpi-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dw-kpi-ico svg { width: 16px; height: 16px; }
.dw-kpi-ico.ico-blue { background: #dbeafe; color: #2563eb; }
.dw-kpi-ico.ico-green { background: #dcfce7; color: #16a34a; }
.dw-kpi-ico.ico-orange { background: #ffedd5; color: #ea580c; }
.dw-kpi-ico.ico-purple { background: #ede9fe; color: #7c3aed; }
.dw-kpi-ico.ico-red { background: #fee2e2; color: #dc2626; }
.dw-kpi-ico.ico-brown { background: #ffedd5; color: #9a3412; }
.dw-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.dw-kpi-delta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.dw-kpi-delta.is-down { color: #dc2626; }
.dw-kpi-delta.is-up { color: #16a34a; }
.dw-kpi-delta.is-flat { color: #94a3b8; }
.dw-kpi-meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}
.dw-havale {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 120px);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.dw-havale-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.dw-havale-hd strong {
  display: block;
  color: #92400e;
}
.dw-havale-hd span {
  font-size: 0.78rem;
  color: #b45309;
}
.dw-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.dw-card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.dw-card-hd h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.dw-card-hd p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
.dw-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 0.85rem;
}
.dw-waterfall-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0.85rem;
}
.dw-waterfall-chart {
  height: 280px;
}
.dw-net-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 0.85rem;
}
.dw-net-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
}
.dw-net-value {
  margin: 0.25rem 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #065f46;
}
.dw-net-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #334155;
  padding: 0.2rem 0;
}
.dw-margin-alert {
  margin-top: 0.65rem;
  background: #ffedd5;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.dw-side-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dw-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: #334155;
}
.dw-list li span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: #94a3b8;
}
.dw-list li.tone-warn span { background: #f97316; }
.dw-list li.tone-danger span { background: #ef4444; }
.dw-list li.tone-ok span { background: #22c55e; }
.dw-actions a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
.dw-actions a:hover { text-decoration: underline; }
.dw-mp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.dw-mp-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.05rem 0.9rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dw-mp-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.dw-mp-name img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}
.dw-mp-name strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.dw-mp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.9rem;
}
.dw-mp-metrics span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.dw-mp-metrics strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.dw-mp-bar {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.dw-mp-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
  min-width: 0;
  max-width: 100%;
  transition: width 0.25s ease;
}
.dw-mp-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}
.dw-mp-inline img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.dw-live-hd {
  align-items: center;
}
.dw-live-scroll {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.dw-live-scroll .dw-live-table {
  margin: 0;
}
.dw-live-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: 0 1px 0 #e2e8f0;
}
.dw-live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.dw-live-count {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.dw-live-limit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}
.dw-live-limit select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem 0.55rem;
  font: 600 0.8rem/1 Inter, system-ui, sans-serif;
  color: #0f172a;
}
.dw-live-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.dw-live-tabs button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: 600 0.75rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.dw-live-tabs button.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.dw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.dw-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.dw-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  vertical-align: middle;
}
.dw-live-table tbody tr {
  background: #f0fdf4;
}
.dw-live-table tbody tr:nth-child(even) {
  background: #ecfdf5;
}
.dw-table .is-pos { color: #15803d; font-weight: 700; }
.dw-table .is-neg { color: #dc2626; font-weight: 700; }
.dw-prod {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dw-status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.dw-empty {
  text-align: center;
  color: #94a3b8;
  padding: 1rem !important;
}
.dw-empty-li {
  color: #94a3b8;
  font-size: 0.86rem;
  padding: 0.5rem 0;
}
.dw-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.85rem;
}
.dw-bottom-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.dw-stock-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.dw-stock-stat {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.75rem 0.55rem;
  text-align: center;
}
.dw-stock-stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.dw-stock-stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.dw-stock-stat.is-oos {
  background: #fef2f2;
  border-color: #fecaca;
}
.dw-stock-stat.is-oos strong { color: #dc2626; }
.dw-stock-stat.is-crit {
  background: #fffbeb;
  border-color: #fde68a;
}
.dw-stock-stat.is-crit strong { color: #d97706; }
.dw-stock-stat.is-total {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.dw-stock-stat.is-total strong { color: #0f172a; }
.dw-stock-stat.is-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.dw-stock-stat.is-active strong { color: #16a34a; }
.dw-stock-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.dw-stock-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.dw-stock-list,
.dw-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dw-stock-list li {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}
.dw-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.dw-stock-list strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dw-stock-list em {
  font-style: normal;
  font-weight: 700;
  color: #dc2626;
  font-size: 0.84rem;
  white-space: nowrap;
}
.dw-stock-bar {
  margin-top: 0.55rem;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.dw-stock-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f87171, #ef4444);
  min-width: 0;
}
.dw-top-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.65rem;
  align-items: center;
}
.dw-top-list img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}
.dw-top-list strong {
  display: block;
  font-size: 0.84rem;
  color: #0f172a;
}
.dw-top-list span {
  font-size: 0.75rem;
  color: #64748b;
}
.dw-top-list em {
  font-style: normal;
  font-weight: 700;
  color: #15803d;
  font-size: 0.84rem;
}
@media (max-width: 700px) {
  .dw-stock-stats { grid-template-columns: 1fr 1fr; }
}
.dw-daily-chart {
  height: 220px;
}
.dw-pack-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.dw-pack-flow div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
}
.dw-pack-flow span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.dw-pack-flow strong {
  font-size: 1.05rem;
  color: #0f172a;
}
.dw-pack-actions {
  display: flex;
  gap: 0.4rem;
}
.dw-q-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.dw-q-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.dw-q-item img,
.dw-q-ph {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.dw-q-item strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
}
.dw-q-item p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1200px) {
  .dw-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-mid,
  .dw-bottom,
  .dw-waterfall-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .dw-kpi-grid { grid-template-columns: 1fr; }
  .dw-pack-flow { grid-template-columns: 1fr 1fr; }
  .dw-q-item { grid-template-columns: 48px 1fr; }
  .dw-q-item .btn { grid-column: 1 / -1; }
  .dw-live-hd { flex-direction: column; align-items: stretch; }
}

/* Sipariş Detay Raporu (Paroner order-report) */
.or-page { padding-bottom: 2rem; }
.or-toolbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 14px;
}
.or-filter-wide { flex: 1 1 100%; min-width: 220px; }
.or-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.or-tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.or-tab:hover {
  border-color: rgba(15, 118, 110, 0.35);
  color: #0f766e;
}
.or-tab.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.or-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  height: 100%;
}
.or-stat-card.is-info { border-left: 4px solid #0284c7; }
.or-stat-card.is-danger { border-left: 4px solid #dc2626; }
.or-stat-card.is-warning { border-left: 4px solid #d97706; }
.or-stat-card.is-success { border-left: 4px solid #0f766e; }
.or-stat-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.or-stat-val {
  display: block;
  font-size: 18px;
  color: #0f172a;
}
.or-stat-sub {
  display: block;
  font-size: 13px;
  color: #0f766e;
  margin-top: 4px;
  font-weight: 600;
}
.or-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.or-expense-row {
  margin-bottom: 14px;
  font-size: 13px;
  color: #334155;
}
.or-metric-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}
.or-metric-row span {
  display: block;
  color: #64748b;
  margin-bottom: 4px;
}
.or-metric-row strong {
  color: #0f172a;
  font-size: 14px;
}
.or-table-section .panel-bd { padding-top: 0; }
.or-table-head { border-bottom: 1px solid #e2e8f0; }
.or-table-sub { font-size: 12px; color: #64748b; }
.or-table-modern {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.or-dt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid #e2e8f0;
}
.or-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.or-search-wrap input { min-width: 180px; }
.or-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.or-report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.or-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfdf5 100%);
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.25);
  white-space: nowrap;
}
.or-report-table tbody tr { transition: background 0.15s ease; }
.or-report-table tbody tr:hover { background: #f8fafc; }
.or-report-table tbody tr:not(:last-child) td { border-bottom: 1px solid #f1f5f9; }
.or-report-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  color: #334155;
}
.or-report-table .or-col-product { min-width: 300px; }
.or-report-table .or-col-label { min-width: 200px; }
.or-report-table .or-col-num,
.or-report-table .or-col-money,
.or-report-table .or-col-profit {
  text-align: right;
  white-space: nowrap;
}
.or-report-table .or-col-muted .or-money { color: #94a3b8; }
.or-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}
.or-product-img {
  width: 48px;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 5px;
  flex-shrink: 0;
}
.or-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.or-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.or-product-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.or-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}
.or-tag.is-muted {
  background: #f8fafc;
  color: #94a3b8;
}
.or-qty-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-weight: 700;
  font-size: 12px;
}
.or-qty-pill.is-soft {
  background: #f1f5f9;
  color: #64748b;
}
.or-money {
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.or-money.is-muted { color: #64748b; font-weight: 500; }
.or-money.is-zero { color: #cbd5e1; }
.or-profit-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.or-profit-pill.is-positive {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.or-profit-pill.is-negative {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.or-label-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.or-label-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.or-label-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.or-table-empty {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}
.or-table-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.or-table-empty p { margin: 0; font-size: 14px; }
@media (max-width: 768px) {
  .or-toolbar-head { flex-direction: column; }
  .or-report-table thead { display: none; }
  .or-report-table tbody tr {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
  }
  .or-report-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    text-align: right !important;
  }
  .or-report-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: left;
  }
  .or-report-table .or-col-product { display: block; text-align: left !important; }
  .or-report-table .or-col-product::before { display: none; }
}

/* Giderler */
.exp-page .exp-chart-wrap { height: 300px; position: relative; }
.exp-page .exp-donut-wrap { width: 220px; height: 220px; }
.or-link {
  font-size: 12px;
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}
.or-link:hover { text-decoration: underline; }

/* Kota / paketler */
.quota-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.quota-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}
.quota-chip.is-danger {
  background: #fef2f2;
  color: #b91c1c;
}
.quota-banner {
  border-radius: 10px;
}

.packages-page .pkg-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.packages-page .pkg-hero-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.packages-page .pkg-hero-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}
.packages-page .pkg-quota-alert {
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.35rem;
}
.packages-page .pkg-quota-alert-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.92rem;
}
.packages-page .pkg-quota-alert em {
  font-style: normal;
  opacity: 0.8;
}
.packages-page .pkg-quota-sep {
  color: #93c5fd;
}
.packages-page .pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.15rem;
}
.packages-page .pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.packages-page .pkg-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.packages-page .pkg-card.is-inactive {
  opacity: 0.72;
  background: #f8fafc;
}
.packages-page .pkg-card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.packages-page .pkg-card-inactive-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.packages-page .pkg-card-body {
  flex: 1 1 auto;
}
.packages-page .pkg-card-name {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.3;
}
.packages-page .pkg-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
  color: #0f172a;
}
.packages-page .pkg-currency {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
}
.packages-page .pkg-amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.packages-page .pkg-card-perks {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.packages-page .pkg-card-perks li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.9rem;
}
.packages-page .pkg-perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.85rem;
}
.packages-page .pkg-card-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
}
.packages-page .pkg-buy-btn {
  width: 100%;
  font-weight: 700;
}
.packages-page .pkg-edit-btn {
  width: 100%;
  color: #64748b;
}
.packages-page .pkg-edit-btn:hover {
  color: #0f172a;
  background: #f8fafc;
}
.packages-page .pkg-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
  background: #f8fafc;
}
.packages-page .pkg-history {
  border-radius: 14px;
}
@media (max-width: 640px) {
  .packages-page .pkg-hero {
    flex-direction: column;
  }
  .packages-page .pkg-quota-sep {
    display: none;
  }
  .packages-page .pkg-quota-alert-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.package-card .package-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
.package-perks {
  margin: 0;
  padding-left: 1.1rem;
  color: #64748b;
  font-size: 0.9rem;
}
.packages-pay iframe {
  border: 0;
  border-radius: 8px;
  background: #fff;
}

/* XML import */
.xml-import-page .xml-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.xml-import-page .xml-hero-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.xml-import-page .xml-hero-sub {
  margin: 0;
  color: #64748b;
}
.xml-import-page .xml-stat-row {
  display: flex;
  gap: 0.65rem;
}
.xml-import-page .xml-stat {
  min-width: 110px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.xml-import-page .xml-stat span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
}
.xml-import-page .xml-stat strong {
  font-size: 1.1rem;
  color: #0f172a;
}
.xml-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.xml-tpl-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.xml-tpl-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.xml-tpl-code.sm {
  min-width: 1.4rem;
  height: 1.4rem;
  font-size: 0.75rem;
}
.xml-tpl-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
}
.xml-tpl-desc {
  margin: 0 0 0.5rem;
  color: #64748b;
  font-size: 0.88rem;
  flex: 1;
}
.xml-tpl-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.xml-tpl-link {
  font-size: 0.85rem;
}
.xml-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem;
}
.xml-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.xml-cat-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.xml-cat-item:has(input:checked) {
  border-color: #99f6e4;
  background: #f0fdfa;
}
.xml-cat-name {
  flex: 1;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
}
.xml-cat-count {
  font-size: 0.75rem;
  color: #0f766e;
  font-weight: 700;
  white-space: nowrap;
}
.xml-rules-row {
  align-items: flex-start;
}
.xml-rules-row .form-label {
  display: block;
  margin-bottom: 0.35rem;
  min-height: 1.25rem;
}
.xml-rules-row .xml-rule-hint {
  display: block;
  margin-top: 0.35rem;
  min-height: 1.15rem;
}

.pos-card-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pos-card-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.pos-card-method:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(15, 118, 110, .12);
}
.pos-card-method svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.pos-card-method strong {
  font-size: 14px;
  color: var(--text);
}
.pos-card-method span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.pos-paytr-link-box {
  display: flex;
  gap: 8px;
}
.pos-paytr-link-box .form-control {
  flex: 1;
  font-size: 13px;
}
.pos-paytr-link-box .btn-success {
  white-space: nowrap;
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
.pos-paytr-link-box .btn-success:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.wh-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.wh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.wh-card.is-default {
  border-color: var(--orion, #2563eb);
}
.wh-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.wh-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.wh-card-top strong {
  display: block;
  font-size: 15px;
}
.wh-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--orion, #2563eb);
  margin-left: 6px;
  vertical-align: middle;
}
.wh-code {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.wh-card-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.wh-card-stats b {
  color: var(--text);
}
.wh-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wh-stock-add {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.wh-stock-add .fg-item {
  min-width: 160px;
  flex: 1;
}
.wh-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.wh-action-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.wh-action-hd {
  margin-bottom: 12px;
}
.wh-action-hd strong {
  display: block;
  font-size: 14px;
}
.wh-action-hd span {
  font-size: 12px;
  color: var(--text-secondary);
}
.wh-action-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.wh-action-fields .fg-item {
  min-width: 140px;
  flex: 1;
}
.wh-action-fields .btn {
  white-space: nowrap;
}
.wh-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 4px;
}
.wh-stock-table td.js-wh-fill-add {
  cursor: pointer;
}
.wh-stock-table td.js-wh-fill-add:hover {
  background: rgba(37, 99, 235, 0.06);
}
.wh-stock-table td.is-assigned {
  font-weight: 700;
  color: var(--orion, #2563eb);
}
.wh-stock-table td.is-zero {
  color: var(--text-secondary);
}

.admin-page {
  max-width: 1180px;
}
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 18px;
}
.admin-head h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 0;
}
.admin-back {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.admin-back:hover {
  color: var(--primary);
}
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.admin-tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
}
.admin-tabs a.is-active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.admin-tabs .tab-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  color: #b45309;
}
.xml-req-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.xml-req-legend > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.xml-req-legend strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.xml-req-legend span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.xml-req-review .form-label {
  font-size: 12px;
  font-weight: 600;
}
.xml-req-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-pill.xml-req-status.is-approved_general {
  background: #dcfce7;
  color: #166534;
}
.admin-pill.xml-req-status.is-approved_private {
  background: #dbeafe;
  color: #1d4ed8;
}
.admin-pill.xml-req-status.is-rejected {
  background: #fee2e2;
  color: #b91c1c;
}
.nav-label-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  color: #b45309;
  vertical-align: middle;
}
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.admin-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.admin-kpi span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.admin-kpi strong {
  font-size: 20px;
  font-weight: 700;
}
.admin-kpi.is-warn strong {
  color: #b45309;
}
.admin-search {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}
.admin-user-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: inherit;
}
.admin-user-link strong {
  font-size: 13px;
}
.admin-user-link small {
  color: var(--text-muted);
  font-size: 11px;
}
.admin-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  vertical-align: middle;
}
.admin-pill.is-muted {
  background: #f1f5f9;
  color: var(--text-muted);
}
.admin-plan {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
}
.admin-plan.is-trial {
  background: #fff7ed;
  color: #c2410c;
}
.admin-plan.is-active {
  background: #ecfdf5;
  color: #047857;
}
.admin-plan.is-expired {
  background: #fef2f2;
  color: #b91c1c;
}
.admin-split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-grid .panel,
.admin-split .panel {
  margin-bottom: 14px;
}
.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}
.admin-head-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
  .admin-head {
    flex-direction: column;
  }
}

/* ——— E-ticaret ——— */
.ecommerce-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ecom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ecom-choice,
.ecom-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ecom-choice-item,
.ecom-theme {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.ecom-choice-item input,
.ecom-theme input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ecom-choice-item span,
.ecom-theme span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}
.ecom-choice-item input:checked + span,
.ecom-theme input:checked + span {
  border-color: var(--primary);
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
}
.ecom-site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ecom-site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
}
.ecom-site-row:hover {
  background: rgba(15, 118, 110, 0.04);
}
.ecom-site-main {
  min-width: 0;
}
.ecom-site-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.ecom-site-url {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  word-break: break-all;
  margin-bottom: 6px;
}
.ecom-site-url:hover {
  color: var(--primary);
  text-decoration: underline;
}
.ecom-site-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ecom-site-links form {
  margin: 0;
}
body.ecom-installing {
  overflow: hidden;
}
.ecom-wait {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 24, 0.62);
  backdrop-filter: blur(6px);
}
.ecom-wait[hidden] {
  display: none !important;
}
.ecom-wait-card {
  width: min(420px, calc(100% - 32px));
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  text-align: center;
}
.ecom-wait-card p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.ecom-wait-spin {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: ecom-spin 0.8s linear infinite;
}
@keyframes ecom-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 900px) {
  .ecom-grid {
    grid-template-columns: 1fr;
  }
  .ecom-site-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.ecom-intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ecom-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ecom-steps > span:not(.ecom-steps-line) {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.ecom-steps > span.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ecom-steps-line {
  width: 36px;
  height: 2px;
  background: var(--border);
}
.ecom-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ecom-theme-card {
  position: relative;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ecom-theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ecom-theme-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  display: block;
}
.ecom-theme-card span {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.ecom-theme-card input:checked + img {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}
.ecom-dns {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg);
}
.ecom-dns strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.ecom-dns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ecom-dns code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
}
@media (max-width: 700px) {
  .ecom-intro-row {
    flex-direction: column;
  }
  .ecom-theme-grid {
    grid-template-columns: 1fr;
  }
}

/* Akıllı kampanyalar */
.sc-tabs {
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.sc-tabs .nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.55rem 0.85rem;
}
.sc-tabs .nav-link:hover {
  color: var(--text);
  border-color: transparent;
}
.sc-tabs .nav-link.active {
  color: var(--text);
  font-weight: 600;
  background: transparent;
  border-bottom-color: var(--primary, #0f766e);
}
.sc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}
.sc-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius, 0.5rem);
  padding: 0.85rem 1rem;
  background: var(--surface, #fff);
}
.sc-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text);
}
.sc-stat span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.sc-code {
  font-size: 0.75rem;
  word-break: break-all;
}
.sc-placeholder code {
  font-size: 0.8rem;
  margin-right: 0.35rem;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.sc-table td,
.sc-table th {
  font-size: 0.8125rem;
  vertical-align: middle;
}
.sc-cron-url {
  display: block;
  padding: 0.65rem 0.85rem;
  background: var(--bg, #f8fafc);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  word-break: break-all;
  border: 1px solid var(--border);
}
.sc-page .tox-tinymce {
  border-radius: 12px !important;
}

.sc-intro-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sc-intro-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg, #f8fafc);
}
.sc-intro-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary, #0f766e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-intro-step strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.sc-intro-step p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.sc-wizard-nav {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.sc-wizard-nav li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.sc-wizard-nav li span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.sc-wizard-nav li.is-active {
  color: var(--text);
}
.sc-wizard-nav li.is-active span {
  background: var(--primary, #0f766e);
  border-color: var(--primary, #0f766e);
  color: #fff;
}
.sc-wizard-nav li.is-done span {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #047857;
}
.sc-wizard-error {
  color: #b91c1c;
  font-size: 13px;
  margin-bottom: 12px;
}
.sc-mp-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.sc-mp-group:last-child {
  margin-bottom: 0;
}
.sc-mp-group-hd {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-mp-group-hd img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.sc-mp-group-hd strong {
  font-size: 14px;
}
.sc-mp-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-mp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  margin: 0;
  background: var(--surface, #fff);
}
.sc-mp-card input {
  margin: 0;
}
.sc-mp-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.sc-mp-card span {
  font-weight: 600;
  font-size: 14px;
}
.sc-mp-card:has(input:checked) {
  border-color: var(--primary, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
#smartCampaignModal .modal-title {
  font-size: 18px;
  font-weight: 600;
}
#smartCampaignModal .modal-dialog {
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
}
#smartCampaignModal .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}
#smartCampaignModal .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  min-height: 0;
}
#smartCampaignModal .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
#smartCampaignModal .modal-header,
#smartCampaignModal .modal-footer {
  flex-shrink: 0;
  background: var(--surface, #fff);
  z-index: 3;
}
.sc-channel-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-channel-picks .sc-mp-card {
  flex: 1 1 140px;
}
